@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Color System */
    --graphite: #0F1115;
    --charcoal: #1B1E24;
    --stone: #242932;
    --snow: #FAFAF9;
    --mist: #B8C1C8;
    --emerald: #00C26E;
    --lime: #4DFF9D;
    --gold: #C7AE6A;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --space-xl: 8rem;

    /* Layout */
    --max-width: 1400px;
}

/* Light Theme Variables (Toggled via JS) */
[data-theme="light"] {
    --graphite: #FAFAF9;
    --charcoal: #F0F0F0;
    --stone: #E5E5E5;
    --snow: #0F1115;
    --mist: #4A4A4A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--graphite);
    color: var(--mist);
    font-family: var(--font-body);
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--snow);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--snow);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

/* Reading Progress */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--emerald);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Typography Classes */
.text-snow { color: var(--snow); }
.text-mist { color: var(--mist); }
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }

.text-xs { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-xxl { font-size: 3rem; }
.text-display { font-size: clamp(3rem, 6vw, 5rem); }

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--space-xl) 0;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.asym-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: center;
}

.asym-layout.reverse {
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 900px) {
    .asym-layout, .asym-layout.reverse {
        grid-template-columns: 1fr;
    }
}

/* Border System & Architectural Elements */
.arch-border {
    position: relative;
    border: 1px solid rgba(250, 250, 249, 0.1);
    background: var(--stone);
    padding: var(--space-md);
    transition: all 0.4s ease;
}

.arch-border::before, .arch-border::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.arch-border::before {
    top: -1px; left: -1px;
    border-top-color: var(--snow);
    border-left-color: var(--snow);
}

.arch-border::after {
    bottom: -1px; right: -1px;
    border-bottom-color: var(--snow);
    border-right-color: var(--snow);
}

.arch-border:hover {
    border-color: var(--emerald);
    box-shadow: 0 0 30px rgba(0, 194, 110, 0.1);
    transform: translateY(-5px);
}

.arch-border:hover::before, .arch-border:hover::after {
    border-color: var(--lime);
    width: 25px; height: 25px;
}

.glass-panel {
    background: rgba(36, 41, 50, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250, 250, 249, 0.05);
}

.separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--emerald), transparent);
    margin: var(--space-md) 0;
    opacity: 0.5;
}

/* Navigation */
.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(250, 250, 249, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--snow);
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 5px;
}

.brand-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 1px;
    background: var(--emerald);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--lime);
    transition: width 0.3s ease;
}

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

.mobile-toggle, .theme-toggle {
    background: none;
    border: none;
    color: var(--snow);
    cursor: pointer;
    font-size: 1.2rem;
}

.mobile-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--charcoal);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid rgba(250, 250, 249, 0.1);
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--charcoal);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 5%;
}

.hero-subtitle {
    display: block;
    margin-bottom: 1rem;
    color: var(--emerald);
}

.hero h1 {
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--snow);
    color: var(--snow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    border-color: var(--emerald);
    background: rgba(0, 194, 110, 0.1);
    color: var(--lime);
}

/* Data Cards */
.property-data-list {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(250, 250, 249, 0.1);
    padding-top: 1.5rem;
}

.data-row {
    display: flex;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.data-label {
    min-width: 120px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-style: italic;
}

.data-value {
    color: var(--snow);
}

.data-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(15, 17, 21, 0.5);
    border-left: 2px solid var(--emerald);
    font-size: 0.8rem;
    color: var(--mist);
}

/* Editorial Block */
.editorial-image-wrapper {
    position: relative;
    padding: 2rem;
}

.editorial-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 1px solid rgba(250, 250, 249, 0.1);
    z-index: 0;
}

.editorial-img {
    position: relative;
    z-index: 1;
    transform: translate(-1rem, -1rem);
    transition: transform 0.4s ease;
}

.editorial-image-wrapper:hover .editorial-img {
    transform: translate(0, 0);
}

/* Destination Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--emerald);
    color: var(--emerald);
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: var(--charcoal);
    border-top: 1px solid var(--stone);
    border-bottom: 1px solid var(--stone);
    padding: 2rem 0;
    text-align: center;
}

/* Footer */
.site-footer {
    background: var(--graphite);
    border-top: 1px solid rgba(250, 250, 249, 0.1);
    padding: 4rem 0 2rem;
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(250, 250, 249, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    background: var(--graphite);
    border: 1px solid rgba(250, 250, 249, 0.2);
    padding: 1rem;
    color: var(--snow);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--emerald);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--charcoal);
    border-top: 1px solid var(--emerald);
    padding: 2rem;
    z-index: 9999;
    transition: bottom 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Interior Pages Header */
.interior-header {
    padding: 12rem 0 6rem;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(250, 250, 249, 0.05);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: 1.5rem;
}

.content-block h2, .content-block h3 {
    margin: 3rem 0 1.5rem;
}

.list-styled {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.list-styled li {
    margin-bottom: 0.5rem;
    position: relative;
}

.list-styled li::before {
    content: '▪';
    color: var(--emerald);
    position: absolute;
    left: -1.5rem;
}