/* ============================================================
   New Majestic Hotel - Clean Stylesheet v3
   2026-05-20 - rebuilt clean, proper slick handling
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: #2a2a2a;
    background: #fff;
    overflow-x: hidden;
    max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #542d7f; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #3e1f5e; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; letter-spacing: 1px; line-height: 1.3; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
    --brand: #542d7f;
    --brand-dark: #3e1f5e;
    --brand-light: #f6f4ef;
    --text: #2a2a2a;
    --text-muted: #777;
    --border: #eaeaea;
    --container: 1280px;
}

#main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.main-section {
    flex: 1;
}

.container-fluid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* HEADER */
header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
header .navbar { background: transparent; }
header .container-fluid > .menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}
header .navbar-header { display: flex; align-items: center; }
header .navbar-brand img { height: 48px; width: auto; }
header .navbar-toggle {
    display: none;
    color: var(--text);
    font-size: 22px;
    padding: 8px 12px;
}
#primary {
    display: block;
    flex: 1;
    padding-left: 24px;
}
#menu-primary {
    display: flex;
    gap: 28px;
}
#menu-primary li a {
    display: block;
    padding: 8px 4px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
#menu-primary li a:hover,
#menu-primary li.current-menu-item a {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.booking-button { display: block; }
.btn-booking {
    background: var(--brand);
    color: #fff !important;
    padding: 12px 26px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    display: inline-block;
    transition: background 0.2s ease;
}
.btn-booking:hover { background: var(--brand-dark); color: #fff !important; }

/* MAIN LAYOUT */
.main-section .container-fluid {
    padding-top: 40px;
    padding-bottom: 40px;
}
.left-div { flex: 1; min-width: 0; }
.right-div { width: 280px; flex-shrink: 0; }

@media (max-width: 991px) {
    .row { flex-direction: column; gap: 24px; }
    .right-div { width: 100%; order: 2; }
}

/* SIDEBAR */
.sidebar-title {
    font-size: 11px;
    color: var(--brand);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand);
}
.happenings-wrapper {
    background: var(--brand-light);
    padding: 24px 22px;
    margin-bottom: 24px;
}
.happenings-feed > div {
    padding: 12px 0;
    border-bottom: 1px solid rgba(84,45,127,0.1);
}
.happenings-feed > div:last-child { border-bottom: none; }
.happenings-feed p { font-size: 13px; line-height: 1.5; }
.happenings-feed p span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 3px;
}
.happenings-feed p a { color: var(--text); }
.happenings-feed p a:hover { color: var(--brand); }

.hotel-links-wrapper {
    background: #fff;
    padding: 20px 22px;
    border: 1px solid var(--border);
}
.hotel-links { display: flex; flex-direction: column; gap: 8px; }
.hotel-links li a {
    display: block;
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}
.hotel-links li a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ============================================================
   HERO / SLIDER — PROPER SLICK HANDLING
   ============================================================ */

/* Container with explicit aspect ratio */
.home-hero,
.room-gallery,
.dining-gallery {
    width: 100%;
    background: #1a1a1a;
    overflow: hidden;
    margin-bottom: 40px;
}

.home-hero { aspect-ratio: 16 / 8; max-height: 600px; min-height: 380px; }
.room-gallery { aspect-ratio: 16 / 9; max-height: 600px; min-height: 380px; }
.dining-gallery { aspect-ratio: 16 / 9; max-height: 560px; min-height: 340px; }

@media (max-width: 768px) {
    .home-hero { aspect-ratio: 4 / 3; min-height: 280px; max-height: 400px; }
    .room-gallery { aspect-ratio: 4 / 3; min-height: 280px; max-height: 400px; }
    .dining-gallery { aspect-ratio: 4 / 3; min-height: 240px; max-height: 380px; }
}

.home-slider {
    width: 100%;
    height: 100%;
}

/* Slick before init — show only first slide */
.home-slider:not(.slick-initialized) {
    display: block;
}
.home-slider:not(.slick-initialized) > .slide {
    display: none;
}
.home-slider:not(.slick-initialized) > .slide:first-child {
    display: block;
    height: 100%;
}
.home-slider:not(.slick-initialized) > .slide:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slick after init */
.home-slider.slick-initialized,
.home-slider.slick-initialized .slick-list,
.home-slider.slick-initialized .slick-track {
    height: 100%;
}
.home-slider.slick-initialized .slick-slide {
    height: 100%;
}
.home-slider.slick-initialized .slick-slide > div {
    height: 100%;
}
.home-slider.slick-initialized .slick-slide .slide {
    height: 100%;
}
.home-slider.slick-initialized .slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HOMEPAGE INTRO */
.home-quote-section {
    background: var(--brand-light);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
}
.quote-mark { height: 28px; opacity: 0.5; margin: 0 auto 16px; }
.quote-slider {
    max-width: 700px;
    margin: 0 auto;
}
.quote-slider:not(.slick-initialized) > div { display: none; }
.quote-slider:not(.slick-initialized) > div:first-child { display: block; }
.quote-text {
    font-size: 19px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 300;
    line-height: 1.5;
}
.quote-source {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.home-intro {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    text-align: center;
}
.home-intro h1 {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.home-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}
.home-intro a:not(.btn-booking) {
    color: var(--brand);
    border-bottom: 1px solid currentColor;
}
.home-intro .btn-booking { margin-top: 16px; }

/* PAGE HEADER */
.page-header {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 32px;
}
.page-header h1 {
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.page-header .subtitle {
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
}
.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.back-link:hover { color: var(--brand); }

/* CONTENT SECTIONS */
.content-section {
    max-width: 780px;
    margin: 0 auto 60px;
    padding: 0 24px;
}
.content-section h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    font-weight: 400;
    letter-spacing: 1px;
}
.content-section h3 {
    font-size: 17px;
    margin: 24px 0 10px;
    font-weight: 600;
}
.content-section p {
    margin-bottom: 16px;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
}
.content-section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}
.content-section ul li {
    margin-bottom: 6px;
    color: #444;
    font-size: 15px;
}

/* ROOMS INDEX */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 24px;
}
.room-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--brand);
}
.room-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.room-card:hover .room-card-image img { transform: scale(1.05); }
.room-card-info { padding: 20px 22px; }
.room-card-info h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text);
}
.room-card-tagline {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 14px;
}
.room-card-link {
    font-size: 11px;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.rooms-info-block {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 24px;
}
.rooms-info-block p {
    color: #555;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
}

/* ROOM DETAIL */
.room-detail-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.room-header {
    text-align: center;
    padding: 24px 0;
}
.room-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.room-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}
.room-info { max-width: 760px; margin: 0 auto; }
.room-description p {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 32px;
}
.room-features-block {
    background: #f9f9f9;
    padding: 26px 30px;
    margin-bottom: 36px;
}
.room-features-block h3 {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
}
.room-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.room-features li { font-size: 14px; color: #555; padding: 4px 0; }
.room-features li i {
    color: var(--brand);
    margin-right: 8px;
    font-style: normal;
    font-weight: bold;
}
.room-booking-cta { text-align: center; padding: 20px 0 44px; }

.rooms-nav-wrapper {
    border-top: 1px solid var(--border);
    padding: 44px 24px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}
.rooms-nav-wrapper h3 {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}
.rooms-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    max-width: 800px;
    margin: 0 auto;
}
.room-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    transition: transform 0.2s ease;
    width: 96px;
}
.room-nav-item:hover { transform: translateY(-3px); color: var(--brand); }
.room-nav-item img { width: 44px; height: 44px; margin-bottom: 8px; }
.room-nav-item .image-hover { display: none; }
.room-nav-item:hover .image-front,
.room-nav-item.active .image-front { display: none; }
.room-nav-item:hover .image-hover,
.room-nav-item.active .image-hover { display: block; }
.room-nav-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

/* DINING */
.dining-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 32px 0;
    padding: 30px;
    background: #f9f9f9;
}
.detail-block h3 {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}
.detail-block p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.dining-cta { text-align: center; padding: 20px 0 0; }

/* CONTACT */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 880px;
    margin: 0 auto 36px;
    padding: 0 24px;
}
.contact-block {
    background: #f9f9f9;
    padding: 26px 24px;
    text-align: center;
}
.contact-block h3 {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
}
.contact-block p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
.contact-cta { text-align: center; padding: 20px 0 36px; }

/* HAPPENINGS */
.happenings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 56px;
    padding: 0 24px;
}
.happenings-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    padding: 26px 24px;
    color: inherit;
    transition: all 0.3s ease;
}
.happenings-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--brand);
}
.happenings-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--text);
}
.happenings-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}
.happenings-link {
    font-size: 11px;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.event-cta { text-align: center; padding: 30px 0; }

/* FOOTER */
footer {
    background: #f6f4ef;
    margin-top: 60px;
    padding: 40px 24px 24px;
    text-align: center;
    font-size: 12px;
    color: #555;
    letter-spacing: 1px;
    border-top: 1px solid var(--border);
}
footer .privacy-terms,
footer .address,
footer .copyright {
    margin-bottom: 12px;
    line-height: 1.6;
}
footer .privacy-terms a,
footer .copyright a { color: var(--text); }
footer .privacy-terms a:hover,
footer .copyright a:hover { color: var(--brand); }
footer .mid-dot { color: #aaa; margin: 0 6px; }
footer .font-bold { font-weight: 700; }
footer .social-wrapper { margin: 22px 0 14px; }
footer .social {
    display: inline-flex;
    gap: 16px;
}
footer .social li img {
    width: 26px;
    height: 26px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
footer .social li a:hover img { opacity: 1; }
footer .badges { margin-top: 16px; }
footer .badges a {
    display: inline-block;
    margin: 0 12px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
footer .badges a:hover { opacity: 1; }
footer .badges img { height: 30px; vertical-align: middle; }

/* SLICK DOTS */
.slick-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    list-style: none;
    z-index: 10;
}
.slick-dots li {
    display: inline-block;
    margin: 0 4px;
}
.slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 0;
    text-indent: -9999px;
    cursor: pointer;
}
.slick-dots li.slick-active button {
    background: #fff;
}

/* MOBILE */
@media (max-width: 1024px) {
    #menu-primary { gap: 18px; }
    #menu-primary li a { font-size: 11px; }
}
@media (max-width: 768px) {
    header .container-fluid { padding: 0 16px; }
    header .container-fluid > .menu {
        flex-wrap: wrap;
        gap: 8px;
    }
    header .navbar-header { flex: 0 0 auto; }
    header .navbar-brand img { height: 40px; }
    header .navbar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        padding: 6px 10px;
        margin-left: 10px;
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border);
        border-radius: 3px;
    }
    header .booking-button { margin-left: auto; }
    header .booking-button .btn-booking {
        padding: 10px 14px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    #primary {
        flex-basis: 100%;
        padding-left: 0;
        order: 3;
        display: none;
    }
    #primary.in { display: block; }
    #menu-primary {
        flex-direction: column;
        gap: 0;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid var(--border);
    }
    #menu-primary li a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
    }
    
    .main-section .container-fluid { padding-top: 20px; padding-bottom: 20px; }
    .home-quote-section { padding: 36px 24px; }
    .page-header { padding: 24px 16px; }
    .page-header h1 { font-size: 24px; letter-spacing: 3px; }
    .room-title { font-size: 26px; letter-spacing: 3px; }
    .home-intro h1 { font-size: 22px; letter-spacing: 2px; }
    .home-intro { padding: 32px 16px 48px; }
    .home-intro p { font-size: 14px; }
    .quote-text { font-size: 15px; }
    .rooms-grid, .happenings-grid, .contact-info-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .room-detail-wrapper { padding: 0 16px; }
    .content-section { padding: 0 16px; }
    .rooms-nav { gap: 10px; }
    .room-nav-item { width: 64px; }
    .room-nav-item img { width: 36px; height: 36px; }
    .room-nav-label { font-size: 9px; }
    .dining-details { padding: 20px; grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    header .navbar-brand img { height: 36px; }
    header .booking-button .btn-booking {
        padding: 8px 10px;
        font-size: 9px;
    }
}


/* ============================================================
   DEFINITIVE OVERFLOW FIX
   ============================================================ */

/* Parent constraints — prevent flex grow */
.left-div {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Slick must respect parent */
.home-hero,
.room-gallery,
.dining-gallery {
    max-width: 100%;
    width: 100%;
}

.home-slider,
.home-slider .slick-list,
.home-slider .slick-track {
    max-width: 100% !important;
}

.home-slider .slick-list {
    width: 100% !important;
    overflow: hidden !important;
}

/* Force slick slide width to match container */
.home-slider .slick-slide {
    max-width: 100vw;
}

/* Container query fallback */
@supports not (aspect-ratio: 1) {
    .home-hero { height: 60vh; min-height: 380px; max-height: 600px; }
    .room-gallery { height: 60vh; min-height: 380px; max-height: 600px; }
    .dining-gallery { height: 50vh; min-height: 340px; max-height: 560px; }
}
