:root {
    /* Color Palette - Forest & Wood */
    --color-primary: #2E5D38;
    /* Deep Forest Green */
    --color-primary-light: #5C8D66;
    /* Lighter Leaf Green */
    --color-secondary: #8B5A2B;
    /* Warm Wood Brown */
    --color-secondary-light: #A67B5B;
    /* Lighter Wood */
    --color-accent: #D4E157;
    /* Fresh Shoot Green */
    --color-bg-cream: #FAF9F6;
    /* Off-white/Cream */
    --color-bg-overlay: rgb(255, 255, 255);
    /* Semi-transparent cream for glass effect */
    --color-text-main: #1A3320;
    /* Very Dark Green for text */
    --color-text-light: #FDFBF7;
    --shadow-soft: 0 4px 6px rgba(46, 93, 56, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --radius-round: 20px;
}

html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-cream);
    color: var(--color-text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    /* Navbar padding handled by specific components or padding-top if fixed */
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.main-content {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}

.glass-panel {
    background: var(--color-bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-round);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-glass);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 93, 56, 0.3);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    /* Elegant serif for headings */
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Navigation */
.navbar {
    background-color: #E8F5E9;
    /* Soft Green Background */
    padding: 0.8rem 0;
    position: fixed;
    /* Fixed position */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(46, 93, 56, 0.1);
    /* Softer, greener shadow */
    border-bottom: 1px solid rgba(46, 93, 56, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--color-primary);
    /* Dark Green Text */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover Effect */
.nav-links a:hover {
    background-color: rgba(46, 93, 56, 0.1);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* Active State */
.nav-links a.active {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(46, 93, 56, 0.25);
}

/* Highlighted Menu Tab (Special Button Style if needed) */
.nav-links a.nav-highlight {
    background-color: var(--color-secondary);
    color: #FFFFFF;
}

.nav-links a.nav-highlight:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

/* Brand Link Style (Guarumo) */
.brand-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-link:hover {
    color: var(--color-secondary);
    transform: scale(1.05);
}

/* Admin Button Style */
.admin-nav-btn {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 6px 16px !important;
    /* Override default link padding */
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem !important;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
}

.admin-nav-btn:hover {
    background-color: var(--color-primary);
    color: white !important;
    box-shadow: 0 4px 10px rgba(46, 93, 56, 0.2);
    transform: translateY(-2px);
}

.admin-nav-btn i {
    font-size: 0.8rem;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
        /* Thinner navbar on mobile */
    }

    .navbar .container {
        padding: 0 1rem;
        /* Reduced side padding on mobile */
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        /* Fixed full screen menu */
        top: 60px;
        /* Below navbar */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgba(232, 245, 233, 0.98);
        /* Opaque background */
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        box-shadow: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 80%;
        margin: 0 auto;
        padding: 0.8rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 93, 56, 0.1);
}

.announcement-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46, 93, 56, 0.15);
}

.announcement-header {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.announcement-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.announcement-card:hover .announcement-header img {
    transform: scale(1.05);
}

.announcement-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-date {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    line-height: 1.3;
}

.announcement-summary {
    font-size: 0.95rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Change from center to flex-start to allow scrolling of tall content */
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    /* Enable scroll on overlay */
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 95%;
    /* Slightly wider */
    max-width: 1000px;
    /* Remove rigid max-height so it can grow and be scrolled via overlay */
    height: auto;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: 45% 55%;
    /* Fixed ratio */
    overflow: hidden;
    margin: auto;
    /* Centers it vertically/horizontally in the flex container if space allows */
}

.modal-content.no-image {
    grid-template-columns: 1fr;
    max-width: 600px;
    max-height: 90vh;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Close button - adjusted position */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-main);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.modal-close:hover {
    background: var(--color-primary);
    color: white;
    transform: rotate(90deg);
}

.modal-image-container {
    /* Height matches the text content or minimum */
    min-height: 400px;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    /* Reduced padding */
    /* Removed overflow: hidden; */
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.modal-body {
    padding: 2rem;
    /* Reduced padding from 3rem */
    /* Remove internal scroll, let the modal grow */
    overflow-y: visible;
    /* Only text scrolls if needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically if short */
}

.modal-date {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-date::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--color-primary);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    /* Slightly smaller for safety */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-text-main);
    padding-bottom: 0;
    border-bottom: none;
}

.modal-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
    /* Fancy scrollbar for the text area */
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) transparent;
}

/* Height-based media query for laptops/landscape phones */
@media (max-height: 700px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .modal-content,
    .modal-content.no-image {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        max-height: 95vh;
        /* Allow mostly full screen on mobile */
    }

    .modal-image-container {
        height: auto;
        min-height: 200px;
        max-height: 40vh;
        /* Limit image height on mobile stack */
        padding: 1rem;
        flex-shrink: 0;
        /* Keep image visible */
    }

    .modal-body {
        padding: 1.5rem;
        overflow-y: auto;
        /* Scroll body text */
        display: block;
        /* Normal block flow */
    }

    .modal-title {
        font-size: 1.8rem;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Menu Page */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--color-primary-light);
    padding: 1rem 0;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-details h4 {
    margin-bottom: 0.25rem;
}

.item-price {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

.alert {
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.5s ease-out;
}

.alert-success {
    background-color: var(--color-primary);
}

.alert-error {
    background-color: #D32F2F;
}

.alert-warning {
    background-color: #FFA000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loyalty & VIP */
.vip-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loyalty-status {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 10px;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    /* Removed border-radius 50% to avoid cutting off non-square logos unless intended */
    /* Removed thick border */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 1100px;
    width: 100%;
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    background: #000;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 450px;
    background: #000;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Responsive carousel height */
@media (max-width: 768px) {

    .carousel-item,
    .carousel-inner {
        height: 300px;
    }
}

/* Compact Reservations Page Styles */
.compact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.compact-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.compact-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.user-greeting {
    text-align: center;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.compact-btn {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.half-width {
    flex: 1;
}

/* Mobile Optimizations for Reservations */
@media (max-width: 768px) {
    .compact-form-container {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .compact-title {
        /* Clamp font size to fit on one line */
        font-size: clamp(1.2rem, 6vw, 2rem) !important;
        white-space: nowrap;
        margin-bottom: 0.5rem !important;
    }

    .compact-subtitle {
        margin-bottom: 1rem !important;
        font-size: 0.9rem;
    }

    .compact-group {
        margin-bottom: 0.8rem !important;
    }

    .compact-group label {
        margin-bottom: 0.2rem !important;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 8px 12px !important;
        /* Slightly smaller padding */
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    .user-greeting {
        margin-bottom: 0.5rem !important;
        font-size: 0.9rem;
    }

    .compact-btn {
        margin-top: 0.5rem;
        margin-top: 4rem;
        text-align: center;
        width: 100%;
    }
}

/* Footer Styles - Fixed/Sticky (Standardized to match Home Page) */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(46, 93, 56, 0.95);
    /* Slightly transparent dark green */
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.8rem 0;
    /* Thinner vertical padding */
    margin-top: 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    /* Reduced gap */
    width: 100%;
    padding: 0 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0;
    /* Removed bottom margin */
}

.social-icons a {
    color: white;
    font-size: 1.3rem;
    /* Slightly smaller icons */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--color-accent);
}

.footer-content p {
    font-size: 0.8rem;
    /* Smaller copyright text */
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        /* Minimal padding on mobile */
    }

    .site-footer {
        padding: 0.6rem 0;
        /* Even thinner on mobile */
    }

    .social-icons {
        gap: 1.2rem;
    }

    .social-icons a {
        font-size: 1.2rem;
    }

    body {
        padding-bottom: 90px;
    }
}