/* ==========================================================================
   MEENAM RESORT - SITE UPDATES
   1. Hero / page banner offsets (match new header height)
   2. Page banners (top images)
   3. Room cards - View More + Book Now
   4. Home gallery - View Full Gallery button
   5. Booking enquiry modal - room dropdown
   6. Animations - buttons, smooth scrolling, sections, headings, images
   7. Reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero offset - the home slider starts right below the header
   -------------------------------------------------------------------------- */
.luxivo-hero_two { padding-top: var(--mh-header, 128px); }
.luxivo-hero_two:before { background-color: #fff; }
@media (min-width: 1200px) {
    .luxivo-hero_two .single-slider { padding: 190px 0 200px; }
}

/* --------------------------------------------------------------------------
   2. Page banners (inner pages) - photo visible, title readable
   -------------------------------------------------------------------------- */
.page-hero {
    margin: var(--mh-header, 128px) 30px 0;
    padding: 130px 0 120px;
    border-radius: 40px;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.page-hero:after {
    background: linear-gradient(180deg, rgba(47, 60, 47, 0.62) 0%, rgba(47, 60, 47, 0.48) 55%, rgba(47, 60, 47, 0.68) 100%);
}
.page-hero .page-content h1 {
    color: #fff;
    margin-bottom: 14px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.page-hero .page-content h6 {
    color: #FFF2E3;
    margin-bottom: 0;
    line-height: 1.6;
    letter-spacing: 1.2px;
}
.page-hero .page-content h6:before { background-color: #CDB496; }

@media (max-width: 1199.98px) {
    .page-hero { margin-left: 15px; margin-right: 15px; padding: 110px 0 100px; border-radius: 30px; }
}
@media (max-width: 767.98px) {
    .page-hero { padding: 80px 0 70px; border-radius: 22px; }
    .page-hero .page-content h1 { font-size: 34px; }
    .page-hero .page-content h6 { font-size: 13px; letter-spacing: 0.8px; }
}

/* --------------------------------------------------------------------------
   3. Room cards - two buttons
   -------------------------------------------------------------------------- */
.room-card-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.room-card-btns .theme-btn.style-one,
.room-card-btns .theme-btn.style-two { padding: 14px 26px; }
@media (max-width: 399.98px) {
    .room-card-btns .theme-btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   4. Home gallery button
   -------------------------------------------------------------------------- */
.gallery-more-btn { margin-bottom: 30px; }

/* --------------------------------------------------------------------------
   5. Booking enquiry modal
   -------------------------------------------------------------------------- */
/* compact layout - every field visible without scrolling */
.booking-enquiry-overlay .booking-enquiry-modal {
    max-width: 560px;
    padding: 1.6rem 1.75rem 1.75rem;
    max-height: calc(100vh - 24px);
    overflow-y: auto;            /* only kicks in on very short screens (e.g. phone held sideways) */
    scrollbar-width: none;
}
.booking-enquiry-overlay .booking-enquiry-modal::-webkit-scrollbar { display: none; }
.booking-enquiry-overlay .booking-enquiry-header { margin-bottom: 1.1rem; }
.booking-enquiry-overlay .enquiry-input {
    height: 48px;
    min-height: 0;
    padding: 0.55rem 0.95rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.booking-enquiry-overlay .enquiry-message {
    height: 64px;
    resize: none;
}
.booking-enquiry-overlay .enquiry-label {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}
.booking-enquiry-overlay .booking-enquiry-submit { padding: 0.8rem 1.5rem; }
.enquiry-select {
    cursor: pointer;
    background-position: right 0.9rem center;
    padding-right: 2.4rem !important;
    text-overflow: ellipsis;
}
.enquiry-select:invalid { color: #866B53; }
.enquiry-select option { color: #2F3C2F; }
@media (max-width: 575.98px) {
    .booking-enquiry-overlay { padding: 12px; }
    .booking-enquiry-overlay .booking-enquiry-modal { padding: 1.2rem 1.1rem 1.25rem; border-radius: 14px; }
    .booking-enquiry-overlay .booking-enquiry-header { margin-bottom: 0.8rem; }
    .booking-enquiry-overlay .booking-enquiry-title { font-size: 1.3rem; }
    .booking-enquiry-overlay .enquiry-input { height: 44px; font-size: 0.9rem; }
    .booking-enquiry-overlay .enquiry-message { height: 56px; }
}

/* --------------------------------------------------------------------------
   6. Animations
   -------------------------------------------------------------------------- */

/* smooth scrolling for every in-page jump */
html { scroll-behavior: smooth; }

/* ---- Buttons: lift + light sweep + arrow nudge ---- */
.theme-btn,
.booking-enquiry-submit {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
                transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.theme-btn:before,
.booking-enquiry-submit:before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    z-index: -1;
    pointer-events: none;
}
.theme-btn:hover,
.booking-enquiry-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(47, 60, 47, 0.45);
}
.theme-btn:hover:before,
.booking-enquiry-submit:hover:before { left: 140%; }
.theme-btn:active,
.booking-enquiry-submit:active { transform: translateY(-1px); }

/* floating buttons & social icons */
.floating-whatsapp-btn,
.floating-call-btn,
.floating-enquire-btn { transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.floating-whatsapp-btn:hover,
.floating-call-btn:hover { transform: scale(1.08); }
.header-top-bar .top-right span a i,
.theme-menu-bottom .social-link li a i { display: inline-block; transition: transform 0.3s ease; }
.header-top-bar .top-right span a:hover i,
.theme-menu-bottom .social-link li a:hover i { transform: translateY(-3px) scale(1.12); }

/* desktop menu underline grows on hover */
@media (min-width: 1200px) {
    .header-navigation .main-menu > ul > li > a:before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 30px;
        width: 100%;
        height: 2px;
        background-color: #84613B;
        transform: scaleX(0);
        transform-origin: right center;
        transition: transform 0.4s ease;
    }
    .header-navigation.sticky .main-menu > ul > li > a:before { bottom: 21px; }
    .header-navigation .main-menu > ul > li:hover > a:before {
        transform: scaleX(1);
        transform-origin: left center;
    }
}

/* sticky header slides in smoothly */
.header-navigation.sticky { animation: mhSlideDown 0.5s ease both; }
@keyframes mhSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ---- Heading text animations (run when the heading scrolls into view) ---- */
h1[data-aos].aos-animate,
h2[data-aos].aos-animate,
h3[data-aos].aos-animate {
    animation: mhHeadingReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mhHeadingReveal {
    0%   { clip-path: inset(0 100% 0 0); letter-spacing: 0.04em; }
    100% { clip-path: inset(0 0 0 0);    letter-spacing: normal; }
}
/* sub-title + ornament line */
.section-title .sub-title[data-aos].aos-animate { animation: mhFadeTrack 1s ease both; }
@keyframes mhFadeTrack {
    from { letter-spacing: 0.35em; opacity: 0; }
    to   { opacity: 1; }
}
.section-title .line[data-aos].aos-animate img { animation: mhLineGrow 1s ease both; }
@keyframes mhLineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.section-title .line img { transform-origin: center; }
.section-title.text-lg-start .line img,
.section-title.text-start .line img { transform-origin: left center; }

/* ---- Images: soft zoom on hover ---- */
.luxivo-room-item .room-image,
.luxivo-gallery-item .thumbnail,
.luxivo-offer-item .offer-image,
.luxivo-image,
.luxivo-image-box .image { overflow: hidden; }
.luxivo-room-item .room-image { border-radius: 30px; }
.luxivo-room-item .room-image img,
.luxivo-gallery-item .thumbnail img,
.luxivo-offer-item .offer-image img,
.luxivo-image img { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.luxivo-room-item:hover .room-image img,
.luxivo-gallery-item:hover .thumbnail img,
.luxivo-offer-item:hover .offer-image img,
.luxivo-image:hover img { transform: scale(1.06); }

/* room card lifts slightly */
.luxivo-room-item.style-two .room-content { transition: box-shadow 0.4s ease, transform 0.4s ease; }
.luxivo-room-item.style-two:hover .room-content {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -22px rgba(47, 60, 47, 0.35);
}

/* feature / counter boxes */
.luxivo-feature-item,
.luxivo-counter-item,
.luxivo-iconic-left-box { transition: transform 0.4s ease; }
.luxivo-feature-item:hover,
.luxivo-iconic-left-box:hover { transform: translateY(-6px); }

/* page banner photo slow zoom-in on load */
.page-hero { animation: mhBannerIn 1.4s ease both; }
@keyframes mhBannerIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   7. Logo colours everywhere (browser + plugin defaults)
      green #2F3C2F | brown #84613B | bronze #754C24 | taupe #866B53
      tan #CDB496   | cream #FFF2E3 | soft cream #FBF4EA
   -------------------------------------------------------------------------- */
:root {
    accent-color: #84613B;                 /* checkboxes, radios, date pickers */
    --bs-primary: #84613B;
    --bs-primary-rgb: 132, 97, 59;
    --bs-link-color: #84613B;
    --bs-link-color-rgb: 132, 97, 59;
    --bs-link-hover-color: #754C24;
    --bs-link-hover-color-rgb: 117, 76, 36;
    --bs-body-color: #4A5548;
    --bs-border-color: #E4D7C5;
    --bs-focus-ring-color: rgba(132, 97, 59, 0.25);
}
::selection { background-color: #84613B; color: #fff; }
::-moz-selection { background-color: #84613B; color: #fff; }

/* form focus - no Bootstrap blue */
.form-control:focus,
.form-select:focus,
.form_control:focus,
input:focus, textarea:focus, select:focus {
    border-color: #CDB496;
    box-shadow: 0 0 0 0.2rem rgba(132, 97, 59, 0.18);
    outline: none;
}
a:focus-visible, button:focus-visible, .theme-btn:focus-visible {
    outline: 2px solid #84613B;
    outline-offset: 3px;
}
input::placeholder, textarea::placeholder { color: #866B53; opacity: 0.85; }

/* dropdown plugin (nice-select) */
.nice-select .option.selected,
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus { background-color: #FBF4EA; color: #2F3C2F; }
.nice-select:after { border-color: #84613B; }
.nice-select:hover, .nice-select:active, .nice-select.open, .nice-select:focus { border-color: #CDB496; }

/* image popup (magnific) */
.mfp-bg { background: #2F3C2F; opacity: 0.92; }
.mfp-close, .mfp-arrow:before, .mfp-counter { color: #FFF2E3; }

/* scrollbar */
html { scrollbar-color: #84613B #FBF4EA; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #FBF4EA; }
::-webkit-scrollbar-thumb { background: #84613B; border-radius: 10px; border: 2px solid #FBF4EA; }
::-webkit-scrollbar-thumb:hover { background: #754C24; }

/* --------------------------------------------------------------------------
   8. Room page - Reservation Support box with icons
   -------------------------------------------------------------------------- */
.room-support-widget .support-list { margin-bottom: 30px; }
.room-support-widget .support-list li:not(:last-child) { margin-bottom: 14px; }
.room-support-widget .support-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #2F3C2F;
    word-break: break-word;
    transition: color 0.3s ease;
}
.room-support-widget .support-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #E4D7C5;
    color: #84613B;
    font-size: 17px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.room-support-widget .support-icon .fa-whatsapp { font-size: 21px; }
.room-support-widget .support-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.room-support-widget .support-text small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #866B53;
    margin-bottom: 2px;
}
.room-support-widget .support-list li a:hover { color: #84613B; }
.room-support-widget .support-list li a:hover .support-icon {
    background-color: #84613B;
    border-color: #84613B;
    color: #fff;
    transform: translateY(-2px);
}
@media (max-width: 575.98px) {
    .room-support-widget .support-list li a { word-break: normal; }
    .room-support-widget .support-list li:last-child .support-text { font-size: 14px; }
    .room-support-widget .support-icon { flex-basis: 42px; width: 42px; height: 42px; }
}
.room-support-widget .support-address { display: flex; align-items: flex-start; gap: 14px; }
.room-support-widget .support-address p { margin-bottom: 0; padding-top: 4px; }

/* --------------------------------------------------------------------------
   9. Resort video - play buttons + popup player
   -------------------------------------------------------------------------- */
.luxivo-play-box .video-popup {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background-color: #fff;
    color: #84613B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 1;
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}
.luxivo-play-box .video-popup i { margin-left: 4px; }
.luxivo-play-box .video-popup:before,
.luxivo-play-box .video-popup:after {
    position: absolute;
    inset: 0;
    content: "";
    border-radius: 50%;
    z-index: -1;
}
.luxivo-play-box .video-popup:before { background-color: rgba(255, 255, 255, 0.5); animation: playpopup infinite ease-in 2s; }
.luxivo-play-box .video-popup:after  { background-color: rgba(255, 255, 255, 0.4); animation: playpopup infinite ease-in-out 4s; }
.luxivo-play-box .video-popup:hover { background-color: #84613B; color: #fff; transform: scale(1.06); }
.luxivo-cta-sec .luxivo-play-box .video-popup { width: 92px; height: 92px; }
.luxivo-play-box .play-label {
    display: block;
    margin-top: 22px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
/* About page - button over the photo */
.video-image { position: relative; }
.video-image:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(47, 60, 47, 0.28);
    pointer-events: none;
    transition: background 0.4s ease;
}
.video-image:hover:after { background: rgba(47, 60, 47, 0.4); }
.video-image .video-image-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
}
.video-image > img { border-radius: inherit; }
@media (max-width: 575.98px) {
    .luxivo-play-box .video-popup,
    .luxivo-cta-sec .luxivo-play-box .video-popup { width: 72px; height: 72px; font-size: 20px; }
    .luxivo-play-box .play-label { font-size: 13px; margin-top: 16px; }
}
/* popups (photos + video) always sit above the header and floating buttons */
.mfp-bg { z-index: 100000; }
.mfp-wrap { z-index: 100001; }
/* popup player */
.mfp-video-popup .mfp-content { width: 100%; max-width: 1100px; }
.mfp-video-box {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
}
.mfp-video-box video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mfp-video-popup .mfp-close {
    position: fixed;
    top: 16px;
    right: 18px;
    width: 46px;
    height: 46px;
    line-height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    opacity: 1;
    font-size: 30px;
    text-align: center;
    padding: 0;
}
.mfp-video-popup .mfp-close:hover { background: #84613B; }
@media (max-width: 767.98px) {
    .mfp-video-popup .mfp-container { padding-left: 10px; padding-right: 10px; }
    .mfp-video-box { border-radius: 10px; }
}

/* --------------------------------------------------------------------------
   10. Respect "reduce motion" accessibility setting
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
