/* ─── Базовые стили и переменные ─────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основная палитра заката */
    --sun-light: #f4d282;
    --sun-glow: #eb741b;
    --sun-deep: #873012;
    --ocean-light: #7ca4bc;
    --ocean-mid: #6c94a4;
    --ocean-deep: #133a48;
    --sand-warm: #a89885;
    --sand-earth: #8d6941;
    --ocean-soft: #67949c;
    
    /* Производные */
    --gradient-sunset: linear-gradient(135deg, #f4d282 0%, #eb741b 50%, #873012 100%);
    --gradient-ocean: linear-gradient(135deg, #7ca4bc 0%, #6c94a4 50%, #133a48 100%);
    --gradient-card: linear-gradient(180deg, rgba(244,210,130,0.08) 0%, rgba(235,116,27,0.05) 100%);
    
    --color-bg: #fafaf6;
    --color-card: #ffffff;
    --color-text: #133a48;
    --color-text-secondary: #6c94a4;
    --color-border: rgba(124,164,188,0.2);
    --color-accent: #eb741b;
    --color-accent-hover: #873012;
    
    --shadow-sm: 0 1px 2px 0 rgba(19,58,72,0.05);
    --shadow-md: 0 4px 6px -1px rgba(19,58,72,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(19,58,72,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(19,58,72,0.12);
    --shadow-glow: 0 4px 20px rgba(235,116,27,0.15);
}

body {
    background: var(--color-bg);
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at 100% 0%, rgba(244,210,130,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(124,164,188,0.06) 0%, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Навигация ──────────────────────────────────────────────────────────── */
.navbar {
    background: rgba(250,250,246,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;  /* было 1000, ставим ниже чем у мега-меню */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 2rem;
}

.nav-logo {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: rgba(244,210,130,0.1);
}

.categories-btn .chevron {
    transition: transform 0.3s;
}

.categories-btn.active .chevron {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Кнопки */
.btn {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
}

.btn-outline:hover {
    border-color: var(--sun-glow);
    color: var(--color-accent);
}

.btn-primary {
    background: var(--gradient-sunset);
    color: white;
    box-shadow: 0 2px 8px rgba(235,116,27,0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(235,116,27,0.35);
    transform: translateY(-1px);
}

/* ─── Мега-меню ──────────────────────────────────────────────────────────── */
.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mega-menu.active {
    pointer-events: all;
    opacity: 1;
}

.mega-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19,58,72,0.4);
    backdrop-filter: blur(4px);
}

.mega-menu-container {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s;
     z-index: 1001;
}

.mega-menu.active .mega-menu-container {
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mega-menu-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
}

.mega-menu-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}

.mega-menu-close:hover {
    background: rgba(235,116,27,0.1);
    color: var(--color-accent);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.mega-category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: var(--color-bg);
}

.mega-category-card:hover {
    background: white;
    border-color: rgba(235,116,27,0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mega-category-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(244,210,130,0.2), rgba(235,116,27,0.1));
    border-radius: 12px;
    flex-shrink: 0;
}

.mega-category-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mega-category-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.mega-category-count {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Бургер-кнопка */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Анимация в крестик */
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Мобильное меню ─────────────────────────────────────────────────────── */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0.75rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--color-border);
    gap: 0.25rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(244,210,130,0.1);
    color: var(--color-accent);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.mobile-btn-full {
    width: 100%;
    text-align: center;
    padding: 0.65rem;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(180deg, rgba(244,210,130,0.1) 0%, rgba(250,250,246,1) 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244,210,130,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124,164,188,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 16px 0 0 16px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--sun-glow);
    box-shadow: 0 0 0 3px rgba(235,116,27,0.1);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--gradient-sunset);
    color: white;
    border: none;
    border-radius: 0 16px 16px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(235,116,27,0.3);
}

.search-btn:hover {
    box-shadow: 0 6px 25px rgba(235,116,27,0.5);
}

/* ─── Секции ─────────────────────────────────────────────────────────────── */
.categories-section,
.listings-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-sunset);
    border-radius: 3px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.see-all {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 500;
    transition: color 0.2s;
}

.see-all:hover {
    color: var(--sun-deep);
}

/* Категории */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sunset);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(235,116,27,0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

/* Сетка объявлений */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(235,116,27,0.2);
}
.listing-image {
    height: 220px;
    background: linear-gradient(135deg, #fafaf6, #f0ebe0);
    position: relative;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, rgba(244,210,130,0.15), rgba(124,164,188,0.1));
}

.listing-type {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    color: var(--color-accent);
}

.listing-body {
    padding: 1.25rem;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text);
}

.listing-price {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.listing-category {
    font-size: 0.8rem;
    background: linear-gradient(135deg, rgba(244,210,130,0.15), rgba(235,116,27,0.08));
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--color-accent);
    font-weight: 500;
}

.listing-views {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ─── Страница категории ────────────────────────────────────────────────── */
.breadcrumbs {
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

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

.breadcrumbs a:hover {
    color: var(--sun-deep);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--color-text-secondary);
}

.breadcrumbs .current {
    color: var(--color-text-secondary);
}

.category-header {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-count {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.subcategories {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.subcategories h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-weight: 600;
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subcategory-chip {
    background: linear-gradient(135deg, rgba(244,210,130,0.1), rgba(235,116,27,0.05));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.subcategory-chip:hover {
    background: linear-gradient(135deg, rgba(244,210,130,0.2), rgba(235,116,27,0.1));
    border-color: var(--sun-glow);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Фильтры */
.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: white;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--sun-glow);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--color-text);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--sun-glow);
    color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.page-btn.active {
    background: var(--gradient-sunset);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(235,116,27,0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Футер ──────────────────────────────────────────────────────────────── */
.footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: var(--color-text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ─── Адаптивность ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Скрываем десктопное меню */
    .nav-menu {
        display: none;
    }

    /* Показываем мобильное меню при активации */
    .mobile-menu.active {
        display: flex;
    }

    /* Мега-меню на мобилках */
    .mega-menu-container {
        top: 0;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        border-radius: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1rem;
    }
}

/* ─── Страница объявления ────────────────────────────────────────────────── */
.listing-page {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.listing-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Галерея */
.listing-gallery {
    position: relative;
    min-width: 0;
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #fafaf6, #f0ebe0);
    aspect-ratio: 4/3;
    max-height: 500px;  /* ограничение по высоте */
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.no-image-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, rgba(244,210,130,0.15), rgba(124,164,188,0.1));
}

.listing-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: all 0.2s;
    opacity: 0.6;
}

.gallery-thumb.active {
    border-color: var(--sun-glow);
    opacity: 1;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Инфо */
.listing-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.listing-detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.listing-detail-price {
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-value.free {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.listing-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--color-bg);
    border-radius: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.meta-item svg {
    flex-shrink: 0;
    color: var(--color-accent);
    opacity: 0.7;
}

/* Контакты */
.listing-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-weight: 600;
    color: var(--color-text);
}

.contact-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Описание */
.listing-description {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.description-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.description-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.no-description {
    color: var(--color-text-secondary);
    font-style: italic;
    opacity: 0.7;
}

/* Характеристики */
.listing-attributes {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--color-bg);
}

.attribute-name {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.attribute-value {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .listing-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-main {
        max-height: 350px;
        aspect-ratio: 4/3;
    }

    .gallery-thumbs {
        flex-wrap: wrap;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .listing-detail-title {
        font-size: 1.3rem;
    }

    .price-value {
        font-size: 1.6rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .listing-description,
    .listing-attributes {
        padding: 1.25rem;
    }
}
/* Статус-точка */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.4);
}

/* ─── Лайтбокс ───────────────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* Галерея — курсор pointer */
.gallery-main img {
    cursor: pointer;
}