:root {
    /* Base Backgrounds */
    --bg-main: #0b0f19;       /* The deep slate/black for the footer/main body */
    --bg-surface: #0f172a;    /* Slightly lighter for elevated cards/modals */
    --tos-surface: #cccccc;
    
    /* Typography Colors */
    --text-primary: #ffffff;  /* Pure white for main headings */
    --text-secondary: #d6e3f4;/* Soft blue/grey for readable paragraph text */
    
    /* Brand Accents */
    --accent-gold: #916306;   /* The premium gold/tan from your reference image */
}

/* Global reset now lives in core.css (loaded first by base.html) */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #455164;
    border-radius: 4px;
}

header{
background-color: transparent;
display: flex;
align-items: center;
justify-content: space-between;
position: fixed;
top: 0;
z-index: 10;
width:100%;
padding: 20px 40px;
transition: background-color 0.3s ease, padding 0.3s ease;
text-transform: uppercase;
}

.topbar{
border-color:aliceblue;
display: flex;
gap: 30px;
}

a {
color: var(--text-primary); 
font-family: 'Cinzel', serif;
font-size: larger;
text-decoration: none;
transition: color 0.3s ease;
}

.topbar a{
    position: relative;
}

.topbar a::after{
    content: '';
    position: absolute;
    left:0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-items:hover > a::after{
    transform: scaleX(1);
}

.nav-items{
    position: relative;
}

.nav-items > a{
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-items > a svg{
    transition: transform 0.3s ease;
}

.nav-items:hover > a svg{
    transform: rotate(180deg);
}

.dropdown-menu{
    position: absolute;
    top: 100%;
    right: -40px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.dropdown-menu a{
    padding: 20px 20px;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover{
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-items:hover .dropdown-menu{
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}

.logo {
font-family: 'Cinzel', serif;
text-transform: uppercase;
font-size: 2.5rem;
letter-spacing: 1px;
color: var(--text-primary);
transition: color 0.3s ease;
}

.header-scroll {
background-color: rgb(2, 0, 48);
padding: 10px 40px;
}

.header-scroll a,
.header-scroll .logo {
color: var(--text-primary);
}

.jumbotron{
position: relative;
overflow: hidden;
height: 100vh;
/* Dynamic viewport height: on phones 100vh includes the browser chrome, which
   pushes the hero's bottom edge behind the URL bar until first scroll. dvh
   tracks the real visible height; browsers without it keep the 100vh fallback. */
height: 100dvh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--text-primary);
padding-top: 100px;
}

.container {
text-align: center;
position: relative; 
z-index: 2; /* ADDED: Pulls the text up so it sits on top of the video */
}

.container h1{
font-size: 50px;
font-family: 'Cinzel', serif;
}

.btn-main {
display: inline-block;
background-color: var(--text-primary);
opacity: 0.75;
font-size: 30px;
color: #1e293b;
padding: 12px 24px;
margin-top: 20px;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s;
}

.btn-main:hover {
background-color: black;
color: var(--text-primary);
text-decoration: none;
opacity: 1;
}

/* --- NEW: Background Video Styles --- */
#bg-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover; /* Ensures the video fills the screen without stretching */
z-index: 0; /* Puts the video at the very back */
}

/* Adds a subtle dark tint so the white text is readable over bright videos */
.video-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(30, 41, 59, 0.65); 
z-index: 1; /* Sits between the video and the text */
}

body {
background-color: #f8fafc; 
color: #0f172a;
}

.section-padding {
padding: 120px 8%; 
}

.section-title {
font-size: 3rem;
font-weight: 300;
text-transform: uppercase;
letter-spacing: 4px;
margin-bottom: 20px;
font-weight: bold;
}

/* =========================================
CONCEPT 1: The Editorial Offset (About)
========================================= */
.editorial-layout {
display: flex;
align-items: center;
gap: 80px;
background-color: #e2e8f0;
}

.editorial-text {
flex: 1; 
}

.editorial-text p {
font-size: 1.2rem;
line-height: 1.8;
color: #475569;
margin-bottom: 30px;
}

.editorial-image-wrapper {
flex: 1;
position: relative;
}

.editorial-img-main {
width: 100%;
height: 600px;
object-fit: cover;
border-radius: 4px; 
}

.editorial-img-accent {
position: absolute;
bottom: -40px;
left: -60px;
width: 50%;
height: 300px;
object-fit: cover;
border: 10px solid #ffffff; 
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* =========================================
CONCEPT 2: The Bento Grid (Spaces)
========================================= */

.section-subtitle{
color: #9fbeea;
font-size: 25px;
}

.section-title{
color: black;
margin-bottom: 50px;
}

.section-title2{
    color: var(--text-primary);
    margin-bottom: 50px;
    font-family: 'Cinzel', serif;
    font-size: 60px;
}
.dark-section {
background-color: var(--bg-surface); 
color: #ffffff;
}

.bento-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 350px; 
gap: 20px;
}

.space-card {
position: relative;
overflow: hidden;
border-radius: 4px;
cursor: pointer;
}

.span-2-col { grid-column: span 2; }
.span-2-row { grid-row: span 2; }

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

.space-card:hover .scale-wrapper {
transform: scale(1.05);
}

.space-overlay {
position: absolute;
inset: 0; 
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 40px;
transition: background 0.4s ease;
}

.space-card:hover .space-overlay {
background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%);
}

.space-title {
font-size: 2rem;
font-weight: 300;
margin-bottom: 10px;
transform: translateY(0);
transition: transform 0.4s ease;
font-weight: bold;
}

.space-specs {
display: flex;
gap: 20px;
font-size: 0.9rem;
color: #cbd5e1;
opacity: 0; 
transform: translateY(20px);
transition: all 0.4s ease;
}

.space-card:hover .space-specs {
opacity: 1; 
transform: translateY(0);
}

.spec-item {
display: flex;
align-items: center;
gap: 5px;
}

.spec-item strong {
color: #ffffff;
}

.scale-wrapper{
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}
.image-track{
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.image-track img{
    flex-shrink: 0 ;
    min-width: 100%;
}

/* =========================================
CONCEPT 3: The Aesthetic Location (Interactive Map)
========================================= */
.location-section {
position: relative;
height: 80vh;
min-height: 600px;
display: flex;
align-items: center;
padding: 0 8%;
overflow: hidden; /* Keeps the map neatly contained */
}

/* The actual interactive Google Map embedded in the background */
.map-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
/* This single line of CSS strips the bright Google colors to make it look premium */
filter: grayscale(100%) contrast(1.1) opacity(0.8);
border: 0;
}

.location-card {
background: rgba(255, 255, 255, 0.85); 
backdrop-filter: blur(15px); 
-webkit-backdrop-filter: blur(15px);
padding: 70px 60px;
border-radius: 4px;
max-width: 500px;
box-shadow: 0 25px 50px rgba(0,0,0,0.15);
/* Pulls the card above the map */
position: relative; 
z-index: 1; 
/* Added pointer-events so hovering the card doesn't accidentally drag the map */
pointer-events: auto; 
}

.location-card .section-title {
font-size: 2.2rem;
color: #0f172a;
margin-bottom: 40px;
}

.info-group {
margin-bottom: 30px;
}

.info-group h4 {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 2px;
color: #64748b;
margin-bottom: 10px;
}

.info-group p {
font-size: 1.1rem;
line-height: 1.6;
color: #1e293b;
font-weight: 500;
}

.btn-outline {
display: inline-block;
margin-top: 20px;
padding: 15px 35px;
border: 1px solid #0f172a;
color: #0f172a;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 0.85rem;
font-weight: 600;
transition: all 0.3s ease;
}

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

/* --- NEW: Collapse/Expand Card Styles --- */
.location-card {
transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.location-card.hidden {
opacity: 0;
visibility: hidden;
transform: scale(0.95);
pointer-events: none;
}

.close-card-btn {
position: absolute;
top: 25px;
right: 25px;
background: none;
border: none;
font-size: 1.5rem;
color: #64748b;
cursor: pointer;
transition: color 0.3s ease;
padding: 5px;
line-height: 1;
}

.close-card-btn:hover {
color: #0f172a;
}

.show-card-btn {
position: absolute;
bottom: 40px;
left: 8%; /* Aligns with the section padding */
z-index: 2;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
padding: 15px 30px;
border: none;
border-radius: 4px;
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
font-family: 'Montserrat', sans-serif;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 2px;
color: #0f172a;
cursor: pointer;
opacity: 0;
visibility: hidden;
transform: translateY(20px);
transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.show-card-btn.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.main-footer {
    background-color: var(--bg-main);; /* Elegant deep dark slate black */
    color: #d6e3f4;
    padding: 100px 8% 40px 8%;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 60px;
}

.footer-brand {
    flex: 1.5;
    min-width: 280px;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.footer-brand p {
    line-height: 1.8;
    max-width: 400px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
    min-width: 280px;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-col h4 {
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-col a, 
.footer-col p {
    display: block;
    color: #ccdaee;
    text-decoration: none;
    line-height: 2;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background-color: var(--text-primary);
    color: #0b0f19 !important;
    border-color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #b1c8e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

.modal-overlay{
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-content{
    color: black;
    background-color: var(--tos-surface);
    padding: 40px;
    border-radius: 3px;
    max-width: 800px;
}

.modal-content h2{
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.modal-body{
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body p{
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-body strong{
    color: rgb(5, 12, 65);
    font-size: 1rem;
}

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

.close-modal-btn{
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* =========================================
     MOBILE OPTIMIZATION APPEND
   ========================================= */

/* Hide mobile-specific buttons on desktop */
.mobile-menu-btn, .mobile-close-btn { 
    display: none; 
}

@media (max-width: 900px) {
    /* Typographic Adjustments */
    .section-padding { 
        padding: 60px 5%; 
    }

    .jumbotron h1 { 
        font-size: 
        2.5rem;
    }
     
    .section-title { 
        font-size: 
        2rem; 
    }
    .section-title2 { 
        font-size: 2.2rem; 
        margin-bottom: 30px; 
    }
    
    /* Minimalist Header & Menu Button */
    header { 
        padding: 20px 5%; 
    }

    .logo { 
        font-size: 1.5rem; 
        position: relative; 
        z-index: 101
    }
    
    .mobile-menu-btn {
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        background: none; 
        border: none; 
        color: var(--text-primary); 
        cursor: pointer; 
        position: relative; 
        z-index: 101;
    }
    
    .header-scroll .mobile-menu-btn { 
        color: var(--text-primary); 
    }
    
    .mobile-menu-btn span { 
        font-size: 0.55rem; 
        margin-top: 4px; 
        letter-spacing: 1px; 
        font-family: 'Montserrat', sans-serif;
    }
    
    /* Fullscreen Overlay Navigation */
    .topbar {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh;
        background: #0b0f19; 
        flex-direction: column; 
        justify-content: center;
        align-items: center; 
        gap: 40px; 
        z-index: 1000;
        opacity: 0; 
        visibility: hidden; 
        transition: all 0.3s ease;
    }
    
    body.menu-open .topbar { 
        opacity: 1; 
        visibility: visible;
     }
    body.menu-open { 
        overflow: hidden; 
    }
    
    .mobile-close-btn {
        display: block; 
        position: absolute; 
        top: 30px; 
        right: 30px;
        background: none; 
        border: none; 
        color: var(--text-primary); 
        font-size: 2rem; 
        cursor: pointer;
    }

    .topbar a { 
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 500;
    }

    
    /* Horizontal Swipe Slider (Four Seasons Style) */
    .bento-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        margin-left: -5%; 
        margin-right: -5%; 
        padding-left: 5%; 
        padding-right: 5%;
        gap: 15px;
    }
    
    .bento-grid::-webkit-scrollbar { 
        display: none; 
    }
    
    .space-card {
        flex: 0 0 82vw; /* Leaves a little room to peek at the next card */
        height: 480px;
        scroll-snap-align: center;
    }
    
    /* Reset spans */
    .span-2-col, .span-2-row { grid-column: auto; grid-row: auto; }
    
    /* Editorial Stacking */
    .editorial-layout { flex-direction: column; gap: 30px; }
    .editorial-img-main { height: 350px; }
    
    /* Layout Details */
    .location-card { max-width: 100%; padding: 40px 30px; }
    .footer-container { flex-direction: column; gap: 40px; }
    .footer-links { flex-direction: column; gap: 30px; }
}

/* Streamlined Mobile UX — hide the hover dropdown + arrow on mobile only.
   (These were global, which also hid the dropdown on desktop.) */
@media (max-width: 900px) {
    .dropdown-menu {
        display: none !important;
    }

    /* Hides the SVG arrow next to "Events" */
    .nav-items > a svg {
        display: none;
    }
}

/* De-inlined location-card overrides + modal scroll lock (from index.html / index.js) */
.location-card .section-subtitle { margin-bottom: 20px; }
.location-card .section-title { font-size: 2.2rem; margin-bottom: 40px; }
.no-scroll { overflow: hidden; }

/* Coming Soon: opaque shade + label across the whole home-page tile */
.space-card.is-coming-soon { position: relative; }
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(8, 8, 14, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
    border-radius: inherit;
}

/* Unavailable (temporary date block): corner badge + slight tile dim */
.space-card.is-unavailable { position: relative; }
.space-card.is-unavailable::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(8, 8, 14, 0.38);
    border-radius: inherit;
    pointer-events: none;
}
.unavailable-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    background: var(--accent, #c8a45c);
    color: #1a1a1a;
    padding: 10px 18px;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.unavailable-badge .ub-date {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.85;
}
/* Blocked time window under the date (e.g. "08:00-12:00" or "All day") */
.unavailable-badge .ub-time {
    display: block;
    margin-top: 1px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
    opacity: 0.75;
}