/* ===== GalaxyMelk — Premium Real Estate Theme ===== */
:root {
    --navy-900: #0a1628;
    --navy-800: #0f2240;
    --navy-700: #1a3358;
    --navy-600: #234876;
    --gold-400: #e8c468;
    --gold-500: #d4a843;
    --gold-600: #b8922f;
    --cream: #faf8f5;
    --cream-dark: #f0ebe3;
    --white: #ffffff;
    --text: #1a2332;
    --text-muted: #6b7a90;
    --text-light: #94a3b8;
    --border: #e8e2d9;
    --border-light: #f0ebe3;
    --success: #10b981;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
    --shadow: 0 8px 30px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-family: var(--font-vazir);
}

body {
    font-family: var(--font-vazir);
    background: var(--cream);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

button,
input,
select,
textarea,
optgroup {
    font-family: inherit;
}

button { cursor: pointer; border: none; background: none; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-900);
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.35);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.45);
}

.btn-outline-dark {
    border-color: var(--navy-700);
    color: var(--navy-700);
}
.btn-outline-dark:hover {
    background: var(--navy-700);
    color: white;
}

.btn-ghost {
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--cream-dark); color: var(--text); }

.btn-block { width: 100%; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 245, 0.94) 100%);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(232, 226, 217, 0.85);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.03);
    transition: all var(--transition);
}

.header-accent {
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--navy-800),
        var(--gold-500) 45%,
        var(--gold-400) 55%,
        var(--navy-800)
    );
    opacity: 0.9;
}

.site-header::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--gold-500) 35%, transparent) 50%,
        transparent
    );
    opacity: 0.65;
    pointer-events: none;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: var(--header-h);
    gap: 1rem;
    padding-block: 0.35rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.logo:hover {
    background: color-mix(in srgb, var(--gold-500) 8%, white);
}

.logo picture,
.footer-logo picture {
    display: inline-flex;
    line-height: 0;
}

.logo-img {
    display: block;
    height: calc(var(--header-h) - 24px);
    width: auto;
    max-width: min(210px, 38vw);
    object-fit: contain;
    background: transparent;
}

.logo em {
    font-style: normal;
    color: var(--gold-500);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: var(--gold-400);
    border-radius: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.header-nav-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.header-nav-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    padding: 0.35rem;
    background: color-mix(in srgb, var(--navy-800) 6%, var(--cream));
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nav-country-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    border-radius: 999px;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-country-link:hover {
    color: var(--navy-800);
    background: rgba(255, 255, 255, 0.72);
}

.nav-country-link.is-active {
    color: var(--navy-800);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(10, 22, 40, 0.1);
}

.header-quick {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-800);
    background: var(--cream);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.header-quick-link:hover,
.header-quick-link.is-active {
    color: var(--navy-900);
    background: color-mix(in srgb, var(--gold-500) 14%, white);
    transform: translateY(-1px);
}

.header-quick-link--support {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    box-shadow: 0 4px 12px rgba(15, 34, 64, 0.2);
}

.header-quick-link--support:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
    box-shadow: 0 6px 16px rgba(15, 34, 64, 0.28);
}

.header-actions .header-post-ad,
.header-actions .btn-gold {
    padding: 0.58rem 1.15rem;
    font-size: 0.86rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(212, 168, 67, 0.28);
}

.header-actions .header-post-ad:hover,
.header-actions .btn-gold:hover {
    box-shadow: 0 6px 18px rgba(212, 168, 67, 0.38);
    transform: translateY(-1px);
}

/* Header country nav */
.nav-main-link {
    color: var(--navy-800);
}

.nav-main-link:hover {
    background: var(--cream-dark);
}

.mobile-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.mobile-nav-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem 0.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.5rem;
    background: white;
    border-top: 1px solid var(--border);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.mobile-nav a:hover { background: var(--cream-dark); }

.mobile-country-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mobile-country-link.is-active {
    background: color-mix(in srgb, var(--gold-500) 10%, white);
    color: var(--navy-800);
    font-weight: 700;
}

.mobile-nav-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
    background: var(--cream-dark);
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.mobile-nav-support {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}

.mobile-social-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--white);
}

.mobile-social-link--whatsapp { background: #25d366; }
.mobile-social-link--telegram { background: #229ed9; }
.mobile-social-link--bale { background: var(--navy-800); }

/* Support modal */
body.support-open { overflow: hidden; }

.support-modal[hidden] { display: none; }

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
    backdrop-filter: blur(4px);
}

.support-modal-dialog {
    position: relative;
    width: min(100%, 420px);
    padding: 1.75rem 1.5rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: supportModalIn 0.28s ease;
}

@keyframes supportModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.support-modal-close {
    position: absolute;
    top: 0.85rem;
    inset-inline-start: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--cream);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.support-modal-close:hover {
    background: var(--cream-dark);
    color: var(--navy-800);
}

.support-modal-head {
    text-align: center;
    margin-bottom: 1.35rem;
}

.support-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    color: var(--gold-500);
    background: color-mix(in srgb, var(--gold-500) 14%, white);
}

.support-modal-head h2 {
    font-size: 1.2rem;
    color: var(--navy-900);
    margin-bottom: 0.45rem;
}

.support-modal-head p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.support-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.support-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.9rem 0.5rem;
    border-radius: var(--radius);
    color: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.support-channel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.support-channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.support-channel-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.support-channel--whatsapp { background: linear-gradient(180deg, #2fe06d, #25d366); }
.support-channel--telegram { background: linear-gradient(180deg, #35b3ea, #229ed9); }
.support-channel--bale { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); }

.support-modal-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-800);
    background: var(--cream);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.support-modal-phone:hover {
    background: color-mix(in srgb, var(--gold-500) 10%, white);
    border-color: color-mix(in srgb, var(--gold-500) 35%, var(--border));
}

/* About page */
.about-hero-card {
    max-width: 760px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 34, 64, 0.96), rgba(26, 51, 88, 0.92));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.about-hero-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-400);
    background: rgba(255, 255, 255, 0.08);
}

.about-hero-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.65rem;
}

.about-hero-lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.about-content-section { padding: 2.5rem 0 4rem; }

.about-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.about-content-main {
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-content-main p {
    color: var(--text-muted);
    line-height: 1.9;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.about-highlight-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--cream);
    border: 1px solid var(--border-light);
}

.about-highlight-card strong {
    color: var(--navy-800);
    font-size: 0.9rem;
}

.about-highlight-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.about-side-card {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-side-card h2 {
    font-size: 1.05rem;
    color: var(--navy-800);
    margin-bottom: 1rem;
}

.about-contact-row {
    display: block;
    padding: 0.65rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

.about-contact-row:last-of-type {
    margin-bottom: 1rem;
}

main { padding-top: calc(var(--header-h) + 3px); }

/* ===== Hero (Home) ===== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.93) 0%, rgba(26, 51, 88, 0.88) 50%, rgba(35, 72, 118, 0.85) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 6rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--gold-400);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge-icon { flex-shrink: 0; }

.hero-country-flag { flex-shrink: 0; }

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    white-space: normal;
}

/* Hero Search */
.hero-search {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
}

.search-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    background: color-mix(in srgb, var(--navy-800) 6%, var(--cream-dark));
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.search-tab {
    flex: 1;
    cursor: pointer;
}

.search-tab input { display: none; }

.search-tab > span {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-tab > span span {
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    white-space: nowrap;
}

.search-tab input:checked + span {
    background: var(--white);
    color: var(--navy-800);
    font-weight: 700;
    border-color: color-mix(in srgb, var(--border) 70%, transparent);
    box-shadow: 0 1px 3px rgba(10, 22, 40, 0.06);
}

.search-fields {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 160px;
}

.search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.search-field input,
.search-field select,
.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: white;
    transition: border-color var(--transition);
}

.search-field input:focus,
.search-field select:focus,
.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--gold-500);
}

.btn-search { padding: 0.7rem 1.75rem; }

/* ===== Sections ===== */
.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-head.row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-600);
    margin-bottom: 0.5rem;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy-900);
}

.section-head p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.section-alt { background: white; }

.categories { padding: 5rem 0; }
.featured { padding: 4rem 0; }

/* Galaxy Picks — پیشنهاد گلکسی ملک */
.galaxy-picks {
    padding: 0;
    background: transparent;
}

.section-panel-wrap {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
}

.section-panel-wrap .section-head--in-panel {
    margin-bottom: 1.35rem;
}

.section-panel-wrap .section-head--in-panel h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-800);
}

.galaxy-picks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}

.galaxy-picks-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-800);
}

.galaxy-picks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--gold-600);
}

.galaxy-picks-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-700);
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all var(--transition);
}

.galaxy-picks-more:hover {
    border-color: var(--gold-500);
    color: var(--navy-800);
    background: color-mix(in srgb, var(--gold-500) 8%, white);
}

.galaxy-picks-tabs-outer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.galaxy-picks-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
}

.galaxy-picks-tabs.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.galaxy-picks-tabs::-webkit-scrollbar { display: none; }

.galaxy-picks-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    touch-action: manipulation;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.galaxy-picks-tab:hover {
    color: var(--navy-800);
    border-color: color-mix(in srgb, var(--navy-800) 15%, var(--border));
}

.galaxy-picks-tab.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.2);
}

.galaxy-picks-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--navy-800);
}

.galaxy-picks-tab.is-active .galaxy-picks-tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.galaxy-picks-panel {
    display: none;
}

.galaxy-picks-panel.is-active {
    display: block;
}

.galaxy-picks-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.galaxy-picks-slider .listing-card {
    min-width: 270px;
}

.galaxy-picks-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--cream);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.galaxy-picks-empty p {
    margin-bottom: 1rem;
}

.features-strip { padding: 3rem 0; background: var(--navy-900); }

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.25rem;
}

.category-grid--single-row,
.category-grid--panel {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
}

.category-grid--single-row .category-card,
.category-grid--panel .category-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.65rem;
}

.category-grid--single-row .category-icon-wrap,
.category-grid--panel .category-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.category-grid--single-row .category-icon-wrap svg,
.category-grid--panel .category-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.category-grid--single-row .category-card h3,
.category-grid--panel .category-card h3 {
    font-size: 0.88rem;
}

.category-grid--single-row .category-card p,
.category-grid--panel .category-card p {
    font-size: 0.75rem;
}

.category-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color, var(--gold-500));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent-color, var(--gold-500)) 12%, white);
    color: var(--accent-color, var(--gold-600));
    border-radius: 16px;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Features Strip */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-item { text-align: center; color: white; }

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-400);
    border-radius: 16px;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* CTA Banner */
.cta-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-text h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-text {
    flex: 1;
    min-width: 0;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* ===== Home page — tighter section spacing ===== */
.page-home .hero {
    min-height: auto;
}

.page-home .hero-content {
    padding: 2.5rem 0 2rem;
}

.page-home .hero-text p {
    margin-bottom: 1.5rem;
}

.page-home .categories {
    padding: 2.5rem 0;
}


.page-home .section-head {
    margin-bottom: 1.75rem;
}

.page-home .features-strip {
    padding: 2rem 0;
}

.page-home .featured {
    padding: 2.5rem 0;
}

.page-home .galaxy-picks {
    padding: 0 0 2.5rem;
}

.page-home .categories + .categories,
.page-home .categories + .galaxy-picks,
.page-home .galaxy-picks + .categories,
.page-home .galaxy-picks + .galaxy-picks {
    padding-top: 0;
}

.page-home .cta-banner {
    padding: 2.5rem 0;
}

.page-home .site-footer {
    margin-top: 0;
}

.page-home .footer-inner {
    padding-top: 2.5rem;
}

/* ===== Page Hero (List) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    padding: 3rem 0;
    color: white;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.breadcrumb a:hover { color: var(--gold-400); }

.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* ===== Filters ===== */
.filters-section {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    padding-bottom: 1rem;
}

.filter-card {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* ===== Listing Cards ===== */
.listings-section { padding: 2rem 0 4rem; }

.listings-toolbar {
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--navy-800);
    font-weight: 700;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.card-link { display: block; }

.card-image {
    position: relative;
    height: 210px;
    background: var(--cream-dark);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.card-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.deal-badge {
    background: var(--navy-800);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: var(--navy-900);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-body { padding: 1.15rem 1.25rem 1.25rem; }

.card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.card-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--cream);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.card-footer { padding-top: 0.75rem; border-top: 1px solid var(--border-light); }

.card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-800);
}

.card-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ===== Detail Page ===== */
.detail-hero {
    background: var(--cream-dark);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-hero .breadcrumb { color: var(--text-muted); }
.detail-hero .breadcrumb a:hover { color: var(--navy-700); }

.listing-detail { padding: 2rem 0 4rem; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* Gallery */
.gallery { margin-bottom: 1.5rem; }

.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--cream-dark);
}

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

.gallery-overlay-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all var(--transition);
    padding: 0;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--gold-500);
    opacity: 1;
}

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

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    aspect-ratio: 16/10;
    background: var(--cream-dark);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    border: 2px dashed var(--border);
}

.detail-header-mobile { margin-bottom: 1.5rem; }

.detail-header-mobile h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--navy-900);
}

.listing-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Detail Sections */
.detail-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.detail-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy-800);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.detail-description {
    color: var(--text-muted);
    line-height: 1.9;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.spec-chip {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.spec-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy-800);
}

.spec-yes .spec-value,
.spec-yes .spec-status { color: var(--success); }

.spec-no .spec-value,
.spec-no .spec-status { color: var(--text-light); }

.spec-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.spec-status-icon { flex-shrink: 0; }

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}

.price-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
}

.price-main small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-secondary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.price-secondary small { font-size: 0.75rem; }

.price-card .btn { margin-top: 0.5rem; }

.info-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--navy-800);
}

.info-list { list-style: none; }

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    gap: 1rem;
}

.info-list li:last-child { border-bottom: none; }

.info-key { color: var(--text-muted); }
.info-val { font-weight: 600; text-align: left; }

.address-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--navy-700);
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--navy-800);
    color: white;
    border-color: var(--navy-800);
}

.page-numbers { display: flex; gap: 0.35rem; }

.page-num {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid transparent;
    transition: var(--transition);
}

.page-num:hover { border-color: var(--border); color: var(--navy-800); }
.page-num.active {
    background: var(--navy-800);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.empty-icon {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    margin-top: 3rem;
    background: var(--cream);
}

.footer-main {
    position: relative;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -12px 40px rgba(10, 22, 40, 0.06);
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600));
}

.footer-inner {
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) 2fr;
    gap: 2.5rem 3rem;
    align-items: start;
}

.footer-brand {
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--cream) 0%, var(--white) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.footer-brand-top {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0.6rem 1rem;
    line-height: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.footer-enamad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    line-height: 0;
    flex-shrink: 0;
}

.footer-enamad-img,
.footer-enamad img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
}

.footer-enamad a {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.footer-logo:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.logo-footer-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.86rem;
    color: var(--navy-800);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.footer-contact-link:hover {
    color: var(--navy-800);
    border-color: color-mix(in srgb, var(--gold-500) 40%, var(--border));
    box-shadow: var(--shadow-sm);
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--gold-500) 12%, white);
    border: 1px solid color-mix(in srgb, var(--gold-500) 25%, var(--border));
    color: var(--gold-600);
    flex-shrink: 0;
}

.footer-contact-text {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.footer-links-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    padding-top: 0.35rem;
}

.footer-nav-col h4 {
    color: var(--navy-800);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.footer-nav-col h4::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col li + li { margin-top: 0.1rem; }

.footer-nav-col a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    padding: 0.32rem 0;
    color: var(--text-muted);
    transition: color var(--transition), padding var(--transition);
}

.footer-nav-col a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    transition: background var(--transition), transform var(--transition);
}

.footer-nav-col a:hover {
    color: var(--navy-800);
    padding-inline-start: 0.15rem;
}

.footer-nav-col a:hover::before {
    background: var(--gold-500);
    transform: scale(1.2);
}

.footer-trust {
    margin-top: 2rem;
    padding: 1.15rem 1.25rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.footer-trust-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.85rem;
}

.footer-licenses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.footer-license-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    min-height: 68px;
}

.footer-license-item img {
    max-height: 60px;
    width: auto;
    display: block;
}

.footer-license-item a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.footer-bottom-bar {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    padding: 1rem 0;
    text-align: center;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
}

.footer-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-tagline svg { color: #ef4444; }

/* ===== Alerts ===== */
.messages { padding: 1rem 0; }

.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-text p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .detail-grid { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem 0.15rem;
    }
    .logo-footer-img { height: 40px; }

    .header-quick-label { display: none; }

    .header-quick-link {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .header-post-ad { display: none; }

    .header-nav-shell {
        flex-direction: column;
        gap: 0.45rem;
    }

    .nav-country-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .about-content-grid,
    .about-highlights { grid-template-columns: 1fr; }

    .hero-text p {
        font-size: clamp(0.82rem, 1.5vw, 1rem);
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        min-height: var(--header-h);
        padding-block: 0.15rem;
        gap: 0.5rem;
    }

    .main-nav { display: none; }
    .header-quick { display: none; }
    .menu-toggle { display: flex; }
    .logo {
        padding: 0.15rem 0.3rem;
    }
    .logo-img {
        height: 36px;
        max-width: min(150px, 46vw);
    }

    .search-fields {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.65rem;
        align-items: flex-end;
    }
    .search-field {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 0;
    }
    .search-field label {
        font-size: 0.72rem;
        margin-bottom: 0.3rem;
    }
    .search-field select {
        font-size: 0.8rem;
        padding: 0.55rem 0.45rem;
    }
    .btn-search {
        width: 100%;
        flex: 1 1 100%;
    }

    .hero-text p { white-space: normal; }

    .filter-card { flex-direction: column; align-items: stretch; }
    .filter-group { min-width: 100%; }

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

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-text p { margin: 0 auto; white-space: normal; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-links-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem 0.1rem;
        padding-top: 0;
    }
    .footer-nav-col {
        min-width: 0;
    }
    .footer-nav-col h4 {
        font-size: 0.84rem;
        font-weight: 800;
        margin-bottom: 0.45rem;
        line-height: 1.3;
    }
    .footer-nav-col h4::after {
        width: 20px;
        height: 2px;
        margin-top: 0.3rem;
    }
    .footer-nav-col a {
        font-size: 0.78rem;
        font-weight: 700;
        padding: 0.18rem 0;
        gap: 0.25rem;
        line-height: 1.35;
        color: var(--navy-700);
    }
    .footer-nav-col a::before {
        width: 4px;
        height: 4px;
        flex-shrink: 0;
    }
    .footer-nav-col li + li { margin-top: 0; }
    .footer-brand { padding: 1.15rem; }
    .footer-desc { max-width: none; }

    .section-head.row { flex-direction: column; align-items: flex-start; }

    .split-panels { grid-template-columns: 1fr; }

    .section-panel-wrap { padding: 1rem; border-radius: var(--radius-lg); }

    .section-panel-wrap .split-panels--inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .category-grid--single-row,
    .category-grid--panel { min-width: 0; }
    .category-grid--panel { flex-wrap: wrap; }
    .category-grid--panel .category-card { flex: 1 1 calc(50% - 0.5rem); min-width: 140px; }
}

@media (max-width: 480px) {
    .hero-content { padding: 2.5rem 0 4rem; }
}

/* ===== Multi-Country Properties ===== */
.page-hero-compact { padding: calc(var(--header-h) + 2rem) 0 2rem; }
.page-hero-compact h1 { font-size: 1.75rem; }
.page-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }

.country-switcher { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.country-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-800);
    background: var(--white);
    transition: all var(--transition);
}

.page-title-with-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title-flag,
.country-switch-flag,
.info-flag-icon,
.country-flag-icon {
    flex-shrink: 0;
}

.info-val--flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.country-switch-btn:hover { border-color: var(--gold-500); background: var(--cream); }

/* Country selection */
.countries-section { padding: 3rem 0 5rem; }

.split-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.split-panels--inner {
    gap: 1.5rem;
}

.split-panels--inner .category-group {
    min-width: 0;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.country-grid--equal {
    grid-template-columns: repeat(3, 1fr);
}

.country-card {
    --country-accent: var(--gold-500);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1.15rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--country-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.country-card--ir { --country-accent: #16a34a; }
.country-card--tr { --country-accent: #dc2626; }
.country-card--am { --country-accent: #d97706; }

.country-card:hover {
    background: var(--white);
    border-color: color-mix(in srgb, var(--country-accent) 35%, var(--border));
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.country-card:hover::before { transform: scaleX(1); }

.country-card-head {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    max-width: 100%;
}

.country-card-head h2,
.country-card-head h3 {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.country-flag-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--white);
    transition: all var(--transition);
}

.country-card:hover .country-flag-wrap {
    border-color: color-mix(in srgb, var(--country-accent) 50%, var(--border));
    background: color-mix(in srgb, var(--country-accent) 8%, white);
    transform: scale(1.05);
}

.site-icon {
    display: block;
}

.filter-icon {
    flex-shrink: 0;
    color: var(--gold-600);
}

.country-card h2,
.country-card h3,
.country-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--navy-800);
    white-space: nowrap;
    line-height: 1.2;
}

.country-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--country-accent);
    background: color-mix(in srgb, var(--country-accent) 10%, white);
    border-radius: 50px;
    transition: all var(--transition);
}

.country-card:hover .country-cta {
    background: var(--country-accent);
    color: white;
}

.country-card:hover .country-cta svg { transform: translateX(-3px); }
.country-cta svg { transition: transform var(--transition); }

/* Properties layout */
.properties-layout { padding: 2rem 0 5rem; }
.properties-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}
.filter-sidebar-header h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--navy-800); }

.filter-panel .filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.filter-panel .filter-section:last-of-type { border-bottom: none; }
.filter-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 1rem;
}

.filter-panel .filter-group { margin-bottom: 0.75rem; }
.filter-panel .filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.filter-panel select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--cream);
    color: var(--text);
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter-chip { cursor: pointer; }
.filter-chip input { display: none; }
.filter-chip span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all var(--transition);
    background: var(--cream);
}
.filter-chip input:checked + span {
    background: var(--navy-800);
    color: white;
    border-color: var(--navy-800);
}
.filter-chip:hover span { border-color: var(--gold-500); }

.filter-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.active-filters-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: var(--navy-800);
    color: white;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    border: none;
}
.filter-tag:hover { background: var(--navy-700); }
.clear-all-filters { font-size: 0.78rem; color: var(--danger); margin-right: auto; }

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.filter-mobile-toggle { display: none; }
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--gold-500);
    color: var(--navy-900);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--cream-dark);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Mobile filter drawer */
.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity var(--transition);
}
.filter-drawer-overlay.is-open { display: block; opacity: 1; }

.filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 1200;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}
.filter-drawer.is-open { display: block; transform: translateY(0); }
body.filter-open { overflow: hidden; }

.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}
.filter-drawer-header h2 { font-size: 1.1rem; }
.filter-drawer-close { color: var(--text-muted); }
.filter-drawer-body { padding: 1.5rem; overflow-y: auto; max-height: calc(85vh - 60px); }

@media (max-width: 1024px) {
    .properties-container { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; }
    .filter-mobile-toggle { display: inline-flex; }
}

/* Country cards — mobile (must come after base country-card rules) */
@media (max-width: 768px) {
    .galaxy-picks-tabs-outer {
        margin-inline: -0.35rem;
        padding-inline: 0.35rem;
    }

    .galaxy-picks-tabs {
        scroll-snap-type: x proximity;
        padding-inline: 0.15rem;
    }

    .galaxy-picks-tab {
        scroll-snap-align: start;
    }

    .country-grid,
    .country-grid--equal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .country-card {
        padding: 0.6rem 0.35rem;
        overflow: visible;
    }

    .country-card-head {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        width: 100%;
    }

    .country-flag-wrap {
        width: 34px;
        height: 34px;
        border-width: 1.5px;
    }

    .country-flag-wrap .site-icon,
    .country-flag-wrap svg {
        width: 20px !important;
        height: 20px !important;
    }

    .country-card-name {
        font-size: 0.76rem;
        font-weight: 800;
        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }

    .country-cta {
        font-size: 0.62rem;
        font-weight: 700;
        padding: 0.28rem 0.4rem;
        gap: 0.15rem;
        border-radius: 999px;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
        justify-content: center;
    }

    .country-cta svg {
        width: 11px;
        height: 11px;
        flex-shrink: 0;
    }
}
