.c-category-view {
    padding: 2rem 1.5rem;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.c-category-view__header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.c-category-view__header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.c-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.c-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.c-breadcrumbs a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.c-breadcrumbs a:hover {
    color: var(--color-primary);
}

.c-breadcrumbs i {
    font-size: 0.8rem;
    opacity: 0.5;
}

.c-breadcrumbs .is-active {
    color: var(--color-primary);
    font-weight: 500;
}

.c-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.c-grid-post {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.c-grid-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.c-grid-post__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.c-grid-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.c-grid-post:hover .c-grid-post__img {
    transform: scale(1.05);
}

.c-grid-post__price {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.c-grid-post__price .u-currency {
    font-size: 1em;
    width: 1em;
    height: 0.9em;
    background-color: white;
}

.c-grid-post__info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.c-grid-post__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    white-space: normal;
    overflow: visible;
}

.c-grid-post__meta,
.c-grid-post__location {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    min-width: 0;
}

.c-grid-post__meta i,
.c-grid-post__location i {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Post Lightbox */
.c-post-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.c-post-lightbox.is-active {
    display: flex;
    opacity: 1;
}

.c-post-lightbox__content {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    width: 100%;
    max-width: 1100px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.c-post-lightbox.is-active .c-post-lightbox__content {
    transform: scale(1);
}

.c-post-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: white;
}

.c-post-lightbox__body {
    display: flex;
    flex-direction: row;
    position: relative;
}

.c-post-lightbox__left {
    width: 55%;
    flex: none;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.c-post-lightbox__left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-post-lightbox__right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--color-border);
}

.c-post-lightbox__header,
.c-post-lightbox__title,
.c-post-lightbox__price {
    flex-shrink: 0;
}

.c-post-lightbox__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.c-post-lightbox__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.c-post-lightbox__price {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.c-post-lightbox__price .u-currency {
    width: 1em;
    height: 1em;
    background-color: var(--color-primary);
    vertical-align: middle;
}

.c-post-lightbox__desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.75rem;
}

.c-post-lightbox__desc::-webkit-scrollbar {
    width: 6px;
}
.c-post-lightbox__desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}
.c-post-lightbox__desc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}
.c-post-lightbox__desc::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.c-post-lightbox__actions {
    flex-shrink: 0;
    margin-top: auto;
}

.c-post-lightbox__actions--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.c-btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.c-btn-contact:hover {
    opacity: 0.85;
}

.c-btn-contact:active {
    transform: scale(0.98);
}

.c-btn-contact--whatsapp { background-color: #25D366; }
.c-btn-contact--viber { background-color: #7360f2; }
.c-btn-contact--telegram { background-color: #0088cc; }
.c-btn-contact--call { background-color: var(--color-primary); }

.c-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.2s;
}

.c-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.c-slider-btn--prev { left: 1rem; }
.c-slider-btn--next { right: 1rem; }

.c-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.c-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-color 0.2s, width 0.2s;
}

.c-slider-dot.is-active {
    background-color: white;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .c-category-view {
        padding: 1rem 0.75rem;
    }

    .c-category-view__header {
        padding: 0 0 0.75rem 0;
        margin-bottom: 0.75rem;
    }

    .c-post-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .c-grid-post {
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 0.35rem 1rem;
        border: none;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        background: none;
        padding: 1.25rem 0;
    }

    .c-grid-post:hover {
        transform: none;
        box-shadow: none;
    }

    .c-grid-post__image-wrap,
    .c-grid-post__info {
        display: contents; /* Unwraps containers so children become grid items */
    }

    .c-grid-post__img {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 110px;
        height: 110px;
        border-radius: 12px;
        object-fit: cover;
    }

    .c-grid-post__title {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.85rem;
        font-weight: 700;
        white-space: normal;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .c-grid-post__meta {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.8rem;
    }
    
    .c-grid-post__location {
        display: none; /* Hide location on mobile like search */
    }

    .c-grid-post__price {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        align-items: center;
        gap: 0.15rem;
        position: static; /* Removes absolute positioning */
        background: none;
        backdrop-filter: none;
        color: var(--color-primary);
        font-weight: 700;
        font-size: 1.1rem;
        padding: 0;
        border-radius: 0;
        white-space: nowrap;
        margin-top: 0.15rem; /* Pushes it slightly down from meta */
    }

    .c-grid-post__price .u-currency {
        background-color: var(--color-primary);
        vertical-align: -0.15em;
        margin-right: 0.15rem;
    }
    
    .c-post-lightbox {
        padding: 0;
        background-color: var(--color-bg-base);
    }
    
    .c-post-lightbox__content {
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .c-post-lightbox__body {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .c-post-lightbox__left {
        width: 100%;
        aspect-ratio: 1 / 1;
        position: relative;
        flex: none;
    }
    
    .c-post-lightbox__right {
        position: static;
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding: 1.5rem 1rem 8rem;
        display: flex;
        flex-direction: column;
        flex: none;
    }
    
    .c-post-lightbox__desc {
        flex: none;
        overflow-y: visible;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .c-post-lightbox__actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--color-bg-base);
        padding: 1rem;
        margin: 0;
        border-top: 1px solid var(--color-border);
        z-index: 100;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    }

    .c-post-lightbox__actions--grid {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .c-post-lightbox__actions button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .c-post-lightbox__actions button i {
        font-size: 1.5rem;
        margin: 0;
    }

    .c-post-lightbox__actions button span {
        display: none !important;
    }
}
