/* V5 Replica - The Authentic "Cream & Burgundy" Theme */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Prata&display=swap');

:root {
    /* Core Colors from Source Analysis */
    --surface-primary: #edeadc;
    --content-primary: #541523;
    /* Burgundy */
    --content-secondary: #541523;
    --divider: #ced1c0;

    /* Buttons */
    --button-default: #541523;
    --button-hover: #3e0f19;
    --button-text: #edeadc;

    /* Dark Mode Sections (from source 'theme-col-dark-red') */
    --surface-dark: #140a0a;
    --content-dark: #edeadc;
    --accent-color: #ff3333;
    /* For alerts/notifications if needed */

    /* Typography */
    --font-heading: 'Prata', serif;
    /* Matching "PetitSerif" */
    --font-body: 'Lato', sans-serif;
    /* Matching "GillSansNova" */

    /* Spacing */
    --spacer-1: 0.5rem;
    --spacer-2: 1rem;
    --spacer-3: 2rem;
    --spacer-4: 3rem;
    --spacer-5: 4rem;
    --bs-gutter-x: 1.5rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--surface-primary);
    color: var(--content-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
.sub-heading {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

.sub-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-small {
    font-size: 0.875rem;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--button-default);
    color: var(--button-text);
    padding: 12px 32px;
    border-radius: 50px;
    /* Pill shape */
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--button-hover);
    color: var(--button-text);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--content-primary);
    color: var(--content-primary);
}

.btn-outline:hover {
    background: var(--content-primary);
    color: var(--surface-primary);
}

/* Notification Banner */
.notification-banner {
    background-color: var(--surface-dark);
    color: var(--content-dark);
    text-align: center;
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Header (Sticky, Cream) */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--surface-primary);
    padding: 0 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--divider);
    height: 90px;
}

.logo {
    font-family: var(--font-heading);
    color: var(--content-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    text-align: center;
}

.logo-the,
.logo-hotel {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    font-family: var(--font-body);
}

.logo-abies {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 5px;
    font-family: var(--font-heading);
}

/* Hamburger Menu Button */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--content-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--surface-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-top: 90px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-nav a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--content-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-nav a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.4s;
}

.mobile-menu.open .mobile-menu-lang {
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .burger-menu {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* Desktop Nav (Split) */
.desktop-nav {
    display: none;
    /* Hidden on mobile */
    gap: 2rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--content-primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.lang-btn.active {
    opacity: 1;
    background-color: var(--content-primary);
    color: var(--surface-primary);
}

.lang-btn:hover {
    opacity: 1;
}

.lang-divider {
    color: var(--content-primary);
    opacity: 0.3;
    font-size: 0.75rem;
}

@media (min-width: 992px) {
    .header {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto;
        align-items: center;
        padding: 0 2rem;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
    }

    .nav-left {
        justify-self: start;
    }

    .nav-right {
        justify-self: end;
    }

    .logo {
        position: static;
        transform: none;
        justify-self: center;
    }

    .lang-switcher {
        position: static;
        transform: none;
        justify-self: end;
        margin-left: 1.5rem;
    }

    .burger-menu {
        display: none;
    }
}

@media (max-width: 991px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .logo {
        order: 1;
    }

    .burger-menu {
        order: 2;
        margin-left: auto;
    }

    .lang-switcher {
        display: none;
    }
}

.desktop-nav a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--content-primary);
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--content-primary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}





/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    /* Not full screen, but large */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Slight dim */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    /* Text is white on hero image */
    max-width: 800px;
    padding: 2rem;
}

.hero-content .sub-heading {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0;
}

/* Breadcrumbs (Overlay style) */
.breadcrumbs {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Room Cards Grid - The Core Feature */
.rooms-section {
    padding: 0;
    background-color: var(--surface-primary);
}

.room-card {
    display: flex;
    flex-wrap: wrap;
    min-height: 80vh;
    /* Consistent with "one room per screen" feel */
    border-bottom: 1px solid var(--divider);
}

.room-card:last-child {
    border-bottom: none;
}

.room-visual {
    flex: 1 0 100%;
    position: relative;
    min-height: 50vh;
}

.room-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* Splide Fixes */
.splide,
.splide__track,
.splide__list,
.splide__slide {
    height: 100%;
    width: 100%;
}

.splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fix for Grid Layout Overflow */
.room-card {
    contain: content;
    /* Prevents slider from blowing out width */
}

.room-details {
    flex: 1 0 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Default left alignment */
}

@media (min-width: 992px) {
    .room-card {
        flex-wrap: nowrap;
        height: 100vh;
        /* Snap to screen height on desktop */
    }

    .room-visual,
    .room-details {
        flex: 0 0 50%;
        width: 50%;
    }

    .room-details {
        padding: 4rem 6rem;
    }

    /* Alternating Layout */
    .room-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    /* Ensure text aligns nicely in alternating layout if needed */
    .room-card:nth-child(even) .room-details {
        padding-left: 4rem;
        /* Adjusted for alternating layout balance */
    }
}

/* Room Content styling */
.room-details .sub-heading {
    font-family: var(--font-body);
    color: var(--content-primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.room-details h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--content-primary);
}

.room-details p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.room-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    gap: 1.5rem;
}

.room-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--divider);
    padding: 8px 16px;
    border-radius: 4px;
}

/* Footer (Dark Theme) */
.footer {
    background-color: var(--surface-dark);
    color: var(--content-dark);
    padding: 5rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--content-dark);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Contact Form */
.contact-section {
    padding: 5rem 2rem;
    background-color: var(--surface-primary);
    border-top: 1px solid var(--divider);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid var(--content-primary);
    color: var(--content-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
    /* Sharp edges for elegance */
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: rgba(84, 21, 35, 0.05);
    /* Slight tint on focus */
    border-color: var(--content-primary);
}

.contact-form ::placeholder {
    color: var(--content-primary);
    opacity: 0.6;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ===== SUBPAGE STYLES ===== */

/* Page Hero (smaller for sub pages) */
.page-hero {
    position: relative;
    height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
}

/* Content Section */
.content-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Intro */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Info Card */
.info-card {
    background: #fff;
    border: 1px solid var(--divider);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    margin-bottom: 1rem;
}

.info-card p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--divider);
    font-size: 0.95rem;
}

.info-card ul li:last-child {
    border-bottom: none;
}

/* Offer Badge */
.offer-badge {
    display: inline-block;
    background: var(--content-primary);
    color: var(--surface-primary);
    padding: 4px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-filter button {
    background: transparent;
    border: 1px solid var(--content-primary);
    color: var(--content-primary);
    padding: 8px 24px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.gallery-filter button.active,
.gallery-filter button:hover {
    background: var(--content-primary);
    color: var(--surface-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .gallery-item.wide {
        grid-column: span 2;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    font-family: var(--font-body);
    line-height: 1;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.contact-info-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Map Placeholder */
.map-container {
    width: 100%;
    height: 400px;
    background: var(--divider);
    border: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Restaurant Menu */
.menu-category {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 3rem;
}

.menu-category:last-child {
    border-bottom: none;
}

.menu-category h3 {
    margin-bottom: 2rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.menu-item {
    padding: 0.5rem 0;
}

.menu-item-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.menu-item-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Hours Info */
.hours-info {
    background: var(--surface-dark);
    color: var(--content-dark);
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.hours-info h3 {
    color: var(--content-dark);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hours-grid h4 {
    color: var(--content-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hours-grid p {
    opacity: 0.8;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.two-col img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}