/* ==========================================================================
   MOP Restaurant Luxury Design System & Interactive Storefront
   ========================================================================== */

/* Custom fonts from Google Fonts loaded in index.html */
:root {
    --font-luxury-heading: "Space Grotesk", sans-serif;
    --font-premium-serif: "Playfair Display", "Georgia", serif;

    /* Restaurant palette — dark is the default look; `theme.css` flips the
       shared tokens and the block below flips these for `data-theme="light"`.
       The tower's overlays (sign, floor labels, roof buttons) sit on the night
       photo and keep their own dark values in both themes. */
    --rs-bg: #050508;
    --rs-bg-deep: #040406;
    --rs-veil: rgba(5, 5, 8, 0.6);
    --rs-ink: #ffffff;
    --rs-ink-rgb: 255, 255, 255;
    --rs-gold: #ffd700;
    --rs-gold-hover: #ffea70;
    --rs-gold-rgb: 255, 215, 0;
    --rs-on-gold: #0a0a0f;
    --rs-glass-bg: rgba(15, 15, 20, 0.75);
    --rs-glass-border: rgba(255, 215, 0, 0.15);
    --rs-glass-glow: rgba(255, 215, 0, 0.05);
    --rs-popover-bg: rgba(15, 15, 22, 0.95);
    --rs-divider-gap: #0f0f16;
    --rs-overlay: rgba(0, 0, 0, 0.85);
    --rs-shadow-rgb: 0, 0, 0;
    --rs-green-rgb: 120, 220, 120;
    --rs-green-ink: rgba(160, 235, 160, 0.95);
    /* Staff area accent (green), scoped onto the shared button tokens there. */
    --rs-accent: #00ff88;
    --rs-accent-rgb: 0, 255, 136;
    --rs-on-accent: #0a0a0f;

    /* Names the rest of this file grew up with. */
    --color-gold-primary: var(--rs-gold);
    --color-gold-hover: var(--rs-gold-hover);
    --color-glass-bg: var(--rs-glass-bg);
    --color-glass-border: var(--rs-glass-border);
    --color-glass-glow: var(--rs-glass-glow);

    /* The shared `.btn-*` rules paint with these; the public site is gold. */
    --color-accent: var(--rs-gold);
    --color-accent-hover: var(--rs-gold-hover);
}

:root[data-theme="light"] {
    --rs-bg: #f4efe4;
    --rs-bg-deep: #e9e1d0;
    --rs-veil: rgba(244, 239, 228, 0.72);
    --rs-ink: #1b1608;
    --rs-ink-rgb: 27, 22, 8;
    --rs-gold: #8d6a00;
    --rs-gold-hover: #6f5300;
    --rs-gold-rgb: 141, 106, 0;
    --rs-on-gold: #ffffff;
    --rs-glass-bg: rgba(255, 253, 248, 0.86);
    --rs-glass-border: rgba(141, 106, 0, 0.25);
    --rs-glass-glow: rgba(141, 106, 0, 0.06);
    --rs-popover-bg: rgba(255, 253, 248, 0.98);
    --rs-divider-gap: #fbf8f1;
    --rs-overlay: rgba(40, 32, 12, 0.55);
    --rs-shadow-rgb: 60, 45, 10;
    --rs-green-rgb: 30, 120, 60;
    --rs-green-ink: rgba(20, 100, 50, 0.95);
    --rs-accent: #0a8f4e;
    --rs-accent-rgb: 10, 143, 78;
    --rs-on-accent: #ffffff;
}

/* Shared `.btn-primary` forces white text; gold wants ink on it. */
.btn-primary {
    color: var(--rs-on-gold) !important;
}

/* 1. Global Viewport Alignment for storefront poster explore mode */
.storefront-viewport {
    background: var(--rs-bg-deep);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: calc(100vw * 2.9155);
    overflow: visible;
}

/* Force body size to be the exact background image dimensions when exploring
   the storefront as a full page (phones on `/`). `layout.css` lifts this on
   desktop, where the tower is a sticky column. */
body:has(.app-shell--home .storefront-viewport) {
    width: 100vw !important;
    height: calc(100vw * 2.9155) !important;
    overflow-x: hidden !important; /* Prevents horizontal scroll entirely */
    overflow-y: auto !important; /* Allows vertical scrolling */
    background-color: var(--rs-bg-deep) !important;
    margin: 0 !important;
}

/* 2. Interactive Storefront Poster Container */
.storefront-container {
    width: 100vw;
    height: calc(100vw * 2.9155);
    position: relative;
    background-image: url("/assets/ristogood_night_cut.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.95);
    overflow: hidden;
    /* The floors' type scales with the poster's width (cqw below), so the
       tower reads the same as a full-width phone page and as a sidebar. */
    container-type: inline-size;
}

/* 3. Roof overlay with active flag.
   The flag image itself is supplied by the `--roof-flag-url` custom property,
   which the `.roof-lang-*` classes below set. This indirection lets the same
   language class drive the home roof overlay AND the subpage backgrounds
   (which render the poster + flag on a `::before` pseudo-element). */
@keyframes storefront-roof-dissolve {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.storefront-roof {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16.414%; /* 402px / 2449px */
    background-image: var(--roof-flag-url);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none; /* Changed to none since floor-roof acts as the click target overlay! */
    animation: storefront-roof-dissolve var(--duration-slow) var(--ease-default) forwards;
}

/* Language → roof flag URL. Driven by a class instead of an inline
   `style="..."` so the strict CSP (no 'unsafe-inline' in style-src) does
   not silently block it. Inherits to descendants, so the class can sit on
   the home roof element OR on a subpage container.
   File names use ISO-639-1 codes uppercased: AR/DE/EN/ES/FR/IT/ZH. */
.roof-lang-ar { --roof-flag-url: url("/assets/AR_ROOF.png"); }
.roof-lang-de { --roof-flag-url: url("/assets/DE_ROOF.png"); }
.roof-lang-en { --roof-flag-url: url("/assets/EN_ROOF.png"); }
.roof-lang-es { --roof-flag-url: url("/assets/ES_ROOF.png"); }
.roof-lang-fr { --roof-flag-url: url("/assets/FR_ROOF.png"); }
.roof-lang-it { --roof-flag-url: url("/assets/IT_ROOF.png"); }
.roof-lang-zh { --roof-flag-url: url("/assets/ZH_ROOF.png"); }

/* Dedicated click zone overlay for the roof floor */
.floor-roof {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16.414%; /* 402px / 2449px */
    z-index: 15 !important; /* Sits on top of everything for guaranteed click capture and signboard visibility! */
    pointer-events: auto;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0); /* Transparent color enforces solid target status on all layout engines */
}

/* Flagpole clickable area target */
.flag-trigger {
    position: absolute;
    top: 1.244%; /* 5px / 402px */
    left: 47%; /* 395px / 840px */
    width: 6%;  /* 50px / 840px */
    height: 12.438%; /* 50px / 402px */
    cursor: pointer;
    background: transparent;
    pointer-events: auto;
    z-index: 16;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flag-trigger:hover {
    transform: scale(1.25);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Flag tooltip help bubble */
.tooltip-bubble {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(4px);
    color: var(--color-gold-primary);
    border: 1px solid var(--color-glass-border);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: clamp(9px, 1.8cqw, 12px);
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 16;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: pulse-glow 2s infinite alternate;
    pointer-events: none; /* Make click-through to parent container seamless! */
}

/* Elegant login icon / button in the top right corner */
.roof-login-button {
    position: absolute;
    top: 5%;
    right: 4%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--color-gold-primary);
    color: var(--color-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 17; /* High stack order sits on top of everything! */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: auto; /* Enable hover/clicks independently of parent! */
}

.roof-login-button:hover {
    transform: scale(1.12);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.login-svg-icon {
    width: 18px;
    height: 18px;
}

/* Floating elegant logo on roof */
.roof-title-container {
    position: absolute;
    bottom: 6.219%; /* 25px / 402px */
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none; /* Let clicks pass through to floor-roof! */
}

.roof-sign-board {
    display: inline-block;
    padding: clamp(4px, 1cqw, 8px) clamp(12px, 2.5cqw, 24px);
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--color-gold-primary);
    border-radius: 4px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.85),
        0 0 15px rgba(255, 215, 0, 0.25),
        inset 0 0 12px rgba(255, 215, 0, 0.15);
    position: relative;
    cursor: pointer;
    pointer-events: auto; /* Re-enable pointer events for hover interactions! */
}

/* Hanging support chains/brackets */
.roof-sign-board::before,
.roof-sign-board::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 2.5px;
    height: 12px;
    background: linear-gradient(180deg, rgba(255,215,0,0.3) 0%, var(--color-gold-primary) 100%);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
.roof-sign-board::before { left: 15%; }
.roof-sign-board::after { right: 15%; }

.restaurant-logo-main {
    font-family: var(--font-luxury-heading);
    font-size: clamp(0.9rem, 2.8cqw, 1.6rem); /* Optimized size to fit beautifully in the signboard */
    font-weight: 700;
    letter-spacing: clamp(1.5px, 0.5cqw, 4px);
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    margin: 0;
}

/* 4. Floor Navigation Click Zones (Stacked absolute layers) */
.floor-target {
    position: absolute;
    left: 0;
    width: 100%;
    height: 15.639%; /* 383px / 2449px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    pointer-events: auto;
    transition: all 0.4s ease;
    z-index: 2;
}

/* Specific vertical coordinates for floors */
.floor-menu         { top: 16.414%; height: 12.6%; } /* First section menu height 12.6% */
.floor-reservations { top: 29.014%; height: 16.6%; } /* Starts right after Menu floor, reducing spacing! */
.floor-about        { top: 45.614%; height: 16.6%; } /* Height 16.6% */
.floor-gallery      { top: 62.214%; height: 13.6%; } /* Photos section height 13.6% */
.floor-contacts     { top: 75.814%; height: 16.6%; } /* Starts at 62.214% + 13.6% = 75.814%, height 16.6% */

/* Subtly tint and outline the floors on hover */
.floor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(180deg, rgba(255,215,0,0) 0%, rgba(255,215,0,0.04) 50%, rgba(255,215,0,0) 100%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.floor-target:hover .floor-glow {
    opacity: 1;
}

.floor-target:hover {
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.12);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    background-color: rgba(10, 10, 15, 0.15);
}

/* Floor labels and details */
.floor-info-box {
    text-align: center;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.floor-target:hover .floor-info-box {
    transform: translateY(0);
    opacity: 1;
}

.floor-number {
    font-family: var(--font-luxury-heading);
    color: var(--color-gold-primary);
    font-size: clamp(0.75rem, 2cqw, 1.1rem);
    font-weight: 500;
    letter-spacing: clamp(2px, 0.5cqw, 4px);
    display: block;
    margin-bottom: 5px;
}

.floor-label {
    font-family: var(--font-luxury-heading);
    color: #ffffff;
    font-size: clamp(1.2rem, 4.2cqw, 2.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: clamp(3px, 0.7cqw, 6px);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.floor-arrow {
    display: block;
    color: var(--color-gold-primary);
    margin-top: 5px;
    font-size: clamp(0.8rem, 2.2cqw, 1.2rem);
    animation: float-slow 2s infinite alternate;
}

/* 5. Sidewalk Luxury Footer (2298px - 2449px) */
.storefront-sidewalk-footer {
    position: absolute;
    top: 92.414%; /* Starts right after Contacts floor ends (16.414% + 12.6% + 16.6% + 16.6% + 13.6% + 16.6% = 92.414%) */
    left: 0;
    width: 100%;
    height: 7.586%; /* Fills the remaining height perfectly to sum to exactly 100% */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15,15,20,0.85) 0%, rgba(5,5,8,0.98) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 5;
}

.footer-inner-luxury-centered {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-single-line {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1.8cqw, 0.9rem);
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}

/* 6. Language Modal (Glassmorphic) */
.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rs-overlay);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lang-modal {
    background: var(--rs-popover-bg);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 25px 60px rgba(var(--rs-shadow-rgb), 0.8), 0 0 30px rgba(var(--rs-gold-rgb), 0.1);
    border-radius: 16px;
    padding: 35px;
    width: 90%;
    max-width: 480px;
    text-align: center;
}

.lang-modal h3 {
    font-family: var(--font-luxury-heading);
    color: var(--rs-ink);
    font-size: 1.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.luxury-divider {
    height: 2px;
    width: 60px;
    background: var(--color-gold-primary);
    margin: 15px auto;
    position: relative;
}

/* Tighter top margin / larger bottom gap, used in the language modal header. */
.luxury-divider.luxury-divider-modal {
    margin: 10px auto 25px auto;
}

/* Wider top/bottom gap, used inside success/confirmation panels. */
.luxury-divider.luxury-divider-spaced {
    margin: 20px auto;
}

.luxury-divider::before {
    content: "✦";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--rs-divider-gap);
    color: var(--color-gold-primary);
    font-size: 0.8rem;
    padding: 0 6px;
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* 2-column grid variant for the 7-language picker: keeps the modal a
   reasonable height instead of a tall single column. The final row has
   one item by itself, which is fine. */
.lang-options.lang-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    background: rgba(var(--rs-ink-rgb), 0.03);
    border: 1px solid rgba(var(--rs-ink-rgb), 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-option:hover, .lang-option.active {
    background: rgba(var(--rs-gold-rgb), 0.08);
    border-color: var(--color-gold-primary);
    transform: translateY(-2px);
}

.lang-flag {
    font-size: 1.8rem;
}

.lang-name {
    color: var(--rs-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}

.btn-close {
    background: transparent;
    color: rgba(var(--rs-ink-rgb), 0.6);
    border: 1px solid rgba(var(--rs-ink-rgb), 0.15);
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-close:hover {
    color: var(--rs-ink);
    border-color: var(--rs-ink);
    background: rgba(var(--rs-ink-rgb), 0.05);
}

/* 7. Subpage Layouts (Luxury Glassmorphism Cards).
   Three painting layers, all confined to the container's stacking context
   (forced via `isolation: isolate`) so the negative z-index pseudo-elements
   sit above the container's own background but below the page content:

     · element background (var(--rs-bg))            -- fallback while images load
     · ::before  (z-index -2)                  -- storefront poster + lang flag, fixed to viewport
     · ::after   (z-index -1)                  -- blurred dark veil over the background
     · in-flow .luxury-card                    -- foreground content
*/
.menu-page-container,
.reservations-page-container,
.about-page-container,
.gallery-page-container,
.contacts-page-container {
    background: var(--rs-bg);
    position: relative;
    min-height: 100vh;
    padding: 120px 20px 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    isolation: isolate;
}

.menu-page-container::before,
.reservations-page-container::before,
.about-page-container::before,
.gallery-page-container::before,
.contacts-page-container::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--roof-flag-url), url("/assets/ristogood_night_cut.png");
    /* Poster aspect ratio is 1:2.9155; the roof flag occupies the top 16.414%
       of the poster, i.e. 100vw * 2.9155 * 0.16414 ≈ 100vw * 0.4786. Keeping
       both layers anchored to `top center` lines the flag up with the poster. */
    background-size: 100vw calc(100vw * 0.4786), 100vw auto;
    background-position: top center, top center;
    background-repeat: no-repeat, no-repeat;
    z-index: -2;
    pointer-events: none;
}

.menu-page-container::after,
.reservations-page-container::after,
.about-page-container::after,
.gallery-page-container::after,
.contacts-page-container::after {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--rs-veil);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}

.luxury-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 30px 70px rgba(var(--rs-shadow-rgb), 0.8), 0 0 50px rgba(var(--rs-gold-rgb), 0.05);
}

.card-overline {
    font-family: var(--font-luxury-heading);
    color: var(--color-gold-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.premium-title {
    font-family: var(--font-luxury-heading);
    color: var(--rs-ink);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
}

/* 8. Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media(min-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.menu-section {
    background: rgba(var(--rs-ink-rgb), 0.01);
    border: 1px solid rgba(var(--rs-ink-rgb), 0.03);
    border-radius: 12px;
    padding: 25px;
}

.section-title {
    font-family: var(--font-luxury-heading);
    color: var(--color-gold-primary);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(var(--rs-gold-rgb), 0.1);
    padding-bottom: 10px;
    text-align: center;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-item {
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateX(5px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.item-name {
    color: var(--rs-ink);
    font-family: var(--font-luxury-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.item-price {
    color: var(--color-gold-primary);
    font-family: var(--font-luxury-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.item-desc {
    color: rgba(var(--rs-ink-rgb), 0.55);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* 9. Reservations & Contacts Forms */
.luxury-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Submit button at the end of a luxury-form: a touch of extra top spacing
   so it sits clear of the last form-group's gap. */
.btn-form-submit {
    margin-top: 20px;
}

/* Subpage card footer (the "← Back to Storefront" row). Pushed down to
   feel like a separate footer block under the main card content. */
.card-footer {
    margin-top: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-luxury-heading);
    color: rgba(var(--rs-ink-rgb), 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input {
    background: rgba(var(--rs-ink-rgb), 0.03);
    border: 1px solid rgba(var(--rs-ink-rgb), 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--rs-ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold-primary);
    background: rgba(var(--rs-gold-rgb), 0.03);
    box-shadow: 0 0 10px rgba(var(--rs-gold-rgb), 0.1);
}

select.form-input option {
    background: var(--rs-divider-gap);
    color: var(--rs-ink);
}

.guests-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(var(--rs-ink-rgb), 0.1);
    background: rgba(var(--rs-ink-rgb), 0.03);
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
}

.btn-qty {
    background: transparent;
    border: none;
    color: var(--rs-ink);
    font-size: 1.3rem;
    width: 50px;
    height: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-qty:hover {
    background: rgba(var(--rs-ink-rgb), 0.08);
    color: var(--color-gold-primary);
}

.qty-display {
    flex: 1;
    text-align: center;
    font-family: var(--font-luxury-heading);
    color: var(--rs-ink);
    font-weight: 600;
}

/* Success Messages */
.reservation-success, .message-success {
    padding: 30px 0;
}

/* Slightly more vertical breathing room, used when the success panel is the
   only content in its column (contacts page). */
.message-success.message-success-padded {
    padding: 40px 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse-glow 2s infinite alternate;
}

.reservation-success h2, .message-success h2 {
    font-family: var(--font-luxury-heading);
    color: var(--rs-ink);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.reservation-success p, .message-success p {
    color: rgba(var(--rs-ink-rgb), 0.6);
    max-width: 500px;
    margin: 0 auto 30px auto;
}

/* 10. Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media(min-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.gallery-item {
    background: rgba(var(--rs-ink-rgb), 0.02);
    border: 1px solid rgba(var(--rs-ink-rgb), 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold-primary);
    box-shadow: 0 15px 30px rgba(var(--rs-gold-rgb), 0.08);
}

.gallery-image-placeholder {
    height: 180px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(var(--rs-gold-rgb), 0.18) 0%, rgba(100, 50, 20, 0.35) 40%, #0a0a0f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Picture-frame stripe behind the icon */
.gallery-image-placeholder::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 140%;
    height: 30%;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--rs-gold-rgb), 0.12) 50%, transparent 100%);
    transform: rotate(-22deg);
    pointer-events: none;
    z-index: 1;
}

/* Faint dotted gold ring behind the icon */
.gallery-image-placeholder::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 1px dashed rgba(var(--rs-gold-rgb), 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.gallery-icon {
    font-size: 3.5rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 25px rgba(255, 180, 80, 0.45), 0 2px 8px rgba(var(--rs-shadow-rgb), 0.6);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.2);
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sits on the dark placeholder tile: stays dark in both themes. */
    background: linear-gradient(0deg, rgba(15, 15, 22, 0.95) 0%, rgba(15, 15, 22, 0) 80%);
    z-index: 1;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    font-family: var(--font-luxury-heading);
    color: var(--rs-ink);
    font-size: 1.15rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.gallery-info p {
    color: rgba(var(--rs-ink-rgb), 0.5);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* 11. Contacts & Location */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 30px;
}

@media(min-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1.1fr 1.3fr;
    }
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-block h3 {
    font-family: var(--font-luxury-heading);
    color: var(--color-gold-primary);
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.info-block p {
    color: rgba(var(--rs-ink-rgb), 0.7);
    line-height: 1.6;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(var(--rs-ink-rgb), 0.1);
    padding-bottom: 8px;
}

.hour-row .day {
    color: rgba(var(--rs-ink-rgb), 0.6);
    font-weight: 500;
}

.hour-row .time {
    color: var(--rs-ink);
    font-family: var(--font-luxury-heading);
    font-weight: 600;
}

/* 12. Elegant Custom Logos */
.restaurant-logo-nav {
    font-family: var(--font-luxury-heading);
    color: var(--rs-ink);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(var(--rs-gold-rgb), 0.2);
}

/* 13. High-End Micro-Animations */
@keyframes pulse-glow {
    from {
        text-shadow: 0 0 15px rgba(var(--rs-gold-rgb), 0.2);
        box-shadow: 0 0 15px rgba(var(--rs-gold-rgb), 0.2);
    }
    to {
        text-shadow: 0 0 30px rgba(var(--rs-gold-rgb), 0.5), 0 0 10px rgba(var(--rs-gold-rgb), 0.3);
        box-shadow: 0 0 30px rgba(var(--rs-gold-rgb), 0.4);
    }
}

@keyframes float-slow {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(5px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-scale-up {
    animation: scaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 14. About Us narrative */
.about-content {
    margin-top: 30px;
}

.about-narrative {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: rgba(var(--rs-ink-rgb), 0.72);
    line-height: 1.75;
}

.about-narrative h3 {
    font-family: var(--font-luxury-heading);
    color: var(--color-gold-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

.lead-text {
    font-size: 1.15rem;
    color: rgba(var(--rs-ink-rgb), 0.88);
    font-style: italic;
    border-left: 3px solid var(--color-gold-primary);
    padding-left: 22px;
    line-height: 1.7;
}

.editorial-quote {
    background: rgba(var(--rs-gold-rgb), 0.03);
    border-left: 3px solid var(--color-gold-primary);
    border-radius: 8px;
    padding: 25px 30px;
    margin: 10px 0;
}

.quote-text {
    color: rgba(var(--rs-ink-rgb), 0.82);
    font-size: 1.02rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 12px;
}

.quote-author {
    color: var(--color-gold-primary);
    font-family: var(--font-luxury-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.philosophy-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .philosophy-badges {
        grid-template-columns: repeat(3, 1fr);
    }
}

.badge-item {
    background: rgba(var(--rs-gold-rgb), 0.02);
    border: 1px solid rgba(var(--rs-gold-rgb), 0.1);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.badge-item:hover {
    border-color: var(--color-gold-primary);
    background: rgba(var(--rs-gold-rgb), 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(var(--rs-gold-rgb), 0.1);
}

.badge-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.badge-item h4 {
    font-family: var(--font-luxury-heading);
    color: var(--color-gold-primary);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.badge-item p {
    color: rgba(var(--rs-ink-rgb), 0.6);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* 15. Menu dietary chips */
.diet-chip {
    display: inline-block;
    font-family: var(--font-luxury-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 999px;
    border: 1px solid var(--color-gold-primary);
    color: var(--color-gold-primary);
    vertical-align: middle;
    line-height: 1.4;
}

.diet-chip.diet-chip--v {
    border-color: rgba(var(--rs-green-rgb), 0.55);
    color: var(--rs-green-ink);
    background: rgba(var(--rs-green-rgb), 0.07);
}

.diet-chip.diet-chip--gf {
    border-color: rgba(var(--rs-gold-rgb), 0.4);
    color: rgba(var(--rs-gold-rgb), 0.9);
    background: rgba(var(--rs-gold-rgb), 0.05);
}

/* 16. Form validation visual states (browser :invalid hook) */
.form-input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 140, 80, 0.5);
    box-shadow: 0 0 8px rgba(255, 140, 80, 0.15);
    background: rgba(255, 140, 80, 0.03);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: rgba(var(--rs-gold-rgb), 0.3);
}

/* 17. Contacts page enhancements */
.tel-link,
.mail-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tel-link:hover,
.mail-link:hover {
    color: var(--color-gold-primary);
    border-bottom-color: var(--color-gold-primary);
}

.info-block-hours-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.info-block-hours-header h3 {
    margin-bottom: 0;
}

.open-now-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-luxury-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.open-now-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.open-now-badge.is-open {
    color: var(--color-gold-primary);
    background: rgba(var(--rs-gold-rgb), 0.08);
    border: 1px solid rgba(var(--rs-gold-rgb), 0.35);
}

.open-now-badge.is-open::before {
    background: var(--color-gold-primary);
    box-shadow: 0 0 8px rgba(var(--rs-gold-rgb), 0.7);
    animation: pulse-glow 1.8s infinite alternate;
}

.open-now-badge.is-closed {
    color: rgba(var(--rs-ink-rgb), 0.55);
    background: rgba(var(--rs-ink-rgb), 0.03);
    border: 1px solid rgba(var(--rs-ink-rgb), 0.1);
}

.open-now-badge.is-closed::before {
    background: rgba(var(--rs-ink-rgb), 0.4);
}

.map-placeholder {
    position: relative;
    height: 180px;
    border-radius: 12px;
    border: 1px solid rgba(var(--rs-gold-rgb), 0.12);
    margin-bottom: 35px;
    overflow: hidden;
    background:
        linear-gradient(115deg, transparent 38%, rgba(var(--rs-gold-rgb), 0.05) 39%, rgba(var(--rs-gold-rgb), 0.05) 41%, transparent 42%),
        linear-gradient(25deg, transparent 58%, rgba(var(--rs-gold-rgb), 0.04) 59%, rgba(var(--rs-gold-rgb), 0.04) 60%, transparent 61%),
        linear-gradient(75deg, transparent 22%, rgba(var(--rs-ink-rgb), 0.025) 23%, rgba(var(--rs-ink-rgb), 0.025) 24%, transparent 25%),
        radial-gradient(ellipse at 60% 50%, rgba(60, 50, 30, 0.5) 0%, #0a0a0f 100%);
    box-shadow: inset 0 0 40px rgba(var(--rs-shadow-rgb), 0.6);
}

.map-placeholder::after {
    content: "📍";
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -65%);
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(var(--rs-gold-rgb), 0.7));
    animation: float-slow 2.4s infinite alternate;
}

/* ========================================================
   CUSTOM RESTAURANT LANGUAGE SELECTOR (GLASSMORPHIC)
   ======================================================== */
.ristorante-lang-selector {
    position: relative;
    display: inline-block;
}

.ristorante-lang-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9990;
    cursor: default;
    background: transparent;
}

.ristorante-lang-btn {
    background: rgba(var(--rs-ink-rgb), 0.03);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--rs-ink);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    position: relative;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ristorante-lang-btn:hover, .ristorante-lang-btn.active {
    background: rgba(var(--rs-gold-rgb), 0.08);
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 15px rgba(var(--rs-gold-rgb), 0.15);
}

.ristorante-lang-current-flag {
    font-size: 1.3rem;
    line-height: 1;
}

.ristorante-lang-arrow {
    color: var(--color-gold-primary);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.ristorante-lang-btn.active .ristorante-lang-arrow {
    transform: rotate(180deg);
}

.ristorante-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--rs-popover-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 15px 40px rgba(var(--rs-shadow-rgb), 0.6), 0 0 20px rgba(var(--rs-gold-rgb), 0.05);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    z-index: 9999;
}

.ristorante-lang-item {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    color: rgba(var(--rs-ink-rgb), 0.85);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}

.ristorante-lang-item:hover {
    background: rgba(var(--rs-gold-rgb), 0.08);
    color: var(--color-gold-primary);
}

.ristorante-lang-item-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.ristorante-lang-item-name {
    flex: 1;
}


