/*
Theme Name: WifeLife Sovereign
Template: hello-elementor
Description: Refined Luxury Editorial child theme for WifeLife
Version: 2.1.0
Author: WifeLife
Text Domain: wifelife-sovereign
*/

/* =========================================================
   WIFELIFE SOVEREIGN  —  Refined Luxury Editorial
   ========================================================= */

/* ---------- FOUNDATION ---------- */
:root {
    --sovereign: #a6915c;
    --sovereign-light: #bda774;
    --sovereign-dim: rgba(166, 145, 92, 0.18);
    --ink: #181818;
    --ink-soft: #3d3d3d;
    --canvas: #fefefe;
    --ease-luxe: cubic-bezier(0.25, 0.1, 0.25, 1);
}

::selection {
    background: var(--sovereign);
    color: var(--canvas);
}

/* Luxurious subtle texture on body background */
body {
    background-color: #fefefe;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.025) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* =========================================================
   GLOBAL SPARKLE EFFECT — Auto-applies to dark backgrounds
   ========================================================= */

/* Sparkle host container */
.sparkle-host {
    position: relative;
}

/* The sparkle element */
.sovereign-sparkle {
    position: absolute;
    pointer-events: none;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D4AF37;
    animation: sovereign-sparkle-pulse var(--sp-dur, 3s) ease-in-out var(--sp-delay, 0s) infinite;
    opacity: 0;
    z-index: 1;
}

/* Cross/plus shape for sparkle */
.sovereign-sparkle::before,
.sovereign-sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: inherit;
}

.sovereign-sparkle::before {
    width: 1px;
    height: 8px;
    opacity: 0.7;
}

.sovereign-sparkle::after {
    width: 8px;
    height: 1px;
    opacity: 0.7;
}

/* Size variants */
.sovereign-sparkle.sparkle-lg {
    width: 4px;
    height: 4px;
}

.sovereign-sparkle.sparkle-lg::before {
    height: 12px;
}

.sovereign-sparkle.sparkle-lg::after {
    width: 12px;
}

.sovereign-sparkle.sparkle-sm {
    width: 2px;
    height: 2px;
    background: rgba(212, 175, 55, 0.8);
}

.sovereign-sparkle.sparkle-sm::before {
    height: 5px;
}

.sovereign-sparkle.sparkle-sm::after {
    width: 5px;
}

/* Bright flare sparkles */
.sovereign-sparkle.sparkle-bright {
    background: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 4px 1px rgba(212, 175, 55, 0.18);
}

/* Animation */
@keyframes sovereign-sparkle-pulse {
    0%   { opacity: 0;    transform: scale(0.5);  }
    25%  { opacity: 0.32; transform: scale(1.05); }
    50%  { opacity: 0.12; transform: scale(0.9);  }
    75%  { opacity: 0.38; transform: scale(1.0);  }
    100% { opacity: 0;    transform: scale(0.5);  }
}

/* =========================================================
   WORDPRESS ADMIN BAR FIXES
   ========================================================= */

/* When logged in, adjust sticky header position */
.admin-bar .luxury-header {
    top: 32px;
}

.admin-bar .intel-bar {
    margin-top: 0;
}

/* Fix mobile nav panel position */
.admin-bar .mobile-nav-panel {
    top: 46px;
    height: calc(100vh - 46px);
}

.admin-bar .mobile-nav-overlay {
    top: 46px;
}

/* Fix search overlay */
.admin-bar .luxury-search-overlay {
    top: 32px;
    height: calc(100% - 32px);
}

/* Mobile admin bar adjustments */
@media (max-width: 782px) {
    .admin-bar .luxury-header {
        top: 46px;
    }

    .admin-bar .luxury-search-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }

    .admin-bar .mobile-nav-panel {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

/* When admin bar is hidden on scroll (some themes do this) */
@media (max-width: 600px) {
    .admin-bar .luxury-header {
        top: 0;
    }

    /* WP admin bar goes fixed on mobile at 600px */
    html.admin-bar {
        margin-top: 0 !important;
    }
}

/* Header Logo Size Fix - 200px */
.luxury-branding img,
.luxury-branding img.custom-logo,
.luxury-logo img,
.luxury-logo img.custom-logo {
    max-width: 200px !important;
    width: 200px !important;
    height: auto !important;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--canvas) !important;
    color: var(--ink);
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.015em;
    margin: 0;
    padding: 0;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--sovereign);
    font-weight: 400;
    letter-spacing: 0.03em;
    margin: 0 0 1.5rem 0;
}

.entry-title,
.page-title,
.asset-registry-title h1 {
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.95;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.06em;
    margin: 10vh 0;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    margin: 8vh 0 4vh;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 5vh 0 2vh;
}

p {
    max-width: 68ch;
    margin-bottom: 1.5em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.35s var(--ease-luxe);
}

a:hover {
    color: var(--sovereign);
}

/* ---------- LAYOUT ---------- */
.site-content,
.elementor-section-wrap,
.directorist-archive-contents {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Smooth flow from header map into content (homepage) */
.home .site-content,
.home.page .site-content,
body.home .elementor-section-wrap:first-of-type {
    padding-top: 4rem;
}

.directorist-listings-grid,
.evidence-gallery {
    gap: 3rem;
    margin-top: 8vh;
}

/* ---------- BUTTONS ---------- */
.btn-sovereign,
.directorist-listing-type-nav__link.active,
.directorist-pagination__link.current {
    background: var(--sovereign);
    color: var(--canvas);
    border: none;
    padding: 15px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 2px 12px rgba(166, 145, 92, 0.15);
}

.btn-sovereign:hover,
.directorist-listing-type-nav__link.active:hover {
    background: var(--sovereign-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(166, 145, 92, 0.25);
}

/* ---------- DIVIDERS ---------- */
.sovereign-divider,
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sovereign-dim), transparent);
    margin: 10vh auto;
    max-width: 280px;
}

/* ---------- IMAGES ---------- */
img {
    transition: opacity 0.5s var(--ease-luxe);
}

figure {
    margin: 0;
}

/* ---------- FOCUS STATES ---------- */
:focus-visible {
    outline: 2px solid var(--sovereign);
    outline-offset: 3px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .entry-title,
    .page-title,
    .asset-registry-title h1 {
        font-size: clamp(2.5rem, 11vw, 4rem);
        margin: 6vh 0;
        letter-spacing: 0.04em;
    }

    h2 {
        margin: 6vh 0 3vh;
    }

    .site-content {
        padding: 0 1.25rem;
    }
}
/* =========================================================
   FOOTER
   ========================================================= */

footer.site-footer,
.site-footer {
    display: block !important;
    margin-top: 12vh !important;
    background: var(--canvas) !important;
    border-top: 1px solid var(--sovereign-dim) !important;
    padding: 0 !important;
    position: relative !important;
}

.site-footer .footer-content,
footer.site-footer .footer-content {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 80px clamp(2rem, 6vw, 5rem) 60px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    text-align: center !important;
}

/* Footer branding */
.footer-branding {
    margin-bottom: 1rem !important;
}

.footer-branding img,
.footer-branding .custom-logo,
.footer-branding .custom-logo-link img {
    max-width: 180px !important;
    height: auto !important;
    opacity: 0.9 !important;
    transition: opacity 0.4s var(--ease-luxe) !important;
}

.footer-branding:hover img,
.footer-branding:hover .custom-logo {
    opacity: 1 !important;
}

.footer-site-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.75rem !important;
    color: var(--sovereign) !important;
    letter-spacing: 0.08em !important;
}

/* Footer disclaimer */
.footer-disclaimer {
    max-width: 540px !important;
    margin: 0 auto !important;
}

.footer-disclaimer p {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 300 !important;
    line-height: 1.7 !important;
    color: var(--ink-soft) !important;
    margin: 0 auto 0.75rem !important;
    max-width: none !important;
}

.footer-disclaimer strong {
    color: var(--sovereign) !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
}

/* Footer links */
.footer-links {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem 2.5rem !important;
    padding: 1.5rem 0 !important;
    border-top: 1px solid var(--sovereign-dim) !important;
    border-bottom: 1px solid var(--sovereign-dim) !important;
}

.footer-links a {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: var(--ink) !important;
    padding: 0.5rem 0 !important;
    position: relative !important;
    transition: color 0.35s var(--ease-luxe) !important;
}

.footer-links a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0.25rem !important;
    left: 0 !important;
    width: 0 !important;
    height: 1px !important;
    background: var(--sovereign) !important;
    transition: width 0.4s var(--ease-luxe) !important;
}

.footer-links a:hover {
    color: var(--sovereign) !important;
}

.footer-links a:hover::after {
    width: 100% !important;
}

/* Footer copyright */
.footer-copyright {
    display: block !important;
    background: var(--ink) !important;
    padding: 2.5rem clamp(2rem, 6vw, 5rem) !important;
    text-align: center !important;
}

.footer-copyright p {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 300 !important;
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 auto 0.6rem !important;
    max-width: 600px !important;
    line-height: 1.6 !important;
}

.footer-copyright p:first-child {
    color: var(--sovereign) !important;
    font-weight: 400 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    margin-bottom: 1rem !important;
}

.footer-copyright p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .site-footer .footer-content,
    footer.site-footer .footer-content {
        padding: 50px 1.5rem 40px !important;
        gap: 2rem !important;
    }

    .footer-links {
        gap: 0.5rem 1.5rem !important;
    }

    .footer-copyright {
        padding: 2rem 1.5rem !important;
    }
}
/* =========================================================
   LUXURY HEADER - ENHANCED
   ========================================================= */

/* Intelligence Bar (Statistics) */
.intel-bar {
    background: var(--ink);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intel-bar-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intel-bar-left,
.intel-bar-right {
    flex: 1;
}

.intel-bar-left {
    text-align: left;
}

.intel-bar-center {
    text-align: center;
}

.intel-bar-right {
    text-align: right;
}

.intel-bar .intel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sovereign);
}

.intel-bar .status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

.intel-bar .status-dot.pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.intel-bar .intel-timestamp {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.intel-bar .sighting-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 auto;
}

.intel-bar .sighting-counter .pulse-dot {
    display: none;
}

.intel-bar .sighting-count {
    color: var(--sovereign);
    font-weight: 600;
}

/* Main Header */
.luxury-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    /* Direct background instead of pseudo-element to avoid stacking issues */
    background: linear-gradient(180deg, rgba(250, 249, 247, 0.98) 0%, rgba(254, 254, 254, 0.95) 100%);
    border-bottom: none;
}

/* Remove ::before that was causing stacking context issues */
.luxury-header::before {
    display: none;
}

.luxury-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem clamp(1.5rem, 5vw, 3rem);
    gap: 2rem;
    position: relative;
}

/* Decorative Bottom Border */
.header-border-accent {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--sovereign-dim) 15%,
        var(--sovereign) 50%,
        var(--sovereign-dim) 85%,
        transparent 100%
    );
}

/* Header Scroll State */
.luxury-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: rgba(254, 254, 254, 0.98);
}

.luxury-header.scrolled .header-border-accent {
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════
   HOMEPAGE LOGO SHOWCASE
   ═══════════════════════════════════════════════ */
.logo-showcase {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #fdfcfa 0%, #faf8f4 100%);
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--sovereign-dim);
    overflow: hidden;
}

/* Sparkle particles around the logo */
.logo-showcase::before,
.logo-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.logo-showcase::before {
    background-image:
        radial-gradient(1.5px 1.5px at 15% 25%, rgba(212, 175, 55, 0.7) 50%, transparent 55%),
        radial-gradient(1px 1px at 85% 35%, rgba(212, 175, 55, 0.5) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 25% 70%, rgba(212, 175, 55, 0.6) 50%, transparent 55%),
        radial-gradient(1px 1px at 75% 15%, rgba(212, 175, 55, 0.4) 50%, transparent 55%),
        radial-gradient(2px 2px at 50% 10%, rgba(212, 175, 55, 0.5) 50%, transparent 55%),
        radial-gradient(1px 1px at 10% 50%, rgba(212, 175, 55, 0.6) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 90% 65%, rgba(212, 175, 55, 0.5) 50%, transparent 55%),
        radial-gradient(1px 1px at 35% 90%, rgba(212, 175, 55, 0.4) 50%, transparent 55%),
        radial-gradient(2px 2px at 65% 85%, rgba(212, 175, 55, 0.6) 50%, transparent 55%),
        radial-gradient(1px 1px at 45% 45%, rgba(255, 255, 255, 0.9) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 55% 55%, rgba(255, 255, 255, 0.8) 50%, transparent 55%),
        radial-gradient(1px 1px at 30% 30%, rgba(255, 255, 255, 0.7) 50%, transparent 55%);
    animation: sparkle-drift 6s ease-in-out infinite alternate;
}

.logo-showcase::after {
    background-image:
        radial-gradient(1px 1px at 20% 40%, rgba(212, 175, 55, 0.6) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(212, 175, 55, 0.5) 50%, transparent 55%),
        radial-gradient(1px 1px at 40% 80%, rgba(212, 175, 55, 0.4) 50%, transparent 55%),
        radial-gradient(2px 2px at 70% 50%, rgba(212, 175, 55, 0.7) 50%, transparent 55%),
        radial-gradient(1px 1px at 5% 85%, rgba(212, 175, 55, 0.5) 50%, transparent 55%),
        radial-gradient(1.5px 1.5px at 95% 45%, rgba(212, 175, 55, 0.4) 50%, transparent 55%),
        radial-gradient(1px 1px at 60% 15%, rgba(255, 255, 255, 0.8) 50%, transparent 55%),
        radial-gradient(1px 1px at 50% 75%, rgba(255, 255, 255, 0.6) 50%, transparent 55%);
    animation: sparkle-drift 8s ease-in-out 2s infinite alternate-reverse;
}

@keyframes sparkle-drift {
    0% {
        opacity: 0.4;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px) scale(1.02);
    }
    100% {
        opacity: 0.5;
        transform: translateY(2px) scale(0.98);
    }
}

.logo-showcase-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.showcase-logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s var(--ease-luxe);
}

.showcase-logo:hover {
    opacity: 0.85;
}

/* Large showcase logo image */
.showcase-logo img,
.showcase-logo .custom-logo-link img,
.showcase-logo .custom-logo {
    max-width: 380px !important;
    width: 380px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Text fallback for showcase */
.showcase-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.showcase-name {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.showcase-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sovereign);
}

/* ═══════════════════════════════════════════════
   HEADER LOGO ROW — centered above nav
   ═══════════════════════════════════════════════ */
.luxury-branding {
    display: flex;
    justify-content: center;
    padding: 1.25rem 2rem 0.5rem;
    border-bottom: 1px solid var(--sovereign-dim);
}

.luxury-branding .luxury-logo img,
.luxury-branding .luxury-logo .custom-logo,
.luxury-branding .custom-logo-link img,
.luxury-branding .custom-logo {
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .luxury-branding {
        padding: 1rem 1.5rem 0.5rem;
    }

    .luxury-branding .luxury-logo img,
    .luxury-branding .luxury-logo .custom-logo,
    .luxury-branding .custom-logo-link img,
    .luxury-branding .custom-logo {
        max-width: 160px !important;
        width: 160px !important;
    }
}

.luxury-logo {
    display: inline-block;
    transition: all 0.4s var(--ease-luxe);
}

.luxury-logo:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.luxury-logo-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-luxe);
}

.luxury-logo-text:hover {
    transform: translateY(-1px);
}

.luxury-logo-text .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sovereign);
    transition: transform 0.4s var(--ease-luxe);
}

.luxury-logo-text:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.luxury-logo-text .logo-text {
    display: flex;
    flex-direction: column;
}

.logo-primary {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.1;
    transition: color 0.3s ease;
}

.luxury-logo-text:hover .logo-primary {
    color: var(--sovereign);
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 0.25rem;
}

/* Navigation */
.luxury-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: static; /* Don't trap submenu positioning */
}

.luxury-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0 2.5rem;
    position: static; /* Submenu positions relative to li */
}

.luxury-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.luxury-menu a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    padding: 0.75rem 0;
    position: relative;
    transition: color 0.35s var(--ease-luxe);
}

.luxury-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--sovereign);
    transition: width 0.4s var(--ease-luxe);
}

.luxury-menu a:hover,
.luxury-menu .current-menu-item a {
    color: var(--sovereign);
}

.luxury-menu a:hover::after,
.luxury-menu .current-menu-item a::after {
    width: 100%;
}

/* Dropdown Menus */
.luxury-menu > li {
    position: relative;
}

.luxury-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    border-top: 2px solid var(--sovereign);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 12px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 99999; /* Above everything in header */
}

.luxury-menu li:hover > .sub-menu,
.luxury-menu li:focus-within > .sub-menu,
.luxury-menu li.hover-active > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.luxury-menu .sub-menu li {
    display: block;
}

.luxury-menu .sub-menu a {
    padding: 10px 24px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-bottom: none;
    white-space: nowrap;
}

.luxury-menu .sub-menu a::after {
    display: none;
}

.luxury-menu .sub-menu a:hover {
    background: var(--sovereign-dim);
    padding-left: 28px;
}

/* Header Actions */
.luxury-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.luxury-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.35s var(--ease-luxe);
}

.luxury-search-toggle:hover {
    border-color: var(--sovereign);
    color: var(--sovereign);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.luxury-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    gap: 4px;
    transition: all 0.3s ease;
}

.luxury-menu-toggle:hover {
    border-color: var(--sovereign);
}

.luxury-menu-toggle .hamburger-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.luxury-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.luxury-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.luxury-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Header CTA Button */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--ink);
    color: var(--canvas);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.35s var(--ease-luxe);
    border: 1px solid var(--ink);
}

.header-cta:hover {
    background: var(--sovereign);
    border-color: var(--sovereign);
    color: var(--canvas);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166, 145, 92, 0.25);
}

.header-cta .cta-arrow {
    transition: transform 0.3s ease;
}

.header-cta:hover .cta-arrow {
    transform: translateX(3px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 24, 24, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-luxe);
    z-index: 9998;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Panel */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--canvas);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-luxe);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-nav-panel.active {
    transform: translateX(0);
}

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

.mobile-nav-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sovereign);
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    border-color: var(--sovereign);
    color: var(--sovereign);
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--sovereign-dim);
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--sovereign-dim);
    color: var(--sovereign);
    padding-left: 2rem;
}

.mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(166, 145, 92, 0.05);
}

.mobile-menu .sub-menu a {
    padding-left: 2.5rem;
    font-size: 0.7rem;
    color: var(--ink-soft);
}

.mobile-menu .sub-menu a:hover {
    padding-left: 3rem;
    color: var(--sovereign);
}

.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--sovereign-dim);
    background: rgba(166, 145, 92, 0.03);
}

.mobile-cta {
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--ink);
    color: var(--canvas);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.mobile-cta:hover {
    background: var(--sovereign);
}

.mobile-social {
    text-align: center;
}

.mobile-social .social-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}

.mobile-social .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sovereign-dim);
    border-radius: 50%;
    color: var(--ink);
    transition: all 0.3s ease;
}

.mobile-social .social-links a:hover {
    border-color: var(--sovereign);
    color: var(--sovereign);
    transform: translateY(-2px);
}

/* Mobile Quiz Button */
.mobile-quiz a {
    background: linear-gradient(135deg, #a6915c 0%, #c9b57a 50%, #a6915c 100%);
    color: var(--canvas) !important;
    font-weight: 500 !important;
    margin: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.mobile-quiz a:hover {
    background: var(--ink);
    color: var(--canvas) !important;
    padding-left: 1.5rem !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166, 145, 92, 0.3);
}

/* Responsive Header */
@media (max-width: 1024px) {
    .header-cta .cta-text {
        display: none;
    }

    .header-cta {
        padding: 0.6rem;
    }

    .header-cta .cta-arrow {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 900px) {
    .luxury-nav {
        display: none;
    }

    .luxury-menu-toggle {
        display: flex;
    }

    .intel-bar-left,
    .intel-bar-right {
        display: none;
    }

    .intel-bar-inner {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .luxury-header-inner {
        padding: 0.75rem 1rem;
    }

    .luxury-branding .luxury-logo img,
    .luxury-branding .luxury-logo .custom-logo {
        max-width: 140px !important;
        width: 140px !important;
    }

    .logo-primary {
        font-size: 1.1rem;
    }

    .luxury-logo-text .logo-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Search Overlay */
.luxury-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 24, 24, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-luxe);
}

.luxury-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 2rem;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--canvas);
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.search-close:hover {
    opacity: 1;
}

.luxury-search-overlay form {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--sovereign);
    padding-bottom: 1rem;
}

.luxury-search-overlay input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--canvas);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    padding: 0;
}

.luxury-search-overlay input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.luxury-search-overlay input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.luxury-search-overlay button[type="submit"] {
    background: var(--sovereign);
    border: none;
    color: var(--canvas);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.35s var(--ease-luxe);
}

.luxury-search-overlay button[type="submit"]:hover {
    background: var(--sovereign-light);
}

/* Responsive */
@media (max-width: 900px) {
    .luxury-menu {
        gap: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .luxury-header-inner {
        padding: 1rem 1.25rem;
    }
    
    .luxury-menu-toggle {
        display: flex;
        order: -1;
    }
    
    .luxury-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--canvas);
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        transition: left 0.4s var(--ease-luxe);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    }
    
    .luxury-nav.active {
        left: 0;
    }
    
    .luxury-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    
    .luxury-menu li {
        width: 100%;
        border-bottom: 1px solid var(--sovereign-dim);
    }
    
    .luxury-menu a {
        padding: 1.25rem 0;
    }
    
    .luxury-menu .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--sovereign);
        display: none;
        padding-left: 1rem;
    }
    
    .luxury-menu li.submenu-open > .sub-menu {
        display: block;
    }
    
    .logo-primary {
        font-size: 1.25rem;
    }
}

/* =========================================================
   LEGACY HEADER STYLES (for backwards compatibility)
   ========================================================= */

#sovereign-estate-header,
#sovereign-estate-header.forensic-command-center,
header#sovereign-estate-header {
    display: block !important;
    background: linear-gradient(
        180deg,
        #faf9f7 0%,
        var(--canvas) 100%
    ) !important;
    border-bottom: 1px solid var(--sovereign-dim) !important;
    padding: 0 !important;
    position: relative !important;
    box-shadow: 0 1px 0 0 rgba(166, 145, 92, 0.08) !important;
}

#sovereign-estate-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 100%;
    background: radial-gradient(
        ellipse at center top,
        rgba(166, 145, 92, 0.04) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Intel bar */
.intel-bar {
    display: block !important;
    background: var(--ink) !important;
    padding: 0.6rem 2rem !important;
    text-align: center !important;
}

.intel-bar .sighting-counter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.intel-bar .pulse-dot {
    width: 6px !important;
    height: 6px !important;
}

/* Logo */
.crown-embossed-logo {
    display: block !important;
    text-align: center !important;
    padding: 3rem 2rem !important;
    background: transparent !important;
    position: relative !important;
}

.crown-embossed-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--sovereign) 50%,
        transparent 100%
    );
    opacity: 0.4;
}

.crown-embossed-logo a {
    display: inline-block !important;
    transition: opacity 0.4s var(--ease-luxe) !important;
}

.crown-embossed-logo a:hover {
    opacity: 0.75 !important;
}

.crown-embossed-logo img,
.crown-embossed-logo .custom-logo,
.crown-embossed-logo .custom-logo-link img {
    width: 250px !important;
    max-width: 100% !important;
    height: auto !important;
}

.crown-embossed-logo h1 {
    margin: 0 !important;
    font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.crown-embossed-logo h1 a {
    color: var(--sovereign) !important;
}

.crown-embossed-logo h1 a:hover {
    color: var(--sovereign-light) !important;
}

/* Navigation */
#sovereign-navigation,
#sovereign-navigation.forensic-menu,
nav.forensic-menu {
    display: block !important;
    border-top: none !important;
    padding: 0.25rem 2rem !important;
    background: linear-gradient(
        180deg,
        rgba(250, 249, 247, 0.5) 0%,
        var(--canvas) 100%
    ) !important;
    position: relative !important;
}

#sovereign-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--sovereign-dim) 50%,
        transparent 100%
    );
}

ul.sovereign-nav-list,
.sovereign-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0 3rem !important;
}

.sovereign-nav-list li,
ul.sovereign-nav-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sovereign-nav-list a,
.sovereign-nav-list li a,
ul.sovereign-nav-list li a {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: var(--ink) !important;
    padding: 1.25rem 0 !important;
    position: relative !important;
    transition: color 0.35s var(--ease-luxe) !important;
}

.sovereign-nav-list a::after,
.sovereign-nav-list li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--sovereign) !important;
    transition: width 0.4s var(--ease-luxe) !important;
}

.sovereign-nav-list a:hover,
.sovereign-nav-list li a:hover,
.sovereign-nav-list .current-menu-item a,
.sovereign-nav-list li.current-menu-item a {
    color: var(--sovereign) !important;
}

.sovereign-nav-list a:hover::after,
.sovereign-nav-list li a:hover::after,
.sovereign-nav-list .current-menu-item a::after,
.sovereign-nav-list li.current-menu-item a::after {
    width: 100% !important;
}

/* Dropdown/Submenu Styles */
.sovereign-nav-list li.menu-item-has-children {
    position: relative !important;
}

.sovereign-nav-list li.menu-item-has-children > a::before {
    content: '' !important;
    position: absolute !important;
    right: -14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 4px solid currentColor !important;
    transition: transform 0.3s ease !important;
}

.sovereign-nav-list li.menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg) !important;
}

.sovereign-nav-list .sub-menu,
.sovereign-nav-list ul.sub-menu {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: var(--canvas) !important;
    border: 1px solid var(--sovereign-dim) !important;
    border-top: 2px solid var(--sovereign) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    min-width: 200px !important;
    padding: 12px 0 !important;
    list-style: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
    z-index: 1000 !important;
}

.sovereign-nav-list li.menu-item-has-children:hover > .sub-menu,
.sovereign-nav-list li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.sovereign-nav-list .sub-menu li {
    display: block !important;
    margin: 0 !important;
}

.sovereign-nav-list .sub-menu li a {
    display: block !important;
    padding: 10px 24px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
    color: var(--ink) !important;
    border-bottom: none !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
}

.sovereign-nav-list .sub-menu li a::after {
    display: none !important;
}

.sovereign-nav-list .sub-menu li a:hover {
    background: var(--sovereign-dim) !important;
    color: var(--sovereign) !important;
    padding-left: 28px !important;
}

@media (max-width: 768px) {
    .intel-bar {
        padding: 0.5rem 1rem !important;
    }

    .crown-embossed-logo {
        padding: 2rem 1rem !important;
    }

    .crown-embossed-logo img,
    .crown-embossed-logo .custom-logo,
    .crown-embossed-logo .custom-logo-link img {
        width: 180px !important;
    }

    #sovereign-navigation,
    nav.forensic-menu {
        padding: 0 1rem !important;
    }

    .sovereign-nav-list,
    ul.sovereign-nav-list {
        gap: 0 1.5rem !important;
    }

    .sovereign-nav-list a,
    .sovereign-nav-list li a {
        padding: 1rem 0 !important;
        font-size: 0.65rem !important;
    }

    /* Mobile dropdown - keep hidden until clicked */
    .sovereign-nav-list li.menu-item-has-children {
        position: relative;
    }

    .sovereign-nav-list .sub-menu {
        position: absolute !important;
        left: 0 !important;
        transform: translateX(0) translateY(10px) !important;
        min-width: 180px !important;
        background: var(--canvas) !important;
        display: block !important;
    }

    .sovereign-nav-list li.menu-item-has-children:hover > .sub-menu,
    .sovereign-nav-list li.menu-item-has-children:focus-within > .sub-menu {
        transform: translateX(0) translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .sovereign-nav-list .sub-menu li a {
        padding: 8px 16px !important;
        font-size: 0.65rem !important;
    }
}

/* =========================================================
   CARDS & LISTINGS
   ========================================================= */

.directorist-single-listing,
.evidence-card,
article.type-post {
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    transition: border-color 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe);
}

.directorist-single-listing:hover,
.evidence-card:hover,
article.type-post:hover {
    border-color: rgba(166, 145, 92, 0.35);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   FORMS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--ink);
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    padding: 14px 18px;
    transition: border-color 0.35s var(--ease-luxe), box-shadow 0.35s var(--ease-luxe);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--sovereign);
    box-shadow: 0 0 0 3px rgba(166, 145, 92, 0.1);
}

::placeholder {
    color: #999;
    font-weight: 300;
}

/* =========================================================
   UTILITIES
   ========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   SPECIAL ELEMENTS
   ========================================================= */

/* Dropcap */
.forensic-dropcap {
    float: left;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4.5rem;
    line-height: 0.8;
    color: var(--sovereign);
    padding: 0.1em 0.15em 0 0;
    margin-top: 0.05em;
}

/* Live counter */
.sighting-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0.75rem 1.25rem;
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sovereign-dim);
}

.pulse-dot.active {
    background: var(--sovereign);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.15); }
}

/* =========================================================
   SCROLLBAR (Webkit)
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--canvas);
}

::-webkit-scrollbar-thumb {
    background: var(--sovereign-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sovereign);
}

/* =========================================================
   SOVEREIGN WAR MAP — Forensic Jurisdiction Visualization
   ========================================================= */

/* Full-width map container */
.directorist-map-wrapper,
.directorist-archive-map,
#directorist-map,
.atbdp-body .atbdp-map,
.directorist-content-area.directorist-map-view {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
}

.directorist-map-wrapper .gm-style,
#directorist-map .gm-style {
    height: 600px !important;
    background: var(--ink) !important;
}

@media (max-width: 768px) {
    .directorist-map-wrapper .gm-style,
    #directorist-map .gm-style {
        height: 400px !important;
    }
}

/* ---------- SOVEREIGN CROWN MARKERS ---------- */

/* Override default Google Maps markers with Crown SVG */
.directorist-map-wrapper img[src*="marker"],
.directorist-map-wrapper .gm-style img[src*="spotlight"],
#directorist-map img[src*="marker"],
.gm-style div[style*="marker"] img {
    filter: none !important;
}

/* Custom marker container */
.sovereign-marker,
.directorist-map-marker,
.atbdp-marker-cluster div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: var(--sovereign) !important;
    border: 2px solid var(--canvas) !important;
    border-radius: 50% 50% 50% 0 !important;
    transform: rotate(-45deg) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(166, 145, 92, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s var(--ease-luxe) !important;
    cursor: pointer !important;
}

.sovereign-marker::before,
.directorist-map-marker::before {
    content: '♛' !important;
    font-size: 18px !important;
    color: var(--canvas) !important;
    transform: rotate(45deg) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.sovereign-marker:hover,
.directorist-map-marker:hover {
    transform: rotate(-45deg) scale(1.15) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(166, 145, 92, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    background: var(--sovereign-light) !important;
}

/* ---------- MARKER CLUSTERS ---------- */

.marker-cluster,
.atbdp-marker-cluster,
.directorist-marker-cluster {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%) !important;
    border: 3px solid var(--sovereign) !important;
    border-radius: 50% !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(166, 145, 92, 0.2),
        inset 0 0 20px rgba(166, 145, 92, 0.1) !important;
    transition: all 0.3s var(--ease-luxe) !important;
}

.marker-cluster span,
.atbdp-marker-cluster span,
.directorist-marker-cluster span {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--sovereign) !important;
    text-shadow: 0 0 10px rgba(166, 145, 92, 0.5) !important;
}

.marker-cluster:hover,
.atbdp-marker-cluster:hover {
    transform: scale(1.1) !important;
    border-color: var(--sovereign-light) !important;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 0 6px rgba(166, 145, 92, 0.3) !important;
}

/* ---------- INFO WINDOW (Marker Popup) ---------- */

.gm-style-iw,
.gm-style-iw-c {
    background: var(--ink) !important;
    border: 1px solid var(--sovereign) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(166, 145, 92, 0.3) !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 20px 24px !important;
}

.gm-style-iw-tc::after {
    background: var(--ink) !important;
    border-left: 1px solid var(--sovereign) !important;
    border-bottom: 1px solid var(--sovereign) !important;
}

/* Info window close button */
.gm-style-iw button.gm-ui-hover-effect {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    opacity: 0.6 !important;
    transition: opacity 0.3s ease !important;
}

.gm-style-iw button.gm-ui-hover-effect:hover {
    opacity: 1 !important;
}

.gm-style-iw button.gm-ui-hover-effect img {
    filter: invert(1) sepia(1) saturate(3) hue-rotate(15deg) !important;
}

/* Info window content */
.directorist-map-info-window,
.atbdp-listings-map-popup {
    min-width: 240px !important;
}

.directorist-map-info-window h4,
.atbdp-listings-map-popup h4,
.directorist-map-info-window .listing-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.1rem !important;
    color: var(--sovereign) !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0.03em !important;
}

.directorist-map-info-window p,
.atbdp-listings-map-popup p,
.directorist-map-info-window .listing-address {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.5 !important;
}

.directorist-map-info-window a,
.atbdp-listings-map-popup a {
    display: inline-block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--ink) !important;
    background: var(--sovereign) !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    transition: all 0.3s var(--ease-luxe) !important;
}

.directorist-map-info-window a:hover,
.atbdp-listings-map-popup a:hover {
    background: var(--sovereign-light) !important;
}

/* ---------- MAP CONTROLS ---------- */

.gm-style .gm-style-mtc,
.gm-style .gmnoprint {
    filter: invert(0.9) hue-rotate(180deg) !important;
}

.gm-style .gm-style-cc {
    opacity: 0.5 !important;
}

/* Zoom controls */
.gm-style .gm-bundled-control button {
    background: var(--ink) !important;
    border: 1px solid var(--sovereign-dim) !important;
    transition: all 0.3s ease !important;
}

.gm-style .gm-bundled-control button:hover {
    border-color: var(--sovereign) !important;
}

/* ---------- SNAZZY MAP JSON (Apply via Directorist Settings) ---------- */
/*
 * Paste this JSON into Directorist > Settings > Maps > Custom Map Style:
 *
 * [{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#a6915c"},{"lightness":60}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#a6915c"},{"lightness":40},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#181818"},{"lightness":17}]}]
 */

/* ---------- JURISDICTION LEGEND ---------- */

.sovereign-map-legend {
    position: absolute !important;
    bottom: 24px !important;
    left: 24px !important;
    background: rgba(24, 24, 24, 0.95) !important;
    border: 1px solid var(--sovereign) !important;
    padding: 16px 20px !important;
    z-index: 100 !important;
    backdrop-filter: blur(8px) !important;
}

.sovereign-map-legend h5 {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.6rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--sovereign) !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(166, 145, 92, 0.3) !important;
}

.sovereign-map-legend ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sovereign-map-legend li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 4px 0 !important;
}

.sovereign-map-legend .legend-marker {
    width: 12px !important;
    height: 12px !important;
    background: var(--sovereign) !important;
    border-radius: 50% !important;
    border: 2px solid var(--canvas) !important;
    box-shadow: 0 0 0 1px var(--sovereign) !important;
}

/* Franchise-specific legend colors */
.sovereign-map-legend .legend-marker.rhoa { background: #FF6B6B !important; }
.sovereign-map-legend .legend-marker.rhoslc { background: #4ECDC4 !important; }
.sovereign-map-legend .legend-marker.rhop { background: #9B59B6 !important; }
.sovereign-map-legend .legend-marker.rhobh { background: #F1C40F !important; }
.sovereign-map-legend .legend-marker.rhony { background: #E74C3C !important; }
.sovereign-map-legend .legend-marker.rhom { background: #1ABC9C !important; }

/* =========================================================
   COMMAND CENTER (HOMEPAGE)
   ========================================================= */

.command-center {
    overflow-x: hidden;
}

/* Map to Content Transition - Smooth fade from dark map to content */
.map-to-content-fade {
    position: relative;
    height: 120px;
    margin-top: -120px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--ink) 100%
    );
    z-index: 10;
    pointer-events: none;
}

/* Executive Briefing - Hero Section after Map */
.executive-briefing {
    position: relative;
    background: var(--ink);
    padding: 4rem 2rem 6rem;
    overflow: hidden;
}

.executive-briefing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(166, 145, 92, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(166, 145, 92, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.briefing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.briefing-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.classification-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--sovereign);
    border: 1px solid rgba(166, 145, 92, 0.4);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.sovereign-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--canvas);
    line-height: 1;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.02em;
}

.sovereign-title em {
    font-style: italic;
    color: var(--sovereign);
}

.briefing-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 450px;
}

.briefing-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-dossier {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--sovereign);
    color: var(--ink);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.35s var(--ease-luxe);
}

.btn-dossier:hover {
    background: var(--sovereign-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(166, 145, 92, 0.3);
}

.btn-dossier .btn-icon {
    display: flex;
}

.btn-secondary-ghost {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.75rem;
    background: transparent;
    color: var(--canvas);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s var(--ease-luxe);
}

.btn-secondary-ghost:hover {
    border-color: var(--sovereign);
    color: var(--sovereign);
}

/* Featured Story Card */
.briefing-right {
    display: flex;
    align-items: center;
}

.featured-story-card {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.featured-story-card .story-link {
    display: block;
    text-decoration: none;
}

.featured-story-card .story-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.featured-story-card .story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-luxe);
}

.featured-story-card:hover .story-image {
    transform: scale(1.05);
}

.featured-story-card .story-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 30%,
        rgba(24, 24, 24, 0.9) 100%
    );
}

.featured-story-card .story-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.featured-story-card .story-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.featured-story-card .story-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--sovereign);
    background: rgba(166, 145, 92, 0.2);
    padding: 0.25rem 0.5rem;
}

.featured-story-card .story-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.featured-story-card .story-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--canvas);
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
}

.featured-story-card .story-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.featured-story-card .story-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--sovereign);
    text-transform: uppercase;
}

.featured-story-card .story-cta svg {
    transition: transform 0.3s ease;
}

.featured-story-card:hover .story-cta svg {
    transform: translateX(4px);
}

/* Corner accents */
.featured-story-card .story-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(166, 145, 92, 0.4);
    z-index: 3;
}

.featured-story-card .story-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.featured-story-card .story-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.featured-story-card .story-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.featured-story-card .story-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* Responsive Executive Briefing */
@media (max-width: 1024px) {
    .briefing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .briefing-right {
        order: -1;
    }

    .featured-story-card .story-image-wrap {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .executive-briefing {
        padding: 3rem 1.5rem 4rem;
    }

    .sovereign-title {
        font-size: 2.5rem;
    }

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

    .btn-dossier,
    .btn-secondary-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* Hero Section */
.hero-sovereign {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #020B13 0%, #1a1a1a 50%, #020B13 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 11, 19, 0.7) 0%,
        rgba(2, 11, 19, 0.5) 50%,
        rgba(2, 11, 19, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-classification {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--sovereign);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    color: #fff;
    line-height: 0.9;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--sovereign);
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    max-width: 100%;
}

/* Glassmorphism Search */
.sovereign-search-wrap {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem 2.5rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.sovereign-search-wrap .directorist-search-form input,
.sovereign-search-wrap .directorist-search-form select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #fff !important;
}

.sovereign-search-wrap .directorist-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.sovereign-search-wrap .directorist-search-form button {
    background: var(--sovereign) !important;
    border: none !important;
    color: #020B13 !important;
    font-weight: 500 !important;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator svg {
    stroke: var(--sovereign);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Franchise Cards */
.jurisdictions-grid {
    padding: 10vh clamp(2rem, 5vw, 4rem);
    background: var(--canvas);
}

.section-header {
    text-align: center;
    margin-bottom: 6vh;
}

.section-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--sovereign);
    margin-bottom: 1rem;
}

.franchise-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.franchise-card {
    position: relative;
    display: block;
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    padding: 2.5rem 2rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s var(--ease-luxe);
}

.franchise-card:hover {
    border-color: var(--sovereign);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.franchise-card .card-inner {
    position: relative;
    z-index: 1;
}

.franchise-code {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--sovereign);
    margin-bottom: 0.75rem;
}

.franchise-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: var(--ink);
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.franchise-card:hover .franchise-name {
    color: var(--sovereign);
}

.franchise-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--ink-soft);
    margin: 0 0 1.5rem 0;
}

.franchise-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ink-soft);
}

.card-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--sovereign);
    transition: width 0.5s var(--ease-luxe);
}

.franchise-card:hover .card-hover-line {
    width: 100%;
}

/* Latest Intel */
.latest-intel {
    padding: 10vh clamp(2rem, 5vw, 4rem);
    background: #f9f9f9;
}

.intel-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 6vh;
}

/* Intel Status Bar */
.intel-status-bar {
    background: var(--ink);
    padding: 2rem;
    text-align: center;
}

/* =========================================================
   GLOBAL REGISTRY (ALL LISTINGS)
   ========================================================= */

.global-registry {
    background: var(--canvas);
}

.registry-header {
    background: var(--ink);
    padding: 8vh clamp(2rem, 5vw, 4rem) 6vh;
    text-align: center;
}

.registry-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--sovereign);
    margin: 0.5rem 0;
}

.registry-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.registry-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 200px);
}

/* Filters Sidebar */
.registry-filters {
    background: #f5f5f5;
    border-right: 1px solid var(--sovereign-dim);
    padding: 2rem;
}

.filters-inner {
    position: sticky;
    top: 2rem;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--sovereign-dim);
}

.filters-title svg {
    stroke: var(--sovereign);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}

.sovereign-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sovereign-select:focus {
    outline: none;
    border-color: var(--sovereign);
}

.btn-filter-apply {
    width: 100%;
    margin-top: 1rem;
}

.btn-reset-filters {
    width: 100%;
    margin-top: 0.75rem;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 0.75rem;
    transition: color 0.3s ease;
}

.btn-reset-filters:hover {
    color: var(--sovereign);
}

/* Split View */
.registry-main {
    padding: 2rem;
}

.registry-split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: calc(100vh - 300px);
    min-height: 600px;
}

.registry-listings {
    overflow-y: auto;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--sovereign-dim);
}

.results-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}

.view-toggles {
    display: flex;
    gap: 0.5rem;
}

.view-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:hover,
.view-toggle.active {
    background: var(--sovereign);
    border-color: var(--sovereign);
}

.view-toggle:hover svg,
.view-toggle.active svg {
    stroke: var(--canvas);
}

.view-toggle svg {
    stroke: var(--ink-soft);
    transition: stroke 0.3s ease;
}

.registry-map {
    position: relative;
    border: 1px solid var(--sovereign-dim);
}

.map-container {
    height: 100%;
}

@media (max-width: 1024px) {
    .registry-container {
        grid-template-columns: 1fr;
    }

    /* Hide sidebar on mobile — toggled open via JS */
    .registry-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: min(340px, 90vw);
        height: 100%;
        z-index: 1100;
        border-right: none;
        border-bottom: none;
        overflow-y: auto;
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.25);
        padding: 0;
    }

    .registry-filters.is-open {
        display: block;
    }

    .filters-inner {
        padding: 28px;
        min-height: 100%;
        border-radius: 0;
        border: none;
    }

    /* Backdrop overlay */
    .mobile-filter-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(2, 11, 19, 0.7);
        z-index: 1099;
    }

    .mobile-filter-backdrop.is-open {
        display: block;
    }

    /* Mobile filter toggle button */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 20px clamp(16px, 4vw, 40px);
        padding: 12px 20px;
        background: var(--ink);
        color: var(--sovereign);
        border: 1px solid var(--sovereign-dim);
        font-family: 'Inter', sans-serif;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .mobile-filter-toggle:hover {
        background: var(--sovereign);
        color: var(--ink);
    }

    /* Close button inside filter panel */
    .mobile-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        background: none;
        border: none;
        padding: 4px;
        cursor: pointer;
        color: var(--ink-soft);
        transition: color 0.2s ease;
    }

    .mobile-filter-close:hover {
        color: var(--ink);
    }

    .registry-split-view {
        grid-template-columns: 1fr;
        height: auto;
    }

    .registry-map {
        height: 400px;
    }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 1025px) {
    .mobile-filter-toggle,
    .mobile-filter-backdrop,
    .mobile-filter-close {
        display: none;
    }
}

/* =========================================================
   MOSAIC GALLERY
   ========================================================= */

.mosaic-gallery {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--ink);
}

.mosaic-grid {
    display: grid;
    gap: 4px;
    max-height: 70vh;
    overflow: hidden;
}

/* 1 Image */
.mosaic-1 {
    grid-template-columns: 1fr;
}

/* 2 Images */
.mosaic-2 {
    grid-template-columns: 1fr 1fr;
}

/* 3 Images */
.mosaic-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.mosaic-3 .mosaic-primary {
    grid-row: span 2;
}

/* 4 Images */
.mosaic-4 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.mosaic-4 .mosaic-primary {
    grid-row: span 2;
}

/* 5 Images (Magazine Layout) */
.mosaic-5 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.mosaic-5 .mosaic-primary {
    grid-row: span 2;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-luxe), filter 0.4s ease;
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

.mosaic-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mosaic-item:hover::after {
    opacity: 1;
}

.mosaic-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--sovereign);
    z-index: 1;
}

@media (max-width: 768px) {
    .mosaic-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        max-height: none;
    }

    .mosaic-primary,
    .mosaic-secondary {
        grid-row: auto !important;
        grid-column: auto !important;
    }

    .mosaic-item {
        height: 250px;
    }

    .mosaic-primary {
        height: 350px;
    }
}

/* =========================================================
   FORENSIC DOSSIER (SINGLE LISTING)
   ========================================================= */

.dossier-single {
    background: var(--canvas);
}

.dossier-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem clamp(2rem, 5vw, 4rem);
}

/* Main Content */
.dossier-main {
    min-width: 0;
}

.dossier-header {
    margin-bottom: 3rem;
}

.verified-seal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--sovereign) 0%, #d4af37 100%);
    color: var(--ink);
    padding: 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(212, 175, 55, 0.2); }
}

.verified-seal .seal-icon {
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dossier-classification {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--sovereign);
    margin-bottom: 1rem;
}

.dossier-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--ink);
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.dossier-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.meta-jurisdiction {
    color: var(--sovereign);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.meta-jurisdiction:hover {
    opacity: 0.7;
}

.meta-divider {
    color: var(--sovereign-dim);
}

/* Content Sections */
.dossier-content,
.curator-analysis,
.affiliate-bridge {
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--sovereign);
    margin: 0 0 1.5rem 0;
}

.section-title svg {
    stroke: var(--sovereign);
}

.content-body {
    font-size: 1.05rem;
    line-height: 1.85;
}

/* Embossed Card Effect */
.embossed-card {
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    padding: 2rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.03);
}

.analysis-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink-soft);
}

.analysis-attribution {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sovereign-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
}

/* Affiliate Section */
.affiliate-intro {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

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

.affiliate-item {
    text-align: center;
}

.affiliate-img {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid var(--sovereign-dim);
    margin-bottom: 0.75rem;
}

.affiliate-name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.affiliate-price {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--sovereign);
}

.affiliate-disclosure {
    font-size: 0.75rem;
    color: var(--ink-soft);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.affiliate-disclosure a {
    color: var(--sovereign);
}

/* Enhanced Affiliate Grid */
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.affiliate-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    padding: 1rem;
    transition: all 0.4s var(--ease-luxe);
    position: relative;
}

.affiliate-item:hover {
    border-color: var(--sovereign);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.affiliate-item .affiliate-img {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.affiliate-item .affiliate-brand {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sovereign);
    margin-bottom: 0.25rem;
}

.affiliate-item .affiliate-name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.affiliate-item .affiliate-price {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sovereign);
    margin-top: auto;
}

.affiliate-item .affiliate-price del {
    color: var(--ink-soft);
    font-weight: 400;
    margin-right: 0.5rem;
}

/* Hover tooltip — only on real pointer devices, never on touch */
@media (hover: hover) and (pointer: fine) {
    .affiliate-item[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--ink);
        color: var(--canvas);
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
        white-space: normal;
        max-width: 200px;
        z-index: 10;
        pointer-events: none;
        opacity: 0;
        animation: fadeIn 0.3s forwards;
        border: 1px solid var(--sovereign);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Sponsored badge */
.affiliate-item::before {
    content: 'AD';
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    z-index: 1;
}

/* Sidebar */
.dossier-sidebar {
    min-width: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

.intel-card {
    margin-bottom: 1.5rem;
}

.intel-card .card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sovereign);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sovereign-dim);
}

.intel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.intel-row:last-child {
    border-bottom: none;
}

.intel-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--ink-soft);
}

.intel-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
}

.intel-value.price {
    color: var(--sovereign);
    font-size: 1rem;
}

.intel-value.status.verified {
    color: #2ecc71;
}

.intel-value.status.pending {
    color: #f39c12;
}

.rating-stars {
    margin-left: 0.5rem;
}

.rating-stars .star {
    color: #ddd;
    font-size: 0.7rem;
}

.rating-stars .star.filled {
    color: var(--sovereign);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.contact-row svg {
    flex-shrink: 0;
    stroke: var(--sovereign);
    margin-top: 2px;
}

.contact-row a {
    color: var(--sovereign);
}

.jurisdiction-card {
    display: block;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s var(--ease-luxe);
}

.jurisdiction-card:hover {
    border-color: var(--sovereign);
    transform: translateY(-2px);
}

.jurisdiction-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sovereign);
    margin-bottom: 0.5rem;
}

.jurisdiction-name {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.jurisdiction-count {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--ink-soft);
}

@media (max-width: 1024px) {
    .dossier-container {
        grid-template-columns: 1fr;
    }

    .dossier-sidebar {
        order: -1;
    }

    .sticky-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .intel-card {
        margin-bottom: 0;
    }
}

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

/* =========================================================
   JURISDICTION HUB (CITY PAGES)
   ========================================================= */

.jurisdiction-hub {
    background: var(--canvas);
}

.jurisdiction-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 6vh clamp(2rem, 5vw, 4rem);
    overflow: hidden;
}

.jurisdiction-hero .hero-backdrop {
    position: absolute;
    inset: 0;
}

.jurisdiction-hero .hero-backdrop.monotone img {
    filter: grayscale(100%) contrast(1.1);
}

.jurisdiction-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jurisdiction-hero .hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.jurisdiction-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.jurisdiction-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.jurisdiction-code {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--sovereign);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--sovereign);
    margin-bottom: 1.5rem;
}

.jurisdiction-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.jurisdiction-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Quick Stats */
.jurisdiction-stats {
    background: var(--ink);
    padding: 4rem clamp(2rem, 5vw, 4rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-card {
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-value {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--sovereign);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

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

/* Listings Section */
.jurisdiction-listings {
    padding: 8vh clamp(2rem, 5vw, 4rem);
}

.jurisdiction-listings .listings-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Map Section */
.jurisdiction-map-section {
    padding: 0 0 8vh;
}

.map-container-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 500px;
}

/* =========================================================
   GLASSMORPHISM UTILITY
   ========================================================= */

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */

.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-luxe);
}

.reveal-fade.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s var(--ease-luxe);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.sovereign-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--sovereign);
    color: var(--sovereign);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--sovereign);
    color: var(--ink);
}

/* =========================================================
   DIRECTORIST OVERRIDES
   ========================================================= */

/* Search form styling */
.directorist-search-form .directorist-search-form__box,
.directorist-search-form .directorist-search-field {
    border: 1px solid var(--sovereign-dim) !important;
    border-radius: 0 !important;
}

.directorist-search-form .directorist-search-field:focus {
    border-color: var(--sovereign) !important;
    box-shadow: 0 0 0 3px rgba(166, 145, 92, 0.1) !important;
}

.directorist-search-form .directorist-btn-primary,
.directorist-search-form button[type="submit"] {
    background: var(--sovereign) !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    transition: all 0.3s var(--ease-luxe) !important;
}

.directorist-search-form .directorist-btn-primary:hover,
.directorist-search-form button[type="submit"]:hover {
    background: var(--sovereign-light) !important;
}

/* Listing cards */
.directorist-listing-single,
.directorist-listing-card {
    border: 1px solid var(--sovereign-dim) !important;
    border-radius: 0 !important;
    overflow: hidden;
    transition: all 0.4s var(--ease-luxe) !important;
}

.directorist-listing-single:hover,
.directorist-listing-card:hover {
    border-color: var(--sovereign) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px);
}

.directorist-listing-single .directorist-listing-title a,
.directorist-listing-card .directorist-listing-title a {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.25rem !important;
    color: var(--ink) !important;
    transition: color 0.3s ease !important;
}

.directorist-listing-single:hover .directorist-listing-title a,
.directorist-listing-card:hover .directorist-listing-title a {
    color: var(--sovereign) !important;
}

.directorist-listing-single .directorist-listing-category,
.directorist-listing-card .directorist-listing-category {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--sovereign) !important;
}

/* Pagination */
.directorist-pagination {
    margin-top: 4rem !important;
    text-align: center !important;
}

.directorist-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 4px !important;
    border: 1px solid var(--sovereign-dim) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    color: var(--ink) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.directorist-pagination .page-numbers:hover,
.directorist-pagination .page-numbers.current {
    background: var(--sovereign) !important;
    border-color: var(--sovereign) !important;
    color: var(--canvas) !important;
}

/* ---------- FRANCHISE ARCHIVE ---------- */
.franchise-archive {
    --franchise-color: var(--sovereign);
}

.franchise-archive .franchise-hero {
    position: relative;
    padding: 120px clamp(24px, 5vw, 80px) 80px;
    text-align: center;
    overflow: hidden;
}

.franchise-archive .hero-backdrop {
    position: absolute;
    inset: 0;
}

.franchise-archive .hero-pattern {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--onyx) 0%, var(--franchise-color) 100%);
    opacity: 0.95;
}

.franchise-archive .hero-gradient {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
}

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

.franchise-archive .franchise-code-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--canvas);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 10px 24px;
    border-radius: 2px;
    margin-bottom: 24px;
}

.franchise-archive .franchise-title {
    color: var(--canvas);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 16px;
}

.franchise-archive .title-prefix {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 8px;
}

.franchise-archive .franchise-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
}

.franchise-archive .franchise-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.franchise-archive .stat-item {
    text-align: center;
}

.franchise-archive .stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--canvas);
}

.franchise-archive .stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.franchise-archive .stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.franchise-archive .franchise-filter-bar {
    background: var(--pearl);
    padding: 20px clamp(24px, 5vw, 80px);
    border-bottom: 1px solid var(--sovereign-dim);
}

.franchise-archive .filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.franchise-archive .back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: color 0.3s ease;
}

.franchise-archive .back-link:hover {
    color: var(--sovereign);
}

.franchise-archive .filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.franchise-archive .filter-pill {
    --pill-color: var(--sovereign);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--pill-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--ink);
    transition: all 0.3s ease;
}

.franchise-archive .filter-pill:hover {
    background: var(--pill-color);
    color: var(--canvas);
}

.franchise-archive .franchise-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px clamp(24px, 5vw, 80px);
}

/* Editorial Grid - Same as archive-wives.php */
.franchise-archive .wives-editorial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* First card spans 2 cols + rows for magazine "feature" */
.franchise-archive .wives-editorial-grid .housewife-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.franchise-archive .wives-editorial-grid .housewife-card:first-child .card-name {
    font-size: 2.6rem !important;
}

.franchise-archive .wives-editorial-grid .housewife-card:first-child .card-net-worth {
    font-size: 1.3rem;
}

.franchise-archive .wives-editorial-grid .housewife-card:first-child .card-tagline {
    font-size: 1rem !important;
    -webkit-line-clamp: 3;
}

/* Empty state */
.franchise-archive .wives-editorial-grid .no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .franchise-archive .wives-editorial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .franchise-archive .wives-editorial-grid .housewife-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 900px) {
    .franchise-archive .wives-editorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .franchise-archive .wives-editorial-grid .housewife-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .franchise-archive .wives-editorial-grid .housewife-card:first-child .card-name {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .franchise-archive .franchise-content {
        padding: 32px 16px 60px;
    }
    .franchise-archive .wives-editorial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .franchise-archive .wives-editorial-grid .housewife-card:first-child {
        grid-column: span 1;
    }
}

/* ---------- GLOBAL REGISTRY PAGE ---------- */
.global-registry .registry-header {
    background: linear-gradient(135deg, var(--onyx) 0%, var(--ruby-dark) 50%, var(--onyx) 100%);
    padding: 100px clamp(24px, 5vw, 80px) 60px;
    text-align: center;
}

.global-registry .registry-header h1 {
    color: var(--canvas);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 16px;
}

.global-registry .registry-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.global-registry .registry-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px clamp(24px, 5vw, 60px);
}

@media (max-width: 1024px) {
    .global-registry .registry-container {
        grid-template-columns: 1fr;
    }
}

.global-registry .registry-filters {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.global-registry .filters-inner {
    background: var(--pearl);
    border: 1px solid var(--sovereign-dim);
    border-radius: 4px;
    padding: 28px;
}

.global-registry .filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sovereign-dim);
    color: var(--ink);
}

.global-registry .filters-title svg {
    color: var(--sovereign);
}

.global-registry .filter-group {
    margin-bottom: 20px;
}

.global-registry .filter-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.global-registry .sovereign-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.global-registry .sovereign-select:focus {
    outline: none;
    border-color: var(--sovereign);
}

.global-registry .btn-filter-apply {
    width: 100%;
    margin-top: 8px;
}

.global-registry .btn-reset-filters {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 10px;
    transition: color 0.3s ease;
}

.global-registry .btn-reset-filters:hover {
    color: var(--ruby);
}

.global-registry .filter-stats {
    margin-top: 20px;
    padding: 16px;
    background: var(--pearl);
    border: 1px solid var(--sovereign-dim);
    border-radius: 4px;
    text-align: center;
}

.global-registry .stat-mini-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--sovereign);
}

.global-registry .stat-mini-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.global-registry .listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sovereign-dim);
}

.global-registry .results-count {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.global-registry .view-toggles {
    display: flex;
    gap: 8px;
}

.global-registry .view-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    border-radius: 4px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.3s ease;
}

.global-registry .view-toggle:hover,
.global-registry .view-toggle.active {
    background: var(--sovereign);
    border-color: var(--sovereign);
    color: var(--canvas);
}

/* ---------- PAGINATION ---------- */
.archive-pagination,
.registry-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.archive-pagination ul,
.registry-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-pagination .page-numbers,
.registry-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--ink);
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current,
.registry-pagination .page-numbers:hover,
.registry-pagination .page-numbers.current {
    background: var(--sovereign);
    border-color: var(--sovereign);
    color: var(--canvas);
}

/* ---------- EMPTY STATES ---------- */
.no-results-message,
.no-housewives-message {
    grid-column: 1 / -1;
    padding: 80px 40px;
    text-align: center;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state svg {
    color: var(--sovereign-dim);
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: var(--ink);
}

.empty-state p {
    color: var(--ink-soft);
    margin: 0;
}

.empty-state a {
    color: var(--sovereign);
    text-decoration: underline;
}

/* ---------- STATS BAR (HOMEPAGE) ---------- */
.intel-status-bar {
    background: var(--onyx);
    padding: 40px clamp(24px, 5vw, 80px);
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stats-container .stat-item {
    text-align: center;
}

.stats-container .stat-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--sovereign);
}

.stats-container .stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.stats-container .stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- SEARCH FORM (HOMEPAGE) ---------- */
.housewife-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.housewife-search-form .search-inner {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.housewife-search-form .search-icon {
    margin: 0 16px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.housewife-search-form .search-field {
    flex: 1;
    padding: 18px 0;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--canvas);
}

.housewife-search-form .search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.housewife-search-form .search-field:focus {
    outline: none;
}

.housewife-search-form .search-submit {
    padding: 18px 32px;
    background: var(--sovereign);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--onyx);
    cursor: pointer;
    transition: background 0.3s ease;
}

.housewife-search-form .search-submit:hover {
    background: var(--sovereign-light);
}

/* ---------- SECTION DESCRIPTION ---------- */
.section-description {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ==========================================================
   CPT TEMPLATES: WEAR, WHERE, CARE, HOME
   ========================================================== */

/* ---------- SHARED SINGLE ITEM STYLES ---------- */
.single-item .item-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: clamp(60px, 8vh, 120px) clamp(24px, 5vw, 80px);
    overflow: hidden;
}

.single-item .hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.single-item .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    display: block;
}

.single-item .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 24, 24, 0.95) 0%, rgba(24, 24, 24, 0.7) 100%);
}

.single-item .hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(166, 145, 92, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.single-item .hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 600px;
}

.single-item .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--sovereign);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 24px;
}

.single-item .category-badge svg {
    width: 14px;
    height: 14px;
}

.single-item .item-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--canvas);
    margin: 0 0 12px;
    line-height: 1.1;
}

.single-item .item-brand,
.single-item .item-location {
    font-size: 1.1rem;
    color: var(--sovereign);
    margin: 0 0 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-item .item-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
}

.single-item .quick-stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.single-item .stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 145, 92, 0.15);
    border-radius: 50%;
    color: var(--sovereign);
}

.single-item .stat-icon.rating-icon {
    color: #ffc107;
}

.single-item .stat-content {
    display: flex;
    flex-direction: column;
}

.single-item .stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--canvas);
}

.single-item .stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.single-item .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.single-item .btn-shop-now,
.single-item .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--sovereign);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s var(--ease-luxe);
}

.single-item .btn-shop-now:hover,
.single-item .btn-primary:hover {
    background: var(--sovereign-light);
    transform: translateY(-2px);
}

.single-item .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--canvas);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s var(--ease-luxe);
}

.single-item .btn-secondary:hover {
    border-color: var(--sovereign);
    color: var(--sovereign);
}

.single-item .hero-portrait,
.single-item .item-image {
    position: relative;
    z-index: 1;
    width: 400px;
    height: 500px;
    flex-shrink: 0;
}

.single-item .portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.single-item .portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 145, 92, 0.1);
    border-radius: 4px;
    color: var(--sovereign);
}

.single-item .portrait-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.single-item .portrait-frame {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(166, 145, 92, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

/* Item Content Wrap */
.single-item .item-content-wrap {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px clamp(24px, 5vw, 80px);
}

.single-item .item-content {
    min-width: 0;
}

.single-item .item-description,
.single-item .item-details,
.single-item .item-how-to,
.single-item .item-ingredients,
.single-item .item-specs,
.single-item .item-gallery,
.single-item .location-map {
    margin-bottom: 60px;
}

.single-item .section-header-inline {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.single-item .section-header-inline h2 {
    font-size: 1.75rem;
    margin: 0;
    white-space: nowrap;
}

.single-item .header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--sovereign-dim), transparent);
}

.single-item .description-content,
.single-item .details-content,
.single-item .how-to-content,
.single-item .ingredients-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-soft);
}

.single-item .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.single-item .spec-item {
    padding: 20px;
    background: rgba(166, 145, 92, 0.05);
    border-radius: 4px;
}

.single-item .spec-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sovereign);
    margin-bottom: 8px;
}

.single-item .spec-value {
    font-size: 1rem;
    color: var(--ink);
}

/* Item Gallery */
.single-item .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.single-item .gallery-item {
    margin: 0;
}

.single-item .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s var(--ease-luxe);
}

.single-item .gallery-item:hover img {
    transform: scale(1.03);
}

/* Map Container */
.single-item .map-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.single-item .map-container iframe {
    display: block;
}

/* Item Sidebar */
.single-item .item-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.single-item .sidebar-card {
    background: var(--canvas);
    border: 1px solid rgba(166, 145, 92, 0.15);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.single-item .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(166, 145, 92, 0.15);
}

.single-item .card-header svg {
    color: var(--sovereign);
    flex-shrink: 0;
}

.single-item .card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin: 0;
    color: var(--ink);
}

.single-item .shop-details,
.single-item .location-details {
    margin-bottom: 24px;
}

.single-item .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(166, 145, 92, 0.1);
}

.single-item .detail-row:last-child {
    border-bottom: none;
}

.single-item .detail-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.single-item .detail-value {
    font-weight: 500;
    text-align: right;
}

.single-item .detail-value.price {
    color: var(--sovereign);
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
}

.single-item .detail-value.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffc107;
}

.single-item .location-details .detail-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
}

.single-item .location-details .detail-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 145, 92, 0.1);
    border-radius: 50%;
    color: var(--sovereign);
    flex-shrink: 0;
}

.single-item .location-details .detail-content {
    flex: 1;
}

.single-item .location-details .detail-label {
    display: block;
    margin-bottom: 4px;
}

.single-item .location-details .detail-value {
    text-align: left;
    color: var(--ink);
}

.single-item .btn-shop,
.single-item .btn-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--sovereign);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s var(--ease-luxe);
}

.single-item .btn-shop:hover,
.single-item .btn-visit:hover {
    background: var(--sovereign-light);
    transform: translateY(-2px);
}

.single-item .affiliate-disclosure {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--ink-soft);
    text-align: center;
}

.single-item .affiliate-disclosure a {
    color: var(--sovereign);
    text-decoration: underline;
}

.single-item .related-wife-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(166, 145, 92, 0.05);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.single-item .related-wife-link:hover {
    background: rgba(166, 145, 92, 0.1);
}

.single-item .related-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.single-item .related-info {
    flex: 1;
}

.single-item .related-name {
    display: block;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 4px;
}

.single-item .related-cta {
    font-size: 0.75rem;
    color: var(--sovereign);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single-item .related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.single-item .related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.single-item .related-item:hover {
    background: rgba(166, 145, 92, 0.05);
}

.single-item .related-item .related-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.single-item .related-price,
.single-item .related-city {
    font-size: 0.8rem;
    color: var(--sovereign);
}

.single-item .view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(166, 145, 92, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sovereign);
    transition: all 0.3s ease;
}

.single-item .view-all-link:hover {
    background: var(--sovereign);
    color: var(--ink);
    border-color: var(--sovereign);
}

/* Item Footer */
.single-item .item-footer {
    background: rgba(24, 24, 24, 0.03);
    padding: 40px clamp(24px, 5vw, 80px);
}

.single-item .ftc-disclosure {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.single-item .ftc-disclosure p {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin: 0;
    max-width: none;
}

/* ---------- BOOKING.COM WIDGET STYLES ---------- */
.booking-widget-section {
    background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
    padding: 60px clamp(24px, 5vw, 80px);
}

.booking-widget-container {
    max-width: 1100px;
    margin: 0 auto;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.75rem;
    color: var(--canvas);
    margin: 0 0 12px;
}

.booking-header h2 svg {
    color: var(--sovereign);
}

.booking-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: none;
}

.booking-search-widget,
.booking-deals-widget {
    margin-bottom: 32px;
}

.booking-hero-widget {
    background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
    padding: 48px clamp(24px, 5vw, 80px);
    margin-bottom: 0;
}

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

.booking-hero-widget h2 {
    font-size: 1.5rem;
    color: var(--canvas);
    margin: 0 0 8px;
}

.booking-hero-widget p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
}

.booking-deals-section {
    background: rgba(166, 145, 92, 0.05);
    padding: 60px clamp(24px, 5vw, 80px);
}

.booking-deals-section .deals-container {
    max-width: 1100px;
    margin: 0 auto;
}

.booking-deals-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin: 0 0 32px;
}

/* ---------- ARCHIVE CPT STYLES ---------- */
.archive-cpt .archive-header {
    background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
    padding: 100px clamp(24px, 5vw, 80px) 60px;
    text-align: center;
}

.archive-cpt .header-content {
    max-width: 700px;
    margin: 0 auto;
}

.archive-cpt .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sovereign);
    margin-bottom: 20px;
}

.archive-cpt .section-eyebrow svg {
    width: 18px;
    height: 18px;
}

.archive-cpt .archive-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--canvas);
    margin: 0 0 16px;
}

.archive-cpt .archive-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: none;
}

/* Filter Nav */
.archive-cpt .filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px clamp(24px, 5vw, 80px);
    background: var(--canvas);
    border-bottom: 1px solid rgba(166, 145, 92, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.archive-cpt .filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.archive-cpt .filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(166, 145, 92, 0.08);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.archive-cpt .filter-pill:hover {
    background: rgba(166, 145, 92, 0.15);
    color: var(--ink);
}

.archive-cpt .filter-pill.active {
    background: var(--sovereign);
    color: var(--ink);
}

.archive-cpt .pill-count {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.archive-cpt .filter-select select {
    padding: 10px 40px 10px 16px;
    background: rgba(166, 145, 92, 0.08);
    border: 1px solid rgba(166, 145, 92, 0.2);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a6915c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Archive Content */
.archive-cpt .archive-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px clamp(24px, 5vw, 80px);
}

.archive-cpt .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* Item Cards (shared styles for Wear, Where, Care, Home) */
.item-card {
    position: relative;
    background: var(--canvas);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s var(--ease-luxe);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.item-card .card-link {
    display: block;
    text-decoration: none;
}

.item-card .card-image-wrap {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.item-card .card-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-luxe);
}

.item-card:hover .card-portrait {
    transform: scale(1.05);
}

.item-card .card-portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(166, 145, 92, 0.1) 0%, rgba(166, 145, 92, 0.05) 100%);
    color: var(--sovereign);
}

.item-card .card-portrait-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}

.item-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 24, 24, 0.8) 0%, transparent 50%);
    pointer-events: none;
}

.item-card .card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--sovereign);
    color: var(--ink);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
}

.item-card .card-status {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(24, 24, 24, 0.7);
    backdrop-filter: blur(10px);
    color: var(--canvas);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
}

.item-card .card-status svg {
    width: 10px;
    height: 10px;
}

.item-card .card-content {
    padding: 24px;
}

.item-card .card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.3;
}

.item-card .card-tagline {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0 0 16px;
}

.item-card .card-price,
.item-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.item-card .price-label,
.item-card .meta-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.item-card .price-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--sovereign);
}

.item-card .meta-value {
    font-weight: 500;
    color: var(--ink);
}

.item-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.item-card .card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffc107;
    font-size: 0.85rem;
    font-weight: 500;
}

.item-card .card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sovereign);
    transition: gap 0.3s ease;
}

.item-card:hover .card-cta {
    gap: 12px;
}

.item-card .card-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: rgba(166, 145, 92, 0.3);
    border-style: solid;
    border-width: 0;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.item-card .card-corner-tl {
    top: 0;
    left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
}

.item-card .card-corner-br {
    bottom: 0;
    right: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
}

.item-card:hover .card-corner {
    border-color: var(--sovereign);
}

/* Archive Footer */
.archive-cpt .archive-footer {
    padding: 40px clamp(24px, 5vw, 80px);
    text-align: center;
    background: rgba(166, 145, 92, 0.03);
}

.archive-cpt .affiliate-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
}

.archive-cpt .affiliate-notice svg {
    color: var(--sovereign);
    flex-shrink: 0;
}

.archive-cpt .affiliate-notice a {
    color: var(--sovereign);
    text-decoration: underline;
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 1024px) {
    .single-item .item-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .single-item .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .single-item .item-quick-stats {
        justify-content: center;
    }

    .single-item .hero-cta {
        justify-content: center;
    }

    .single-item .hero-portrait,
    .single-item .item-image {
        width: 100%;
        max-width: 400px;
        margin-left: 0;
    }

    .single-item .item-content-wrap {
        grid-template-columns: 1fr;
    }

    .single-item .item-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .single-item .item-hero {
        min-height: auto;
        padding: 60px 24px;
    }

    .single-item .item-quick-stats {
        flex-direction: column;
        gap: 20px;
    }

    .single-item .quick-stat {
        justify-content: center;
    }

    .single-item .item-content-wrap {
        padding: 40px 24px;
    }

    .archive-cpt .filter-nav {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
    }

    .archive-cpt .items-grid {
        grid-template-columns: 1fr;
    }

    .booking-widget-section,
    .booking-hero-widget {
        padding: 40px 24px;
    }
}

/* ==========================================================
   WEAR & WARD PRODUCT PAGES — dark theme + acquisition button
   ========================================================== */

/* Force dark background on these pages */
.single-wear,
.single-ward {
    background: #020B13;
    color: #F5F0E8;
}

/* Main content text — bright enough to read on dark bg */
.single-wear .description-content,
.single-wear .details-content,
.single-ward .description-content,
.single-ward .details-content {
    color: rgba(245, 240, 232, 0.85) !important;
}

.single-wear .spec-value,
.single-ward .spec-value {
    color: #F5F0E8 !important;
}

.single-wear .section-header-inline h2,
.single-ward .section-header-inline h2 {
    color: #D4AF37;
}

/* Sidebar cards — dark panel instead of canvas white */
.single-wear .sidebar-card,
.single-ward .sidebar-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    box-shadow: none !important;
}

.single-wear .card-header h3,
.single-ward .card-header h3 {
    color: #D4AF37 !important;
}

.single-wear .detail-label,
.single-ward .detail-label {
    color: rgba(245, 240, 232, 0.45);
}

.single-wear .detail-value,
.single-ward .detail-value {
    color: #F5F0E8 !important;
}

.single-wear .related-name,
.single-ward .related-name {
    color: #F5F0E8 !important;
}

.single-wear .affiliate-disclosure,
.single-ward .affiliate-disclosure {
    color: rgba(245, 240, 232, 0.42) !important;
}

.single-wear .ftc-disclosure p,
.single-ward .ftc-disclosure p {
    color: rgba(245, 240, 232, 0.42) !important;
}

.single-wear .item-footer,
.single-ward .item-footer {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

/* ---- ACQUISITION BUTTON ---- */

@keyframes acquire-pulse {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(212, 175, 55, 0.55),
                    0 0 0 0 rgba(212, 175, 55, 0.35);
    }
    50% {
        box-shadow: 0 6px 24px rgba(212, 175, 55, 0.55),
                    0 0 0 10px rgba(212, 175, 55, 0);
    }
}

@keyframes acquire-shimmer {
    0%   { transform: translateX(-110%) skewX(-20deg); }
    100% { transform: translateX(220%) skewX(-20deg); }
}

.single-wear .btn-acquire,
.single-ward .btn-acquire {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    padding: 18px 44px;
    background: linear-gradient(135deg,
        #FFF0A0 0%,
        #F0CC44 20%,
        #D4AF37 52%,
        #A8800A 100%
    ) !important;
    color: #0A0600 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.1rem !important;
    font-style: italic !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
    text-transform: none !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow:
        0 6px 24px rgba(212, 175, 55, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
    animation: acquire-pulse 2.8s ease-in-out infinite;
}

.single-wear .btn-acquire::before,
.single-ward .btn-acquire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.38) 50%, transparent 100%);
    transform: translateX(-110%) skewX(-20deg);
    animation: acquire-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.single-wear .btn-acquire:hover,
.single-ward .btn-acquire:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow:
        0 14px 38px rgba(212, 175, 55, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
    filter: brightness(1.10);
    color: #0A0600 !important;
    animation: none;
}

/* Hero CTA — larger */
.single-wear .hero-cta .btn-acquire,
.single-ward .hero-cta .btn-acquire {
    padding: 20px 54px !important;
    font-size: 1.2rem !important;
}

/* Sidebar shop card — full width */
.single-wear .shop-card .btn-acquire,
.single-ward .shop-card .btn-acquire {
    width: 100% !important;
    padding: 16px 28px !important;
    font-size: 1rem !important;
}

/* =========================================================
   ENGAGEMENT FEATURES
   Wife Comparison Tool | DNA Breakdown | Interactive Timeline
   ========================================================= */

/* ---------- WIFE COMPARISON TOOL ---------- */
.engagement-section {
    padding: 80px clamp(24px, 5vw, 80px);
    background: var(--canvas);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.engagement-section:nth-child(even) {
    background: var(--pearl);
}

/* Visual separator before engagement sections */
.engagement-section:first-of-type {
    border-top: 3px solid var(--sovereign);
    margin-top: 40px;
}

/* Section eyebrow accent */
.engagement-section .section-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sovereign);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sovereign);
}

.engagement-header {
    text-align: center;
    margin-bottom: 48px;
}

.engagement-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--ink);
    margin: 0 0 12px;
}

.engagement-subtitle {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 500px;
    margin: 0 auto;
}

/* Comparison Tool Container */
.comparison-tool {
    max-width: 1400px;
    margin: 0 auto;
}

.comparison-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .comparison-stage {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .swap-wives {
        transform: rotate(90deg);
    }
}

/* Compare Slots */
.compare-slot {
    background: var(--canvas);
    border: 2px dashed var(--sovereign-dim);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-luxe);
    position: relative;
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--sovereign);
    background: linear-gradient(135deg, var(--canvas) 0%, rgba(166, 145, 92, 0.05) 100%);
}

.slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
}

.slot-empty svg {
    color: var(--sovereign-dim);
}

.slot-empty p {
    font-size: 0.9rem;
    margin: 0;
}

.slot-content {
    display: none;
}

.slot-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sovereign);
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(166, 145, 92, 0.3);
}

.slot-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--ink);
    margin: 0 0 4px;
}

.slot-franchise {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sovereign);
}

.clear-slot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 145, 92, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-slot:hover {
    background: var(--ruby);
    color: var(--canvas);
}

/* Swap Button */
.swap-wives {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sovereign);
    border: none;
    border-radius: 50%;
    color: var(--canvas);
    cursor: pointer;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 4px 15px rgba(166, 145, 92, 0.4);
}

.swap-wives:hover {
    transform: rotate(180deg);
    background: var(--sovereign-light);
    box-shadow: 0 6px 20px rgba(166, 145, 92, 0.5);
}

/* Wife Selection Grid */
.compare-selection {
    margin-bottom: 40px;
}

.compare-selection h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 16px;
}

.wives-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.compare-wife-card {
    background: var(--canvas);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    position: relative;
}

.compare-wife-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--sovereign-dim);
}

.compare-wife-card.selected {
    border-color: var(--sovereign);
    background: linear-gradient(135deg, var(--canvas) 0%, rgba(166, 145, 92, 0.1) 100%);
    box-shadow: 0 8px 30px rgba(166, 145, 92, 0.2);
}

.compare-wife-card.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sovereign);
    color: var(--canvas);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}

.wife-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--sovereign-dim);
    transition: border-color 0.3s ease;
}

.compare-wife-card:hover .wife-thumb,
.compare-wife-card.selected .wife-thumb {
    border-color: var(--sovereign);
}

.wife-thumb-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Comparison Results */
.comparison-results {
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    border-radius: 8px;
    padding: 32px;
    min-height: 300px;
}

.comparison-results.active {
    border-color: var(--sovereign);
    box-shadow: 0 8px 40px rgba(166, 145, 92, 0.15);
}

.comparison-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--ink-soft);
    gap: 16px;
}

.comparison-placeholder svg {
    color: var(--sovereign-dim);
}

.comparison-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .stat-row {
        grid-template-columns: 1fr 60px 1fr;
        gap: 12px;
    }
}

.stat-value {
    text-align: center;
}

.stat-value.left {
    text-align: right;
}

.stat-value.right {
    text-align: left;
}

.stat-value .value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.stat-value.winner .value {
    color: var(--sovereign);
    font-weight: 600;
}

.stat-value .bar-container {
    height: 8px;
    background: var(--sovereign-dim);
    border-radius: 4px;
    overflow: hidden;
}

.stat-value.left .bar-container {
    margin-left: auto;
}

.stat-value .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sovereign) 0%, var(--sovereign-light) 100%);
    border-radius: 4px;
    transition: width 1s var(--ease-luxe);
}

.stat-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.comparison-winner {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--sovereign-dim);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ink);
}

.comparison-winner .winner-name {
    color: var(--sovereign);
}

/* ---------- WIFE DNA BREAKDOWN ---------- */
.dna-section {
    padding: 80px clamp(24px, 5vw, 80px);
    background: linear-gradient(135deg, var(--onyx) 0%, #1a1a2e 100%);
    color: var(--canvas);
}

.dna-section .engagement-title {
    color: var(--canvas);
}

.dna-section .engagement-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.dna-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.dna-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(166, 145, 92, 0.2);
    border-radius: 12px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-luxe);
}

.dna-card:hover {
    border-color: var(--sovereign);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dna-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.dna-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sovereign);
}

.dna-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--canvas);
    margin: 0 0 4px;
}

.dna-info span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sovereign);
}

.dna-breakdown {
    position: relative;
    height: 280px;
    margin-bottom: 24px;
}

.dna-breakdown canvas {
    width: 100%;
    height: 100%;
}

.dna-traits {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.dna-trait {
    text-align: center;
    padding: 12px 8px;
    background: rgba(166, 145, 92, 0.1);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.dna-trait:hover {
    background: rgba(166, 145, 92, 0.2);
}

.dna-trait .trait-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--sovereign);
    margin-bottom: 2px;
}

.dna-trait .trait-label {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- INTERACTIVE TIMELINE ---------- */
.timeline-section {
    padding: 80px clamp(24px, 5vw, 80px);
    background: var(--pearl);
    overflow: hidden;
}

.wives-timeline {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-content {
    background: var(--canvas);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    min-height: 300px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.timeline-wife-display {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .timeline-wife-display {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.timeline-wife-display.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wife-image {
    position: relative;
}

.wife-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.wife-year {
    position: absolute;
    bottom: -12px;
    right: 20px;
    background: var(--sovereign);
    color: var(--canvas);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding: 8px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(166, 145, 92, 0.4);
}

.wife-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--ink);
    margin: 0 0 12px;
}

.wife-info .franchise-badge {
    display: inline-block;
    background: var(--sovereign-dim);
    color: var(--sovereign);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.wife-legacy {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.wife-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wife-achievements .achievement {
    background: linear-gradient(135deg, var(--sovereign) 0%, var(--sovereign-light) 100%);
    color: var(--canvas);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Timeline Navigation */
.timeline-nav-wrapper {
    position: relative;
    padding: 0 60px;
}

.timeline-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-nav-btn:hover {
    background: var(--sovereign);
    border-color: var(--sovereign);
    color: var(--canvas);
}

.timeline-nav-btn.prev {
    left: 0;
}

.timeline-nav-btn.next {
    right: 0;
}

.timeline-track-wrapper {
    position: relative;
    overflow: hidden;
}

.timeline-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.timeline-track::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    flex: 0 0 140px;
    text-align: center;
    cursor: pointer;
    scroll-snap-align: center;
    transition: all 0.4s var(--ease-luxe);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--sovereign-dim);
    border-radius: 50%;
    border: 2px solid var(--canvas);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item.active::before {
    background: var(--sovereign);
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 4px rgba(166, 145, 92, 0.2);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(50% + 10px);
    width: calc(100% + 4px);
    height: 2px;
    background: var(--sovereign-dim);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--sovereign-dim);
    transition: all 0.4s var(--ease-luxe);
    filter: grayscale(0.3);
}

.timeline-item:hover .timeline-item-thumb,
.timeline-item.active .timeline-item-thumb {
    border-color: var(--sovereign);
    transform: scale(1.1);
    filter: grayscale(0);
    box-shadow: 0 8px 25px rgba(166, 145, 92, 0.3);
}

.timeline-item-year {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--ink-soft);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.timeline-item.active .timeline-item-year {
    color: var(--sovereign);
    font-weight: 600;
}

.timeline-item-name {
    font-size: 0.75rem;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

/* Timeline Progress Bar */
.timeline-progress-bar {
    height: 4px;
    background: var(--sovereign-dim);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--sovereign) 0%, var(--sovereign-light) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 20%;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline-nav-wrapper {
        padding: 0 50px;
    }
    
    .timeline-item {
        flex: 0 0 100px;
    }
    
    .timeline-item-thumb {
        width: 60px;
        height: 60px;
    }
    
    .timeline-content {
        padding: 24px;
    }
    
    .wife-info h3 {
        font-size: 1.8rem;
    }
}

/* ---------- UTILITY ANIMATIONS ---------- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s var(--ease-luxe) forwards;
}

/* ---------- RESPONSIVE ENGAGEMENT ---------- */
@media (max-width: 1024px) {
    .engagement-section {
        padding: 60px 24px;
    }
    
    .dna-grid {
        grid-template-columns: 1fr;
    }
    
    .wives-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .comparison-results {
        padding: 20px;
    }
    
    .dna-card {
        padding: 20px;
    }
    
    .dna-traits {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .comparison-winner {
        font-size: 1.2rem;
    }
}

/* =========================================================
   LUXURY HEADER ENHANCEMENTS
   Sovereign Estate Command Center
   ========================================================= */

/* ---------- INTELLIGENCE BAR (TOP) ---------- */
.intel-bar {
    background: linear-gradient(180deg, #0a0a0f 0%, #15151a 100%);
    border-bottom: 1px solid rgba(166, 145, 92, 0.15);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.intel-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(166, 145, 92, 0.3) 20%, 
        rgba(166, 145, 92, 0.5) 50%, 
        rgba(166, 145, 92, 0.3) 80%, 
        transparent 100%
    );
}

.intel-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intel-quick-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s var(--ease-luxe);
    position: relative;
}

.quick-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sovereign);
    transition: width 0.4s var(--ease-luxe);
}

.quick-link:hover {
    color: var(--sovereign);
}

.quick-link:hover::after {
    width: 100%;
}

.quick-link svg {
    stroke: var(--sovereign);
    transition: transform 0.3s ease;
}

.quick-link:hover svg {
    transform: scale(1.1);
}

.intel-divider {
    width: 1px;
    height: 20px;
    background: rgba(166, 145, 92, 0.2);
}

/* ---------- HEADER MAIN ---------- */
.header-main {
    background: linear-gradient(180deg, 
        #faf9f7 0%, 
        #f5f4f2 50%,
        var(--canvas) 100%
    );
    position: relative;
    padding: 0 24px;
}

.header-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(166, 145, 92, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(166, 145, 92, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 24px 0;
    position: relative;
}

/* ---------- MOBILE MENU TOGGLE ---------- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    border-radius: 4px;
    cursor: pointer;
    gap: 5px;
    transition: all 0.3s var(--ease-luxe);
}

.mobile-menu-toggle:hover {
    border-color: var(--sovereign);
    background: rgba(166, 145, 92, 0.05);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s var(--ease-luxe);
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- LUXURY LOGO ---------- */
.crown-embossed-logo {
    position: relative;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.luxury-logo-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    position: relative;
    padding: 12px 16px;
    transition: all 0.4s var(--ease-luxe);
}

.luxury-logo-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.4s var(--ease-luxe);
}

.luxury-logo-mark:hover::before {
    border-color: var(--sovereign-dim);
    background: rgba(166, 145, 92, 0.03);
}

.crown-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 8px rgba(166, 145, 92, 0.2));
    transition: all 0.4s var(--ease-luxe);
}

.luxury-logo-mark:hover .crown-icon {
    transform: scale(1.05) rotate(-5deg);
    filter: drop-shadow(0 4px 12px rgba(166, 145, 92, 0.3));
}

.crown-icon .crown-outer {
    transition: all 0.3s ease;
}

.crown-icon .crown-jewel {
    animation: jewel-shimmer 3s ease-in-out infinite;
}

@keyframes jewel-shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.05em;
    line-height: 1;
    transition: color 0.3s ease;
}

.luxury-logo-mark:hover .logo-title {
    color: var(--sovereign);
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sovereign);
    line-height: 1;
}

/* Custom Logo Styling */
.crown-embossed-logo .custom-logo-link {
    display: block;
    transition: all 0.4s var(--ease-luxe);
}

.crown-embossed-logo .custom-logo-link:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.crown-embossed-logo .custom-logo {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(166, 145, 92, 0.15));
}

/* ---------- NAVIGATION ---------- */
#sovereign-navigation {
    display: flex;
    justify-content: center;
}

.nav-inner {
    position: relative;
}

.nav-inner::before,
.nav-inner::after {
    content: '•';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sovereign-dim);
    font-size: 0.5rem;
}

.nav-inner::before {
    left: -20px;
}

.nav-inner::after {
    right: -20px;
}

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

.sovereign-nav-list > li {
    position: relative;
}

.sovereign-nav-list > li > a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 16px 24px;
    position: relative;
    transition: all 0.4s var(--ease-luxe);
}

.sovereign-nav-list > li > a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--sovereign);
    transition: width 0.4s var(--ease-luxe);
}

.sovereign-nav-list > li > a:hover,
.sovereign-nav-list > li.current-menu-item > a,
.sovereign-nav-list > li.current_page_parent > a {
    color: var(--sovereign);
}

.sovereign-nav-list > li > a:hover::before,
.sovereign-nav-list > li.current-menu-item > a::before,
.sovereign-nav-list > li.current_page_parent > a::before {
    width: 20px;
}

/* Dropdown Navigation */
.sovereign-nav-list .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--canvas);
    border: 1px solid var(--sovereign-dim);
    border-top: 2px solid var(--sovereign);
    min-width: 220px;
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sovereign-nav-list > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.sovereign-nav-list .sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--sovereign);
}

.sovereign-nav-list .sub-menu li a {
    display: block;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.sovereign-nav-list .sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sovereign);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sovereign-nav-list .sub-menu li a:hover {
    background: rgba(166, 145, 92, 0.05);
    color: var(--sovereign);
    padding-left: 28px;
}

.sovereign-nav-list .sub-menu li a:hover::before {
    opacity: 1;
}

/* ---------- HEADER ACTIONS ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--sovereign-dim);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
}

.header-action-btn:hover {
    background: var(--sovereign);
    border-color: var(--sovereign);
    color: var(--canvas);
    transform: scale(1.05);
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--sovereign) 0%, var(--sovereign-light) 100%);
    color: var(--canvas);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 4px;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 4px 15px rgba(166, 145, 92, 0.3);
    position: relative;
    overflow: hidden;
}

.header-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.header-cta-btn:hover::before {
    left: 100%;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(166, 145, 92, 0.4);
    color: var(--canvas);
}

.header-cta-btn svg {
    transition: transform 0.3s ease;
}

.header-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ---------- HEADER DIVIDER ---------- */
.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--canvas);
    position: relative;
}

.header-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--sovereign-dim) 20%, 
        var(--sovereign-dim) 80%, 
        transparent 100%
    );
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--sovereign-dim) 50%, 
        transparent 100%
    );
}

.divider-ornament {
    font-size: 1.2rem;
    color: var(--sovereign);
    opacity: 0.6;
    animation: rotate-ornament 20s linear infinite;
}

@keyframes rotate-ornament {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- SEARCH OVERLAY ---------- */
.header-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-luxe);
}

.header-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(166, 145, 92, 0.3);
    border-radius: 50%;
    color: var(--sovereign);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: var(--sovereign);
    border-color: var(--sovereign);
    color: var(--ink);
    transform: rotate(90deg);
}

.luxury-search-form {
    text-align: center;
}

.search-label {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--canvas);
    margin-bottom: 32px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.luxury-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(166, 145, 92, 0.3);
    padding: 20px 60px 20px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--canvas);
    transition: border-color 0.4s ease;
}

.luxury-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.luxury-search-input:focus {
    outline: none;
    border-color: var(--sovereign);
}

.luxury-search-submit {
    position: absolute;
    right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sovereign);
    border: none;
    border-radius: 50%;
    color: var(--canvas);
    cursor: pointer;
    transition: all 0.3s ease;
}

.luxury-search-submit:hover {
    background: var(--sovereign-light);
    transform: scale(1.1);
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
        padding: 16px 0;
    }

    .mobile-menu-toggle {
        display: flex;
        order: -1;
    }

    #sovereign-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(20px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s var(--ease-luxe);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 80px 40px;
    }

    #sovereign-navigation.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-inner::before,
    .nav-inner::after {
        display: none;
    }

    .sovereign-nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .sovereign-nav-list > li > a {
        font-size: 1.2rem;
        padding: 16px 24px;
    }

    .sovereign-nav-list .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .sovereign-nav-list > li.submenu-open > .sub-menu {
        max-height: 500px;
    }

    .sovereign-nav-list .sub-menu::before {
        display: none;
    }

    .intel-quick-links {
        display: none;
    }

    .luxury-logo-mark {
        padding: 8px 12px;
        gap: 12px;
    }

    .crown-icon {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: 1.3rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
    }

    .header-cta-btn .cta-text {
        display: none;
    }

    .header-cta-btn {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 0 16px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .luxury-logo-mark {
        gap: 10px;
    }

    .crown-icon {
        width: 36px;
        height: 36px;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-tagline {
        font-size: 0.55rem;
    }

    .search-label {
        font-size: 1.5rem;
    }

    .luxury-search-input {
        font-size: 1.2rem;
    }

    .header-divider {
        padding: 12px 16px;
    }

    .divider-line {
        max-width: 80px;
    }
}

/* ---------- STICKY HEADER ---------- */
#sovereign-estate-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.5s var(--ease-luxe);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#sovereign-estate-header.sticky .header-main {
    padding: 0;
}

#sovereign-estate-header.sticky .header-inner {
    padding: 12px 0;
}

#sovereign-estate-header.sticky .intel-bar,
#sovereign-estate-header.sticky .header-divider {
    display: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================================================
   LUXURY HEADER FIXES - OVERRIDE OLD STYLES
   ========================================================= */

/* Override old intel-bar styles */
.intel-bar {
    background: linear-gradient(180deg, #0a0a0f 0%, #15151a 100%) !important;
    border-bottom: 1px solid rgba(166, 145, 92, 0.15) !important;
    padding: 0 !important;
    text-align: left !important;
}

.intel-bar .sighting-counter {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.1em !important;
}

.intel-bar .pulse-dot {
    background: var(--sovereign) !important;
}

/* Override old header/navigation styles */
#sovereign-estate-header.forensic-command-center,
#sovereign-estate-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#sovereign-estate-header::before {
    display: none !important;
}

/* Override old logo styles */
.crown-embossed-logo {
    padding: 0 !important;
    background: transparent !important;
}

.crown-embossed-logo::after {
    display: none !important;
}

/* Override old navigation container styles */
#sovereign-navigation.forensic-menu,
#sovereign-navigation {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

#sovereign-navigation::before {
    display: none !important;
}

/* Navigation list override - remove !important conflicts */
ul.sovereign-nav-list,
.sovereign-nav-list {
    gap: 0 !important;
}

.sovereign-nav-list li,
ul.sovereign-nav-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.sovereign-nav-list > li > a,
.sovereign-nav-list li a {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    padding: 16px 24px !important;
    color: var(--ink) !important;
}

.sovereign-nav-list > li > a:hover,
.sovereign-nav-list > li.current-menu-item > a,
.sovereign-nav-list li a:hover {
    color: var(--sovereign) !important;
}

.sovereign-nav-list > li > a::after,
.sovereign-nav-list li a::after {
    bottom: 8px !important;
    height: 2px !important;
    background: var(--sovereign) !important;
}

/* Dropdown override */
.sovereign-nav-list .sub-menu,
.sovereign-nav-list ul.sub-menu {
    top: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: var(--canvas) !important;
    border: 1px solid var(--sovereign-dim) !important;
    border-top: 2px solid var(--sovereign) !important;
    min-width: 220px !important;
    padding: 12px 0 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

.sovereign-nav-list li.menu-item-has-children:hover > .sub-menu,
.sovereign-nav-list li.menu-item-has-children:focus-within > .sub-menu {
    transform: translateX(-50%) translateY(0) !important;
}

.sovereign-nav-list .sub-menu li a {
    padding: 12px 24px !important;
    font-size: 0.75rem !important;
    color: var(--ink) !important;
    background: transparent !important;
}

.sovereign-nav-list .sub-menu li a:hover {
    background: rgba(166, 145, 92, 0.05) !important;
    color: var(--sovereign) !important;
    padding-left: 28px !important;
}

/* Hide the old dropdown arrow */
.sovereign-nav-list li.menu-item-has-children > a::before {
    display: none !important;
}

/* Mobile menu fixes */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        order: -1;
    }
    
    #sovereign-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(250, 249, 247, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        padding: 80px 40px !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s var(--ease-luxe);
    }
    
    #sovereign-navigation.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .sovereign-nav-list {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .sovereign-nav-list > li > a {
        font-size: 1.2rem !important;
        padding: 16px 24px !important;
    }
    
    .sovereign-nav-list .sub-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .sovereign-nav-list > li.submenu-open > .sub-menu {
        max-height: 500px;
    }
    
    #sovereign-navigation,
    nav.forensic-menu {
        padding: 80px 40px !important;
    }
}

/* Ensure header inner layout works */
.header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 40px !important;
}

@media (max-width: 1024px) {
    .header-inner {
        gap: 20px !important;
        padding: 16px 0 !important;
    }
}

/* =========================================================
   ADDITIONAL HEADER COLOR CONSISTENCY FIXES
   ========================================================= */

/* Ensure all navigation elements have consistent colors */
#sovereign-estate-header * {
    box-sizing: border-box;
}

/* Force consistent text colors in header */
.header-main,
.header-main * {
    color: var(--ink);
}

/* Navigation specific color fixes */
.nav-inner .sovereign-nav-list > li > a {
    color: var(--ink) !important;
    background: transparent !important;
}

.nav-inner .sovereign-nav-list > li > a:hover,
.nav-inner .sovereign-nav-list > li.current-menu-item > a,
.nav-inner .sovereign-nav-list > li.current_page_parent > a,
.nav-inner .sovereign-nav-list > li.current-menu-ancestor > a {
    color: var(--sovereign) !important;
    background: transparent !important;
}

/* Remove any stray backgrounds */
.sovereign-nav-list li {
    background: transparent !important;
}

/* Ensure dropdown menu consistency */
.sovereign-nav-list .sub-menu li {
    background: var(--canvas) !important;
}

.sovereign-nav-list .sub-menu li a {
    color: var(--ink) !important;
    background: transparent !important;
}

.sovereign-nav-list .sub-menu li a:hover {
    background: rgba(166, 145, 92, 0.05) !important;
    color: var(--sovereign) !important;
}

/* Logo area consistency */
.luxury-logo-mark,
.luxury-logo-mark:hover,
.luxury-logo-mark:focus {
    color: inherit;
    text-decoration: none;
}

.logo-title {
    color: var(--ink) !important;
}

.luxury-logo-mark:hover .logo-title {
    color: var(--sovereign) !important;
}

.logo-tagline {
    color: var(--sovereign) !important;
}

/* Header actions consistency */
.header-action-btn {
    color: var(--ink) !important;
    background: transparent !important;
}

.header-action-btn:hover {
    color: var(--canvas) !important;
    background: var(--sovereign) !important;
}

.header-cta-btn,
.header-cta-btn:hover,
.header-cta-btn:focus {
    color: var(--canvas) !important;
}

/* Ensure intel bar text is visible */
.intel-bar * {
    color: rgba(255, 255, 255, 0.6);
}

.intel-bar a:hover {
    color: var(--sovereign) !important;
}

.intel-bar .sighting-counter {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Fix any flash intel header issues */
/* Flash Intel Ticker (Homepage Only) */
.flash-intel-header {
    display: flex;
    align-items: center;
    height: 40px;
    background: var(--ink);
    color: var(--canvas);
    overflow: hidden;
    border-bottom: 1px solid rgba(166, 145, 92, 0.2);
}

.flash-intel-header .intel-label {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background: rgba(166, 145, 92, 0.1);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sovereign);
}

.flash-intel-header .intel-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
}

.flash-intel-header .intel-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.flash-intel-header:hover .intel-track {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.flash-intel-header .intel-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.flash-intel-header .intel-item::after {
    content: '◆';
    margin-left: 2rem;
    color: var(--sovereign);
    font-size: 0.5rem;
    opacity: 0.5;
}

.flash-intel-header .intel-time {
    color: var(--sovereign);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    margin-right: 0.75rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .flash-intel-header {
        height: 32px;
    }
    
    .flash-intel-header .intel-label {
        padding: 0 0.75rem;
        font-size: 0.5rem;
    }
    
    .flash-intel-header .intel-item {
        font-size: 0.7rem;
        padding: 0 1.5rem;
    }
    
    .flash-intel-header .intel-item::after {
        margin-left: 1.5rem;
    }
}

/* Header Map (Homepage Only) */
.sovereign-header-map {
    position: relative;
    width: 100%;
    height: 550px;
    background: var(--ink);
    overflow: hidden;
    margin-bottom: 0;
}

/* Gradient fade from ticker into map */
.sovereign-header-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg,
        var(--ink) 0%,
        rgba(24, 24, 24, 0.8) 40%,
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Gradient fade from map into page content - enhanced */
.sovereign-header-map::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg,
        var(--ink) 0%,
        rgba(24, 24, 24, 0.95) 25%,
        rgba(24, 24, 24, 0.7) 50%,
        rgba(24, 24, 24, 0.3) 75%,
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Map to content transition wrapper */
.map-content-transition {
    position: relative;
    margin-top: -80px;
    padding-top: 80px;
    background: linear-gradient(180deg,
        var(--ink) 0%,
        #1a1a1a 20%,
        #1e1e1e 40%,
        var(--canvas) 100%
    );
}

.hw-cities-map {
    width: 100%;
    height: 100%;
}

.sovereign-header-map .map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.sovereign-header-map .map-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sovereign);
    background: rgba(24, 24, 24, 0.9);
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(166, 145, 92, 0.3);
}

.sovereign-header-map .map-city-nav {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 95%;
}

.sovereign-header-map .map-city-nav::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60px;
    background: rgba(24, 24, 24, 0.8);
    filter: blur(20px);
    z-index: -1;
}

.sovereign-header-map .city-nav-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(24, 24, 24, 0.9);
    border: 1px solid rgba(166, 145, 92, 0.3);
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sovereign-header-map .city-nav-btn:hover,
.sovereign-header-map .city-nav-btn.active {
    color: var(--sovereign);
    border-color: var(--sovereign);
    background: rgba(166, 145, 92, 0.1);
}

@media (max-width: 768px) {
    .sovereign-header-map {
        height: 400px;
    }

    .sovereign-header-map::before {
        height: 60px;
    }

    .sovereign-header-map::after {
        height: 150px;
    }

    .sovereign-header-map .map-city-nav {
        bottom: 80px;
        gap: 0.25rem;
        z-index: 100;
        padding: 0 1rem;
    }

    .sovereign-header-map .city-nav-btn {
        font-size: 0.55rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .sovereign-header-map {
        height: 350px;
    }

    .sovereign-header-map .map-city-nav {
        bottom: 70px;
    }

    .sovereign-header-map .city-nav-btn {
        font-size: 0.5rem;
        padding: 0.35rem 0.5rem;
    }
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

/* Ensure proper z-index stacking */
#sovereign-estate-header {
    position: relative;
    z-index: 100;
}

.header-search-overlay {
    z-index: 9999;
}

#sovereign-navigation.active {
    z-index: 998;
}

.mobile-menu-toggle {
    z-index: 999;
}

/* =========================================================
   LOGO RENDERING FIXES
   ========================================================= */

/* Ensure logo container is visible and properly sized */
.crown-embossed-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 60px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

/* Fix custom logo rendering */
.crown-embossed-logo .custom-logo-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none;
}

.crown-embossed-logo .custom-logo {
    display: block !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix luxury logo mark */
.luxury-logo-mark {
    display: inline-flex !important;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.crown-icon {
    display: block !important;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
}

.logo-tagline {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sovereign);
    line-height: 1;
    white-space: nowrap;
}

/* Fix for logo not showing - ensure no display:none from old styles */
#sovereign-estate-header .crown-embossed-logo,
#sovereign-estate-header .crown-embossed-logo * {
    display: inherit;
}

#sovereign-estate-header .crown-embossed-logo,
#sovereign-estate-header .logo-wrapper,
#sovereign-estate-header .luxury-logo-mark,
#sovereign-estate-header .custom-logo-link {
    display: block !important;
}

#sovereign-estate-header .luxury-logo-mark {
    display: inline-flex !important;
}

/* Mobile logo fixes */
@media (max-width: 1024px) {
    .crown-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-title {
        font-size: 1.3rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .crown-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.55rem;
    }
    
    .luxury-logo-mark {
        gap: 10px;
        padding: 8px;
    }
}

/* Ensure header layout doesn't hide logo */
.header-inner {
    min-height: 80px;
}

@media (max-width: 1024px) {
    .header-inner {
        min-height: 70px;
    }
}

/* =========================================================
   LOGO VISIBILITY FIXES - OVERRIDE ALL CONFLICTS
   ========================================================= */

/* Force logo area to be visible */
#sovereign-estate-header .crown-embossed-logo,
#sovereign-estate-header .logo-wrapper,
#sovereign-estate-header .luxury-logo-mark {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#sovereign-estate-header .luxury-logo-mark {
    display: inline-flex !important;
}

/* Override old header logo styles that might hide it */
.crown-embossed-logo {
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure logo doesn't get squished in grid */
.header-inner > .crown-embossed-logo {
    min-width: 0;
    flex-shrink: 0;
}

/* Fix for Hello Elementor theme conflicts */
.site-header, 
.site-header * {
    box-sizing: border-box;
}

/* Ensure SVG crown renders */
.crown-icon {
    overflow: visible;
}

.crown-icon path,
.crown-icon circle {
    vector-effect: non-scaling-stroke;
}

/* Alternative logo layout for very small screens */
@media (max-width: 480px) {
    .luxury-logo-mark {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .crown-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.5rem;
    }
}

/* Fix for when custom logo is an img */
.logo-wrapper.has-custom-logo img,
.logo-wrapper.has-custom-logo .custom-logo {
    display: block;
    max-height: 60px;
    width: auto;
    height: auto;
}

/* Debug: Make sure logo area has minimum dimensions */
.crown-embossed-logo {
    min-width: 100px;
    min-height: 50px;
}



/* =========================================================
   LOGO FOLD-UP ANIMATION ON SCROLL
   ========================================================= */

/* Large Logo (Homepage - visible initially) */
.luxury-branding {
    text-align: center;
    padding: 2rem 0 1.5rem;
    max-height: 300px;
    overflow: hidden;
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.35s ease,
        transform  0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding    0.35s ease;
    transform-origin: center top;
}

.luxury-branding.scrolled {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
    pointer-events: none;
    max-height: 0;
    padding: 0;
}

.luxury-logo-large,
.luxury-logo-text-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a1a1a;
}

.luxury-logo-large img,
.luxury-logo-large .custom-logo {
    max-height: 120px;
    width: auto;
    transition: all 0.4s ease;
}

.luxury-logo-text-large {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.luxury-logo-text-large .logo-icon svg {
    width: 48px;
    height: 48px;
    color: #D4AF37;
}

.luxury-logo-text-large .logo-primary {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    display: block;
}

.luxury-logo-text-large .logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8a8a;
    display: block;
}

/* Compact Logo (appears on scroll - inline with nav) */
.luxury-logo-compact {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1.5rem;
    pointer-events: none;
}

.luxury-logo-compact.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.luxury-logo-compact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1a1a1a;
}

.compact-logo-img {
    max-height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.luxury-logo-compact a:hover .compact-logo-img {
    transform: scale(1.05);
}

.compact-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
}

.compact-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Header adjustments when scrolled */
.luxury-header {
    transition: all 0.4s ease;
}

.luxury-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.luxury-header.scrolled .luxury-header-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Adjust header inner layout to accommodate compact logo */
.luxury-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    transition: padding 0.3s ease;
}

.luxury-header.scrolled .luxury-nav {
    flex: 1;
    justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    /* Compact logo: hidden by default, shown when .visible is added by JS on scroll */
    .luxury-logo-compact {
        display: none;
        width: auto;
        flex-shrink: 0;
        margin-right: 0.75rem;
    }
    .luxury-logo-compact.visible {
        display: flex;
        opacity: 1;
        transform: translateX(0) scale(1);
        pointer-events: auto;
    }

    /* Compact logo image sizing on mobile */
    .compact-logo-img {
        max-height: 36px;
        width: auto;
    }

    /* Large logo branding row */
    .luxury-branding {
        padding: 1.25rem 1.5rem 0.75rem;
        max-height: 160px;
    }
    /* Let the large logo collapse on scroll, same as desktop */
    /* (No override — .luxury-branding.scrolled from above applies) */

    .luxury-logo-large img,
    .luxury-logo-large .custom-logo {
        max-height: 80px;
    }

    .luxury-logo-text-large .logo-primary {
        font-size: 1.75rem;
    }
}

/* On tiny screens hide the compact logo text — just show icon/image */
@media (max-width: 480px) {
    .compact-logo-text { display: none; }
}

/* Animation keyframes for smooth fold effect */
@keyframes logoFoldUp {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

@keyframes logoFoldIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.luxury-branding.fold-up {
    animation: logoFoldUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.luxury-branding.fold-down {
    animation: logoFoldIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


/* =========================================================
   HEADER NAVIGATION LAYOUT WITH COMPACT LOGO
   ========================================================= */

/* Default state - logo is centered above */
.luxury-header-inner {
    position: relative;
}

/* When scrolled, compact logo appears on left */
.luxury-header.scrolled .luxury-header-inner {
    display: flex;
    align-items: center;
}

.luxury-header.scrolled .luxury-menu-toggle {
    order: 2;
}

.luxury-header.scrolled .luxury-nav {
    order: 3;
    flex: 1;
}

.luxury-header.scrolled .luxury-actions {
    order: 4;
}

/* Navigation menu adjustments when compact logo is visible */
.luxury-header.scrolled .luxury-nav .luxury-menu {
    justify-content: center;
}

/* Ensure smooth transitions on all header elements */
.luxury-nav,
.luxury-actions,
.luxury-menu-toggle {
    transition: all 0.3s ease;
}

/* Mobile menu toggle position adjustment */
.luxury-menu-toggle {
    order: 1;
}

.luxury-nav {
    order: 2;
    flex: 1;
}

.luxury-actions {
    order: 3;
}

/* On homepage with large logo, center the nav below */
body.is-homepage:not(.showcase-collapsed) .luxury-header-inner {
    justify-content: center;
}

body.is-homepage:not(.showcase-collapsed) .luxury-logo-compact {
    display: none;
}

/* When scrolled, left-align with compact logo */
body.is-homepage.showcase-collapsed .luxury-header-inner {
    justify-content: flex-start;
}

/* On non-homepage pages, always show compact logo in header */
body:not(.is-homepage) .luxury-branding {
    display: none;
}

body:not(.is-homepage) .luxury-logo-compact {
    display: flex;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Ensure the compact logo fits well inline */
.luxury-logo-compact.visible + .luxury-menu-toggle,
.luxury-logo-compact.visible ~ .luxury-nav {
    margin-left: 0;
}

/* Adjust spacing when compact logo is present */
.luxury-logo-compact.visible {
    flex-shrink: 0;
}


/* =========================================================
   ARCHETYPES MEGA MENU & QUIZ BUTTON STYLES
   ========================================================= */

/* Archetypes Mega Menu */
.archetypes-mega .mega-menu-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.mega-list-archetypes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mega-list-archetypes li {
    margin: 0;
}

.mega-list-archetypes a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #2d2d2d;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mega-list-archetypes a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #1a1a1a;
}

/* Archetype Promo Card */
.archetype-promo-card {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.archetype-promo-card .promo-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

.archetype-promo-card h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.archetype-promo-card p {
    font-size: 0.8125rem;
    color: #6b6b6b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Take the Quiz Button in Menu */
.menu-item-quiz .quiz-link {
    background: linear-gradient(135deg, #D4AF37 0%, #B8960C 100%);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-item-quiz .quiz-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.menu-item-quiz.current-menu-item .quiz-link {
    background: #1a1a1a;
}

/* Responsive for Archetypes Mega Menu */
@media (max-width: 1024px) {
    .archetypes-mega .mega-menu-inner {
        grid-template-columns: 1fr;
    }
    
    .mega-list-archetypes {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   WIFELIFE NEW SECTIONS CSS
   ============================================ */

/* WifeLife Color Variables */
:root {
    --wl-cream: #FAF7F2;
    --wl-ink: #1A1410;
    --wl-gold: #C9A96E;
    --wl-gold-light: #E8D5B0;
    --wl-gold-dark: #8B6B35;
    --wl-muted: #7A6E64;
    --wl-border: #E2D9CC;
    --wl-white: #FFFFFF;
    --wl-section-gap: 100px;
}

/* Sparkle Canvas */
.wl-sparkle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Hero Stats */
.wl-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(201,169,110,0.3);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.wl-stat-item {
    text-align: center;
}

.wl-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--sovereign, #a6915c);
    line-height: 1;
    display: block;
}

.wl-stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(250,247,242,0.6);
    font-weight: 500;
    display: block;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .wl-hero-stats {
        gap: 30px;
        padding: 30px 20px 0;
    }
    
    .wl-stat-num {
        font-size: 32px;
    }
    
    .wl-stat-label {
        font-size: 9px;
    }
}

/* Shared WifeLife Utilities */
.wl-eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--wl-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
}

.wl-rule {
    width: 44px;
    height: 1px;
    background: var(--wl-gold);
    margin: 0 auto 32px;
}

.wl-rule.left {
    margin: 0 0 32px;
}

.wl-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--wl-ink);
}

.wl-h2 em {
    font-style: italic;
    color: var(--wl-gold-dark);
}

.wl-body {
    font-size: 14px;
    line-height: 1.95;
    color: var(--wl-muted);
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
}

.wl-btn {
    display: inline-block;
    background: var(--wl-ink);
    color: var(--wl-cream);
    border: none;
    padding: 15px 44px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s;
}

.wl-btn:hover {
    background: #2d2520;
}

.wl-btn-gold {
    background: var(--wl-gold);
    color: var(--wl-ink);
}

.wl-btn-gold:hover {
    background: var(--wl-gold-light);
}

/* Quiz CTA Section - HIGH FASHION EDITORIAL */
.wl-quiz-cta {
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow: hidden;
}

.wl-quiz-cta .wl-sparkle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wl-quiz-cta > *:not(.wl-sparkle-canvas) {
    position: relative;
    z-index: 1;
}

/* Editorial background texture */
.wl-quiz-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Editorial grid lines */
.wl-quiz-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(201, 169, 110, 0.2) 20%, 
        rgba(201, 169, 110, 0.2) 80%, 
        transparent 100%);
    pointer-events: none;
}

.wl-quiz-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 55% 45%;
}

@media (max-width: 1024px) {
    .wl-quiz-inner {
        grid-template-columns: 1fr;
    }
    .wl-quiz-cta::after {
        display: none;
    }
}

/* Left side - Editorial Copy */
.wl-quiz-copy {
    position: relative;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(250,247,242,0.02) 0%, transparent 100%);
}

/* Editorial issue marker */
.wl-quiz-copy::before {
    content: 'ISSUE NO. 001';
    position: absolute;
    top: 48px;
    left: 72px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(201, 169, 110, 0.6);
    font-weight: 500;
}

.wl-quiz-copy .wl-eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--wl-gold);
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    padding-left: 60px;
}

.wl-quiz-copy .wl-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 1px;
    background: var(--wl-gold);
}

.wl-quiz-copy .wl-h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--wl-cream);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.wl-quiz-copy .wl-h2 em {
    font-style: italic;
    color: var(--wl-gold);
    display: block;
    font-weight: 300;
    margin-top: 6px;
    font-size: 0.9em;
}

/* Editorial rule */
.wl-quiz-copy .wl-rule {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--wl-gold) 0%, transparent 100%);
    margin: 0 0 20px 0;
}

.wl-quiz-copy .wl-body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(250, 247, 242, 0.7);
    margin-bottom: 28px;
    max-width: 480px;
    font-style: italic;
}

/* Editorial Steps - Magazine style */
.wl-quiz-steps {
    list-style: none;
    margin-bottom: 32px;
    position: relative;
}

.wl-quiz-steps::before {
    content: 'THE PROCESS';
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(201, 169, 110, 0.5);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.wl-quiz-steps li {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(250, 247, 242, 0.08);
    position: relative;
    transition: all 0.4s ease;
}

.wl-quiz-steps li:hover {
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.05) 0%, transparent 100%);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.wl-quiz-steps li:last-child {
    border-bottom: none;
}

.wl-step-num {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 200;
    color: var(--wl-gold);
    line-height: 1;
    opacity: 0.6;
    font-style: italic;
}

.wl-step-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--wl-cream);
    margin-bottom: 6px;
}

.wl-step-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: rgba(250, 247, 242, 0.5);
    font-weight: 300;
    font-style: italic;
}

/* Editorial CTA Button */
.wl-quiz-copy .wl-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 22px 48px;
    background: transparent;
    border: 1px solid var(--wl-gold);
    color: var(--wl-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wl-quiz-copy .wl-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--wl-gold);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.wl-quiz-copy .wl-btn:hover {
    color: var(--wl-ink);
    letter-spacing: 4px;
}

.wl-quiz-copy .wl-btn:hover::before {
    left: 0;
}

/* Right side - Editorial Visual */
.wl-quiz-visual {
    position: relative;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.7) 100%),
        url('https://images.unsplash.com/photo-1509631179647-0177331693ae?w=1200&q=80') center/cover;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Vignette overlay */
.wl-quiz-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.6) 100%);
    pointer-events: none;
}

/* Editorial frame */
.wl-quiz-visual::after {
    content: '';
    position: absolute;
    inset: 40px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    pointer-events: none;
}

.wl-quiz-visual-eyebrow {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--wl-gold);
    font-weight: 500;
    margin-bottom: 18px;
    padding: 10px 20px;
    border: 1px solid rgba(201, 169, 110, 0.4);
    background: rgba(10, 10, 10, 0.5);
}

.wl-quiz-visual-title {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 400;
    color: var(--wl-cream);
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.wl-quiz-visual-title em {
    font-style: italic;
    color: var(--wl-gold);
    font-weight: 300;
    display: block;
    margin-top: 8px;
    font-size: 1.1em;
}

.wl-quiz-visual-body {
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: rgba(250, 247, 242, 0.6);
    font-weight: 300;
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 300px;
    font-style: italic;
}

.wl-quiz-visual .wl-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 48px;
    background: var(--wl-gold);
    color: var(--wl-ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 240px;
}

.wl-quiz-visual .wl-btn::after {
    content: '→';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.wl-quiz-visual .wl-btn:hover {
    background: var(--wl-cream);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(201, 169, 110, 0.3);
}

.wl-quiz-visual .wl-btn:hover::after {
    transform: translateX(6px);
}

.wl-quiz-note {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    color: rgba(250, 247, 242, 0.35);
    letter-spacing: 2px;
    margin-top: 30px;
    text-transform: uppercase;
}

/* Corner accents for editorial feel */
.wl-quiz-visual .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--wl-gold);
    border-style: solid;
    opacity: 0.5;
}

.wl-quiz-visual .corner-tl { top: 50px; left: 50px; border-width: 1px 0 0 1px; }
.wl-quiz-visual .corner-tr { top: 50px; right: 50px; border-width: 1px 1px 0 0; }
.wl-quiz-visual .corner-bl { bottom: 50px; left: 50px; border-width: 0 0 1px 1px; }
.wl-quiz-visual .corner-br { bottom: 50px; right: 50px; border-width: 0 1px 1px 0; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .wl-quiz-copy {
        padding: 100px 40px;
        order: 2;
    }
    
    .wl-quiz-copy::before {
        left: 40px;
        top: 40px;
    }
    
    .wl-quiz-visual {
        padding: 100px 40px;
        min-height: 60vh;
        order: 1;
    }
    
    .wl-quiz-visual::after {
        inset: 20px;
    }
}

@media (max-width: 640px) {
    .wl-quiz-copy {
        padding: 80px 24px;
    }
    
    .wl-quiz-copy::before {
        left: 24px;
    }
    
    .wl-quiz-copy .wl-eyebrow {
        padding-left: 0;
    }
    
    .wl-quiz-copy .wl-eyebrow::before {
        display: none;
    }
    
    .wl-quiz-steps li {
        grid-template-columns: 50px 1fr;
        gap: 16px;
    }
    
    .wl-step-num {
        font-size: 32px;
    }
    
    .wl-quiz-visual {
        padding: 80px 24px;
    }
}

.wl-quiz-visual .wl-btn {
    width: 100%;
    text-align: center;
    display: block;
}

.wl-quiz-note {
    font-size: 10px;
    color: rgba(250,247,242,0.3);
    letter-spacing: 1px;
    margin-top: 14px;
    font-family: 'Montserrat', sans-serif;
}

/* Subject of the Week Section */
.wl-subject {
    background: var(--wl-ink);
    padding: var(--wl-section-gap) 24px;
    position: relative;
    overflow: hidden;
}

.wl-subject > *:not(.wl-sparkle-canvas) {
    position: relative;
    z-index: 1;
}

.wl-subject-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 720px) {
    .wl-subject-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.wl-subject-badge {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--wl-gold);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.wl-subject-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 300;
    color: var(--wl-cream);
    line-height: 1.05;
    margin-bottom: 6px;
}

.wl-subject-archetype {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(250,247,242,0.4);
    font-weight: 600;
    margin-bottom: 24px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.wl-subject-verdict {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-style: italic;
    color: rgba(250,247,242,0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    padding-left: 20px;
    border-left: 2px solid var(--wl-gold);
}

.wl-subject-img-wrap {
    position: relative;
}

.wl-subject-img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-subject-img-placeholder span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    color: rgba(201,169,110,0.3);
}

/* Three Pillars Section */
.wl-three-pillars {
    padding: var(--wl-section-gap) 24px;
    background: var(--wl-cream);
}

.wl-pillars-header {
    text-align: center;
    margin-bottom: 60px;
}

.wl-pillars-header .wl-h2 {
    margin-bottom: 14px;
}

.wl-pillars-header .wl-body {
    max-width: 440px;
    margin: 0 auto;
}

.wl-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1160px;
    margin: 0 auto;
}

@media (max-width: 720px) {
    .wl-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.wl-pillar {
    background: var(--wl-white);
    padding: 52px 40px;
    text-align: center;
    text-decoration: none;
    color: var(--wl-ink);
    display: block;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.wl-pillar:hover {
    background: var(--wl-ink);
    border-color: var(--wl-ink);
}

.wl-pillar:hover .wl-pillar-roman {
    color: rgba(201,169,110,0.3);
}

.wl-pillar:hover .wl-pillar-title {
    color: var(--wl-cream);
}

.wl-pillar:hover .wl-pillar-body {
    color: rgba(250,247,242,0.5);
}

.wl-pillar:hover .wl-pillar-link {
    color: var(--wl-gold);
    border-color: var(--wl-gold);
}

.wl-pillar-roman {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    font-weight: 300;
    color: var(--wl-border);
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.wl-pillar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.wl-pillar-subtitle {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--wl-gold);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.wl-pillar-body {
    font-size: 13px;
    line-height: 1.85;
    color: var(--wl-muted);
    font-weight: 300;
    margin-bottom: 28px;
    transition: color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.wl-pillar-link {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--wl-ink);
    border-bottom: 1px solid var(--wl-border);
    padding-bottom: 2px;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

/* Join the Inner Circle Section */
.wl-proof {
    background: var(--wl-ink);
    padding: 90px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wl-proof > *:not(.wl-sparkle-canvas) {
    position: relative;
    z-index: 1;
}

.wl-proof-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 300;
    color: var(--wl-cream);
    line-height: 1.1;
    margin-bottom: 16px;
}

.wl-proof-headline em {
    font-style: italic;
    color: var(--wl-gold);
}

.wl-proof-body {
    font-size: 14px;
    color: rgba(250,247,242,0.5);
    font-weight: 300;
    max-width: 420px;
    margin: 0 auto 44px;
    line-height: 1.9;
    font-family: 'Montserrat', sans-serif;
}

.wl-proof-counters {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .wl-proof-counters {
        gap: 40px;
    }
}

.wl-proof-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 300;
    color: var(--wl-gold);
    line-height: 1;
    display: block;
}

.wl-proof-label {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(250,247,242,0.35);
    font-weight: 600;
    display: block;
    margin-top: 6px;
    font-family: 'Montserrat', sans-serif;
}

.wl-proof-dismiss {
    display: block;
    margin-top: 16px;
    font-size: 11px;
    color: rgba(250,247,242,0.25);
    letter-spacing: 1px;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* Hero Sparkle Effect Layering */
.hp-hero {
    position: relative;
    overflow: hidden;
}

.hp-hero > *:not(.wl-sparkle-canvas):not(.hp-hero-bg) {
    position: relative;
    z-index: 1;
}

/* Keep background absolutely positioned so it doesn't enter grid flow */
.hp-hero-bg {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hp-hero .wl-sparkle-canvas {
    z-index: 0;
}

.hp-hero-content,
.hp-hero-visual,
.wl-hero-stats {
    position: relative;
    z-index: 2;
}

.hp-hero-content,
.hp-hero-visual {
    align-self: start;
}


/* ------------------------------------------
   #. Editorial Animations (Style DNA Section)
   ------------------------------------------ */

/* Animation transitions for quiz elements (visible by default, no JS dependency) */
.wl-quiz-copy .wl-eyebrow,
.wl-quiz-copy .wl-h2,
.wl-quiz-copy .wl-rule,
.wl-quiz-copy .wl-body,
.wl-quiz-steps li,
.wl-quiz-copy .wl-btn,
.wl-quiz-visual .corner,
.wl-quiz-visual-eyebrow,
.wl-quiz-visual-title,
.wl-quiz-visual-body,
.wl-quiz-visual .wl-btn,
.wl-quiz-note {
    opacity: 1;
    transform: translateY(0);
}

/* Left side animations with stagger */
.wl-quiz-copy.animate .wl-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.wl-quiz-copy.animate .wl-h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.wl-quiz-copy.animate .wl-rule {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.wl-quiz-copy.animate .wl-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.wl-quiz-copy.animate .wl-quiz-steps li:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.wl-quiz-copy.animate .wl-quiz-steps li:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.wl-quiz-copy.animate .wl-quiz-steps li:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.wl-quiz-copy.animate .wl-quiz-steps li:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.wl-quiz-copy.animate .wl-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* Right side - Visual panel animations */
.wl-quiz-visual.animate .corner-tl {
    opacity: 0.5;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.wl-quiz-visual.animate .corner-tr {
    opacity: 0.5;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.wl-quiz-visual.animate .corner-bl {
    opacity: 0.5;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.wl-quiz-visual.animate .corner-br {
    opacity: 0.5;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.wl-quiz-visual.animate .wl-quiz-visual-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.wl-quiz-visual.animate .wl-quiz-visual-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.wl-quiz-visual.animate .wl-quiz-visual-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.wl-quiz-visual.animate .wl-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.wl-quiz-visual.animate .wl-quiz-note {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* Shimmer effect on gold text */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.wl-quiz-copy .wl-h2 em,
.wl-quiz-visual-title em {
    background: linear-gradient(
        90deg,
        var(--wl-gold) 0%,
        #fff 25%,
        var(--wl-gold) 50%,
        #fff 75%,
        var(--wl-gold) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s linear infinite;
}

/* Pulse glow for CTA buttons */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(201, 169, 110, 0);
    }
}

.wl-quiz-visual .wl-btn:hover {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wl-quiz-copy .wl-eyebrow,
    .wl-quiz-copy .wl-h2,
    .wl-quiz-copy .wl-rule,
    .wl-quiz-copy .wl-body,
    .wl-quiz-steps li,
    .wl-quiz-copy .wl-btn,
    .wl-quiz-visual .corner,
    .wl-quiz-visual-eyebrow,
    .wl-quiz-visual-title,
    .wl-quiz-visual-body,
    .wl-quiz-visual .wl-btn,
    .wl-quiz-note {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .wl-quiz-copy .wl-h2 em,
    .wl-quiz-visual-title em {
        animation: none;
        background: none;
        -webkit-text-fill-color: var(--wl-gold);
    }
}
