/* ==========================================================================
   RESIDENCE TR - LUXURY REAL ESTATE & CITIZENSHIP PLATFORM
   Brand Palette:
     - Primary: #293F3D (Deep Emerald Pine / Trust & Prestige)
     - Crimson: #99030C (Turkish Ruby Red / Passion & Power)
     - Gold:    #D4A77A (Champagne Sand / Luxury & Elegance)
     - Soft BG: #FBF9F5 (Warm Ivory Silk)
   Typography:
     - Headings & Prices: 'Merriweather', Georgia, serif
     - UI & Body:         'Google Sans', sans-serif
   Zero Emojis - 100% Vector SVGs - Core Web Vitals Optimized
   ========================================================================== */

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/googlesans/v60/4UaGrENHsxJlGDuGo1OIlL3Owp4.woff2') format('woff2');
}
@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/googlesans/v60/4UabrENHsxJlGDuGo1OIlLU94Yt3CwM.woff2') format('woff2');
}
@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/googlesans/v60/4UabrENHsxJlGDuGo1OIlLU94Yt3CwM.woff2') format('woff2');
}

:root {
    --primary: #293F3D;
    --primary-dark: #1C2C2B;
    --primary-light: #385350;
    --crimson: #99030C;
    --crimson-hover: #80020A;
    --crimson-light: #FBF0F1;
    --gold: #D4A77A;
    --gold-hover: #C59664;
    --gold-dark: #B58450;
    --gold-light: #FAF4EB;
    --gold-border: rgba(212, 167, 122, 0.4);

    --bg-page: #FBF9F5;
    --surface: #FFFFFF;
    --surface-alt: #F4EFEB;
    --surface-dark: #223533;
    
    --text: #20312F;
    --text-muted: #647573;
    --text-light: #F4EFEB;
    
    --border: #E8E2D8;
    --border-light: #F0ECE4;
    --border-gold: rgba(212, 167, 122, 0.35);

    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --radius-xl: 4px;
    --radius-full: 2px;

    --shadow-subtle: 0 2px 10px rgba(41, 63, 61, 0.04);
    --shadow-card: 0 4px 20px rgba(41, 63, 61, 0.06);
    --shadow-hover: 0 16px 36px -4px rgba(41, 63, 61, 0.12);
    --shadow-vip: 0 12px 35px rgba(212, 167, 122, 0.18);

    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-price: 'Merriweather', Georgia, serif;
    --font-body: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container: 1280px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: #EDE8E1;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
    text-align: right;
    font-family: 'Noto Sans Arabic', var(--font-body);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* SVG Icon Base */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

/* Typography Hierarchy - Headings & Prices in Merriweather */
h1, h2, h3, h4, h5, h6, 
.font-heading,
.section-title,
.hero-title,
.detail-title,
.card-title,
.price,
.card-price,
.detail-price,
.property-price,
.starting-price,
.hero-price,
.spec-price,
.brand-title {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--primary);
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem 0 1.5rem;
}

.gold-divider-center {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem auto 1.5rem;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: #cbd5d3;
    font-size: 0.8125rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(212, 167, 122, 0.2);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
}

.top-contact a, .top-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #e2e8e7;
    letter-spacing: 0.01em;
}

.top-contact a:hover {
    color: var(--gold);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.currency-select, .lang-select {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border: 1px solid rgba(212, 167, 122, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.currency-select:hover, .lang-select:hover,
.currency-select:focus, .lang-select:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
}

.currency-select option, .lang-select option {
    background: var(--primary-dark);
    color: #ffffff;
}

/* ==========================================================================
/* ==========================================================================
   MAIN STICKY HEADER & LUXURY NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(41, 63, 61, 0.04);
    transition: all 0.3s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.75rem;
    position: relative;
}

/* Official Logo Lockup */
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-wrap img, .brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    display: flex;
    align-items: center;
}

.brand-res {
    color: var(--primary);
}

.brand-tr {
    color: var(--crimson);
    margin-left: 0.2rem;
}

html[dir="rtl"] .brand-tr {
    margin-left: 0;
    margin-right: 0.2rem;
}

.brand-tagline {
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border-gold);
    padding-top: 0.2rem;
    white-space: nowrap;
}

/* Primary Desktop Navigation Links */
.main-nav {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.15rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    padding: 0.4rem 0.1rem;
    position: relative;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

html[dir="rtl"] .nav-links li a::after {
    left: auto;
    right: 0;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--crimson);
}

.nav-links li a.active {
    color: var(--crimson);
    font-weight: 700;
}

/* Header CTAs */
.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--primary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-search-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.header-list-btn {
    height: 38px;
    padding: 0 1.15rem;
    font-size: 0.825rem;
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--primary);
    cursor: pointer;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    border-color: var(--gold);
    background: var(--surface-alt);
}

.hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 0px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   OFFCANVAS MOBILE NAVIGATION DRAWER & BACKDROP
   ========================================================================== */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 1999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

html[dir="rtl"] .mobile-nav-drawer {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
}

html[dir="rtl"] .mobile-nav-drawer.open {
    transform: translateX(0);
}

body.drawer-locked {
    overflow: hidden !important;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #FAF8F5;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.mobile-drawer-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-drawer-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-list li a {
    display: block;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
    background: var(--surface-alt);
    color: var(--crimson);
}

.mobile-drawer-cta-wrap {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.mobile-drawer-selectors {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-select-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-select-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.drawer-select-input {
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 0.65rem;
    font-size: 0.825rem;
    font-family: var(--font-body);
    font-weight: 600;
    background: #ffffff;
    color: var(--primary);
    outline: none;
}

/* ==========================================================================
   BUTTON SYSTEM (PERFECT ALIGNMENT & STANDARDIZED SIZING)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none !important;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.btn-sm {
    height: 32px;
    padding: 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 2px;
    gap: 0.35rem;
}

.btn-md {
    height: 40px;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 2px;
    gap: 0.45rem;
}

.btn-lg {
    height: 48px;
    padding: 0 1.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 2px;
    gap: 0.5rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn svg, .btn .svg-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(41, 63, 61, 0.2);
    transform: translateY(-1px);
}

.btn-gold, .btn-accent {
    background: linear-gradient(135deg, #D4A77A, #C59664);
    color: #ffffff;
    border-color: var(--gold-dark);
}

.btn-gold:hover, .btn-accent:hover {
    background: linear-gradient(135deg, #C59664, #B58450);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(212, 167, 122, 0.35);
    transform: translateY(-1px);
}

.btn-crimson {
    background-color: var(--crimson);
    color: #ffffff;
    border-color: var(--crimson-hover);
}

.btn-crimson:hover {
    background-color: var(--crimson-hover);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(153, 3, 12, 0.35);
    transform: translateY(-1px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary);
    border-color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #ffffff;
}

.btn-outline-crimson {
    background: transparent;
    color: var(--crimson);
    border-color: var(--crimson);
}

.btn-outline-crimson:hover {
    background: var(--crimson);
    color: #ffffff;
}

.btn-outline-emerald {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-emerald:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    border-color: #1EBE5D;
}

.btn-whatsapp:hover {
    background-color: #1EBE5D;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   LUXURY BREADCRUMB (UNIFIED & OVERFLOW-PROOF)
   ========================================================================== */
.luxury-breadcrumb {
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    font-family: var(--font-body);
}

.luxury-breadcrumb ol {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.luxury-breadcrumb li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0 !important;
    padding: 0 !important;
}

.luxury-breadcrumb li::before,
.luxury-breadcrumb li::marker {
    display: none !important;
    content: none !important;
}

.luxury-breadcrumb li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.luxury-breadcrumb li a:hover {
    color: var(--crimson);
}

.luxury-breadcrumb li.separator {
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.luxury-breadcrumb li.separator svg {
    display: block;
}

.luxury-breadcrumb li.current {
    color: var(--primary);
    font-weight: 700;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .luxury-breadcrumb li.current {
        max-width: 200px;
    }
}

html[dir="rtl"] .luxury-breadcrumb ol {
    flex-direction: row;
}

html[dir="rtl"] .luxury-breadcrumb li.separator svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   HERO BANNER (VIP REAL ESTATE SEARCH)
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(rgba(28, 44, 43, 0.65), rgba(41, 63, 61, 0.85)), 
                url('https://residencetr.com/wp-content/uploads/2024/04/mandarin-residences-etiler-1.webp') center/cover no-repeat;
    color: #ffffff;
    padding: 4rem 0 4.5rem;
    border-bottom: 2px solid var(--gold);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.home-hero .hero-content {
    max-width: 820px;
    margin: 0;
    text-align: left;
    padding-left: 4.5rem;
    padding-right: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (max-width: 991px) {
    .home-hero .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .home-hero .hero-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

html[dir="rtl"] .home-hero .hero-content {
    text-align: right;
    padding-left: 1.5rem;
    padding-right: 4.5rem;
}

@media (max-width: 991px) {
    html[dir="rtl"] .home-hero .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(212, 167, 122, 0.16);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: #e2ecea;
    max-width: 680px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
    font-weight: 400;
}

/* Home Floating Search Bar (In-Flow, Zero-Collision) */
.home-filter-wrapper {
    position: relative;
    margin-top: -2.25rem;
    z-index: 30;
    margin-bottom: 1.5rem;
}

.home-filter-card {
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(41, 63, 61, 0.08);
    padding: 1.15rem 1.5rem;
    border: 1px solid var(--gold);
}

.home-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.filter-col {
    border-right: 1px solid var(--border);
    padding-right: 1.25rem;
}

html[dir="rtl"] .filter-col {
    border-right: none;
    border-left: 1px solid var(--border);
    padding-right: 0;
    padding-left: 1.25rem;
}

.filter-col:nth-child(3) {
    border-right: none;
    padding-right: 0.5rem;
}

html[dir="rtl"] .filter-col:nth-child(3) {
    border-left: none;
    padding-left: 0.5rem;
}

.filter-col label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.filter-col select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.home-filter-btn {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 2px;
    white-space: nowrap;
}

/* Luxury Search Filter Card */
.search-card {
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
    color: var(--text);
    text-align: left;
}

html[dir="rtl"] .search-card {
    text-align: right;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 160px;
    gap: 0.85rem;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.form-control {
    width: 100%;
    height: 2.5rem;
    padding: 0.45rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text);
    background-color: #FAF8F5;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--gold);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 167, 122, 0.15);
}

/* ==========================================================================
   TRUST & VIP HIGHLIGHTS BAR
   ========================================================================== */
.trust-bar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 2.25rem 0;
    box-shadow: var(--shadow-subtle);
}

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

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trust-icon-box {
    width: 46px;
    height: 46px;
    background: var(--gold-light);
    color: var(--gold-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   SECTION COMMONS
   ========================================================================== */
.section {
    padding: 3.5rem 0;
}

.section-alt {
    background-color: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.25rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   PROPERTY CARDS (LUXURY GRID)
   ========================================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
}

.property-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--surface-alt);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 2;
}

html[dir="rtl"] .card-badges {
    left: auto;
    right: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-citizenship {
    background-color: var(--crimson);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(153, 3, 12, 0.4);
}

.badge-featured {
    background-color: var(--primary);
    color: var(--gold);
    border: 1px solid var(--gold-border);
}

.card-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(28, 44, 43, 0.95), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #ffffff;
}

.card-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.card-price small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
}

.card-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2ecea;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.card-body {
    padding: 1.15rem 1.15rem 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
}

.card-title a:hover {
    color: var(--crimson);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-specs {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   PROPERTY DETAIL PAGE (PROPERTYTURKEY STYLE OVERHAUL)
   ========================================================================== */
.detail-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    color: var(--primary);
    margin: 0.5rem 0;
}

.detail-location-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.detail-price-box {
    text-align: right;
}

html[dir="rtl"] .detail-price-box {
    text-align: left;
}

.detail-price {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
}

.detail-price-tag {
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Detail Grid Layout */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
    gap: 3rem;
    padding: 3rem 0;
    align-items: start; /* Critical for sticky sidebar */
}

/* Gallery Section */
.gallery-main {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

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

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.thumb-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.thumb-item:hover, .thumb-item.active {
    opacity: 1;
    border-color: var(--gold);
    transform: translateY(-2px);
}

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

/* Key Specifications Strip */
.specs-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-subtle);
}

.spec-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    border-right: 1px solid var(--border);
    padding: 0 0.5rem;
}

.spec-cell:last-child {
    border-right: none;
}

html[dir="rtl"] .spec-cell {
    border-right: none;
    border-left: 1px solid var(--border);
}

html[dir="rtl"] .spec-cell:last-child {
    border-left: none;
}

.spec-icon-box {
    color: var(--gold-dark);
    margin-bottom: 0.2rem;
}

.spec-cell strong {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
}

.spec-cell span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Rich Detail Content */
.detail-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    line-height: 1.8;
}

.detail-content h2, .detail-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

.detail-content h2:first-child, .detail-content h3:first-child {
    margin-top: 0;
}

.detail-content p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.detail-content ul, .detail-content ol {
    margin: 1rem 0 1.5rem 1.75rem;
}

html[dir="rtl"] .detail-content ul, html[dir="rtl"] .detail-content ol {
    margin: 1rem 1.75rem 1.5rem 0;
}

.detail-content li {
    margin-bottom: 0.5rem;
}

/* Amenities Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.feature-pill {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.feature-pill .svg-icon {
    color: var(--gold-dark);
}

/* ==========================================================================
   STICKY FOLLOWER VIP INQUIRY FORM (RIGHT SIDEBAR)
   ========================================================================== */
.sticky-sidebar {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    z-index: 30;
}

.vip-inquiry-card {
    background: var(--surface);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-vip);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.vip-inquiry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--crimson), var(--gold), var(--primary));
}

/* Concierge Agent Badge */
.concierge-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.concierge-avatar {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: var(--gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--gold);
}

.concierge-info h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.concierge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803d;
}

.concierge-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Form Tabs */
.form-tab-nav {
    display: flex;
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
}

.form-tab-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.form-tab-btn.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Input Wrappers with SVG Icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-slot {
    position: absolute;
    left: 0.85rem;
    color: var(--gold-dark);
    pointer-events: none;
    display: flex;
    align-items: center;
}

html[dir="rtl"] .input-icon-slot {
    left: auto;
    right: 0.85rem;
}

.input-with-icon .form-control {
    padding-left: 2.6rem;
}

html[dir="rtl"] .input-with-icon .form-control {
    padding-left: 0.85rem;
    padding-right: 2.6rem;
}

/* Contact Preferences Radio Pills */
.pref-pills {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.pref-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    background: #FAF8F5;
    transition: all 0.2s;
}

.pref-label input {
    display: none;
}

.pref-label:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--primary);
    font-weight: 700;
}

/* Citizenship Checkbox Box */
.citizenship-checkbox-box {
    background: var(--gold-light);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.25rem;
    cursor: pointer;
}

.citizenship-checkbox-box input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--crimson);
    width: 1.15rem;
    height: 1.15rem;
}

.citizenship-checkbox-box span {
    font-size: 0.825rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
}

/* Sidebar Direct WhatsApp Button */
.sidebar-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background-color: #25D366;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    transition: all 0.25s ease;
    border: 1px solid #1ebe5d;
}

.sidebar-wa-btn:hover {
    background-color: #1ebe5d;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Trust Badges under Form */
.form-trust-badges {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.form-trust-item .svg-icon {
    color: var(--gold-dark);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: var(--gold);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

html[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question .svg-icon {
    color: var(--gold-dark);
    transition: transform 0.25s ease;
}

.faq-item.open .faq-question .svg-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text);
    line-height: 1.7;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ==========================================================================
   CITIZENSHIP CALCULATOR CARD
   ========================================================================== */
.calc-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 2px solid var(--gold);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(41, 63, 61, 0.25);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.calc-meter {
    background: rgba(255, 255, 255, 0.15);
    height: 12px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1.25rem 0;
    border: 1px solid rgba(212, 167, 122, 0.3);
}

.calc-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 60%;
}

.calc-status {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 167, 122, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(6px);
}

.calc-result-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   SITE FOOTER (LUXURY EMERALD & GOLD)
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: #cad5d3;
    padding: 5rem 0 2rem;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--gold);
}

html[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #b8c8c5;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 0.35rem;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 0.35rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 167, 122, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #8fa5a2;
}

.footer-bottom a {
    color: #b8c8c5;
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ==========================================================================
   FLOATING WHATSAPP CTA WIDGET
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ffffff;
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 2rem;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   CITIES CATALOG PAGE (IMAGE 2 DESIGN)
   ========================================================================== */
.cities-hero-section {
    background: linear-gradient(180deg, #F5F1E9 0%, #FFFFFF 100%);
    padding: 2rem 0 1.75rem;
    border-bottom: 1px solid var(--border);
}
.cities-hero-content {
    margin: 1rem auto 1.5rem;
    text-align: center;
    max-width: 780px;
}
.cities-overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--crimson);
    margin-bottom: 0.35rem;
}
.cities-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.cities-subtitle {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.55;
}
.cities-filter-card {
    background: #ffffff;
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    padding: 1.15rem 1.35rem;
    box-shadow: var(--shadow-card);
    margin-bottom: -2rem;
    position: relative;
    z-index: 20;
}
.cities-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 130px;
    gap: 1rem;
    align-items: flex-end;
}
.cities-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.cities-filter-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.cities-filter-field input, .cities-filter-field select {
    height: 40px;
    border: 1px solid #D1D5DB;
    border-radius: 2px;
    padding: 0 0.85rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.cities-filter-field input:focus, .cities-filter-field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 167, 122, 0.2);
}
.cities-submit-btn {
    height: 40px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.875rem;
    border-radius: 2px;
}
.cities-catalog-section {
    padding: 4rem 0 3.5rem;
    background: var(--surface);
}
.cities-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.cities-count-label {
    font-size: 0.95rem;
    color: var(--text);
}
.cities-count-label .highlight-count {
    font-weight: 800;
    color: var(--primary);
}
.cities-view-toggles {
    display: flex;
    gap: 0.4rem;
}
.cities-view-toggles .view-btn {
    width: 38px;
    height: 38px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.cities-view-toggles .view-btn.active, .cities-view-toggles .view-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.cities-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.city-catalog-card {
    position: relative;
    height: 280px;
    border-radius: 2px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    display: block;
}
.city-catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(41, 63, 61, 0.18);
}
.city-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.city-catalog-card:hover .city-card-bg {
    transform: scale(1.08);
}
.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.88) 100%);
}
.city-card-content {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 10;
}
.city-card-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.3rem;
}
.city-card-count {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.city-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s;
    flex-shrink: 0;
}
.city-catalog-card:hover .city-card-arrow {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    transform: translateX(4px);
}
.cities-cards-grid.list-view {
    grid-template-columns: 1fr;
}
.cities-cards-grid.list-view .city-catalog-card {
    height: 120px;
}
.cities-consultation-banner {
    background: var(--primary);
    border: 1.5px solid var(--gold);
    border-radius: 2px;
    padding: 2.75rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: #ffffff;
    box-shadow: var(--shadow-vip);
}
.consultation-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.consultation-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.5rem;
}
.consultation-desc {
    color: #CBD5E1;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0;
}

/* ==========================================================================
   PROPERTIES CATALOG (IMAGE 3 DESIGN - 2-COLUMN SIDEBAR)
   ========================================================================== */
.catalog-hero-section {
    background: linear-gradient(180deg, #F5F1E9 0%, #FFFFFF 100%);
    padding: 1.75rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
}
.catalog-hero-header {
    margin-top: 0.75rem;
}
.catalog-overline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--crimson);
    margin-bottom: 0.35rem;
}
.catalog-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--primary);
    font-weight: 900;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.catalog-subtitle {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin: 0;
}
.catalog-main-section {
    padding: 2.25rem 0 3.5rem;
    background: var(--surface);
}
.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}
.catalog-sidebar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 5rem;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}
.sidebar-reset-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--crimson);
    text-decoration: none;
}
.sidebar-filter-block {
    margin-bottom: 1.35rem;
}
.filter-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.sidebar-input, .sidebar-select {
    width: 100%;
    height: 42px;
    border: 1px solid #D1D5DB;
    border-radius: 2px;
    padding: 0 0.85rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}
.sidebar-input:focus, .sidebar-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 167, 122, 0.2);
}
.sidebar-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sidebar-check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}
.sidebar-check-item input[type="radio"], .sidebar-check-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.bedroom-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
}
.bedroom-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    background: var(--surface);
    transition: all 0.2s;
    position: relative;
}
.bedroom-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.bedroom-pill.active, .bedroom-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.price-sep {
    color: var(--text-muted);
    font-weight: 700;
}
.highlight-box {
    background: #FFFBF4;
    border: 1px solid #F6E2BC;
    border-radius: 2px;
    padding: 0.75rem;
}
.highlight-box-content {
    display: flex;
    flex-direction: column;
}
.highlight-box-content .check-text {
    color: var(--primary);
    font-size: 0.85rem;
}
.highlight-box-content .check-desc {
    color: var(--gold-dark);
    font-size: 0.725rem;
    font-weight: 600;
}
.catalog-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 2px;
}
.results-count-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.results-number {
    color: var(--primary);
    font-weight: 800;
}
.results-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sort-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}
.sort-select {
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0 0.85rem;
    font-size: 0.875rem;
    background: #ffffff;
    color: var(--primary);
    font-weight: 600;
    outline: none;
    cursor: pointer;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.luxury-pagination {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}
.pagination-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-link {
    width: 42px;
    height: 42px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.page-link:hover {
    border-color: var(--crimson);
    color: var(--crimson);
}
.page-link.active {
    background: var(--crimson);
    color: #ffffff;
    border-color: var(--crimson);
    box-shadow: 0 4px 12px rgba(153, 3, 12, 0.3);
}

/* ==========================================================================
   PROPERTY DETAIL PAGE (IMAGE 4 DESIGN & NO-SHIFT STICKY FORM)
   ========================================================================== */
.detail-hero-section {
    background: linear-gradient(180deg, #F5F1E9 0%, #FFFFFF 100%);
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
}
.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 1rem 0 1.75rem;
}
.detail-badges-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.badge-vip-status {
    background: var(--crimson);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.badge-citizenship-gold {
    background: var(--gold-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #E8D3BA;
}
.badge-ref-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 0.35rem 0.65rem;
    border-radius: 2px;
}
.detail-property-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    color: var(--primary);
    font-weight: 800;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.detail-location-pin {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.btn-detail-action {
    height: 38px;
    padding: 0 1.25rem;
    font-weight: 700;
    font-size: 0.825rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: 0.03em;
    border-radius: 2px;
}
.btn-outline-emerald {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline-emerald:hover {
    background: var(--primary);
    color: #ffffff;
}
.detail-icon-actions {
    display: flex;
    gap: 0.35rem;
}
.icon-round-btn {
    width: 38px;
    height: 38px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.icon-round-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.detail-gallery-container {
    margin-bottom: 1.5rem;
}

.gallery-hero-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 2px;
    overflow: hidden;
    background: #0F172A;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

@media (max-width: 1200px) {
    .gallery-hero-wrapper {
        height: 460px;
    }
}

@media (max-width: 991px) {
    .gallery-hero-wrapper {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .gallery-hero-wrapper {
        height: 260px;
    }
}

.gallery-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
    display: block;
}

/* Floating Left/Right Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.carousel-nav-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.carousel-prev-btn {
    left: 1.25rem;
}

.carousel-next-btn {
    right: 1.25rem;
}

html[dir="rtl"] .carousel-prev-btn {
    left: auto;
    right: 1.25rem;
}

html[dir="rtl"] .carousel-next-btn {
    right: auto;
    left: 1.25rem;
}

/* Floating Badges & Action Buttons on Hero Display */
.gallery-video-trigger {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 15;
    background: var(--crimson);
    color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(153, 3, 12, 0.45);
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.gallery-video-trigger:hover {
    background: var(--crimson-hover);
    transform: translateY(-1px);
}

html[dir="rtl"] .gallery-video-trigger {
    left: auto;
    right: 1.25rem;
}

.gallery-floating-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 15;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

html[dir="rtl"] .gallery-floating-badge {
    right: auto;
    left: 1.25rem;
}

.gallery-watermark {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 15;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

html[dir="rtl"] .gallery-watermark {
    left: auto;
    right: 1.25rem;
}

.gallery-bottom-actions {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html[dir="rtl"] .gallery-bottom-actions {
    right: auto;
    left: 1.25rem;
}

.carousel-counter-pill {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.carousel-view-all-btn {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-view-all-btn:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    transform: translateY(-1px);
}

/* Synchronized Thumbnails Row (Aligned 5-Column Luxury Grid) */
.gallery-thumbs-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
    margin-top: 0.75rem;
    width: 100%;
}

.gallery-thumb-cell {
    position: relative;
    width: 100%;
    height: 94px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.78;
    transition: all 0.2s ease;
    background: #0F172A;
}

.gallery-thumb-cell:hover, .gallery-thumb-cell.active {
    opacity: 1;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 167, 122, 0.35);
}

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

.thumb-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border-gold);
    transition: all 0.2s ease;
}

.thumb-more-overlay:hover {
    background: rgba(212, 167, 122, 0.9);
    color: #142120;
}

@media (max-width: 991px) {
    .gallery-thumb-cell {
        height: 75px;
    }
}

@media (max-width: 640px) {
    .gallery-thumbs-row {
        gap: 0.35rem;
        margin-top: 0.35rem;
    }
    .gallery-thumb-cell {
        height: 56px;
    }
}

/* ==========================================================================
   LUXURY FULLSCREEN PHOTO LIGHTBOX MODAL
   ========================================================================== */
.photo-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 15, 20, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    z-index: 2;
}

.lightbox-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lightbox-prop-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.lightbox-counter-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lightbox-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    overflow: hidden;
    padding: 1rem 0;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.lightbox-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-thumbs-bar {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: center;
}

.lb-thumb-item {
    flex: 0 0 70px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    padding: 0;
    background: #000;
    transition: all 0.2s;
}

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

.lb-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.developer-strip-card {
    background: #ffffff;
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
.dev-info-col {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dev-logo-emblem {
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background: var(--surface-alt);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}
.dev-type-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold-dark);
    letter-spacing: 0.08em;
}
.dev-brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.1rem 0;
}
.dev-verified-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #15803d;
    font-weight: 700;
}
.dev-price-col {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 1.5rem;
    text-align: center;
}
.price-start-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}
.dev-main-price {
    font-family: var(--font-price);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    margin: 0.15rem 0;
}
.price-note {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.dev-cta-btn {
    height: 38px;
    padding: 0 1.25rem;
    font-weight: 800;
    font-size: 0.825rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 2px;
}
.detail-anchor-nav {
    border-bottom: 2px solid var(--border);
    margin-top: 0.75rem;
}
.anchor-nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}
.anchor-link {
    display: block;
    padding: 0.65rem 0.25rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.anchor-link:hover, .anchor-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.detail-body-section {
    padding: 2rem 0 3.5rem;
    background: var(--surface);
}
.detail-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 2.25rem;
    align-items: start; /* CRITICAL: Prevents stretching and ensures smooth sticky tracking */
}
.specs-metric-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-subtle);
}
.metric-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    border-right: 1px solid var(--border);
    padding: 0 0.35rem;
}
.metric-cell:last-child {
    border-right: none;
}
.metric-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}
.metric-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}
.detail-card-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}
.panel-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
}
.gold-accent-line {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 1rem;
}
.panel-rich-text {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text);
}
.features-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}
.feature-item-box {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.feature-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    background: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}
.plans-teaser-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #FAF7F2;
    border: 1px dashed var(--gold);
    border-radius: 2px;
    padding: 1.5rem 2rem;
}
.plans-teaser-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.35rem;
}
.plans-teaser-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.location-distance-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.distance-item {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.map-embed-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.faq-accordion-item {
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    background: var(--surface);
    transition: all 0.2s;
}
.faq-accordion-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.faq-accordion-body {
    display: none;
    padding: 0 1.5rem 1.25rem;
    background: #ffffff;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-accordion-item.open .faq-accordion-body {
    display: block;
}
.faq-accordion-item.open {
    border-color: var(--gold);
}

/* ==========================================================================
   STICKY FOLLOWER VIP INQUIRY FORM (IMAGE 4 DARK EMERALD #293F3D)
   Ultra-Compact & 100% Viewport-Safe (Button Never Hidden/Below Fold)
   ========================================================================== */
.detail-follower-sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
    z-index: 40;
}
.vip-follower-card {
    background: var(--primary); /* #293F3D Dark Emerald */
    border: 1px solid var(--gold);
    border-radius: 2px;
    padding: 1.5rem 1.65rem;
    box-shadow: 0 16px 40px rgba(41, 63, 61, 0.25);
    color: #ffffff;
    box-sizing: border-box;
    width: 100%;
}
.follower-compact-header {
    margin-bottom: 1.15rem;
    border-bottom: 1px solid rgba(212, 167, 122, 0.22);
    padding-bottom: 0.85rem;
}
.follower-compact-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.03em;
}
.follower-compact-sub {
    font-size: 0.8125rem;
    color: #CBD5E1;
    line-height: 1.5;
    margin: 0.35rem 0 0;
}
.follower-compact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.compact-input-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.compact-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.compact-input-icon {
    position: absolute;
    left: 0.85rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    color: var(--gold);
    z-index: 2;
}
.compact-input {
    width: 100%;
    height: 44px;
    padding-left: 2.5rem;
    padding-right: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.compact-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 2px rgba(212, 167, 122, 0.2);
}
.compact-input::placeholder {
    color: #94A3B8;
    font-size: 0.825rem;
}
.compact-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A77A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
}
.compact-select option {
    background: var(--primary-dark);
    color: #ffffff;
}
.compact-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    margin: 0.25rem 0;
}
.compact-checkbox-row input {
    accent-color: var(--gold);
    margin-top: 3px;
    flex-shrink: 0;
}
.compact-checkbox-text {
    font-size: 0.725rem;
    color: #CBD5E1;
    line-height: 1.4;
}
.compact-submit-btn {
    height: 46px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    border-radius: 2px;
    background: linear-gradient(135deg, #D4A77A, #C59664);
    color: #293F3D;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}
.compact-submit-btn:hover {
    background: linear-gradient(135deg, #E0B88C, #D4A77A);
    box-shadow: 0 4px 16px rgba(212, 167, 122, 0.4);
    transform: translateY(-1px);
}
.compact-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 42px;
    background: #25D366;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.55rem;
}
.compact-wa-btn:hover {
    background: #1EBE5D;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transform: translateY(-1px);
}
.vip-trust-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.725rem;
    color: #CBD5E1;
}
.vip-trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* POI & Nearby Places styles */
.poi-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.poi-cat-btn {
    padding: 0.4rem 0.85rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.poi-cat-btn.active, .poi-cat-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.location-poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}
.poi-card-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.poi-card-item:hover, .poi-card-item.active {
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 167, 122, 0.18);
    background: rgba(212, 167, 122, 0.05);
}
.poi-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    background: rgba(212, 167, 122, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    shrink: 0;
}
.poi-content {
    flex: 1;
    min-width: 0;
}
.poi-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.poi-dist-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.poi-time {
    font-weight: 700;
    color: #15803d;
}
.poi-select-indicator {
    opacity: 0.4;
    transition: all 0.2s;
}
.poi-card-item:hover .poi-select-indicator, .poi-card-item.active .poi-select-indicator {
    opacity: 1;
    transform: translateX(3px);
}
.map-current-focus-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--gold);
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 10;
}
}

/* ==========================================================================
   BLOG DETAIL PAGE (IMAGE 5 DESIGN)
   ========================================================================== */
.blog-detail-header-section {
    background: linear-gradient(180deg, #F5F1E9 0%, #FFFFFF 100%);
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
}
.article-title-wrap {
    margin-top: 1.25rem;
}
.article-cat-tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--primary);
    border: 1px solid #E8D3BA;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.article-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    color: var(--primary);
    font-weight: 900;
    margin: 0 0 1.25rem;
    line-height: 1.2;
}
.article-byline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1.25rem;
}
.author-meta-block {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.author-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}
.author-text-meta {
    display: flex;
    flex-direction: column;
}
.author-text-meta .author-name {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
}
.author-text-meta .author-role {
    font-size: 0.775rem;
    color: var(--text-muted);
}
.article-stats-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.article-share-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.share-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}
.share-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s;
}
.share-circle-btn:hover {
    transform: translateY(-2px);
}
.wa-share { background: #25D366; }
.tw-share { background: #000000; }
.fb-share { background: #1877F2; }
.in-share { background: #0A66C2; }
.blog-detail-body-section {
    padding: 3rem 0 5rem;
    background: var(--surface);
}
.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}
.article-hero-media {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}
.article-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.article-media-caption {
    padding: 0.6rem 1rem;
    background: #ffffff;
    border-top: 1px solid var(--border);
    font-size: 0.775rem;
    color: var(--text-muted);
    text-align: right;
}
.article-rich-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
}
.article-rich-body h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--primary);
    font-weight: 900;
    margin: 2.25rem 0 1rem;
}
.article-rich-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
    margin: 1.75rem 0 0.75rem;
}
.article-rich-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #FAF7F2;
    border-left: 4px solid var(--gold);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-dark);
    border-radius: 0 12px 12px 0;
}
.article-tags-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 2.5rem 0;
    flex-wrap: wrap;
}
.tags-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
}
.tag-pill {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}
.tag-pill:hover {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
}
.author-bio-box {
    background: #ffffff;
    border: 1.5px solid var(--border-gold);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-subtle);
}
.bio-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.bio-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold-dark);
    letter-spacing: 0.08em;
}
.bio-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.2rem 0 0.5rem;
}
.bio-text {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}
.bio-socials {
    display: flex;
    gap: 0.5rem;
}
.bio-social-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.article-cta-strip {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 2.5rem;
    color: #ffffff;
    box-shadow: var(--shadow-vip);
}
.cta-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.1em;
}
.cta-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 800;
    margin: 0.35rem 0 0.5rem;
}
.cta-lead {
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.cta-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 180px;
    gap: 0.85rem;
}
.cta-input {
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0 1rem;
    font-size: 0.9rem;
    outline: none;
}
.cta-btn {
    height: 48px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Sidebar Widgets */
.blog-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 6.5rem;
}
.blog-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-subtle);
}
.author-widget {
    text-align: center;
}
.widget-avatar-wrap {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    margin: 0 auto 0.85rem;
    overflow: hidden;
    border: 2px solid var(--gold);
}
.widget-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.widget-author-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.2rem;
}
.widget-author-role {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 700;
    margin: 0 0 0.6rem;
}
.widget-author-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 1rem;
}
.widget-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
}
.widget-title-line {
    width: 36px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 1.25rem;
}
.widget-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.widget-post-item {
    display: flex;
    gap: 0.85rem;
    text-decoration: none;
    align-items: center;
}
.widget-post-thumb {
    width: 70px;
    height: 56px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.widget-post-date {
    display: block;
    font-size: 0.725rem;
    color: var(--text-muted);
}
.widget-post-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.15rem 0 0;
    line-height: 1.35;
    transition: color 0.2s;
}
.widget-post-item:hover .widget-post-title {
    color: var(--crimson);
}
.widget-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.widget-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: var(--surface-alt);
    text-decoration: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}
.widget-category-link:hover {
    background: #E2EAE9;
}
.cat-count-pill {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.emerald-cta-widget {
    background: var(--primary);
    border: 1.5px solid var(--gold);
    color: #ffffff;
    text-align: center;
}
.emerald-cta-emblem {
    margin-bottom: 0.6rem;
}
.emerald-cta-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem;
}
.emerald-cta-text {
    font-size: 0.85rem;
    color: #CBD5E1;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}
.emerald-cta-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.emerald-input {
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0 0.85rem;
    font-size: 0.875rem;
    outline: none;
}
.emerald-submit-btn {
    height: 44px;
    font-weight: 800;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Responsive Grids Base Definitions */
.why-us-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 3rem;
    align-items: center;
}

.why-us-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.75rem;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (COMPREHENSIVE)
   ========================================================================== */
@media (max-width: 1200px) {
    .cities-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1140px) {
    .main-nav, .nav-links {
        display: none !important;
    }
    .mobile-toggle {
        display: inline-flex !important;
    }
    .header-list-btn span {
        display: none;
    }
    .header-list-btn {
        padding: 0 0.65rem;
        height: 36px;
    }
}

@media (max-width: 1024px) {
    .cities-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cities-filter-card {
        margin-bottom: 2rem;
    }
    .cities-catalog-section {
        padding-top: 3rem;
    }
    .cities-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    .detail-grid-layout {
        grid-template-columns: 1fr;
    }
    .detail-follower-sidebar {
        position: static;
        margin-top: 2rem;
    }
    .developer-strip-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .dev-price-col {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
    .blog-detail-sidebar {
        position: static;
        margin-top: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .home-filter-form {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }
    .filter-col {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0;
    }
    .filter-action-col {
        grid-column: span 2;
    }
    .home-filter-btn {
        width: 100%;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .cities-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .detail-header-row {
        flex-direction: column;
        gap: 1rem;
    }
    .detail-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .why-us-features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .home-filter-form {
        grid-template-columns: 1fr;
    }
    .filter-action-col {
        grid-column: span 1;
    }
    .specs-metric-card {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-distance-strip {
        grid-template-columns: 1fr;
    }
    .cta-form-grid {
        grid-template-columns: 1fr;
    }
    .cities-consultation-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .carousel-nav-btn {
        width: 38px;
        height: 38px;
    }
    .carousel-prev-btn {
        left: 0.65rem;
    }
    .carousel-next-btn {
        right: 0.65rem;
    }
}

@media (max-width: 640px) {
    .top-contact span {
        display: none;
    }
    .cities-filter-grid {
        grid-template-columns: 1fr;
    }
    .cities-cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .author-bio-box {
        flex-direction: column;
        text-align: center;
    }
    .article-byline-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   INTERNATIONAL UX, RTL MIRRORING & CJK TYPOGRAPHY ENHANCEMENTS
   ========================================================================== */

/* 1. Unicode BiDi Isolation for International Data */
bdi, .ltr-isolate, [dir="ltr"] {
    unicode-bidi: isolate;
    direction: ltr;
    display: inline-block;
}

/* 2. Simplified Chinese (zh-Hans) CJK Typography */
html[lang="zh-Hans"] body,
html.cjk-layout body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans SC", sans-serif;
    word-break: break-word;
    line-height: 1.75;
    letter-spacing: 0.02em;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] h4 {
    font-family: "PingFang SC", "Microsoft YaHei", "Merriweather", sans-serif;
    font-weight: 700;
}

/* 3. Arabic (ar) RTL Full Layout Mirroring */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Google Sans', sans-serif;
    line-height: 1.8;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .section-title,
html[dir="rtl"] .follower-compact-title {
    font-family: 'Noto Sans Arabic', 'Merriweather', serif;
    font-weight: 800;
    line-height: 1.4;
}

/* RTL Header & Navigation */
html[dir="rtl"] .top-bar-inner {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-inner {
    flex-direction: row;
}

html[dir="rtl"] .brand-logo-wrap {
    flex-direction: row;
}

html[dir="rtl"] .nav-links {
    flex-direction: row;
}

html[dir="rtl"] .header-cta {
    flex-direction: row;
}

/* RTL Form Inputs & Icons */
html[dir="rtl"] .compact-input-group {
    flex-direction: row;
}

html[dir="rtl"] .compact-input {
    text-align: right;
    padding-right: 2.25rem !important;
    padding-left: 0.75rem !important;
}

html[dir="rtl"] .compact-input-icon {
    right: 0.75rem;
    left: auto;
}

/* RTL POI Cards & Indicators */
html[dir="rtl"] .poi-card-item {
    text-align: right;
}

html[dir="rtl"] .poi-card-item .poi-icon-wrap {
    margin-left: 0.75rem;
    margin-right: 0;
}

html[dir="rtl"] .poi-card-item .poi-select-indicator {
    transform: rotate(180deg);
}

/* RTL Metric Grid */
html[dir="rtl"] .specs-metric-card,
html[dir="rtl"] .specs-metric-card .metric-cell {
    text-align: center;
}

/* RTL Breadcrumb */
html[dir="rtl"] .luxury-breadcrumb ol {
    flex-direction: row;
}

/* RTL Price Disclaimer Bar */
.currency-disclaimer-bar {
    background: #fbf9f5;
    border-top: 1px solid #e8e2d8;
    border-bottom: 1px solid #e8e2d8;
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    color: #647573;
    text-align: center;
    line-height: 1.5;
}

html[dir="rtl"] .currency-disclaimer-bar {
    text-align: center;
}

/* ==========================================================================
   PASSIVE VIDEO TOUR STATE & YOUTUBE-ONLY ENFORCEMENT
   ========================================================================== */
.btn.is-passive,
.btn-detail-action.is-passive,
.gallery-video-trigger.is-passive {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(1);
    border-color: #CBD5E1 !important;
    color: #64748B !important;
    background: #F1F5F9 !important;
    box-shadow: none !important;
}

.gallery-video-trigger.is-passive {
    background: rgba(15, 23, 42, 0.55) !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.video-panel-passive {
    background: #FBF9F5 !important;
    border: 1px dashed #CBD5E1 !important;
}

.video-passive-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
}

.video-passive-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 2px;
    opacity: 0.85;
}

.video-passive-icon {
    width: 48px;
    height: 48px;
    border-radius: 2px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-passive-text {
    flex: 1;
}

.video-passive-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.video-passive-text p {
    margin: 0;
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   CITIES PAGE: VERIFIED VISUALS & BELOW-REGION SEO AUTHORITY BLOCKS
   ========================================================================== */
.cities-seo-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.cities-seo-cards-grid.list-view {
    grid-template-columns: 1fr;
}

.city-seo-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.city-seo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.city-seo-visual-link {
    position: relative;
    display: block;
    width: 100%;
    height: 270px;
    overflow: hidden;
    background: #1B2B29;
    text-decoration: none;
}

.city-seo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.city-seo-card:hover .city-seo-img {
    transform: scale(1.04);
}

.city-visual-top-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.city-region-pill {
    background: rgba(27, 43, 41, 0.88);
    color: var(--gold);
    border: 1px solid rgba(212, 167, 122, 0.5);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
}

.city-count-pill {
    background: var(--crimson);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
}

.city-visual-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(18, 30, 29, 0.92) 100%);
}

.city-card-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.15rem;
}

.city-seo-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.city-seo-heading {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
}

.city-seo-heading a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.city-seo-heading a:hover {
    color: var(--crimson);
}

.city-seo-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: #FBF9F5;
    border: 1px solid #E8E2D8;
    border-radius: 2px;
    padding: 0.65rem 0.75rem;
}

.city-metric-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.city-metric-chip .chip-lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
}

.city-metric-chip .chip-val {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 800;
}

.city-metric-chip .chip-val.chip-gold {
    color: #99030C;
}

.city-seo-description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.city-seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.city-kw-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
    transition: all 0.2s;
}

.city-kw-tag:hover {
    border-color: var(--gold);
    background: #FBF9F5;
    color: var(--crimson);
}

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

.city-explore-btn {
    width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

/* Regional SEO Authority Section on /cities */
.cities-seo-authority-section {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 2px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-card);
}

.authority-header {
    max-width: 820px;
    margin-bottom: 2rem;
}

.authority-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    color: var(--primary);
    margin: 0.35rem 0 0.65rem;
}

.authority-subtitle {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
    margin: 0;
}

.authority-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.authority-article-card {
    background: #FBF9F5;
    border: 1px solid #E8E2D8;
    border-radius: 2px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.authority-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: #FFFFFF;
    background: var(--primary);
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.authority-article-card h3 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    line-height: 1.38;
    color: var(--primary);
    margin: 0;
}

.authority-article-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.authority-links-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E8E2D8;
}

.authority-links-row a {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--crimson);
    text-decoration: none;
}

.authority-links-row a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   CITIZENSHIP PAGE: AEO / GEO AI CITATION & COMPARISON TABLES
   ========================================================================== */
.cit-aeo-summary-section {
    background: #FBF9F5;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.cit-aeo-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 2px;
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-card);
}

.cit-aeo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cit-aeo-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: var(--primary);
    margin: 0 0 0.75rem;
}

.cit-aeo-lead {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 1.5rem;
}

.cit-statutory-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.statutory-cell {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.statutory-cell .stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.statutory-cell .stat-value {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 700;
}

.statutory-cell .stat-note {
    font-size: 0.75rem;
    color: #99030C;
    font-weight: 600;
}

/* Global Golden Visa Comparison Table */
.cit-table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
}

.cit-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 0.85rem;
    min-width: 760px;
}

.cit-comparison-table th,
.cit-comparison-table td {
    padding: 0.95rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cit-comparison-table thead th {
    background: var(--primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
}

.cit-comparison-table thead th.highlight-col {
    background: var(--crimson);
    color: #FFFFFF;
}

.cit-comparison-table tbody td.highlight-col {
    background: #FBF9F5;
    color: var(--primary);
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.cit-comparison-table tbody tr:hover {
    background: #F8FAFC;
}

/* Legal & 3-Year ROI Deep-Dive Grid */
.cit-legal-roi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.cit-deepdive-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 2px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.cit-deepdive-card.cit-roi-card {
    border-top-color: var(--gold);
}

.cit-card-overline {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.cit-card-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.cit-card-text {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.cit-protocol-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cit-protocol-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.protocol-num {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    background: var(--primary);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cit-protocol-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.cit-protocol-item p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.cit-roi-metrics-box {
    background: #FBF9F5;
    border: 1px solid #E8E2D8;
    border-radius: 2px;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.roi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #E8E2D8;
    color: var(--text);
}

.roi-row .roi-positive {
    color: #15803D;
}

.roi-row.roi-total-row {
    border-bottom: none;
    padding-top: 0.35rem;
    padding-bottom: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

.roi-row.roi-total-row strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--crimson);
}

.cit-roi-footnote {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Breakpoints for New Sections */
@media (max-width: 992px) {
    .cities-seo-cards-grid,
    .authority-articles-grid,
    .cit-statutory-matrix,
    .cit-legal-roi-grid {
        grid-template-columns: 1fr;
    }
    .video-passive-placeholder {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .city-seo-metrics-strip {
        grid-template-columns: 1fr;
    }
    .cities-seo-authority-section,
    .cit-aeo-box,
    .cit-deepdive-card {
        padding: 1.35rem;
    }
}




/* ==========================================================================
   GOOGLE ADSENSE SLOTS & ZERO CLS RESPONSIVE CONTAINERS
   ========================================================================== */
.ads-wrapper-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 1.75rem auto;
    position: relative;
    box-sizing: border-box;
    clear: both;
}

.ad-slot-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    user-select: none;
}

.ad-slot-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    background: transparent;
    overflow: hidden;
}

/* Specific Slot Refinements */
.ads-slot-ad_slider_top {
    margin: 0 auto;
    padding: 0.75rem 0;
    background: #fbf9f5;
    border-bottom: 1px solid #e8e2d8;
}

.ads-slot-ad_property_top {
    margin: 1rem 0;
}

.ads-slot-ad_property_start {
    margin: 1.5rem 0;
}

.ads-slot-ad_property_form_top {
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e8e2d8;
}

.ads-slot-ad_property_bottom {
    margin: 2.5rem auto 1.5rem;
    max-width: 1200px;
}

.ads-slot-ad_filter_top {
    margin: 0 0 1.25rem 0;
    max-width: 100%;
}

.ads-slot-ad_blog_in_article {
    margin: 2rem auto;
    padding: 1.25rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.ads-slot-ad_blog_sidebar {
    margin: 1.5rem 0 0 0;
}

.ads-slot-ad_footer_top {
    margin: 2.5rem auto 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e8e2d8;
    background: #fbf9f5;
}

.ads-infeed-card {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 4px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERFLOW & LAYOUT SHIFT PERFECTION
   ========================================================================== */
html {
    max-width: 100%;
    box-sizing: border-box;
}
body {
    overflow-x: clip; /* Fixes horizontal scroll while preserving position: sticky */
    max-width: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

/* Ensure sections do not exceed viewport width */
.site-header,
.top-bar,
.hero,
.detail-hero-section,
.detail-body-section,
.site-footer {
    max-width: 100%;
    box-sizing: border-box;
}

/* Images, SVGs, Videos, Iframes, Ads strictly responsive */
img, video, iframe, canvas, svg, ins.adsbygoogle, .ads-wrapper-slot {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ad slots protection against mobile blowout */
.ad-slot-inner {
    max-width: 100% !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    /* 1. Global Container Spacing */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* 2. Top Utility Bar */
    .top-bar-inner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
    .top-contact {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.65rem !important;
        font-size: 0.75rem !important;
    }
    .top-actions {
        justify-content: center !important;
        gap: 0.5rem !important;
    }

    /* 3. Sticky Navigation Header */
    .nav-inner {
        padding: 0.5rem 1rem !important;
    }
    .brand-logo-wrap {
        max-width: calc(100% - 90px) !important;
    }
    .brand-text-title {
        font-size: 1.05rem !important;
    }
    .brand-tagline {
        font-size: 0.55rem !important;
    }
    .header-list-btn {
        display: none !important;
    }

    /* 4. Property Detail Page Elements */
    .detail-property-title {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }
    .luxury-breadcrumb ol {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }
    .luxury-breadcrumb li.current {
        max-width: 180px !important;
    }
    .detail-header-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .detail-header-actions {
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    .specs-metric-card {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }
    .specs-metric-card .metric-cell {
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 0.5rem 0 !important;
    }
    .specs-metric-card .metric-cell:last-child {
        grid-column: span 2 !important;
        border-bottom: none !important;
    }

    /* 5. Developer Strip Card */
    .developer-strip-card {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    .dev-info-col {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.4rem !important;
    }
    .dev-price-col {
        border: none !important;
        border-top: 1px dashed var(--border) !important;
        border-bottom: 1px dashed var(--border) !important;
        padding: 0.65rem 0 !important;
    }
    .dev-action-col {
        width: 100% !important;
    }
    .dev-action-col .dev-cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* 6. Detail Layout & Sidebar Form */
    .detail-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .detail-follower-sidebar {
        position: static !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
    }

    /* 7. Gallery Thumbnails */
    .gallery-thumbs-row {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.35rem !important;
    }
    .gallery-thumb-cell {
        height: 60px !important;
    }

    /* 8. Rich Text Description Images & Tables */
    .panel-rich-text img {
        max-width: 100% !important;
        height: auto !important;
    }
    .panel-rich-text table {
        display: block !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (max-width: 480px) {
    .specs-metric-card {
        grid-template-columns: 1fr !important;
    }
    .specs-metric-card .metric-cell:last-child {
        grid-column: span 1 !important;
    }
    .gallery-thumb-cell {
        height: 48px !important;
    }
    .detail-badges-strip {
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
    }
}

/* ==========================================================================
   FULL-WIDTH LUXURY LAYOUT ARCHITECTURE & BOXED CONTENT CONTAINERS
   (Edge-to-edge section backgrounds, centered boxed content containers)
   ========================================================================== */
body {
    background-color: #FAFAF8 !important; /* Elegant architectural canvas across full viewport */
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* Modern overflow clipping: NEVER breaks position:sticky! */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh;
}

/* Full-width site wrapper (No outer gray box borders, 100% edge-to-edge) */
.site-boxed-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative;
    min-height: 100vh;
    overflow: visible; /* CRITICAL: Enables native viewport position:sticky tracking */
}

/* Content Container (Strictly Boxed & Centered at 1240px) */
.container {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box !important;
}
@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ==========================================================================
   PROPERTY DETAIL STICKY FOLLOWER SIDEBAR FORM (SLIDES SMOOTHLY WITH PAGE)
   ========================================================================== */
.detail-body-section {
    position: relative;
    overflow: visible !important;
}

.detail-grid-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 2.25rem !important;
    align-items: start !important; /* CRITICAL: Sidebar stops stretching to full height and starts following */
    width: 100% !important;
    position: relative !important;
    overflow: visible !important;
}

.detail-content-column {
    min-width: 0;
    position: relative;
}

.detail-follower-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 5.5rem !important; /* Floats smoothly right below sticky navbar */
    align-self: start !important;
    z-index: 30 !important;
    height: -moz-fit-content !important;
    height: fit-content !important;
    will-change: transform;
    overflow: visible !important;
}

.vip-follower-card {
    position: relative;
    background: var(--primary); /* #293F3D Dark Emerald */
    border: 1px solid var(--gold);
    border-radius: 4px;
    padding: 1.5rem 1.65rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

@media (max-width: 991px) {
    .detail-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .detail-follower-sidebar {
        position: static !important;
        top: auto !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   HIGH-END EDITORIAL & RICH TEXT TYPOGRAPHY (PROJECTS, BLOGS, PAGES)
   Transforms raw headings, lists, tables, quotes into luxury publication standard
   ========================================================================== */
.panel-rich-text,
.article-rich-body,
.static-page-content,
.detail-editorial-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    letter-spacing: -0.005em;
    word-break: break-word;
}

/* 1. Main Headings (H2) */
.panel-rich-text h2,
.article-rich-body h2,
.static-page-content h2,
.detail-editorial-text h2 {
    font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.35;
    color: #0F172A;
    margin: 2.75rem 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #D4A77A;
    letter-spacing: -0.02em;
    position: relative;
}
.panel-rich-text h2:first-child,
.article-rich-body h2:first-child,
.static-page-content h2:first-child {
    margin-top: 0.5rem;
}

/* 2. Sub-Headings (H3) */
.panel-rich-text h3,
.article-rich-body h3,
.static-page-content h3,
.detail-editorial-text h3 {
    font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
    font-weight: 700;
    line-height: 1.4;
    color: #1E293B;
    margin: 2.25rem 0 1rem 0;
    padding-left: 0.85rem;
    border-left: 3px solid #D4A77A;
    letter-spacing: -0.015em;
}

/* 3. Minor Headings (H4, H5, H6) */
.panel-rich-text h4,
.article-rich-body h4,
.static-page-content h4,
.detail-editorial-text h4,
.panel-rich-text h5,
.article-rich-body h5,
.static-page-content h5 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #293F3D;
    margin: 1.75rem 0 0.75rem 0;
}

/* 4. Paragraphs */
.panel-rich-text p,
.article-rich-body p,
.static-page-content p,
.detail-editorial-text p {
    margin-bottom: 1.4rem;
    line-height: 1.85;
    color: #334155;
}

/* 5. Unordered Lists (Custom Luxury Gold Diamond Bullets) */
.panel-rich-text ul,
.article-rich-body ul,
.static-page-content ul,
.detail-editorial-text ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.25rem 0 1.75rem 0 !important;
}
.panel-rich-text ul > li,
.article-rich-body ul > li,
.static-page-content ul > li,
.detail-editorial-text ul > li {
    position: relative !important;
    padding-left: 1.85rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.025rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}
.panel-rich-text ul > li::before,
.article-rich-body ul > li::before,
.static-page-content ul > li::before,
.detail-editorial-text ul > li::before {
    content: '' !important;
    position: absolute !important;
    left: 0.25rem !important;
    top: 0.65rem !important;
    width: 7px !important;
    height: 7px !important;
    background: #D4A77A !important;
    border-radius: 1px !important;
    transform: rotate(45deg) !important;
    box-shadow: 0 0 6px rgba(212, 167, 122, 0.45) !important;
}

/* 6. Ordered Lists (Numbered Luxury Badges) */
.panel-rich-text ol,
.article-rich-body ol,
.static-page-content ol,
.detail-editorial-text ol {
    counter-reset: luxury-list-counter !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 1.25rem 0 1.75rem 0 !important;
}
.panel-rich-text ol > li,
.article-rich-body ol > li,
.static-page-content ol > li,
.detail-editorial-text ol > li {
    counter-increment: luxury-list-counter !important;
    position: relative !important;
    padding-left: 2.5rem !important;
    margin-bottom: 0.85rem !important;
    font-size: 1.025rem !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}
.panel-rich-text ol > li::before,
.article-rich-body ol > li::before,
.static-page-content ol > li::before,
.detail-editorial-text ol > li::before {
    content: counter(luxury-list-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.15rem !important;
    width: 1.6rem !important;
    height: 1.6rem !important;
    background: #293F3D !important;
    color: #D4A77A !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(41, 63, 61, 0.25) !important;
}

/* 7. Blockquotes (Editorial VIP Pull-Quotes) */
.panel-rich-text blockquote,
.article-rich-body blockquote,
.static-page-content blockquote,
.detail-editorial-text blockquote {
    background: linear-gradient(135deg, #FAF8F5 0%, #F5F1EB 100%) !important;
    border-left: 4px solid #D4A77A !important;
    padding: 1.35rem 1.85rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 4px 4px 0 !important;
    font-style: italic !important;
    font-size: 1.1rem !important;
    line-height: 1.85 !important;
    color: #1E293B !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    position: relative;
}
.panel-rich-text blockquote p,
.article-rich-body blockquote p,
.static-page-content blockquote p {
    margin-bottom: 0.5rem !important;
    font-style: italic !important;
}
.panel-rich-text blockquote p:last-child,
.article-rich-body blockquote p:last-child,
.static-page-content blockquote p:last-child {
    margin-bottom: 0 !important;
}

/* 8. Tables (Institutional Luxury Standards) */
.panel-rich-text table,
.article-rich-body table,
.static-page-content table,
.detail-editorial-text table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 2rem 0 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}
.panel-rich-text table th,
.article-rich-body table th,
.static-page-content table th,
.detail-editorial-text table th {
    background: #293F3D !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    font-size: 0.85rem !important;
    padding: 0.9rem 1.15rem !important;
    border-bottom: 2px solid #D4A77A !important;
    text-align: left !important;
}
.panel-rich-text table td,
.article-rich-body table td,
.static-page-content table td,
.detail-editorial-text table td {
    padding: 0.85rem 1.15rem !important;
    border-bottom: 1px solid #F1F5F9 !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    vertical-align: middle !important;
}
.panel-rich-text table tbody tr:nth-child(even),
.article-rich-body table tbody tr:nth-child(even),
.static-page-content table tbody tr:nth-child(even) {
    background: #FAFAF9 !important;
}
.panel-rich-text table tbody tr:hover,
.article-rich-body table tbody tr:hover,
.static-page-content table tbody tr:hover {
    background: #F5F3EF !important;
}

/* 9. Strong / Bold Elements */
.panel-rich-text strong,
.panel-rich-text b,
.article-rich-body strong,
.article-rich-body b,
.static-page-content strong,
.static-page-content b {
    font-weight: 700;
    color: #0F172A;
}

/* 10. Links */
.panel-rich-text a,
.article-rich-body a,
.static-page-content a {
    color: var(--crimson);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
.panel-rich-text a:hover,
.article-rich-body a:hover,
.static-page-content a:hover {
    color: var(--gold);
    text-decoration-color: var(--gold);
}

/* 11. Subtle Luxury Dividers */
.panel-rich-text hr,
.article-rich-body hr,
.static-page-content hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(to right, transparent, #D4A77A, transparent) !important;
    margin: 2.5rem 0 !important;
}

/* ==========================================================================
   COMPLETELY REMOVE / DISABLE WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float,
[class*="whatsapp-float"],
#whatsappFloat,
.wa-float-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

/* ==========================================================================
   Responsive Grid & Article Media Protection
   ========================================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}
@media (max-width: 640px) {
    .properties-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}
@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .catalog-sidebar {
        position: static !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }
}
@media (max-width: 640px) {
    .catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .catalog-results-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
}

/* Guides / Citizenship Grids & Table */
.cit-hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    min-width: 0;
}
.cit-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
}
.cit-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
    width: 100%;
    min-width: 0;
}
.cit-calc-interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}
.cit-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
}
.cit-table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}
.cit-comparison-table {
    min-width: 680px;
}

@media (max-width: 991px) {
    .cit-hero-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }
    .cit-roadmap-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    .cit-calc-interactive-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 580px) {
    .cit-hero-metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .cit-benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .cit-docs-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Blog Listing Page */
.blog-categories-strip {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
}
.blog-categories-strip::-webkit-scrollbar {
    display: none;
}

/* Blog Detail Page & In-Article Media */
.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
}
.article-main-column {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}
.article-title-wrap {
    min-width: 0;
    max-width: 100%;
}
.article-main-title {
    font-size: clamp(1.4rem, 3.2vw, 2.3rem);
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}
.article-byline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    width: 100%;
}
.article-stats-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.article-share-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.article-hero-media {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.article-hero-media img,
.article-featured-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
}

/* Universal Article Rich Body Protection */
.article-rich-body,
.static-page-content,
.panel-rich-text {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}
.article-rich-body *,
.static-page-content *,
.panel-rich-text * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.article-rich-body img,
.static-page-content img,
.panel-rich-text img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
}
.article-rich-body figure,
.static-page-content figure,
.panel-rich-text figure {
    max-width: 100% !important;
    width: 100% !important;
    margin: 1.5rem 0 !important;
    overflow: hidden !important;
}
.article-rich-body figure img,
.static-page-content figure img,
.panel-rich-text figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
.article-rich-body figure figcaption,
.static-page-content figure figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.4rem;
}
.article-rich-body iframe,
.article-rich-body video,
.article-rich-body embed,
.article-rich-body object,
.static-page-content iframe,
.static-page-content video {
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    display: block;
    margin: 1.5rem 0;
}
.article-rich-body table,
.static-page-content table,
.panel-rich-text table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.article-rich-body pre,
.article-rich-body code,
.static-page-content pre,
.static-page-content code {
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
}
.article-rich-body .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 100% !important;
}
.article-rich-body .wp-block-column {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100% !important;
}

@media (max-width: 900px) {
    .blog-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .blog-detail-sidebar {
        position: static !important;
        margin-top: 2rem !important;
        width: 100% !important;
    }
    .cta-form-grid {
        grid-template-columns: 1fr !important;
    }
    .author-bio-box {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem 1.25rem !important;
    }
}

/* Ads Slot Overflow Prevention */
.ads-wrapper-slot,
.ad-slot-inner,
ins.adsbygoogle {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

