:root {
    /* Color Palette */
    --charcoal: #17191C;
    --warm-ivory: #F5F1E8;
    --antique-brass: #A98C58;
    --antique-brass-hover: #8C7243;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--charcoal);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--antique-brass);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--antique-brass-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--warm-ivory); /* Fallback while loading */
}

ul {
    list-style: none;
}

/* Accessibility - Focus Rings */
:focus-visible {
    outline: 3px solid var(--antique-brass);
    outline-offset: 3px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.bg-light {
    background-color: var(--warm-ivory);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--antique-brass);
    color: #FFFFFF;
    border-color: var(--antique-brass);
}

.btn-primary:hover {
    background-color: var(--antique-brass-hover);
    border-color: var(--antique-brass-hover);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--charcoal);
    color: #FFFFFF;
    border-color: var(--charcoal);
}

.btn-secondary:hover {
    background-color: #2A2E33;
    border-color: #2A2E33;
    color: #FFFFFF;
}

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

.btn-outline:hover {
    background-color: var(--charcoal);
    color: #FFFFFF;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: rgba(245, 241, 232, 0.7);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.link-btn:hover {
    color: var(--antique-brass);
}

.link-btn:focus-visible {
    outline: 2px solid var(--antique-brass);
    outline-offset: 2px;
}

/* 1. Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--charcoal);
    color: var(--warm-ivory);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}

.brand a {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--warm-ivory);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand a:hover {
    color: var(--antique-brass);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-list {
    display: flex;
    gap: 1rem;
}

.nav-list a {
    color: var(--warm-ivory);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--antique-brass);
}

.header-action .btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--warm-ivory);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* 2. Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px; /* Offset for header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    background-color: var(--charcoal); /* Fallback */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 25, 28, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
    color: #FFFFFF;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--antique-brass);
}

.hero-title {
    font-size: 4.5rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.hero-copy {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 3. Property Highlights */
.highlights {
    background-color: var(--charcoal);
    color: var(--warm-ivory);
    padding: 2rem 0;
    border-bottom: 4px solid var(--antique-brass);
}

.highlights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--antique-brass);
    margin-bottom: 0.25rem;
}

.highlight-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Common Section Styles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #555;
    margin-bottom: 3rem;
}

/* Split Layout (Welcome, Casino, Dining, Events, Spa) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse .split-content {
    order: 2;
}

.split-layout.reverse .split-image {
    order: 1;
}

.split-content p {
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.split-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.action-wrap {
    margin-top: 2rem;
}

.instruction-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 5. Rooms & Suites */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: #FFFFFF;
    border: 1px solid rgba(23, 25, 28, 0.1);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.room-features {
    margin-top: auto;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(23, 25, 28, 0.1);
}

.room-features li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.room-features li::before {
    content: "•";
    color: var(--antique-brass);
    position: absolute;
    left: 0;
    top: 0;
}

/* 6. Casino (Wanha Kasino specific) */
.visitor-details {
    margin-top: 2rem;
    background-color: var(--warm-ivory);
    padding: 1.5rem;
    border-left: 4px solid var(--antique-brass);
}

.detail-block {
    margin-bottom: 1.5rem;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-block h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-block p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 10. Gallery */
.gallery-grid {
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}

.gallery-img:hover {
    opacity: 0.85;
}

/* 11. FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #FFFFFF;
    border: 1px solid rgba(23, 25, 28, 0.1);
    margin-bottom: 1rem;
    border-radius: 4px;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default arrow in modern browsers */
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default arrow in webkit */
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--antique-brass);
}

details[open] .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #555;
}

/* 12. Final Reservations */
.reservations-panel {
    background-color: var(--charcoal);
    color: var(--warm-ivory);
}

.reservations-panel .section-title {
    color: var(--warm-ivory);
}

.reservations-panel .panel-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.reservations-panel .btn-outline {
    border-color: var(--warm-ivory);
    color: var(--warm-ivory);
}

.reservations-panel .btn-outline:hover {
    background-color: var(--warm-ivory);
    color: var(--charcoal);
}

.panel-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 13. Footer */
.site-footer {
    background-color: #0d0f11;
    color: rgba(245, 241, 232, 0.7);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--warm-ivory);
    display: block;
    margin-bottom: 1rem;
}

.footer-grid h4 {
    color: var(--warm-ivory);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 1rem;
}

.footer-contact a, .footer-links a {
    color: rgba(245, 241, 232, 0.7);
}

.footer-contact a:hover, .footer-links a:hover {
    color: var(--antique-brass);
}

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

.footer-bottom {
    border-top: 1px solid rgba(245, 241, 232, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner:focus {
    outline: none;
}

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

.cookie-title {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--charcoal);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Cookie Settings Panel (Embedded Page) */
.cookie-settings-panel {
    background-color: var(--warm-ivory);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(23, 25, 28, 0.1);
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(23, 25, 28, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.category-header h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.category-desc {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.status-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: #ccc;
    color: #333;
    white-space: nowrap;
}

.status-badge.always-on {
    background-color: var(--charcoal);
    color: #FFFFFF;
}

.settings-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

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

.cookie-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #2E7D32;
    font-weight: 700;
}

/* 14. Legal Pages */
.legal-page {
    margin-top: 60px; /* Offset for fixed header */
    min-height: calc(100vh - 400px); /* Ensure footer is pushed down on short content */
}

.legal-content {
    max-width: 760px; /* Reduced reading width */
    margin: 0 auto;
}

.legal-content .section-title {
    margin-bottom: 0.5rem;
}

.legal-content .last-updated {
    font-style: italic;
    color: #555;
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.legal-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    .primary-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        transition: left var(--transition-normal);
        padding: 2rem;
    }

    .primary-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }

    .nav-list a {
        font-size: 1.25rem;
    }

    .split-layout {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .highlights-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .split-layout, .split-layout.reverse {
        grid-template-columns: 1fr;
    }
    
    .split-layout.reverse .split-content {
        order: 1;
    }
    
    .split-layout.reverse .split-image {
        order: 2;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions, .panel-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions button, .cookie-actions a {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .settings-actions {
        flex-direction: column-reverse;
    }
    
    .settings-actions > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .settings-actions button {
        width: 100%;
    }
}

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