/* ═══════════════════════════════════════════════════════════
   Star20 — Site-wide Styles
   Theme: Amethyst & Amber · Modern Redesign 2026
   ═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'DroidArabicNaskh';
    src: url('../fonts/DroidArabicNaskh.eot?') format('embedded-opentype');
    src: local('DroidArabicNaskh'),url('../fonts/DroidArabicNaskh.woff') format('woff'),url('../fonts/DroidArabicNaskh.ttf') format('truetype'),url('../fonts/DroidArabicNaskh.svg') format('svg');
    font-weight: normal;
    font-style: normal
}

/* ============================================================
   ۱. Design Tokens / CSS Variables
   ============================================================ */
:root {
    /* ── Brand: Amethyst (بنفش لوگو) ── */
    --primary: #6D28D9;
    --primary-600: #5B21B6;
    --primary-700: #4C1D95;
    --primary-soft: #F5F3FF;
    --primary-soft-cat: #f5f5f56e;
    --primary-line: #DDD6FE;
    /* ── Accent: Amber (نارنجی لوگو) ── */
    --accent: #F59E0B;
    --accent-2: #FBBF24;
    --accent-ink: #1E1B4B;
    --accent-soft: #FFFBEB;
    /* ── Header: Deep Indigo (سرمه‌ای لوگو، گرم‌تر) ── */
    --header-from: #1E1B4B;
    --header-to: #312E81;
    /* ── Neutrals: Warm ── */
    --ink: #1E1B4B;
    --ink-2: #312E81;
    --muted: #52525B;
    --muted-2: #71717A;
    --line: #E7E5E4;
    --line-2: #F5F5F4;
    --page: #FAFAF9;
    --surface: #FFFFFF;
    --surface-2: #F5F5F4;
    /* ── States ── */
    --danger: #E11D48;
    --danger-soft: #FFF1F2;
    --success: #10B981;
    --success-soft: #ECFDF5;
    --info: #0EA5E9;
    --info-soft: #F0F9FF;
    /* ── Layout ── */
    --header-h: 72px;
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 18px;
    --r-xl: 22px;
    /* ── Colored Shadows (بنفش کم‌رنگ جای مشکی) ── */
    --sh: 0 1px 2px rgba(30,27,75,.04), 0 10px 28px rgba(109,40,217,.06);
    --sh-lg: 0 12px 34px rgba(109,40,217,.10), 0 2px 6px rgba(30,27,75,.04);
    --sh-hover: 0 18px 44px rgba(109,40,217,.16), 0 4px 10px rgba(30,27,75,.06);
    --sh-glow: 0 8px 24px -6px rgba(109,40,217,.35);
}

/* ============================================================
   ۲. Reset / Base
   ============================================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: var(--page);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.7;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    min-height: calc(100vh - var(--header-h) - 320px);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.01em;
}

h1 {
    font-size: 1.85rem;
}

h2 {
    font-size: 1.35rem;
}

h3 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 .85em;
    color: var(--ink-2);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .15s;
}

    a:hover {
        color: var(--primary-700);
    }

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--primary-soft);
    color: var(--primary-700);
}

/* ── Focus ring بنفش ── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Scrollbar (WebKit) — با تُن بنفش */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--page);
}

::-webkit-scrollbar-thumb {
    background: #D4D4D8;
    border-radius: 999px;
    border: 2px solid var(--page);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-line);
    }

.hidden {
    display: none !important;
}

/* ── Page scroll toggle ── */
.page-scroll-toggle {
    position: fixed;
    z-index: 1040;
    top: 50%;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--primary-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--primary);
    box-shadow: 0 8px 22px rgba(30, 27, 75, .16);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

    .page-scroll-toggle[hidden] {
        display: none;
    }

    .page-scroll-toggle:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
        transform: translateY(-50%) scale(1.06);
        box-shadow: 0 10px 26px rgba(109, 40, 217, .3);
    }

    .page-scroll-toggle:focus-visible {
        outline: 3px solid rgba(109, 40, 217, .25);
        outline-offset: 3px;
    }

    .page-scroll-toggle i {
        font-size: 1.05rem;
    }

@media (max-width: 575.98px) {
    .page-scroll-toggle {
        right: max(.75rem, env(safe-area-inset-right));
        top: auto;
        bottom: 1.25rem;
        width: 40px;
        height: 40px;
        transform: none;
    }

        .page-scroll-toggle:hover {
            transform: scale(1.06);
        }

        .page-scroll-toggle > i {
            font-size: 15px;
        }
}
/* ============================================================
   ۳. Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .62rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(109,40,217,.55);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
        color: #fff;
        box-shadow: 0 10px 22px -8px rgba(109,40,217,.6);
    }

.btn-warning {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    border-color: transparent;
    box-shadow: 0 6px 16px -8px rgba(245,158,11,.6);
    margin-right: 8px;
}

    .btn-warning:hover {
        background: linear-gradient(135deg, var(--accent-2), var(--accent));
        color: var(--accent-ink);
    }

.btn-light {
    background: #fff;
    color: var(--ink-2);
    border-color: var(--line);
}

    .btn-light:hover {
        background: var(--primary-soft);
        color: var(--primary-700);
        border-color: var(--primary-line);
    }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary-line);
}

    .btn-outline-primary:hover {
        background: var(--primary-soft);
    }

.btn i {
    font-size: 1rem;
    line-height: 1;
}

/* ============================================================
   ۴. Header — Glass Effect + Indigo Gradient
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(180deg, rgba(30,27,75,.94), rgba(49,46,129,.94));
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 4px 22px -10px rgba(30,27,75,.55);
    height: var(--header-h);
}

    .site-header .navbar {
        padding: 0;
        height: var(--header-h);
        --bs-navbar-padding-y: 0;
    }

    .site-header .container {
        height: 100%;
        display: flex;
        align-items: center;
        gap: .4rem;
    }

/* --- Brand --- */
.brand-logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0 .65rem 0 0;
    flex: 0 0 auto;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 3px 8px;
    margin-left: 3px;
    background: #ffffff;
    border-radius: 6px 20px;
    box-shadow: 0px 0px 20px 0px #00908c;
}

.brand-logo img {
    height: auto;
    width: 100px;
    display: block;
}

/* --- Nav links --- */
.site-header .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .15rem;
    margin: 0;
}

.site-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .75rem;
    border-radius: 10px;
    color: rgba(255,255,255,.78) !important;
    font-size: .86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

    .site-header .nav-link:hover,
    .site-header .nav-link.active {
        background: rgba(255,255,255,.1);
        color: #fff !important;
    }

    .site-header .nav-link i {
        font-size: .95rem;
        opacity: .9;
    }

/* --- Toggler --- */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: .4rem .55rem;
    background: rgba(255,255,255,.05);
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255,255,255,.15);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* --- Header search --- */
.header-search {
    flex: 1 1 220px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: 0 .85rem;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    transition: background .2s, border-color .2s, box-shadow .2s;
    margin: 0 .35rem;
}

    .header-search:focus-within {
        background: rgba(255,255,255,.16);
        border-color: rgba(255,255,255,.36);
        box-shadow: 0 0 0 3px rgba(167,139,250,.22);
    }

    .header-search i {
        color: #A5B4FC;
        font-size: .95rem;
        flex: 0 0 auto;
    }

    .header-search input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #fff;
        font-family: inherit;
        font-size: .85rem;
        padding: .55rem 0;
    }

        .header-search input::placeholder {
            color: #A5B4FC;
        }

/* --- Header action icons --- */
.header-action {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    font-size: 1.05rem;
    margin: 0 .15rem;
    transition: background .15s, color .15s, border-color .15s;
}

    .header-action:hover {
        background: rgba(255,255,255,.16);
        color: #fff;
        border-color: rgba(167,139,250,.5);
    }

.favorite-header-action.has-favorites {
    color: #fb7185;
    background: rgba(244, 63, 94, .16);
    border-color: rgba(251, 113, 133, .45);
}

    .favorite-header-action.has-favorites:hover {
        color: #fecdd3;
        background: rgba(244, 63, 94, .24);
        border-color: rgba(254, 205, 211, .7);
    }

.favorite-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 .25rem;
    border: 2px solid #312e81;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    line-height: 1;
}

    .favorite-count-badge[hidden],
    .nav-favorite-count[hidden] {
        display: none;
    }

.favorite-nav-link {
    gap: .4rem;
}

    .favorite-nav-link.has-favorites {
        color: #fda4af !important;
    }

.nav-favorite-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 .3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
}

/* ============================================================
   ۵. Header City Picker (scoped)
   ============================================================ */
.header-city-picker {
    position: relative;
    min-width: 210px;
    max-width: 260px;
    margin: 0 .6rem;
    flex: 0 0 auto;
}

    .header-city-picker .header-picker-toggle {
        display: flex;
        align-items: center;
        gap: .55rem;
        width: 100%;
        min-height: 42px;
        padding: .5rem .8rem;
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 12px;
        color: #fff;
        font-family: inherit;
        font-size: .84rem;
        text-align: right;
        cursor: pointer;
        transition: background .2s, border-color .2s, box-shadow .2s;
        -webkit-tap-highlight-color: transparent;
    }

        .header-city-picker .header-picker-toggle:hover {
            background: rgba(255,255,255,.18);
            border-color: rgba(167,139,250,.45);
        }

        .header-city-picker .header-picker-toggle > i:first-child {
            color: #A5B4FC;
            font-size: 1rem;
            flex: 0 0 auto;
        }

        .header-city-picker .header-picker-toggle .picker-label {
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #fff;
            font-weight: 500;
            text-align: right;
        }

            .header-city-picker .header-picker-toggle .picker-label.is-placeholder {
                color: #A5B4FC;
            }

        .header-city-picker .header-picker-toggle .picker-chevron {
            color: #A5B4FC;
            font-size: .72rem;
            flex: 0 0 auto;
            transition: transform .22s, color .2s;
        }

    .header-city-picker.open .header-picker-toggle {
        background: rgba(255,255,255,.2);
        border-color: rgba(167,139,250,.6);
        box-shadow: 0 0 0 3px rgba(167,139,250,.18);
    }

        .header-city-picker.open .header-picker-toggle .picker-chevron {
            transform: rotate(180deg);
            color: #fff;
        }

    .header-city-picker.has-selection .header-picker-toggle {
        background: rgb(130 82 0 / 20%);
        border-color: rgba(245, 158, 11, .55);
    }

        .header-city-picker.has-selection .header-picker-toggle > i:first-child {
            color: var(--accent-2);
        }

        .header-city-picker.has-selection .header-picker-toggle .picker-label {
            color: #FDE68A;
        }

    .header-city-picker .header-picker-menu {
        z-index: 1100;
        left: auto;
        right: 0;
        min-width: 410px;
        max-width: min(400px, 92vw);
        box-shadow: 0 24px 60px rgba(30,27,75,.35), 0 2px 8px rgba(109,40,217,.15);
    }

        .header-city-picker .header-picker-menu .picker-search {
            background: var(--line-2);
            border-color: var(--line);
        }

            .header-city-picker .header-picker-menu .picker-search input {
                color: var(--ink);
            }

/* ============================================================
   ۶. Hero — Subtle Purple & Amber Gradient
   ============================================================ */
.hero-section {
    background: radial-gradient(1200px 500px at 90% -10%, rgba(109,40,217,.16), transparent 60%), radial-gradient(900px 400px at 10% 110%, rgba(245,158,11,.13), transparent 60%), linear-gradient(180deg, #FAFAF9, #F5F5F4);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 20% 30%, rgba(109,40,217,.06) 0, transparent 3px), radial-gradient(circle at 70% 60%, rgba(245,158,11,.06) 0, transparent 3px);
        background-size: 120px 120px, 160px 160px;
        pointer-events: none;
    }

    .hero-section > .container {
        position: relative;
        z-index: 1;
    }

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary-700);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px -4px rgba(109,40,217,.12);
}

    .eyebrow i {
        color: var(--accent);
    }

.eyebrow-adv i {
    color: var(--accent);
}

.hero-copy h1 {
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-bottom: .55rem;
}

    .hero-copy h1 span {
        color: var(--primary);
        background: linear-gradient(180deg, transparent 62%, rgb(244 233 231 / 38%) 62%);
        padding: 0 .15em;
        text-shadow: #ff9b96 1px 1px 8px;
    }

.hero-copy p {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 1.2rem;
}

/* ============================================================
   ۷. Trust strip
   ============================================================ */
.trust-strip-section {
    margin: .65rem 0 1rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .8rem;
    background: #f1f1f10a;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(30, 27, 75, .03);
}

.trust-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.trust-item strong {
    display: block;
    font-size: .82rem;
    color: var(--ink);
    line-height: 1.3;
}

.trust-item small {
    display: block;
    color: var(--muted);
    font-size: .7rem;
}

/* ============================================================
   ۸. Search box
   ============================================================ */
.search-box {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .55rem .55rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--sh);
    max-width: 640px;
    transition: border-color .2s, box-shadow .2s;
}

    .search-box:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(109,40,217,.12), var(--sh);
    }

    .search-box > i {
        color: var(--primary);
        font-size: 1.1rem;
        flex: 0 0 auto;
        padding: 0 .35rem;
    }

    .search-box input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-family: inherit;
        font-size: .95rem;
        color: var(--ink);
        padding: .65rem .2rem;
    }

        .search-box input::placeholder {
            color: var(--muted-2);
        }

    .search-box .btn {
        padding: .65rem 1.15rem;
        border-radius: 12px;
    }

.btn-primary-orang {
    background: linear-gradient(135deg, #f83f07, #ff8139);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(109, 40, 217, .55);
}

/* ============================================================
   ۹. Quick links
   ============================================================ */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: .95rem;
    font-size: .8rem;
}

    .quick-links > span:first-child {
        color: var(--muted);
        font-weight: 600;
        margin-left: .3rem;
    }

    .quick-links a {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        padding: .35rem .7rem;
        /* background: #fff; */
        border: 1px solid var(--line);
        border-radius: 9px;
        color: var(--ink-2);
        font-size: .78rem;
        font-weight: 600;
        transition: background .15s, border-color .15s, color .15s, transform .15s;
    }

        .quick-links a:hover {
            background: var(--primary-soft);
            border-color: var(--primary-line);
            color: var(--primary-700);
            transform: translateY(-1px);
        }

        .quick-links a i {
            color: var(--primary);
            font-size: .85rem;
        }

/* ============================================================
   ۱۰. Hero stats
   ============================================================ */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--line);
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1.1;
}

    .hero-stat strong em {
        font-style: normal;
        color: var(--accent);
        font-size: .9em;
        margin-right: .1em;
    }

.hero-stat span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-top: .15rem;
}

/* ============================================================
   ۱۱. Listing section
   ============================================================ */
.listing-section {
    padding: 1.6rem 0 3rem;
}

/*.listing-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}*/

.listing-heading {
    display: inline-grid;
    gap: 1rem;
    margin-bottom: 1.1rem;
    width: 100%;
}

    .listing-heading h2 {
        margin: .2rem 0 0;
        font-size: 1.2rem;
        font-weight: 800;
    }

.listing-heading-actions {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.result-count {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .8rem;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--primary-700);
    font-size: .78rem;
    font-weight: 600;
    margin-left: 16px;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .8rem;
    background: #e03333;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #ffffff;
    font-size: .73rem;
    font-weight: 600;
}

    .clear-filters-btn:hover {
        background: #f54747;
    }

.clear-filters-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 .3rem;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
}

/* ============================================================
   ۱۲. Ad cards — Compact
   ============================================================ */
.adv {
    display: inline-block;
    margin: 6px 3px 0px 0px;
    height: 200px;
    width: 330px;
    max-width: 330px;
    max-height: 200px;
}

.ads-grid {
    --bs-gutter-y: .55rem;
}

.related-section .adv {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

@media (max-width: 767.98px) {
    .admin-listings-table,
    .admin-listings-table tbody,
    .admin-listings-table tr,
    .admin-listings-table td {
        display: block;
        width: 100%;
    }

        .admin-listings-table thead {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip-path: inset(50%);
        }

        .admin-listings-table tbody tr {
            padding: .5rem;
            border-bottom: 1px solid var(--line);
        }

        .admin-listings-table td {
            overflow-wrap: anywhere;
            white-space: normal !important;
        }

        .admin-listings-table form .form-control {
            max-width: 100%;
        }
}

.ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    color: inherit;
    height: 100%;
    box-shadow: 0 1px 2px rgba(30,27,75,.03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ad-card-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

    .ad-card-link:hover {
        color: inherit;
    }

.ad-card:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: var(--primary-line);
    box-shadow: var(--sh-hover);
}

/* ── Thumb: کوتاه‌تر برای فضای بیشتر ── */
.ad-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(177deg, #ffffff, #f5f6fc);
    overflow: hidden;
}

    .ad-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s ease;
    }

.ad-card:hover .ad-thumb img {
    transform: scale(1.04);
}

.ad-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: .2rem;
    color: var(--muted-2);
    font-size: .65rem;
    font-weight: 600;
}

    .ad-placeholder i {
        font-size: 3.5rem;
        color: #a3a8a517;
    }

    .ad-placeholder > span.no-pic {
        display: none;
    }

/* ── Badge گروه: پیل شیشه‌ای گوشه تصویر ── */
.card-badge {
    position: absolute;
    bottom: 0rem;
    /* right: .4rem; */
    padding: .18rem .5rem;
    /* max-width: calc(100% - .8rem); */
    background: rgb(24 24 24 / 1%);
    color: #0b2d4fa8;
    /* border-radius: 999px; */
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* ── Badge جدید: آگهی فوری (RTL، سمت راست) ── */
.card-badge-urgent {
    position: absolute;
    top: .4rem;
    right: .4rem;
    padding: .18rem .55rem;
    background: linear-gradient(135deg, #E11D48, #BE123C);
    color: #fff;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 4px 12px -4px rgba(225,29,72,.55);
    backdrop-filter: blur(4px);
}

    .card-badge-urgent::before {
        content: '⚡';
        margin-left: .2em;
        font-size: .9em;
    }

/* ── دکمه علاقه‌مندی: کوچک‌تر ── */
.card-fav {
    position: absolute;
    top: .23rem;
    left: .3rem;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--muted);
    font-size: .72rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(30, 27, 75, .14);
    transition: background .15s, color .15s, transform .15s;
}

    .card-fav:hover {
        background: #fff;
        color: var(--danger);
        transform: scale(1.08);
    }

    .card-fav.active {
        color: var(--danger);
        background: #fff;
    }

    .card-fav:disabled {
        cursor: wait;
        opacity: .65;
    }

/* ── بدنه کارت: جمع‌وجور ── */
.ad-card-body {
    padding: .6rem .7rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .28rem;
    flex: 1;
    min-width: 0;
    background-color: #4e95ff03;
    /* background: linear-gradient(35deg, rgb(233 240 255 / 5%) 0%, rgba(255, 255, 255, 1) 55%, rgb(215 231 252 / 33%) 95%);*/
}

    .ad-card-body h3 {
        font-size: .77rem;
        font-weight: 700;
        color: #064069;
        line-height: 1.8;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.4em;
    }

    .ad-card-body p {
        color: #000000;
        font-size: .69rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.15em;
    }

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    color: var(--muted-2);
    font-size: .63rem;
    margin-top: auto;
    padding-top: .25rem;
}

    .ad-meta span {
        display: inline-flex;
        align-items: center;
        gap: .2rem;
        min-width: 0;
    }

    .ad-meta i {
        color: var(--primary);
        font-size: .78rem;
    }

.ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    padding-top: .45rem;
    border-top: 1px dashed var(--line);
    margin-top: .25rem;
}

    .ad-footer strong {
        color: #1d6095;
        font-size: .70rem;
        font-weight: 100;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

.ad-cta {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: color .15s, transform .15s;
}

.ad-card:hover .ad-cta {
    color: var(--primary);
    transform: translateX(-2px);
}

/* ============================================================
   ۱۳. Empty state
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 20px;
    max-width: 560px;
    margin: 1rem auto;
}

.empty-illustration {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: .35rem;
    font-size: 1.15rem;
}

.empty-state p {
    color: var(--muted);
    max-width: 380px;
    margin: 0 auto 1.2rem;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: .55rem;
    flex-wrap: wrap;
}
/* ============================================================
   ۱۴. Sidebar CTA (post-ad-link)
   ============================================================ */
.post-ad-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .75rem;
    padding: .85rem 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: 0 8px 20px -10px rgba(245,158,11,.65);
    transition: transform .15s, box-shadow .2s;
}

    .post-ad-link:hover {
        color: var(--accent-ink);
        transform: translateY(-2px);
        box-shadow: 0 12px 26px -10px rgba(245,158,11,.7);
    }

    .post-ad-link i {
        font-size: 1.1rem;
    }
/* ============================================================
   ۱۵. Footer
   ============================================================ */
.footer {
    background: linear-gradient(180deg, #1E1B4B, #312E81);
    color: rgba(255,255,255,.72);
    padding: 2.4rem 0 1.1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.6rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

    .footer-brand i {
        color: var(--accent);
    }

.footer-brand-col p {
    color: rgba(255,255,255,.6);
    font-size: .82rem;
    line-height: 1.9;
    margin: .3rem 0 1rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: .4rem;
}

    .footer-social a {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: rgba(255,255,255,.06);
        color: rgba(255,255,255,.75);
        font-size: .95rem;
        transition: background .15s, color .15s;
    }

        .footer-social a:hover {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 12px -4px rgba(109,40,217,.6);
        }

.footer-col h4 {
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: .85rem;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255,255,255,.62);
    font-size: .82rem;
    padding: .28rem 0;
    transition: color .15s, padding .15s;
}

    .footer-col a:hover {
        color: #fff;
        padding-right: .25rem;
    }

    .footer-col a i {
        color: var(--accent);
        font-size: .95rem;
    }

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .65rem;
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .28rem .55rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    font-size: .68rem;
    font-weight: 600;
}

    .badge-trust i {
        color: var(--accent);
        font-size: .8rem;
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1.1rem;
    color: rgba(255,255,255,.45);
    font-size: .74rem;
}
/* ============================================================
   ۱۶. Auth pages
   ============================================================ */
.auth-page {
    min-height: calc(100vh - var(--header-h) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: radial-gradient(600px 400px at 80% 20%, rgba(109,40,217,.08), transparent 60%), radial-gradient(500px 350px at 20% 80%, rgba(245,158,11,.06), transparent 60%);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2rem 1.8rem;
    box-shadow: var(--sh-lg);
    text-align: center;
}

.auth-icon {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-cat));
    color: var(--primary);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.auth-card h1 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: .3rem;
}

.auth-subtitle {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 1.4rem;
}

.auth-card form {
    text-align: right;
}

.auth-switch {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: .82rem;
}

    .auth-switch a {
        font-weight: 700;
        color: var(--primary);
    }
/* ============================================================
   ۱۷. Forms
   ============================================================ */
.form-label,
.icon-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: .4rem;
}

    .icon-label i {
        color: var(--primary);
        font-size: .95rem;
    }

.form-control,
.form-select,
textarea.form-control {
    width: 100%;
    padding: .68rem .85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: inherit;
    font-size: .88rem;
    color: var(--ink);
    line-height: 1.5;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

    .form-control:focus,
    .form-select:focus,
    textarea.form-control:focus {
        outline: 0;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(109,40,217,.12);
        background: #fff;
    }

    .form-control::placeholder {
        color: var(--muted-2);
    }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.field-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

    .field-with-icon > i {
        position: absolute;
        right: .85rem;
        color: var(--muted-2);
        font-size: 1rem;
        pointer-events: none;
    }

    .field-with-icon .form-control {
        padding-right: 2.5rem;
    }

.field-error,
.text-danger {
    display: block;
    color: var(--danger);
    font-size: .74rem;
    margin-top: .3rem;
}

.validation-summary {
    padding: .75rem .9rem;
    background: var(--danger-soft);
    border: 1px solid #FECDD3;
    border-radius: 12px;
    color: #9F1239;
    font-size: .82rem;
    margin-bottom: 1rem;
}

    .validation-summary.validation-summary-valid {
        display: none;
    }

    .validation-summary.validation-summary-errors {
        display: block;
    }

    .validation-summary ul {
        margin: 0;
        padding-right: 1.1rem;
    }
/* --- Create Ad --- */
.form-page {
    max-width: 920px;
}

.form-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

    .form-intro h1 {
        font-size: 1.75rem;
        font-weight: 800;
        margin-bottom: .35rem;
    }

    .form-intro p {
        color: var(--muted);
    }

.form-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: 1.4rem;
}

.form-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .75rem .5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    transition: background .2s, border-color .2s, color .2s;
}

    .form-progress-step span {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--surface-2);
        color: var(--muted);
        font-size: .85rem;
        font-weight: 800;
        transition: background .2s, color .2s;
    }

    .form-progress-step small {
        font-size: .74rem;
        font-weight: 600;
    }

    .form-progress-step.active {
        border-color: var(--primary-line);
        background: var(--primary-soft);
        color: var(--primary-700);
    }

        .form-progress-step.active span {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 12px -4px rgba(109,40,217,.5);
        }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: var(--sh);
}

.form-section + .form-section {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--line);
}

.form-section h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-right: .65rem;
    border-right: 4px solid var(--primary);
    line-height: 1.2;
}

/* ── نمایش حروف مبلغ زیر input قیمت ── */
.price-words {
    display: block;
    margin-top: .3rem;
    padding: 0 .2rem;
    color: var(--primary-700);
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.6;
    word-break: break-word;
    min-height: 1em;
    transition: opacity .15s;
}

    .price-words:empty {
        display: none;
    }

.price-words-currency {
    font-weight: bold;
    font-size: .62rem;
    color: #fb4b09;
    margin-right: 3px;
}
/* check-options*/
.check-options {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 50px;
}

    .check-options label {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        color: var(--ink-2);
        font-size: .84rem;
        font-weight: 600;
        cursor: pointer;
    }

    .check-options input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary);
    }

    .check-options i {
        color: var(--primary);
    }
/* Upload box */
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: 1.8rem 1rem;
    background: #FBFBFB;
    border: 2px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

    .upload-box:hover {
        background: var(--primary-soft);
        border-color: var(--primary-line);
        color: var(--primary-700);
    }

    .upload-box i {
        font-size: 2rem;
        color: var(--primary);
    }

    .upload-box strong {
        color: var(--ink);
        font-size: .92rem;
    }

    .upload-box span {
        font-size: .75rem;
    }

    .upload-box:focus-within {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
    }

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .55rem;
    margin-top: 1rem;
}

    .image-preview:empty {
        display: none;
    }

.image-help {
    margin: .65rem 0 .75rem;
    color: var(--muted);
    font-size: .78rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

    .image-preview-item.is-thumbnail {
        border: 2px solid var(--primary);
        box-shadow: 0 0 0 3px var(--primary-soft);
    }

.thumbnail-choice {
    position: absolute;
    right: .35rem;
    bottom: .35rem;
    left: .35rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .3rem;
    border-radius: 6px;
    background: rgb(255 255 255 / 88%);
    color: var(--ink);
    cursor: pointer;
    font-size: .66rem;
    line-height: 1.2;
}

    .thumbnail-choice input {
        flex: 0 0 auto;
        margin: 0;
        accent-color: var(--primary);
    }

.thumbnail-choice-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview-item .remove-image {
    position: absolute;
    top: .35rem;
    right: .35rem;
    z-index: 2;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 3px;
    background: rgb(255 205 205 / 68%);
    color: #ff0000;
    cursor: pointer;
    line-height: 1;
    font-size: .6rem;
    font-weight: 900;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    padding-top: 1.4rem;
    margin-top: 1.4rem;
    border-top: 1px dashed var(--line);
}

.image-preview-item img {
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(15, 23, 42, .86);
}

    .image-lightbox[hidden] {
        display: none;
    }

    .image-lightbox img {
        max-width: min(95vw, 1200px);
        max-height: 90vh;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    }

.image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.image-lightbox-delete {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    border-radius: 8px;
    padding: .55rem 1.25rem;
    background: #b91c1c;
    color: #fff;
    cursor: pointer;
    font-size: .9rem;
}
/* ============================================================
   ۱۸. Detail page (Show)
   ============================================================ */
.page-shell {
    max-width: 1200px;
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: 1rem;
}

    .breadcrumb-nav a {
        color: var(--muted);
        display: inline-flex;
        align-items: center;
        gap: .3rem;
    }

        .breadcrumb-nav a:hover {
            color: var(--primary);
        }

    .breadcrumb-nav > i {
        color: var(--muted-2);
        font-size: .7rem;
    }

.detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sh);
}

.detail-gallery {
    background: var(--surface-2);
}

.gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    overflow: hidden;
}

    .gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(30,27,75,.18);
    transition: background .15s, transform .15s;
}

    .gallery-nav:hover {
        background: #fff;
    }

.gallery-prev {
    right: 1rem;
}

.gallery-next {
    left: 1rem;
}

.gallery-counter {
    position: absolute;
    bottom: .9rem;
    left: .9rem;
    padding: .35rem .75rem;
    background: rgba(30,27,75,.82);
    color: #fff;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: .5rem;
    padding: .75rem;
    background: #FBFBFB;
    border-top: 1px solid var(--line);
}

.gallery-thumb {
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-thumb:hover {
        transform: scale(1.03);
    }

    .gallery-thumb.active {
        border-color: var(--primary);
    }

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1rem;
    color: var(--muted-2);
    font-size: .85rem;
    background: var(--surface-2);
}

    .no-image i {
        font-size: 1.2rem;
    }

.detail-content {
    padding: 1.5rem;
}

.ad-group {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    background: var(--primary-soft);
    color: var(--primary-700);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

    .ad-group i {
        font-size: .85rem;
    }

.detail-content h1 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: .7rem;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-size: .8rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 1.1rem;
}

    .detail-meta span {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
    }

    .detail-meta i {
        color: var(--primary);
    }

.description-lines {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    color: var(--ink-2);
    font-size: .9rem;
    line-height: 1.9;
}

.description-line {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

    .description-line i {
        color: var(--primary);
        margin-top: .35rem;
    }

.contact-detail-line {
    padding: .55rem .8rem;
    background: #FBFBFB;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
}

    .keyword-list span {
        padding: .3rem .65rem;
        background: var(--primary-soft);
        border-radius: 8px;
        color: var(--primary-700);
        font-size: .74rem;
        font-weight: 600;
    }
/* Contact card */
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.3rem;
    box-shadow: var(--sh);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-700);
    margin: .6rem 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--line);
    line-height: 1.25;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .8rem;
    border-radius: 12px;
    color: inherit;
    transition: background .15s;
}

    .contact-row + .contact-row {
        margin-top: .35rem;
    }

    .contact-row:hover {
        background: var(--primary-soft);
        color: inherit;
    }

.contact-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.contact-row small {
    display: block;
    color: var(--muted);
    font-size: .72rem;
}

.contact-row strong {
    display: block;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 700;
}

.share-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px dashed var(--line);
}

    .share-row > span {
        color: var(--muted);
        font-size: .78rem;
        font-weight: 600;
        margin-left: .2rem;
    }

.share-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

    .share-btn:hover {
        background: var(--primary-soft);
        color: var(--primary);
        border-color: var(--primary-line);
    }

.safety-note {
    display: flex;
    gap: .7rem;
    padding: .85rem .9rem;
    background: var(--accent-soft);
    border: 1px solid #FDE68A;
    border-radius: 14px;
    margin-top: 1rem;
}

    .safety-note > i {
        color: #B45309;
        font-size: 1.3rem;
        flex: 0 0 auto;
        margin-top: .1rem;
    }

    .safety-note strong {
        display: block;
        color: #92400E;
        font-size: .84rem;
        margin-bottom: .15rem;
    }

    .safety-note p {
        color: #78350F;
        font-size: .76rem;
        margin: 0;
        line-height: 1.7;
    }

.report-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .85rem;
    color: var(--muted);
    font-size: .76rem;
    cursor: pointer;
    transition: color .15s;
}

    .report-link:hover {
        color: var(--danger);
    }
/* Related section */
.related-section {
    margin-top: 2.5rem;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

    .section-head h2 {
        margin: .2rem 0 0;
        font-size: 1.2rem;
    }

.section-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}
/* ============================================================
   ۱۹. Legal / Privacy
   ============================================================ */
.legal-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--sh);
    margin-bottom: 1.4rem;
}

.legal-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-cat));
    color: var(--primary);
    font-size: 1.9rem;
    flex: 0 0 auto;
}

.legal-hero h1 {
    font-size: 1.35rem;
    margin: .2rem 0 .3rem;
}

.legal-hero p {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
    max-width: 620px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.2rem 1.15rem;
    box-shadow: 0 1px 2px rgba(30,27,75,.03);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

    .legal-card:hover {
        border-color: var(--primary-line);
        transform: translateY(-2px);
        box-shadow: var(--sh);
    }

    .legal-card > span {
        display: inline-block;
        color: var(--accent);
        font-size: .85rem;
        font-weight: 800;
        margin-bottom: .5rem;
    }

    .legal-card h2 {
        font-size: 1rem;
        font-weight: 800;
        margin-bottom: .5rem;
    }

    .legal-card p {
        color: var(--muted);
        font-size: .82rem;
        line-height: 1.9;
        margin: 0;
    }

.legal-note {
    display: flex;
    gap: .75rem;
    margin-top: 1.4rem;
    padding: 1rem 1.1rem;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    border-radius: 16px;
}

    .legal-note > i {
        color: var(--primary);
        font-size: 1.2rem;
        flex: 0 0 auto;
        margin-top: .15rem;
    }

    .legal-note strong {
        display: block;
        color: var(--primary-700);
        font-size: .86rem;
        margin-bottom: .2rem;
    }

    .legal-note p {
        color: var(--primary-700);
        font-size: .8rem;
        margin: 0;
        line-height: 1.8;
    }
/* ============================================================
   ۲۰. Utilities
   ============================================================ */
.text-muted {
    color: var(--muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.bg-soft {
    background: var(--surface-2);
}

.icon-label i {
    line-height: 1;
}
/* Bootstrap RTL fix for form-select arrow */
.form-select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2352525B' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left .85rem center;
    background-size: 14px;
    padding-left: 2.2rem;
}
/* ============================================================
   ۲۱. Responsive
   ============================================================ */
@media (max-width: 1199.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991.98px) {
    :root {
        --header-h: 64px;
    }

    .site-header .navbar-collapse {
        position: absolute;
        top: var(--header-h);
        right: 0;
        left: 0;
        padding: 1rem 1.15rem 1.2rem;
        background: linear-gradient(180deg, rgba(30,27,75,.98), rgba(49,46,129,.98));
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 24px 40px -20px rgba(0,0,0,.55);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        border-radius: 0 0 18px 18px;
    }

    .site-header .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        margin-bottom: .85rem;
    }

    .site-header .nav-link {
        justify-content: flex-start;
        padding: .75rem .85rem;
        font-size: .9rem;
    }

    .header-search {
        max-width: 100%;
        margin: .75rem 0 .5rem;
    }

    .header-city-picker {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: .5rem 0 .5rem;
    }

        .header-city-picker .header-picker-toggle {
            min-height: 46px;
            background: rgba(255,255,255,.08);
        }

        .header-city-picker .header-picker-menu {
            position: absolute;
            top: calc(100% + .4rem);
            right: 0;
            left: 0;
            min-width: 0;
            max-width: none;
        }

    .site-header .btn-warning {
        width: 100%;
        margin-top: .5rem;
        padding: .8rem 1rem;
    }

    .header-action {
        display: none;
    }

    .hero-stats {
        gap: 1.4rem;
    }

    .hero-stat strong {
        font-size: 1.25rem;
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.5rem;
    }

    .check-options {
        margin-top: 12px;
    }


    .hero-copy h1 {
        font-size: 1.65rem;
    }

    .search-box {
        flex-direction: column;
        gap: .5rem;
        padding: .75rem;
    }

        .search-box input {
            padding: .5rem .2rem;
            text-align: center;
        }

        .search-box .btn {
            width: 100%;
        }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1rem;
        justify-content: space-between;
    }

    .hero-stat {
        flex: 1;
        min-width: 0;
    }

    .form-progress-step small {
        font-size: .73rem;
        line-height: 1.4;
    }

    .form-progress-step {
        min-width: 0;
        padding: .6rem .25rem;
        text-align: center;
    }

    .form-card {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

        .form-actions .btn {
            width: 100%;
        }

    .detail-content {
        padding: 1.1rem;
    }

        .detail-content h1 {
            font-size: 1.15rem;
        }

    .auth-card {
        padding: 1.6rem 1.3rem;
    }

    .legal-hero {
        flex-direction: column;
        text-align: center;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ============================================================
   ۲۲. Compact Cards — موبایل کوچک
   ============================================================ */
@media (max-width: 400px) {
    .ad-card-body {
        padding: .5rem .55rem .6rem;
    }

        .ad-card-body h3 {
            font-size: .78rem;
            min-height: 2.3em;
        }

        .ad-card-body p {
            display: none; /* حذف توضیحات در موبایل بسیار باریک */
        }

    .ad-footer strong {
        font-size: .72rem;
    }

    .ad-cta {
        font-size: .6rem;
    }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
/* ============================================================
   Ads Pagination — Modern Redesign
   ============================================================ */
.ads-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(30,27,75,.04), 0 10px 28px rgba(109,40,217,.06);
}
/* ── Info: page-size + status ── */
.pagination-info {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
}

.page-size-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .5rem .35rem .35rem;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    border-radius: 12px;
    color: var(--primary-700);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background .15s, border-color .15s;
}

    .page-size-label:hover {
        background: var(--primary-soft-cat);
        border-color: var(--primary-line);
    }

    .page-size-label > i {
        color: var(--primary);
        font-size: .95rem;
        padding-right: .25rem;
    }

    .page-size-label select {
        appearance: none;
        -webkit-appearance: none;
        background: #fff;
        border: 1px solid var(--primary-line);
        border-radius: 8px;
        padding: .32rem 1.5rem .32rem .55rem;
        font-family: inherit;
        font-size: .82rem;
        font-weight: 800;
        color: var(--primary-700);
        cursor: pointer;
        outline: none;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236D28D9' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right .45rem center;
        background-size: 12px;
        transition: border-color .15s, box-shadow .15s;
    }

        .page-size-label select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(109,40,217,.15);
        }

.page-status {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

    .page-status strong {
        color: var(--primary-700);
        font-weight: 800;
        padding: 0 .1rem;
    }
/* ── Links row ── */
.pagination-links {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .6rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink-2);
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .15s, box-shadow .18s;
    -webkit-tap-highlight-color: transparent;
}

    .page-btn:hover {
        background: var(--primary-soft);
        border-color: var(--primary-line);
        color: var(--primary-700);
        transform: translateY(-1px);
        box-shadow: 0 6px 14px -6px rgba(109,40,217,.35);
    }

    .page-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-600));
        border-color: transparent;
        color: #fff;
        box-shadow: 0 8px 18px -6px rgba(109,40,217,.55);
    }

        .page-btn.active:hover {
            transform: none;
            color: #fff;
            background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
        }

    .page-btn.disabled {
        opacity: .35;
        pointer-events: none;
        background: var(--surface-2);
        border-color: var(--line-2);
        color: var(--muted-2);
        box-shadow: none;
    }
/* ── Navigation buttons (prev / next / first / last) ── */
.page-btn-nav {
    background: var(--primary-soft);
    border-color: var(--primary-line);
    color: var(--primary);
}

    .page-btn-nav:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

    .page-btn-nav i {
        font-size: .95rem;
    }
/* ── Clickable ellipsis ── */
.page-btn-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 40px;
    padding: 0 .45rem;
    background: var(--surface-2);
    border-style: dashed;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .08em;
}

    .page-btn-ellipsis:hover {
        background: var(--primary-soft);
        border-color: var(--primary-line);
        color: var(--primary-700);
    }

    .page-btn-ellipsis:focus-visible,
    .page-btn:focus-visible {
        outline: 3px solid rgba(109, 40, 217, .25);
        outline-offset: 2px;
    }
/* ── Responsive ── */
@media (max-width: 767.98px) {
    .ads-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: .85rem;
        padding: .9rem;
        border-radius: 16px;
        margin-top: 1.5rem;
    }

    .pagination-info {
        justify-content: space-between;
        gap: .5rem;
    }

    .pagination-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        padding: .2rem;
        scrollbar-width: thin;
    }

    .page-btn {
        min-width: 27px;
        height: 27px;
        padding: 0 .5rem;
        font-size: .70rem;
        border-radius: 6px;
    }

    .page-btn-ellipsis {
        min-width: 22px;
        height: 27px;
        font-size: .85rem;
    }
}

@media (max-width: 420px) {
    .pagination-links {
        justify-content: flex-start;
        gap: .2rem;
    }
}
/* ── متن کارت (wrapper غیر فلکس برای فعال شدن float) ── */
.ad-card-text {
    min-width: 0;
    overflow: hidden;
    font-family: 'DroidArabicNaskh'
}
/* ── تصویر شناور داخل متن آگهی (گوشه سمت چپ) ── */
.ad-body-thumb {
    float: left;
    width: 96px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    margin: 0 .55rem .35rem 0;
}

.adv-cat-box {
    border: 1px solid #e5e5e5;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
}

/* ============================================================
   User menu (کاربر لاگین‌شده)
   ============================================================ */
.header-user-menu {
    position: relative;
    display: inline-block;
}

.header-user-toggle {
    cursor: pointer;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    z-index: 1200;
    min-width: 240px;
    padding: .5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(30, 27, 75, .18), 0 2px 8px rgba(109, 40, 217, .08);
    animation: user-menu-in .16s ease-out;
}

    .header-user-dropdown[hidden] {
        display: none !important;
    }

.header-user-email {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .7rem;
    margin-bottom: .35rem;
    background: var(--primary-soft);
    border-radius: 10px;
    color: var(--primary-700);
    font-size: .78rem;
    font-weight: 700;
    overflow: hidden;
}

    .header-user-email i {
        color: var(--primary);
        flex: 0 0 auto;
    }

    .header-user-email span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

.header-user-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s, color .15s;
}

    .header-user-item:hover {
        background: var(--primary-soft);
        color: var(--primary-700);
    }

    .header-user-item i {
        color: var(--primary);
        font-size: .95rem;
        flex: 0 0 auto;
    }

    .header-user-item.is-danger {
        color: var(--danger);
    }

        .header-user-item.is-danger i {
            color: var(--danger);
        }

        .header-user-item.is-danger:hover {
            background: var(--danger-soft);
            color: #9F1239;
        }

.header-user-sep {
    height: 1px;
    margin: .35rem .2rem;
    background: var(--line);
}

/* ایمیل کاربر در منوی موبایل */
.nav-user-email {
    cursor: default;
    opacity: .85;
}

    .nav-user-email .nav-user-text {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
    }

.user-active {
    color: #07ffb9;
    box-shadow: 0px 1px 11px 2px #c4fff8;
    background-color: transparent;
    margin-left: 6px;
    margin-right: 8px;
}

    .user-active:hover {
        color: orangered;
        box-shadow: 0px 1px 11px 2px #ff389a;
        background-color: transparent;
        margin-left: 6px;
        margin-right: 8px;
    }


@keyframes user-menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* موبایل: dropdown روی موبایل استفاده نمی‌شود */
@media (max-width: 991.98px) {
    .header-user-menu {
        display: none !important;
    }
}

.ad-card-badges,
.ad-card-facts,
.ad-card-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .3rem .6rem;
}

.ad-card-badges {
    margin-block: .35rem;
}

    .ad-card-badges span {
        display: inline-flex;
        padding: .08rem .45rem;
        border-radius: .4rem;
        background: var(--primary-soft);
        color: var(--primary-700);
        font-size: .73rem;
        font-weight: 700;
    }

.ad-card-facts {
    list-style: none;
    margin: .35rem 0 0;
    padding: 0;
    color: var(--muted);
    font-size: .79rem;
}

    .ad-card-facts li + li::before {
        content: "·";
        margin-inline-end: .45rem;
        color: var(--muted);
    }

.ad-card-prices {
    min-width: 0;
    gap: .3rem .95rem;
}

    .ad-card-prices > div {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: .15rem .35rem;
    }

    .ad-card-prices span {
        color: var(--muted);
        font-size: .72rem;
    }

.ad-footer .ad-card-prices strong {
    color: var(--ink);
    font-size: .8rem;
    font-weight: 800;
}

.listing-missing-specs {
    font-size: .79rem;
    color: var(--muted);
}

.listing-specifications {
    scroll-margin-top: calc(var(--header-h, 4rem) + 1rem);
}

.listing-comparison-scroll {
    max-block-size: min(65vh, 42rem);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: .8rem;
    background: #fff;
}

.listing-comparison-table thead th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: inset 0 -1px var(--line);
}

    .listing-comparison-table thead th:first-child {
        z-index: 3;
    }

.listing-comparison-table th:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    min-inline-size: 7rem;
    max-inline-size: 9rem;
    background: #fff;
}

.listing-comparison-table td,
.listing-comparison-table thead th:not(:first-child) {
    min-inline-size: 10rem;
    max-inline-size: 22rem;
    overflow-wrap: anywhere;
}

.listing-comparison-table tr[hidden] {
    display: none;
}

.listing-comparison-table tbody td {
    white-space: pre-wrap;
}

.listing-photo-guide {
    padding: .65rem .85rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: var(--surface-2);
}

    .listing-photo-guide summary {
        cursor: pointer;
        font-weight: 700;
    }

    .listing-photo-guide ul {
        margin: .55rem 0 0;
        padding-inline-start: 1.15rem;
        color: var(--muted);
        font-size: .85rem;
    }

.ad-availability {
    margin-block: .25rem;
    color: #176345;
    font-size: .75rem;
    font-weight: 700;
}

.vehicle-body-figure {
    white-space: normal;
    margin-block: .65rem;
}

.vehicle-body-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
        "front front front"
        "fender-front-left hood fender-front-right"
        "front-left roof front-right"
        "rear-left roof rear-right"
        "fender-rear-left trunk fender-rear-right";
    grid-template-rows: auto repeat(4, 1.65rem);
    gap: .2rem;
    direction: ltr;
    max-width: 10rem;
    padding: .3rem;
}

.vehicle-map-front {
    grid-area: front;
    direction: rtl;
    text-align: center;
    font-size: .68rem;
    color: var(--muted);
}

.vehicle-map-part,
.vehicle-map-marker {
    display: grid;
    place-items: center;
    border: 1px solid #d6dae2;
    border-radius: .4rem;
    background: #edf0f5;
    font-size: .75rem;
    font-weight: 800;
}

    .vehicle-map-part.painted,
    .vehicle-map-marker.painted {
        color: #603c00;
        background: #ffe7ad;
        border-color: #b98516;
    }

    .vehicle-map-part.replaced,
    .vehicle-map-marker.replaced {
        color: #861b2a;
        background: #fbd9df;
        border-color: #ca6575;
    }

.vehicle-map-key li {
    margin-bottom: .25rem;
}

.vehicle-map-marker {
    display: inline-grid;
    min-width: 1.3rem;
    margin-inline-end: .25rem;
}

.chat-prompts {
    max-width: 36rem;
}

.listing-detail-overview .price,
.listing-detail-terms dd {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

.listing-detail-terms,
.listing-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: .5rem 0 0;
}

    .listing-detail-terms dt,
    .listing-detail-facts dt {
        font-size: .8rem;
        color: var(--muted-2);
    }

.listing-detail-overview dd {
    margin: 0;
}

.listing-detail-facts:not(:has(dt)) {
    display: none;
}

.listing-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-block-end: 1rem;
}

    .listing-contact-actions > * {
        flex: 1 1 auto;
    }

.climate-group__options.form-control {
    min-height: 130px;
}

legend.climate-group__legend {
    margin: 3px 5px 8px 0;
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    body:has(.has-mobile-contact) {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }

        body:has(.has-mobile-contact) .page-scroll-toggle {
            bottom: calc(5rem + env(safe-area-inset-bottom));
        }

    .listing-contact-mobile {
        position: fixed;
        inset: auto 0 0;
        z-index: 1020;
        flex-wrap: nowrap;
        margin: 0;
        padding: .6rem max(.75rem, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
        background: var(--surface);
        border-block-start: 1px solid var(--line);
    }

        .listing-contact-mobile .btn {
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .4rem;
        }
}
