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

:root {
    /* Magdalena Motor Inn brand palette (from Brand Book) */
    --mmi-red: #6C0F00;
    --mmi-brick: #A53D12;
    --mmi-pink: #C66040;
    --mmi-light-pink: #FDCFA1;
    --mmi-brown: #874100;
    --mmi-yellow: #E8A222;
    --mmi-orange: #C27B00;
    --mmi-green: #37696D;
    --mmi-dark: #00353C;
    --mmi-offwhite: #E4E2D1;
    --mmi-turquoise: #2D88B0;

    /* App tokens */
    --white: #ffffff;
    --bg: var(--mmi-offwhite);
    --surface: var(--white);
    --primary: var(--mmi-dark);
    --accent: var(--mmi-brick);
    --accent-2: var(--mmi-yellow);
    --text-dark: #0f1a1c;
    --text-light: #3f4b4e;

    /* Layout */
    --nav-height: 110px;

    /* Typography */
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Surfaces */
    /* brand offwhite with slight transparency */
    --text-panel-bg: rgba(228, 226, 209, 0.88);
    --text-panel-border: rgba(0, 53, 60, 0.10);
    --text-panel-shadow: 0 18px 50px rgba(0, 53, 60, 0.12);
}

/* Skip to main content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--mmi-dark);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}

.skip-link:focus {
    top: 0;
    clip: auto;
    clip-path: none;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg);
    background-image: url("assets/patterns/MMI_Pattern_Pink_2000px.png");
    background-repeat: repeat;
    background-size: 1040px auto;
    background-attachment: fixed;
    padding-top: var(--nav-height);
}

h1, h2, h3 {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

h3 {
    font-size: 24px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-left {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 0;
}

.nav-logo-img {
    height: calc(var(--nav-height) - 24px);
    width: auto;
    display: block;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    display: flex;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.menu-content a {
    color: var(--mmi-offwhite);
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.menu-content a:hover {
    color: var(--accent-2);
}


/* Hero */
.hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--mmi-brick);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.hero-slide-fade-out {
    opacity: 0;
}

.hero-slide-fade-in {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 10px 16px 8px;
}

.hero-logo {
    margin-bottom: 4px;
}

.hero-logo img {
    width: 75vw;
    max-width: 700px;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: clamp(18px, 2.1vw, 26px);
    font-weight: 300;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    margin: 0 auto;
    max-width: 100%;
    padding: 0 10px;
}

@media (min-width: 969px) {
    .hero h1 {
        white-space: nowrap;
    }
}

/* Intro */
.intro {
    padding: 35px 0;
    background: transparent;
}

.info {
    padding: 0 0 100px;
    background: transparent;
}

.intro .container-narrow,
.rooms-preview .container-narrow,
.checkin .container-narrow,
.info .container-narrow {
    background: var(--text-panel-bg);
    border: 1px solid var(--text-panel-border);
    box-shadow: var(--text-panel-shadow);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 44px 40px;
}

.intro-text {
    font-size: 22px;
    line-height: 1.8;
    text-align: center;
    color: var(--text-dark);
}

/* Self check-in */
.checkin {
    padding: 0 0 35px;
    background: transparent;
    text-align: center;
}

.checkin-compact {
    padding-top: 35px;
}

.checkin h2 {
    color: var(--primary);
}

.checkin-lead {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
}

.checkin-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 28px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
}

.checkin-steps li {
    counter-increment: step;
    border-top: 2px solid var(--accent);
    padding-top: 14px;
}

.checkin-steps li::before {
    content: counter(step);
    display: block;
    color: var(--accent);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
}

.checkin-steps h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 8px;
}

.checkin-steps p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

.checkin-times {
    font-size: 18px;
    color: var(--text-dark);
}

.checkin-times strong {
    font-weight: 600;
    color: var(--primary);
}

.checkin-times span {
    color: var(--accent);
    margin: 0 8px;
}

.checkin-compact .checkin-lead {
    margin-top: 10px;
}

.checkin-lead a,
.split-text p a,
.prose p a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

/* Split Sections */
.split-section {
    background: transparent;
    padding: 35px 0;
    border-top: 1px solid rgba(0, 53, 60, 0.08);
}

.split-section:first-of-type {
    border-top: none;
}

.split-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    gap: 50px;
    align-items: center;
    background: var(--text-panel-bg);
    border: 1px solid var(--text-panel-border);
    box-shadow: var(--text-panel-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

.split-text h2 {
    color: var(--primary);
    margin-bottom: 24px;
}

.split-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
}

.split-text p + p {
    margin-top: 14px;
}

.btn-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.btn-link:hover {
    color: var(--accent);
}

.prose {
    text-align: left;
}

.prose p {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text-light);
}

.prose p + p {
    margin-top: 14px;
}

.prose h2 {
    margin-top: 34px;
    margin-bottom: 14px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--primary);
    margin-top: 22px;
    margin-bottom: 6px;
}

.prose .checkin-steps h3 {
    margin-top: 0;
}

.prose .checkin-times {
    margin-top: 18px;
    text-align: center;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.info-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-dark);
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.info-list a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.info-list a:hover {
    color: var(--mmi-brick);
}

.split-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-split {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 53, 60, 0.08), rgba(165, 61, 18, 0.08));
    border: 1px solid rgba(0, 53, 60, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.reverse .split-content {
    direction: rtl;
}

.reverse .split-text {
    direction: ltr;
}

/* Rooms Preview (index) */
.rooms-preview {
    padding: 35px 0;
    background: transparent;
    text-align: center;
}

.rooms-preview h2 {
    color: var(--primary);
}

.rooms-preview p {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.btn-rooms {
    display: inline-block;
    background: var(--accent-2);
    color: var(--primary);
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: transform 0.15s ease, background 0.2s ease;
}

.btn-rooms:hover {
    background: var(--mmi-orange);
    transform: translateY(-1px);
}

.room-detail {
    background: transparent;
    padding: 35px 0;
    border-top: 1px solid rgba(0, 53, 60, 0.08);
}

.room-detail:first-of-type {
    border-top: none;
}

.room-detail.alt {
    background: transparent;
}

.room-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    background: var(--text-panel-bg);
    border: 1px solid var(--text-panel-border);
    box-shadow: var(--text-panel-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
}

.room-content.reverse {
    direction: rtl;
}

.room-content.reverse > * {
    direction: ltr;
}

.room-images {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    justify-self: center;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.room-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.room-info h2 {
    color: var(--primary);
}

.room-info {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}

.room-description {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 20px;
}

.room-amenities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.room-amenities li {
    position: relative;
    padding-left: 20px;
    color: var(--text-dark);
}

.room-amenities li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.footer-info h3 {
    margin-bottom: 20px;
}

.footer-info p {
    margin: 8px 0;
    font-size: 16px;
}

.footer-info a {
    color: var(--accent-2);
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--mmi-offwhite);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 40px;
    text-align: center;
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 968px) {
    :root {
        --nav-height: 92px;
    }
    
    body {
        background-size: 520px auto;
    }

    .nav-logo-img {
        height: calc(var(--nav-height) - 20px);
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    
    .hero {
        height: 300px;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .hero-logo img {
        max-height: 180px;
        width: 92%;
    }
    
    .hero-logo {
        margin-bottom: 6px;
    }
    
    .hero-overlay {
        padding: 10px 14px 10px;
    }
    
    .split-section {
        padding: 30px 0;
    }
    
    .room-detail {
        padding: 30px 0;
    }
    
    .split-content {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 30px;
    }
    
    .reverse .split-content {
        direction: ltr;
    }

    .intro .container-narrow,
    .rooms-preview .container-narrow,
    .checkin .container-narrow,
    .info .container-narrow {
        padding: 34px 22px;
    }

    .checkin-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .room-content {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 30px;
    }

    .room-images {
        max-width: 100%;
    }

    .room-image {
        height: 260px;
    }
    
    .container, .container-narrow, .nav-container, .footer-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .intro-text {
        font-size: 18px;
    }
}
