:root {
    --primary: #2d5a27;
    --primary-light: #3e7b36;
    --primary-dark: #1e3d1a;
    --accent: #d4af37;
    --text-dark: #f0f0f0;
    --text-light: #ffffff;
    --bg-light: #000000;
    --glass-bg: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #111111;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

.logo {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1002;
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s;
    opacity: 0.7;
    padding: 4px 8px;
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--accent);
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.lang-separator {
    opacity: 0.3;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -110%; /* Increased from 100 to ensure it's hidden */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }
    
    header {
        padding: 0.75rem 5%;
    }

    /* Hamburger to X Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Glass Enhancement & General Layout Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.title-xl {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-lg {
    font-size: 1.25rem;
    line-height: 1.6;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    .title-xl {
        font-size: 2.2rem;
    }
    .text-lg {
        font-size: 1.1rem;
    }
    .section {
        padding: 4rem 1.5rem;
    }
    .dynamic-section {
        padding: 3rem 1rem !important;
        min-height: 60vh;
    }
    .dynamic-content h1 {
        font-size: 2.2rem;
    }
    .dynamic-content p {
        font-size: 1.05rem;
    }
}

/* Dynamic Sections */
.dynamic-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.dynamic-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.dynamic-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.dynamic-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.dynamic-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .dynamic-section {
        background-attachment: scroll; /* Fixed background issues on mobile */
    }
}

.hero {
    height: 100vh;
    background-color: #333; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
}

.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
}

.reservation-section {
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 6rem 5%;
}

.reservation-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.glass-container {
    position: relative;
    z-index: 10;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .glass-container {
        padding: 2rem 1.25rem;
        border-radius: 15px;
    }
}

.glass-container h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.input-group.full {
    grid-column: 1 / -1;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.input-group input, .input-group select {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: rgba(255, 255, 255, 0.9);
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Guests Stepper */
.guests-stepper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stepper-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.stepper-btn:hover {
    background: var(--primary);
    color: #fff;
}

.stepper-btn:active {
    transform: scale(0.92);
}

.stepper-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    background: #f0f0f0;
}

#guests-display {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
    color: var(--text-dark);
}


.data-notice {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.4;
}

.data-notice a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.data-notice a:hover {
    color: var(--primary-light);
}

.submit-btn {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 1.2rem;
}

#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 600;
}
#toast.show {
    transform: translateY(0);
    opacity: 1;
}

footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

/* Calendar Styles */
.calendar-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendar-header h4 { margin: 0; color: #1e293b; font-size: 1.1rem; }
.cal-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #475569;
    transition: 0.2s;
}
.cal-btn:hover { background: #e2e8f0; }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s;
    user-select: none;
    position: relative;
    border: 2px solid transparent;
}
.cal-day:hover:not(.disabled) { background-color: #f1f5f9; }
.cal-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}
.cal-day .spots {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}
.cal-day.full .spots { color: #ef4444; }
.cal-day.full { color: #94a3b8; background: #fff5f5; }

.cal-day.room-blocked { color: #94a3b8; background: #fff5f5; cursor: not-allowed; }
.cal-day.room-blocked .spots { color: #ef4444; font-weight: 700; }

/* Selection States */
.cal-day.selected-start,
.cal-day.selected-end {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.cal-day.selected-start .spots,
.cal-day.selected-end .spots { color: #d1fae5; }

.cal-day.in-range {
    background-color: #dcfce7;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }

    /* Responsive Calendar */
    .calendar-container {
        padding: 0.5rem;
        overflow-x: auto;
    }
    .calendar-grid {
        gap: 2px;
    }
    .cal-day {
        font-size: 0.75rem;
        border-radius: 5px;
    }
    .cal-day .spots {
        font-size: 0.55rem;
    }
    .calendar-weekdays {
        font-size: 0.7rem;
    }
    .calendar-header h4 {
        font-size: 0.95rem;
    }
    .cal-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .input-group label {
        font-size: 0.95rem;
    }
    
    .input-group input, .input-group select, .input-group textarea {
        padding: 0.8rem;
    }
}

/* Admin Tabs Styling */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    width: 100%;
}
.tab-btn {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.tab-btn:hover {
    background: #cbd5e1;
}
.tab-btn.active {
    background: #2d5a27;
    color: white;
}
.tab-content {
    display: none;
    animation: adminFadeIn 0.3s ease-in-out;
    width: 100%;
}
@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Page Styles */
.page-container {
    max-width: 900px;
    width: 100%;
    margin: 8rem auto 4rem auto;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 50vh;
}

.page-title-main {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.8rem;
    text-align: center;
}

.page-image-hero {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-content-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .page-container {
        margin: 6rem auto 2rem auto;
        padding: 1.5rem;
        border-radius: 0;
        box-shadow: none;
    }
    .page-title-main {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .page-content-text {
        font-size: 1rem;
    }
}

/* Room Card Styles */
.room-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.room-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-card-content {
    padding: 1.5rem;
}

.room-card-title {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.room-card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.room-card-price {
    color: var(--accent);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .room-card-content {
        padding: 1.25rem;
    }
    .room-card-image {
        height: 180px;
    }
}

/* Hero Radial Layout */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
    padding-top: 120px;
}

.hero-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.5s ease-out; /* smooth if we re-render or load */
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.hero-circle-container {
    position: relative;
    width: 65vmin;  /* Uses minimum dimension to keep perfect circle touching edges safely */
    height: 65vmin;
    max-width: 600px;
    max-height: 600px;
    z-index: 3;
}

@media (max-width: 768px) {
    .hero-circle-container {
        width: 80vmin;
        height: 80vmin;
    }
}

.hero-circle-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* initial, overridden by JS */
    background: rgba(139, 92, 246, 0.6); /* Purple with ~60% opacity */
    color: #ffffff; /* White text for contrast on purple */
    font-weight: 700;
    text-decoration: none;
    padding: clamp(0.4rem, 1.3vw, 0.65rem) clamp(0.65rem, 2vw, 1.3rem); /* ~35% smaller */
    border-radius: 30px;
    font-size: clamp(0.7rem, 1.3vw, 0.9rem); /* ~35% smaller */
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px); /* Slight blur for better readability */
}

.hero-circle-link:hover {
    background: rgba(139, 92, 246, 0.9); /* More solid on hover */
    color: white;
    transform: translate(-50%, -50%) scale(1.05) !important; /* Slight grow on hover */
}

@media (max-width: 768px) {
    .hero-circle-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Admin Focus Picker */
.focus-picker-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 1rem auto 0 auto;
    border-radius: 8px;
    cursor: crosshair;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f1f5f9;
}

.focus-picker-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.focus-picker-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px dashed #ffeb3b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: rgba(255, 235, 59, 0.2);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    /* The center dot */
}
.focus-picker-circle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    background: #ffeb3b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 3px rgba(0,0,0,0.8);
}

