/* --- Variables & Reset --- */
:root {
    --primary-color: #01528c;
    /* Dark Grey */
    /* Muted Earthy Tone */
    --accent-color: #D9CFC1;
    /* Light Beige Accent */
    --accent-color-yellow: #01528c;
    /* Castello Gold/Yellow */

    --text-color: #01528c;
    /* Dark text */
    --text-light: #8A7E75;
    /* Lighter brown/grey */

    --background-color: #F2EFE8;
    /* Warm Cream/Beige Background */
    --background-white: #FFFFFF;

    /* Spacing & Layout */
    --container-width: 1400px;
    /* Wide, airy */
    --header-height: 100px;
    --border-radius-large: 0px;
    --border-radius-pill: 0px;
    /* For buttons/nav */

    /* Effects */
    --shadow-soft: 0 20px 60px rgba(92, 68, 58, 0.08);
    /* Brown-tinted shadow */
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--background-color);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--background-color);
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1.1;
}

h1 {
    font-size: 4rem;
    /* Will adjust for mobile */
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-large);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Reduced padding on small screens to give text more space */
}

/* Restore generic padding for larger screens if needed, otherwise this is a good default */
@media (min-width: 901px) {
    .container {
        padding: 0 3rem;
    }
}

/* --- Buttons (Pill Shape) --- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    /* default */
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius-pill);
    /* Pill Shape */
}

.btn-primary {
    background-color: var(--accent-color-yellow);
    color: #fff;
    border-color: var(--accent-color-yellow);
}

.btn-primary:hover {
    background-color: #b08d55;
    /* Slightly darker gold */
    border-color: #b08d55;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-color-yellow);
    color: var(--accent-color-yellow);
}

.btn-secondary:hover {
    background-color: var(--accent-color-yellow);
    color: #fff;
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

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

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

/* --- Header (Floating/Pill Vibe) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    /* Let background show through primarily */
    padding-top: 20px;
    transition: var(--transition);
    height: auto;
    color: var(--primary-color);
    /* Default Dark Text */
}

/* Nav Toggle (Hamburger) - Default Hidden */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s;
}

/* Scrolled state for toggle */
.header.scrolled .nav-toggle span {
    background-color: var(--primary-color);
}

.header.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    /* No background - floating elements only */
    pointer-events: none;
    /* Let clicks pass through empty space */
    color: #fff;
    /* White Text on Scroll */
}

.header.scrolled .nav-menu,
.header.scrolled .nav-toggle,
.header.scrolled .logo {
    pointer-events: auto;
    /* Re-enable clicks on interactive elements */
}

.header-container {
    display: flex;
    justify-content: center;
    /* Center the nav */
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.header.scrolled .logo-item {
    max-width: 300px;
    /* Allow space for logo */
    opacity: 1;
}

.logo-img {
    height: 60px;
    /* Small height for nav bar */
    border-radius: 0;
    transition: all 0.4s ease;
    filter: none;
    /* Always original color if in nav */
    display: block;
}

/* .nav-menu handled by children */

/* Nav List - Initial State (Transparent on Hero) */
.nav-list {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    /* Transparent initially */
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-pill);
    box-shadow: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link {
    font-size: 0.65rem;
    font-weight: 700;
    color: currentColor;
    /* Inherit from header */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 8px;
    border-radius: var(--border-radius-pill);
    transition: all 0.3s;
    position: relative;
    opacity: 0.9;
    /* slightly distinct */
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Scrolled State (Active Menu) */
/* Scrolled State (Active Menu) */
.header.scrolled .nav-list {
    background: #fff;
    /* White Background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled .nav-link {
    color: var(--primary-color);
    /* Dark Text */
}

.header.scrolled .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Update Button in Scrolled Header for Contrast */
/* Update Button in Scrolled Header for Contrast */
.header.scrolled .btn-primary {
    background-color: #01528c;
    color: #fff;
    border-color: #01528c;
}

.header.scrolled .btn-primary:hover {
    background-color: transparent;
    color: #01528c;
}

.header button.d21-trigger-ibe {
    margin-left: 5px;
    padding: 10px 25px; /* scale down header button to save space */
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    /* Vertically center the content */
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
    /* Dark Text */
    padding-top: 0;
    /* Remove padding to allow perfect centering */
    background-color: var(--background-color);
    /* Cream background for the "bars" */
    overflow: hidden;
    /* Ensure scaling doesn't cause scrollbars */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    overflow: hidden;
    transform: scale(0.85) translateY(15%);
    /* Start slightly lower */
    transform-origin: center center;
    will-change: transform;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay for text contrast */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0, 0, 0.2, 1);
    /* Slight smoothing or none */
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    padding-top: 0;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Ensure z-index works */
    margin-top: 0;
    /* Reset margin */
}

.hero h1 {
    font-size: 5rem;
    color: var(--primary-color);
    /* Dark Text */
    margin-bottom: 10px;
    /* Tighter */
    margin-top: 0;
    line-height: 1;
}

.hero .lead {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    /* Tighter */
    text-transform: uppercase;
    color: #fff !important;
    /* Force White per user request */
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.8), 0px 8px 30px rgba(0, 0, 0, 0.8);
}

.hero .sub-lead {
    font-family: 'Roboto Slab', serif;
    font-style: italic;
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    /* Tighter */
    color: #fff !important;
    /* Force White per user request */
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.8), 0px 8px 30px rgba(0, 0, 0, 0.8);
}

.hero .btn-primary {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.8), 0px 8px 30px rgba(0, 0, 0, 0.8);
}

/* --- Intro --- */
.intro {
    padding: 10rem 0;
    /* Lots of breath */
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.section-text {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-light);
}

/* --- Rooms Section (Cards) --- */
.rooms-section {
    padding: 5rem 0 10rem;
    background: var(--background-color);
}

.rooms-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    /* Big gaps */
}

.room-card {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.room-card:nth-child(even) {
    flex-direction: row-reverse;
}

.room-image {
    flex: 1.2;
    height: 550px;
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

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

.room-details {
    flex: 1;
    padding: 2rem;
}

.room-details h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.room-details p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.room-features li {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-pill);
    color: var(--primary-color);
}

/* --- Breakfast & Biggi --- */
.breakfast-section {
    background: #fff;
    /* White block for contrast */
    padding: 10rem 0 70px 0;
    border-radius: 0;
    /* Floating paper effect */
    margin: 0;
    /* Inset slightly */
}

.breakfast-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 6rem;
    align-items: center;
}

.breakfast-image img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-soft);
}

.biggi-section {
    padding: 10rem 0;
    /* Mooser style often uses full width parallax or colored blocks */
    background: var(--primary-color);
    /* Dark section */
    color: #fff;
    margin-top: 5rem;
    border-radius: 0;
    /* Round top */
}

.biggi-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.biggi-section h2,
.biggi-section p {
    color: #fff;
}

.biggi-section .text-light {
    color: rgba(255, 255, 255, 0.8);
}

.biggi-image img {
    border-radius: var(--border-radius-large);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 0 0 8rem;
    background: var(--background-color);
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    /* Fixed height for consistency */
    border-radius: 0;
    /* Large rounded corners as requested */
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 8s ease;
    /* Fade + Slow Zoom */
    transform: scale(1);
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.05);
    /* Subtle zoom effect when active */
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-btn svg {
    width: 24px;
    height: 24px;
}

.gallery-btn.prev {
    left: 30px;
    background-color: rgba(92, 68, 58, 0.9);
    /* Dark brown */
    color: #fff;
}

.gallery-btn.prev:hover {
    background-color: #01528c;
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn.next {
    right: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    /* Translucent light */
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gallery-btn.next:hover {
    background-color: #fff;
    color: #01528c;
    transform: translateY(-50%) scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gallery-wrapper {
        height: 400px;
        border-radius: 0;
    }

    .gallery-btn {
        width: 45px;
        height: 45px;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: -5px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    filter: brightness(0) invert(1);
    height: 60px;
    width: auto;
    margin-bottom: 0;
}

.footer-tagline {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}

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

.footer h4 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.footer p,
.footer a,
.footer li {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    h1 {
        font-size: 10vw;
        /* Responsive size based on screen width */
        line-height: 1.2;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        /* Legacy */
        overflow-wrap: break-word;
        /* Modern */
        hyphens: none;
        padding: 0 5px;
        /* Minimal padding */
    }

    .hero-content {
        padding-top: 0;
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-img {
        height: 100%;
        object-position: center center;
    }

    h2,
    .section-title {
        font-size: 8vw;
        /* Responsive size */
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: none;
    }

    .header {
        padding: 15px 0;
    }

    .logo-img {
        height: 60px;
        /* Smaller Logo on Mobile */
    }

    .header.scrolled .logo-img {
        /* Mobile: Keep logo visible or hide? Let's hide to save space as per deskop logic, 
            or maybe keep small? User logic said hide. */
        opacity: 0;
    }

    /* Mobile Menu Logic */
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        width: 250px;
        background: #fff;
        /* White menu */
        padding: 2rem;
        border-radius: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        color: var(--primary-color);
        /* Always dark on mobile menu */
        font-size: 1rem;
        padding: 0;
    }

    .nav-link:hover {
        background: transparent;
        text-decoration: underline;
    }

    .rooms-grid,
    .breakfast-grid,
    .biggi-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .room-card,
    .room-card:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }

    .room-image {
        width: 100%;
        height: 300px;
    }

    .breakfast-section {
        margin: 0 1rem;
        padding: 4rem 1.5rem;
    }

    .gallery-wrapper {
        height: 350px;
        border-radius: 0;
    }
}

/* --- Animations --- */
/* --- Premium Animations --- */
:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
}

.fade-in-up,
.slide-in,
.slide-in-left,
.slide-in-right,
.scale-in {
    opacity: 0;
    transition: transform 1.2s var(--ease-out-expo), opacity 1.2s var(--ease-out-expo);
    will-change: transform, opacity;
}

.fade-in-up {
    transform: translateY(40px);
}

.slide-in {
    transform: translateY(60px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.scale-in {
    transform: scale(0.95);
}

/* Active State */
.visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Image Hover & Reveal Effects */
.room-image,
.breakfast-image,
.biggi-image {
    overflow: hidden;
}

.room-image img,
.breakfast-image img,
.biggi-image img {
    transition: transform 1.8s var(--ease-out-expo) !important;
}

.hero-img {
    transform: scale(1.1);
    will-change: transform;
}

/* Parallax-like floating for cards on hover */
.room-card {
    transition: transform 0.4s var(--ease-out-circ);
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card:hover .room-image img {
    transform: scale(1.08);
}

/* --- Mobile Toggle (Hamburger) --- */
.nav-toggle {
    display: none;
    background: #fff;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    position: relative;
    padding: 12px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    margin: 5px auto;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }
}

/* --- Rooms Tabs Component --- */
.rooms-tabs-section {
    padding: 5rem 0 8rem;
    background-color: var(--background-color);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(43, 43, 43, 0.2);
    padding: 12px 25px;
    border-radius: var(--border-radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.tab-btn:hover {
    border-color: #01528c;
}

.tab-btn.active,
.tab-btn.clicked {
    background-color: #01528c;
    color: #fff;
    border-color: #01528c;
}

.tab-content-container {
    position: relative;
    min-height: 500px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    opacity: 1;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-split {
    display: flex;
    flex-direction: column;
    /* Stack vertically for true centering */
    gap: 0;
    align-items: center;
    background: #fff;
    padding: 0;
    /* Remove padding from container, maybe add to content */
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    max-width: 100%;
    /* Fill grid cell */
    margin: 0;
    /* Gap handles spacing */
    overflow: hidden;
    /* For image scaling */
}

.room-slider {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 0;
    overflow: hidden;
}

.room-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.room-slider img.active {
    opacity: 1;
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-color-yellow);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.room-info {
    width: 100%;
    flex-grow: 1;
    /* Stretch to fill remaining card height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Important: flex-start so content goes to top, button to bottom */
    align-items: center !important;
    text-align: center !important;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
}

.room-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center !important;
    /* Explicitly force center */
    width: 100%;
    /* Ensure full width for centering */
}

.room-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: center !important;
    /* Explicitly force center */
    width: 100%;
    /* Ensure full width for centering */
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
    justify-content: center !important;
    /* Force center list items */
    width: 100%;
    /* Ensure full width container */
}

.room-info .btn {
    align-self: center;
    /* Center the button */
    margin-top: auto;
}

.features-list li {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    background: var(--background-color);
    border-radius: var(--border-radius-pill);
    color: var(--secondary-color);
    font-weight: 500;
}

/* Mobile Responsive for Tabs */
@media (max-width: 900px) {
    .rooms-tabs-section {
        padding: 4rem 1rem;
    }

    .room-split {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .room-img,
    .room-slider {
        width: 100%;
        height: 250px;
    }

    .tabs-nav {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.75rem;
        flex: 1 1 auto;
        text-align: center;
    }
}

/* --- Parallax Sections --- */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-section.entdecken-section {
    min-height: 600px;
    color: #fff;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 1;
}

.parallax-section>.container {
    position: relative;
    z-index: 2;
}

/* Mobile Parallax Fix */
@media (hover: none) and (pointer: coarse) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* --- Scattered/Stacked Gallery Layout (Hover Effect) --- */


/* --- Scattered/Stacked Gallery Layout (Polaroid Style) --- */
/* --- Scattered/Stacked Gallery Layout (Polaroid Style) --- */
.scattered-gallery {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    perspective: 1000px;
    overflow: visible;
}

.scatter-card {
    position: absolute;
    width: 293px;
    height: 340px;
    background: transparent;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    /* Default transform to center if no specific class matches (fallback) */
    transform: translate(-50%, -50%) rotate(0deg);
}

.scatter-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

/* Specific Card Positions & Hovers */
/* Maximized spread */

/* Card 1 */
.scatter-card.card-1 {
    transform: translate(calc(-50% - 650px), calc(-50% + 20px)) rotate(-15deg);
    z-index: 1;
}

.scatter-card.card-1:hover {
    transform: translate(calc(-50% - 650px), calc(-50% + 20px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 2 */
.scatter-card.card-2 {
    transform: translate(calc(-50% - 510px), calc(-50% - 30px)) rotate(-5deg);
    z-index: 2;
}

.scatter-card.card-2:hover {
    transform: translate(calc(-50% - 510px), calc(-50% - 30px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 3 */
.scatter-card.card-3 {
    transform: translate(calc(-50% - 370px), calc(-50% + 10px)) rotate(8deg);
    z-index: 3;
}

.scatter-card.card-3:hover {
    transform: translate(calc(-50% - 370px), calc(-50% + 10px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 4 */
.scatter-card.card-4 {
    transform: translate(calc(-50% - 230px), calc(-50% - 20px)) rotate(-10deg);
    z-index: 4;
}

.scatter-card.card-4:hover {
    transform: translate(calc(-50% - 230px), calc(-50% - 20px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 5 */
.scatter-card.card-5 {
    transform: translate(calc(-50% - 90px), calc(-50% + 30px)) rotate(4deg);
    z-index: 5;
}

.scatter-card.card-5:hover {
    transform: translate(calc(-50% - 90px), calc(-50% + 30px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 6 */
.scatter-card.card-6 {
    transform: translate(calc(-50% + 50px), calc(-50% - 15px)) rotate(-6deg);
    z-index: 6;
}

.scatter-card.card-6:hover {
    transform: translate(calc(-50% + 50px), calc(-50% - 15px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 7 */
.scatter-card.card-7 {
    transform: translate(calc(-50% + 190px), calc(-50% + 25px)) rotate(12deg);
    z-index: 7;
}

.scatter-card.card-7:hover {
    transform: translate(calc(-50% + 190px), calc(-50% + 25px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 8 */
.scatter-card.card-8 {
    transform: translate(calc(-50% + 330px), calc(-50% - 35px)) rotate(-8deg);
    z-index: 8;
}

.scatter-card.card-8:hover {
    transform: translate(calc(-50% + 330px), calc(-50% - 35px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 9 */
.scatter-card.card-9 {
    transform: translate(calc(-50% + 470px), calc(-50% + 15px)) rotate(5deg);
    z-index: 9;
}

.scatter-card.card-9:hover {
    transform: translate(calc(-50% + 470px), calc(-50% + 15px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Card 10 */
.scatter-card.card-10 {
    transform: translate(calc(-50% + 610px), calc(-50% - 10px)) rotate(-12deg);
    z-index: 10;
}

.scatter-card.card-10:hover {
    transform: translate(calc(-50% + 610px), calc(-50% - 10px)) scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
}

/* Generic Hover Shadow */
.scatter-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1100px) {

    h1,
    h2,
    h3 {
        overflow-wrap: break-word;
        /* Prevent cut-off */
        hyphens: none;
        /* Optional: hyphens */
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .tab-pane.active {
        grid-template-columns: 1fr;
        /* Switch to single column on mobile */
    }

    .room-info {
        padding: 1.5rem 1rem !important;
        /* Smaller padding */
        width: 100%;
    }

    /* Hide Scattered Gallery */
    #galerie,
    .scattered-gallery {
        display: none !important;
    }

    /* Cafe Gallery: Show only 1 image (Cake) */
    .cafe-gallery {
        display: block !important;
        /* Override grid */
        height: auto !important;
        margin-top: 2rem;
    }

    .cafe-gallery>div {
        display: none !important;
        /* Hide all images first */
    }

    .cafe-gallery>div:nth-child(2) {
        display: block !important;
        /* Show specific Cake image */
        width: 100% !important;
        height: 400px !important;
        margin: 0 auto;
        border-radius: var(--border-radius-large);
    }

    .cafe-gallery>div:nth-child(2) img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* ... existing gallery styles ... */
    .scatter-card {
        /* Keep for safety if gallery is re-enabled later, or remove */
        position: relative;
        left: auto;
        top: auto;
        transform: none !important;
        margin: 0 auto;
        width: 80%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 3.5/4.5;
    }

    /* --- Mobile Hero (Standard Overlay) --- */
    .hero {
        height: 100vh;
        /* Full screen */
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        position: relative;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        order: unset;
        /* Reset order */
        transform: none !important;
        /* Disable parallax scale */
        z-index: 0;
    }

    /* Dark Overlay for Text Readability */
    .hero-bg::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        /* Darken image */
        z-index: 1;
    }

    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        /* Above overlay */
        order: unset;
        margin-top: 0 !important;
        padding: 2rem;
        width: 100%;
        text-align: center;
        color: #fff !important;
        /* Force White Text */
    }

    /* White Logo */
    .hero-content img.fade-in-up {
        filter: brightness(0) invert(1) !important;
        /* White Logo */
        margin-bottom: 1.5rem !important;
        max-width: 250px !important;
        /* Smaller logo on mobile */
    }

    /* White Text */
    .hero .lead,
    .hero .sub-lead {
        color: #fff !important;
        font-weight: 400;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero h1 {
        color: #fff !important;
    }

    /* --- Mobile Navigation Fixes --- */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        position: fixed;
        top: 25px;
        /* Original top */
        right: 35px;
        /* Shift LEFT */
        z-index: 2000;
        background: #fff;
        /* Solid White Square */
        border-radius: 0;
        /* Square */
        padding: 0;
        /* Flex centering handles content */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        border: none;
        /* Ensure no border */
    }

    /* Burger Lines Color - Always Dark inside the White Square? */
    .nav-toggle span {
        display: block !important;
        background-color: #01528c !important;
        /* Force Dark */
        width: 28px !important;
        /* Explicit width */
        height: 2px !important;
        margin: 0 !important;
    }

    .header.scrolled .nav-toggle span {
        background-color: var(--primary-color);
    }

    /* --- Mobile Hero Adjustments --- */
    .hero-content {
        padding-top: 0 !important;
    }

    .hero-content img.fade-in-up {
        /* Image Swap Hack */
        box-sizing: border-box;
        background: url("Bilder_Online/allgemein/Logo-quadrat.png") no-repeat center bottom !important;
        background-size: contain !important;
        filter: brightness(0) invert(1) drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.8)) drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.8)) !important;

        /* Dimensions for the new image */
        width: 330px !important;
        height: 0 !important;
        padding-top: 330px !important;

        max-width: 90% !important;
        margin-bottom: -50px !important;
        /* Pull text closer (negative margin) */
        margin-top: 50px !important;
        /* Push logo down somewhat */
        display: inline-block !important;

        content: normal !important;
    }

    /* --- History Section Read More --- */
    .history-more-content {
        display: none;
    }

    .history-more-content.expanded {
        display: block;
    }

    .read-more-btn {
        display: inline-block !important;
        /* Override inline display: none */
    }

    /* Ensure Nav Menu covers screen if open */
    .nav-menu.active {
        /* ... assume existing styles handle this, but ensure z-index */
        z-index: 1999;
    }
}