/* ============================================================
   JP Real Estate Investment Platform — Ultra-Premium Dark Theme
   Bootstrap 5.3 overrides + bespoke luxury design system
   Aesthetic: Aman Tokyo × Ginza Private Banking
   ============================================================ */

/* ─── Custom Properties ──────────────────────────────────── */
:root,
[data-bs-theme="dark"] {
    /* Champagne Gold palette — warmer, more refined */
    --gold-50:  #faf6ed;
    --gold-100: #f3e8c8;
    --gold-200: #e6d5a0;
    --gold-300: #dac278;
    --gold-400: #c9a84c;
    --gold-500: #b89533;
    --gold-600: #9e7a28;
    --gold-700: #85641e;
    --gold-800: #6b4e16;
    --gold-900: #52390f;

    /* Rose Gold accent */
    --rose-gold: #c4957a;
    --rose-gold-light: #d4ad97;
    --rose-gold-dark: #a87860;

    /* Dark palette — deeper, richer blacks */
    --dark-950: #050506;
    --dark-900: #08080a;
    --dark-800: #0e0f11;
    --dark-700: #151618;
    --dark-600: #1c1d20;
    --dark-500: #242528;
    --dark-400: #2e3033;
    --dark-300: #3d3f43;
    --dark-200: #5a5d63;
    --dark-100: #8a8d95;

    /* Glass effect — champagne tinted */
    --glass-bg: rgba(201, 168, 76, 0.02);
    --glass-border: rgba(201, 168, 76, 0.08);
    --glass-hover: rgba(201, 168, 76, 0.05);

    /* Fonts */
    --font-display: 'Cormorant Garamond', 'Shippori Mincho', 'Georgia', serif;
    --font-serif: 'Shippori Mincho', 'Noto Serif JP', 'Georgia', serif;
    --font-sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing rhythm */
    --section-gap: clamp(3rem, 6vw, 5rem);

    /* Bootstrap overrides */
    --bs-body-bg: var(--dark-900);
    --bs-body-color: #d4d1ca;
    --bs-dark-rgb: 8, 8, 10;
    --bs-primary-rgb: 201, 168, 76;
    --bs-link-color-rgb: 201, 168, 76;
    --bs-link-hover-color-rgb: 218, 194, 120;
    --bs-border-color: var(--glass-border);
    --bs-card-bg: var(--dark-700);
    --bs-card-border-color: var(--glass-border);
}

/* ─── Base ────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--dark-900);
    color: #d4d1ca;
    font-size: 1.0625rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

/* Noise texture overlay for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: #f0ede6;
    font-weight: 500;
    letter-spacing: 0.02em;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
}

a {
    color: var(--gold-400);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--gold-200);
}

::selection {
    background: rgba(201, 168, 76, 0.25);
    color: #f0ede6;
}

/* ─── Custom Background Classes ───────────────────────────── */
.bg-dark-900 { background-color: var(--dark-900) !important; }
.bg-dark-800 { background-color: var(--dark-800) !important; }
.bg-dark-700 { background-color: var(--dark-700) !important; }
.bg-dark-600 { background-color: var(--dark-600) !important; }
.bg-dark-500 { background-color: var(--dark-500) !important; }

/* ─── Gold Text & Accents ─────────────────────────────────── */
.text-gold { color: var(--gold-400) !important; }
.text-gold-light { color: var(--gold-200) !important; }
.text-gold-dark { color: var(--gold-600) !important; }
.text-muted-luxury { color: var(--dark-100) !important; }

.text-gold-gradient {
    background: linear-gradient(
        135deg,
        var(--gold-200) 0%,
        var(--gold-400) 25%,
        var(--rose-gold-light) 50%,
        var(--gold-400) 75%,
        var(--gold-200) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gold { border-color: var(--gold-600) !important; }
.border-gold-subtle { border-color: rgba(201, 168, 76, 0.15) !important; }

/* ─── Glass Morphism (Dark Champagne) ────────────────────── */
.glass-dark {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.glass-dark:hover {
    background: var(--glass-hover);
}

.glass-card {
    background: linear-gradient(
        145deg,
        rgba(201, 168, 76, 0.03) 0%,
        rgba(201, 168, 76, 0.01) 100%
    );
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: linear-gradient(
        145deg,
        rgba(201, 168, 76, 0.06) 0%,
        rgba(201, 168, 76, 0.02) 100%
    );
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-3px);
    box-shadow:
        0 20px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 40px -20px rgba(201, 168, 76, 0.15);
}

/* ─── Bootstrap Card Overrides ────────────────────────────── */
.card {
    background: linear-gradient(
        180deg,
        var(--dark-700) 0%,
        rgba(21, 22, 24, 0.95) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    border-color: rgba(201, 168, 76, 0.18);
    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 168, 76, 0.05);
}

.card-header {
    background: rgba(201, 168, 76, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.card-body {
    color: #d4d1ca;
}

/* ─── Navbar — Ultra Premium ─────────────────────────────── */
.navbar-luxury {
    background: rgba(8, 8, 10, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: all 0.4s ease;
}

.navbar-luxury.scrolled {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    background: rgba(8, 8, 10, 0.97) !important;
    border-bottom-color: rgba(201, 168, 76, 0.15);
}

.navbar-luxury .navbar-brand {
    font-family: var(--font-display);
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-luxury .nav-link {
    color: rgba(212, 209, 202, 0.65) !important;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0.75rem !important;
}

.navbar-luxury .nav-link:hover {
    color: var(--gold-300) !important;
}

.navbar-luxury .nav-link.active {
    color: var(--gold-400) !important;
}

.navbar-luxury .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    border-radius: 1px;
}

/* ─── Buttons — Refined ──────────────────────────────────── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    border: none;
    color: var(--dark-900);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.65rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-gold:hover {
    color: var(--dark-900);
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px -8px rgba(201, 168, 76, 0.35),
        0 0 0 1px rgba(201, 168, 76, 0.3);
}

.btn-gold:hover::before {
    transform: translateX(100%);
}

.btn-outline-gold {
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold-400);
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.65rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-outline-gold:hover {
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold-300);
    border-color: var(--gold-400);
    box-shadow: 0 0 20px -8px rgba(201, 168, 76, 0.25);
}

.btn-dark-luxury {
    background: var(--dark-600);
    border: 1px solid var(--glass-border);
    color: #d4d1ca;
    transition: all 0.35s ease;
    font-size: 0.85rem;
}

.btn-dark-luxury:hover {
    background: var(--dark-500);
    border-color: rgba(201, 168, 76, 0.2);
    color: var(--gold-400);
}

/* ─── Form Controls — Refined ────────────────────────────── */
.form-control,
.form-select {
    background-color: var(--dark-600) !important;
    border: 1px solid rgba(201, 168, 76, 0.08) !important;
    color: #d4d1ca !important;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(201, 168, 76, 0.35) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08) !important;
    background-color: var(--dark-500) !important;
}

.form-control::placeholder {
    color: var(--dark-200) !important;
    font-style: italic;
}

.form-label {
    color: var(--dark-100);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── Table — Refined ────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: #d4d1ca;
    --bs-table-border-color: var(--glass-border);
}

.table thead th {
    color: var(--gold-400);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    padding: 0.75rem;
}

.table tbody td {
    border-bottom: 1px solid rgba(201, 168, 76, 0.04);
    padding: 0.75rem;
    font-size: 0.85rem;
}

.table tbody tr {
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(201, 168, 76, 0.03);
}

/* ─── Badges — Refined ───────────────────────────────────── */
.badge-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35em 0.8em;
}

.badge-glass {
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.12);
    color: var(--gold-400);
    font-weight: 500;
}

/* ─── Tabs — Premium ─────────────────────────────────────── */
.nav-tabs-luxury {
    border: none;
    background: linear-gradient(180deg, var(--dark-700), var(--dark-600));
    border-radius: 0.75rem;
    padding: 0.3rem;
    border: 1px solid var(--glass-border);
}

.nav-tabs-luxury .nav-link {
    border: none;
    border-radius: 0.5rem;
    color: var(--dark-100);
    font-weight: 500;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: all 0.35s ease;
}

.nav-tabs-luxury .nav-link:hover {
    color: var(--gold-300);
    background: rgba(201, 168, 76, 0.05);
}

.nav-tabs-luxury .nav-link.active {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: var(--dark-900);
    font-weight: 600;
    box-shadow: 0 4px 12px -2px rgba(201, 168, 76, 0.25);
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer-gold {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(201, 168, 76, 0.15), 0 0 2px rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 0 24px rgba(201, 168, 76, 0.3), 0 0 4px rgba(201, 168, 76, 0.5); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes goldLine {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

@keyframes ambient-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(1deg); }
    50% { transform: translate(-20px, 15px) rotate(-1deg); }
    75% { transform: translate(15px, 25px) rotate(0.5deg); }
}

.animate-fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in-delay {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

.shimmer-gold {
    background: linear-gradient(90deg,
        var(--gold-600) 0%, var(--gold-300) 25%,
        var(--rose-gold-light) 50%, var(--gold-300) 75%,
        var(--gold-600) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-gold 4s ease-in-out infinite;
}

.glow-gold {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ─── Hero Section — Cinematic ───────────────────────────── */
.hero-luxury {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 149, 122, 0.03) 0%, transparent 50%),
        linear-gradient(180deg,
            var(--dark-950) 0%,
            var(--dark-900) 30%,
            var(--dark-800) 70%,
            var(--dark-700) 100%);
    position: relative;
    overflow: hidden;
}

.hero-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L55 30L30 55L5 30z' fill='none' stroke='%23c9a84c' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    animation: ambient-drift 60s ease-in-out infinite;
}

.hero-luxury::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 168, 76, 0.15) 20%,
        rgba(201, 168, 76, 0.4) 50%,
        rgba(201, 168, 76, 0.15) 80%,
        transparent 100%
    );
}

/* ─── Decorative Elements ─────────────────────────────────── */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 168, 76, 0.1) 20%,
        rgba(201, 168, 76, 0.35) 50%,
        rgba(201, 168, 76, 0.1) 80%,
        transparent 100%
    );
}

.gold-dot {
    width: 5px;
    height: 5px;
    background: var(--gold-400);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(201, 168, 76, 0.4);
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
    margin: var(--section-gap) 0;
}

/* Japanese geometric accent (diamond motif) */
.jp-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.jp-accent::before,
.jp-accent::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500));
}

.jp-accent::after {
    background: linear-gradient(90deg, var(--gold-500), transparent);
}

.jp-accent .jp-diamond {
    width: 8px;
    height: 8px;
    background: var(--gold-400);
    transform: rotate(45deg);
    opacity: 0.6;
}

/* ─── News Card ───────────────────────────────────────────── */
.news-card {
    background: linear-gradient(
        180deg,
        rgba(201, 168, 76, 0.02) 0%,
        rgba(201, 168, 76, 0.005) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-5px);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 168, 76, 0.08);
}

.news-card .news-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(0.85);
}

.news-card:hover .news-image {
    opacity: 1;
    filter: saturate(1);
    transform: scale(1.03);
}

.news-card .news-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, var(--dark-600), var(--dark-500));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-card .news-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 3L37 20L20 37L3 20z' fill='none' stroke='%23c9a84c' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

/* ─── Property Card ───────────────────────────────────────── */
.property-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.4),
        0 0 40px -20px rgba(201, 168, 76, 0.1);
}

/* ─── Yield Colors — Refined ─────────────────────────────── */
.yield-high { color: #6ee7a0; }
.yield-mid  { color: var(--gold-400); }
.yield-low  { color: #fb8b8b; }

/* ─── Stats Card — Premium ───────────────────────────────── */
.stat-card {
    background: linear-gradient(
        145deg,
        rgba(201, 168, 76, 0.04) 0%,
        rgba(201, 168, 76, 0.01) 100%
    );
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.05);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold-300);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--dark-100);
    margin-top: 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─── Area Card — Premium ────────────────────────────────── */
.area-card {
    background: linear-gradient(
        180deg,
        rgba(201, 168, 76, 0.03) 0%,
        rgba(201, 168, 76, 0.01) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.area-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(201, 168, 76, 0.06));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.area-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-4px);
    box-shadow:
        0 16px 32px -8px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 168, 76, 0.08);
}

.area-card:hover::before {
    opacity: 1;
}

.area-card .area-header {
    background: linear-gradient(135deg, var(--dark-600), var(--dark-500));
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
    position: relative;
}

/* ─── Feature Card — Premium ─────────────────────────────── */
.feature-card {
    background: linear-gradient(
        145deg,
        rgba(201, 168, 76, 0.03) 0%,
        rgba(201, 168, 76, 0.01) 100%
    );
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.04);
    transform: translateY(-2px);
}

.feature-card:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.feature-card .feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.04));
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.08));
    box-shadow: 0 0 16px -4px rgba(201, 168, 76, 0.3);
}

/* ─── Page Header — Architectural ────────────────────────── */
.page-header-luxury {
    background:
        radial-gradient(ellipse at 70% 0%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-800), var(--dark-700));
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    padding: 2.25rem 0 1.75rem;
    position: relative;
}

.page-header-luxury h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
    font-family: var(--font-display);
}

.page-header-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 10%,
        rgba(201, 168, 76, 0.3) 50%,
        transparent 90%
    );
}

/* ─── Map Container ───────────────────────────────────────── */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

/* ─── AI Chat Bubble — Premium ───────────────────────────── */
.chat-bubble-user {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: var(--dark-900);
    border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
    font-weight: 500;
}

.chat-bubble-ai {
    background: linear-gradient(145deg, var(--dark-600), var(--dark-700));
    color: #d4d1ca;
    border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
    border: 1px solid var(--glass-border);
}

/* ─── Loading Spinner — Refined ──────────────────────────── */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(201, 168, 76, 0.1);
    border-top-color: var(--gold-400);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Skeleton Loading ────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        var(--dark-600) 0%,
        rgba(201, 168, 76, 0.04) 50%,
        var(--dark-600) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 2s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Footer — Refined ───────────────────────────────────── */
.footer-luxury {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.02) 0%, transparent 60%),
        var(--dark-800);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    color: var(--dark-100);
    position: relative;
}

.footer-luxury a {
    color: var(--dark-100);
    transition: color 0.35s ease;
    letter-spacing: 0.01em;
}

.footer-luxury a:hover {
    color: var(--gold-400);
}

/* ─── Scrollbar — Refined ────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark-900);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-600);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--dark-400) var(--dark-900);
}

/* ─── Select Styling ──────────────────────────────────────── */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c9a84c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ─── SPA Page Transition ─────────────────────────────────── */
#main-content {
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Toggle / Switch ────────────────────────────────────── */
.form-check-input:checked {
    background-color: var(--gold-500);
    border-color: var(--gold-500);
}

.form-check-input {
    background-color: var(--dark-500);
    border-color: var(--dark-300);
}

/* ─── Accordion / FAQ ─────────────────────────────────────── */
.accordion-luxury .accordion-button {
    background: var(--dark-700);
    color: #d4d1ca;
    border: 1px solid var(--glass-border);
    box-shadow: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-luxury .accordion-button:not(.collapsed) {
    background: rgba(201, 168, 76, 0.05);
    color: var(--gold-300);
    border-color: rgba(201, 168, 76, 0.15);
}

.accordion-luxury .accordion-body {
    background: var(--dark-800);
    color: var(--dark-100);
    border: 1px solid var(--glass-border);
    border-top: none;
    line-height: 1.8;
}

/* ─── Alert & Toast ───────────────────────────────────────── */
.alert {
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
}

/* ─── Dropdown ────────────────────────────────────────────── */
.dropdown-menu-dark {
    background: var(--dark-700) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5) !important;
    padding: 0.5rem !important;
}

.dropdown-menu-dark .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(201, 168, 76, 0.08) !important;
    color: var(--gold-400) !important;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: var(--glass-border) !important;
}

/* ─── Modal ───────────────────────────────────────────────── */
.modal-content {
    border-radius: 1rem !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6) !important;
}

/* ─── Premium Section Backgrounds ────────────────────────── */
.section-dark-gradient {
    background:
        radial-gradient(ellipse at 30% 100%, rgba(201, 168, 76, 0.02) 0%, transparent 50%),
        var(--dark-900);
}

.section-dark-gradient-alt {
    background:
        radial-gradient(ellipse at 70% 0%, rgba(196, 149, 122, 0.02) 0%, transparent 50%),
        var(--dark-800);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 375px) {
    .text-responsive { font-size: 0.875rem; }
    h1 { font-size: 1.5rem !important; }
    .stat-card .stat-number { font-size: 1.75rem; }
}

@media (max-width: 576px) {
    .hide-mobile { display: none !important; }
    .hero-luxury { padding: 1.5rem 0; }
    .page-header-luxury { padding: 1.5rem 0 1.25rem; }
}

@media (max-width: 768px) {
    .navbar-luxury .nav-link {
        font-size: 0.85rem;
        text-transform: none;
        letter-spacing: 0.02em;
    }
}

/* ─── Utility Helpers ─────────────────────────────────────── */
.transition-smooth {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.tracking-wide {
    letter-spacing: 0.06em;
}

/* ─── Premium Typography ─────────────────────────────────── */
.display-luxury {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.subtitle-luxury {
    color: var(--dark-100);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1.7;
    max-width: 540px;
}

.label-luxury {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-400);
}

/* ─── Ambient Light Spots ────────────────────────────────── */
.ambient-light {
    position: relative;
}

.ambient-light::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
    animation: ambient-drift 45s ease-in-out infinite;
}

/* ─── Premium Hover Glow ─────────────────────────────────── */
.hover-glow {
    position: relative;
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(201, 168, 76, 0.15),
        transparent 40%,
        transparent 60%,
        rgba(196, 149, 122, 0.1)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.hover-glow:hover::before {
    opacity: 1;
}
