/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    /* Colors - Pulled from branding / screenshots */
    --color-primary: #111827;
    /* Deep Navy/Black from logo */
    --color-primary-light: #1F2937;
    --color-secondary: #3B82F6;
    /* Accent color if needed, but keeping it monochrome based on design */
    --color-accent: #2563EB;
    /* Nobeds blue */
    --color-bg: #FAFAFA;
    /* Off-white background */
    --color-bg-card: #FFFFFF;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;
    /* Shared vertical rhythm for full-width page sections. 32px on each side
       makes a 64px gap between adjacent sections. */
    --section-space: 2rem;

    /* Utilities */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    font-family: var(--font-main);
    color: var(--color-primary);
    background-color: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
}

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

iframe {
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-bg-card);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-header h1.logo-text {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    z-index: 2000;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-md);
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.poi-group {
    cursor: pointer;
}

.poi-group:focus-visible .poi-marker {
    stroke: var(--color-accent);
    stroke-width: 4;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-primary-light);
    opacity: 0.7;
}

.nav-btn {
    font-weight: 600 !important;
}

.lang-toggle {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.lang-toggle span {
    font-weight: 400;
}

.lang-toggle .active-lang {
    font-weight: 700 !important;
}

.lang-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Responsiveness for Header */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-bg-card);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        box-shadow: var(--shadow-2xl);
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .nav-links a,
    .lang-toggle {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Hero Section & Carousel
   ========================================================================== */
.hero {
    margin-top: var(--header-height);
    /* Push down below fixed header */
    width: 100%;
    /* Create a specific height based on viewport, matching the screenshot proportion */
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-carousel {
    flex-grow: 1;
    width: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
    /* Fallback */
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide picture,
.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    object-fit: cover;
    object-position: center;
}

/* Optional Dark Overlay for better text contrast if needed */
.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: var(--space-md);
}

.carousel-btn.next {
    right: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .carousel-slide,
    .carousel-btn,
    .lang-toggle,
    .btn {
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.hero-text-container {
    background-color: var(--color-bg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-primary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    /* Dotted border styling as seen in Figma */
    padding: var(--space-sm) var(--space-md);
    border: 1px dotted rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.hero-cta-container {
    margin-top: var(--space-lg);
}

/* ==========================================================================
   Sticky Booking CTA
   ========================================================================== */
.sticky-cta-section {
    position: fixed;
    bottom: var(--space-lg);
    left: 0;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 900;
    pointer-events: none;
    /* Let clicks pass through the section barrier... */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-cta-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ...but enable clicks on the card itself */
.sticky-booking-card {
    pointer-events: auto;
    background-color: var(--color-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    gap: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Subtle inner border detail like the screenshot */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.sticky-card-logo {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: var(--space-lg);
}

.cta-logo {
    height: 40px;
    width: auto;
    /* Removed filter to test native logo rendering */
}

.sticky-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-line-1 {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.cta-line-2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .sticky-booking-card {
        padding: var(--space-md);
        width: calc(100% - var(--space-lg));
        justify-content: center;
    }
}

/* ==========================================================================
   Utility Classes & Typography
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.bg-offwhite {
    background-color: var(--color-bg);
}

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

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.review-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-text {
    font-size: 1rem;
    color: var(--color-primary-light);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    line-height: 1.6;
}

.review-author-box {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: auto;
}

.review-source {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    color: white;
}

.review-source img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.source-airbnb {
    background-color: #FF5A5F;
}

.source-booking {
    background-color: #003580;
}

.source-direct {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Show the Casa Croma logo in its own colours so the direct-review badge is
   recognisable, unlike the text-only Airbnb/Booking badges. */
.source-direct img {
    width: 24px;
    height: 24px;
    filter: none;
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.author-meta {
    font-size: 0.8rem;
    color: #6B7280;
    /* Gray-500 */
    line-height: 1.2;
    margin-top: 2px;
}

/* ==========================================================================
   Bento Image Gallery
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* Bento Layout Span Classes */
.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall-right {
    grid-row: span 2;
    grid-column: 3;
}

.bento-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-primary-light);
    /* Fallback while loading */
    box-shadow: var(--shadow-sm);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.bento-item picture,
.amenity-img-container picture,
.room-img-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Interactive Hover Overlay for Desktop */
.bento-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* Whiter layer requested */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.bento-overlay p {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* Desktop Hover States */
@media (hover: hover) {
    .bento-item:hover img {
        transform: scale(1.05);
        /* Slight zoom on image */
    }

    .bento-item:hover .bento-overlay {
        opacity: 1;
    }

    .bento-item:hover .bento-overlay p {
        transform: translateY(0);
    }
}

.gallery-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.gallery-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-socials a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Adjustments for Bento Grid */
@media (max-width: 768px) {
    .bento-grid {
        /* Fall back to 2 columns on mobile as requested, then 1 column for very small screens */
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    /* Reset spans for mobile so it flows normally */
    .bento-wide,
    .bento-large {
        grid-column: span 2;
    }

    .bento-tall,
    .bento-tall-right {
        grid-row: span 1;
        grid-column: span 1;
    }

    /* For Mobile: Instead of hover, show text always but subtle, or use intersection observer.
       Let's stick a permanent, elegant gradient at the bottom for mobile readability */
    .bento-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
        align-items: flex-end;
        padding: var(--space-md);
        backdrop-filter: none;
    }

    .bento-overlay p {
        color: white;
        font-size: 0.9rem;
        transform: translateY(0);
        text-align: left;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        /* Fall back to 1 column if needed on very small phones */
        grid-auto-rows: 250px;
    }

    .bento-wide,
    .bento-large,
    .bento-tall,
    .bento-tall-right {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ==========================================================================
   Amenities Section
   ========================================================================== */
/* Shared card-carousel layout for rooms and hotel services. The hero slider
   already uses .carousel-track, so these use a distinct cards-carousel- prefix
   to keep the two carousels independent of the hero. */
.cards-carousel-shell {
    position: relative;
}

.cards-carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: var(--space-sm) 0;
}

.cards-carousel-container::-webkit-scrollbar {
    display: none;
}

.cards-carousel-dots {
    display: none;
    position: relative;
    z-index: 2;
}

.cards-carousel-track {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    min-width: min-content;
}

.room-card,
.amenity-card {
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.amenity-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    /* Informational only: keep the hover effect, but no "clickable" pointer. */
}

.amenity-img-container {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.amenity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.amenity-card:hover .amenity-img {
    transform: scale(1.05);
}

.amenity-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.amenity-desc {
    font-size: 0.95rem;
    color: var(--color-primary-light);
    line-height: 1.6;
}

/* ==========================================================================
   Rooms Preview Section
   ========================================================================== */
.text-center {
    text-align: center;
}

.room-card {
    background-color: #F3F4F6;
    /* Light gray background like screenshot */
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.room-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.room-img-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.room-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-img-container img {
    transform: scale(1.05);
}

/* From small-tablet width up, use a responsive grid so every card stays
   visible: 3 columns on desktop (two rows of rooms, one of services) and
   2 columns at medium widths. With the 1200px container and 32px gaps,
   minmax(280px, 1fr) naturally drops from 3 columns to 2. Below 701px the
   cards become a swipeable carousel with the dots pill instead. */
@media (min-width: 701px) {
    .cards-carousel-container {
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .cards-carousel-track {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-lg);
        min-width: 0;
        justify-content: stretch;
    }

    .room-card,
    .amenity-card {
        width: auto;
        min-width: 0;
        flex-shrink: initial;
        scroll-snap-align: none;
    }
}

@media (max-width: 700px) {
    .cards-carousel-container {
        padding-inline: var(--space-md);
        scroll-padding-inline-start: var(--space-md);
    }

    .cards-carousel-track {
        justify-content: flex-start;
        gap: var(--space-md);
        padding-right: var(--space-md);
        /* Allow scrolling past the last card */
    }

    .room-card,
    .amenity-card {
        /* Leave a visible slice of the next card so the carousel reads as
           scrollable even when only one card fits on screen. */
        width: min(72vw, 320px);
        scroll-snap-align: start;
    }

    /* The dots are a sibling of the scroller, so swiping the cards cannot
       carry them out of view. A translucent pill keeps them legible while
       they float over the bottom edge of the carousel. */
    .cards-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        width: max-content;
        margin: calc(-1 * var(--space-sm)) auto 0;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: var(--shadow-sm);
    }

    .cards-carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        transition: background-color 0.2s, transform 0.2s;
    }

    .cards-carousel-dots .dot.active {
        background: var(--color-primary);
        transform: scale(1.25);
    }
}

/* ==========================================================================
   Booking Iframe Section
   ========================================================================== */
.iframe-container {
    width: 100%;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    /* Add a subtle border */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
    max-width: 800px;
    /* Keep FAQ readable */
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-primary);
    transition: transform 0.3s ease;
}

/* Horizontal line */
.accordion-icon::before {
    top: 9px;
    left: 2px;
    right: 2px;
    height: 2px;
}

/* Vertical line */
.accordion-icon::after {
    top: 2px;
    bottom: 2px;
    left: 9px;
    width: 2px;
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0;
}

.accordion-content p {
    font-size: 0.95rem;
    color: var(--color-primary-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   Contact Section & Map
   ========================================================================== */
.contact-layout-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-layout-vertical .contact-details-box {
    text-align: center;
}

.contact-layout-vertical .contact-buttons {
    justify-content: center;
}

.contact-address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}

.contact-details-box {
    background-color: var(--color-bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.contact-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Stylized CSS Map */
.contact-map-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stylized-map {
    width: 100%;
    height: 100%;
    background-color: #E6F3FF;
    /* Light blue map-like background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-pin {
    width: 40px;
    height: 40px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.map-tooltip {
    position: absolute;
    top: calc(50% + 25px);
    background: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {}

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-page {
    padding: calc(var(--header-height) + var(--space-xxl)) 0 var(--space-xxl);
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 16vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-secondary);
}

.error-page h1 {
    margin: var(--space-md) 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.error-page p {
    max-width: 34rem;
    margin: 0 auto var(--space-lg);
    color: var(--color-primary-light);
}

.error-english {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.95rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-card);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-xl) 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Deliberately subtle: an operator marker, not site content. */
.site-version {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-primary-light);
    opacity: 0.55;
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary-light);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
}

.footer-socials a {
    color: var(--color-primary-light);
    transition: transform 0.2s, color 0.2s;
}

.footer-socials a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ==========================================================================
   Map Integration Layout & Styles
   ========================================================================== */
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1324px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    touch-action: pan-y; /* Allows vertical scrolling of page but horizontal control via JS */
}

.map-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.map-bg {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* --- Path Logic --- */
.route-path {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 1.2s ease-in-out, opacity 0.3s, d 0.3s;
}

.route-path.active {
    opacity: 1;
    stroke-dashoffset: 0;
}

.map-wrapper.show-walking .route-path.active {
    stroke: #008000;
    stroke-dasharray: 1, 12;
}

.map-wrapper.show-driving .route-path.active {
    stroke: var(--color-primary);
    stroke-dasharray: 3000;
}

/* --- Markers & Labels --- */
.poi-group {
    cursor: pointer;
    pointer-events: auto;
}

/* A direct tap focuses the SVG group without matching :focus-visible, so
   Chrome paints its default ring around the whole caption. The active
   caption itself is the visible indication for pointer/touch users. */
.poi-group:focus {
    outline: none;
}

.poi-marker {
    fill: #E63946;
    transition: r 0.3s;
}

.poi-group:hover .poi-marker {
    r: 10;
}

.poi-label {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(5px);
}

.poi-group.active .poi-label {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.label-bg {
    fill: var(--color-bg-card);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.label-title {
    font-weight: bold;
    font-size: 22px;
    fill: var(--color-primary);
}

.label-time {
    font-weight: bold;
    font-size: 20px;
    fill: #008000;
}

.map-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-bg-card);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    font-weight: 600;
    pointer-events: auto;
    color: var(--color-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Mobile Map Navigation --- */
.poi-menu-mobile {
    display: none;
    position: relative;
    z-index: 30;
}

@media (max-width: 768px) {
    .map-wrapper {
        height: 60vh;
        border-radius: 0;
    }
    
    .map-bg, .map-overlay {
        height: 100%;
        width: auto !important;
        min-width: 1000px !important; /* Force the map to be wide */
        max-width: none !important;
        object-fit: cover;
    }

    .poi-menu-mobile {
        display: flex;
        overflow-x: auto;
        padding: 15px 0;
        gap: 10px;
        background: transparent;
        border-top: 1px solid rgba(0,0,0,0.05);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .poi-menu-mobile::-webkit-scrollbar {
        display: none;
    }

    .poi-menu-mobile button {
        flex: 0 0 auto;
        padding: 10px 18px;
        background: var(--color-bg-card);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        font-weight: 600;
        font-size: 14px;
        color: var(--color-primary);
        box-shadow: var(--shadow-sm);
        transition: all 0.2s;
    }

    .poi-menu-mobile button.active {
        background: var(--color-primary);
        color: white;
        border-color: var(--color-primary);
    }
}