/* Insight Resort responsive layer
   Loaded after page styles so public pages share one mobile/tablet contract. */

:root {
    --responsive-gutter: clamp(1rem, 4vw, 2rem);
    --mobile-header-height: 78px;
    --touch-target: 44px;
}

html {
    scroll-padding-top: 110px;
}

.container.wrapper {
    padding-left: var(--responsive-gutter);
    padding-right: var(--responsive-gutter);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

iframe {
    display: block;
    width: 100%;
    border: 0;
}

p,
li,
a,
button,
label,
input,
select,
textarea,
.room-breadcrumb-banner__title {
    overflow-wrap: anywhere;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

.mobile-header-row,
.mobile-header-actions {
    display: flex;
    align-items: center;
}

.mobile-header-row {
    min-height: 62px;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-header-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.mobile-header-logo img {
    display: block;
    width: 68px;
    height: 54px;
    object-fit: contain;
}

.mobile-header-actions {
    gap: .65rem;
}

.mobile-book-now {
    min-height: var(--touch-target);
    padding: .7rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #151515;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.mobile-menu-toggle {
    width: var(--touch-target);
    height: var(--touch-target);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 9px;
    background: rgba(0, 0, 0, .2);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.mobile-nav-drawer {
    --bs-offcanvas-width: min(88vw, 390px);
    z-index: 2100;
    color: #fff;
    background: #101820;
}

.mobile-nav-drawer .offcanvas-header {
    min-height: var(--mobile-header-height);
    padding: .75rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.mobile-nav-drawer .offcanvas-body {
    padding: .75rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
}

.mobile-drawer-brand img {
    width: 72px;
    height: 54px;
    object-fit: contain;
}

.mobile-nav-list,
.mobile-nav-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.mobile-nav-link {
    width: 100%;
    min-height: 50px;
    padding: .8rem .25rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .9);
    font-size: .95rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.mobile-nav-link.active {
    color: #f7941e;
}

.mobile-nav-toggle i {
    font-size: .72rem;
    transition: transform .2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    padding: .1rem 0 .8rem .75rem;
}

.mobile-nav-submenu a {
    min-height: 44px;
    padding: .65rem .75rem;
    color: rgba(255, 255, 255, .68);
    font-size: .86rem;
    line-height: 1.35;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-left: 2px solid rgba(247, 148, 30, .35);
}

.mobile-nav-submenu a:hover,
.mobile-nav-submenu a:focus-visible {
    color: #fff;
    border-left-color: #f7941e;
}

.mobile-nav-secondary {
    margin-top: 1.2rem;
    display: grid;
    gap: .25rem;
}

.mobile-nav-secondary a {
    min-height: 44px;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.mobile-nav-secondary i {
    width: 18px;
    color: #f7941e;
    text-align: center;
}

.mobile-nav-social {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    gap: .65rem;
}

.mobile-nav-social a {
    width: var(--touch-target);
    height: var(--touch-target);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
}

.responsive-carousel-row {
    flex-wrap: nowrap;
    margin-right: 0;
    margin-left: 0;
}

.responsive-carousel-cell {
    min-width: 0;
    padding: 0 .25rem;
    display: flex;
    flex: 1 1 0;
}

.responsive-carousel-cell > * {
    width: 100%;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.blog-content img,
.blog-content video,
.blog-content iframe,
.legal-page img {
    height: auto;
    max-width: 100%;
}

.blog-content table {
    min-width: 640px;
}

/* Smart media state added by responsive-frontend.js */
video[data-smart-video] {
    background: #111;
}

video[data-smart-video].is-media-paused {
    opacity: .96;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: calc(var(--mobile-header-height) + 1rem);
    }

    body.gsap-smooth #smooth-wrapper {
        position: relative;
        inset: auto;
        overflow: visible;
    }

    body.gsap-smooth #smooth-content {
        transform: none !important;
    }

    .container {
        max-width: 100%;
        padding-left: var(--responsive-gutter);
        padding-right: var(--responsive-gutter);
    }

    .navbar-wrapper {
        background: rgba(7, 16, 28, .88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .top-navbar--mobile {
        max-height: none;
        padding: calc(.45rem + env(safe-area-inset-top)) 0 .45rem;
        overflow: visible;
    }

    .navbar-wrapper.hide-top-nav .top-navbar--mobile {
        max-height: none;
        padding: calc(.45rem + env(safe-area-inset-top)) 0 .45rem;
        opacity: 1;
        transform: none;
    }

    .room-breadcrumb-banner {
        min-height: clamp(300px, 48vw, 390px);
        padding: calc(var(--mobile-header-height) + 4.25rem) 0 3.5rem;
        background-position: center;
    }

    .room-breadcrumb-banner__title {
        margin-inline: auto;
        max-width: 18ch;
        font-size: clamp(2.15rem, 7vw, 3.8rem);
        line-height: 1.03;
    }

    .room-breadcrumb-banner__trail {
        font-size: clamp(.72rem, 2vw, .86rem);
        line-height: 1.4;
    }

    .hero-section {
        min-height: 720px;
        height: auto;
        padding: calc(var(--mobile-header-height) + 2rem) 0 1.25rem;
        align-items: flex-end;
    }

    .hero-content {
        padding-inline: var(--responsive-gutter);
    }

    .hero-content .booking-widget {
        max-width: 720px;
        margin-inline: auto;
    }

    .booking-widget input,
    .booking-widget button {
        min-height: var(--touch-target);
    }

    .booking-widget input[type="date"],
    .booking-widget input[type="text"] {
        font-size: 16px;
    }

    .room-booking-widget {
        padding: 2rem 0;
    }

    .wrapper,
    .content-section {
        padding-top: clamp(2.75rem, 7vw, 4.5rem);
        padding-bottom: clamp(2.75rem, 7vw, 4.5rem);
    }

    .content-section h2 {
        font-size: clamp(1.9rem, 5vw, 2.5rem);
    }

    .page-shell {
        width: 100%;
        max-width: 900px;
        margin-inline: auto;
        padding: 1.25rem 0;
    }

    .gallery {
        border-radius: clamp(1rem, 4vw, 2rem);
        padding: clamp(.75rem, 2.5vw, 1.25rem);
    }

    .gallery-stage {
        min-height: clamp(24rem, 76vw, 38rem);
        padding: 4.75rem 1rem 4.75rem;
        border-radius: clamp(.8rem, 3vw, 1.5rem);
    }

    .main-image {
        width: 100%;
        max-height: 58vh;
        aspect-ratio: 4 / 3;
        object-fit: contain;
        transform: none;
    }

    .gallery-badge {
        max-width: calc(100% - 2rem);
        font-size: clamp(.85rem, 2.5vw, 1rem);
    }

    .gallery-price-badge {
        max-width: calc(50% - 1rem);
        font-size: .8rem;
    }

    .gallery-price-badge strong {
        font-size: 1rem;
    }

    .thumbnail-viewport {
        overflow-x: auto;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .thumbnail {
        flex-basis: calc(25% - .75rem);
        min-width: 88px;
        scroll-snap-align: start;
        padding: .45rem;
        border-radius: 1rem;
    }

    .thumb-nav {
        width: var(--touch-target);
        height: var(--touch-target);
    }

    .information_services .row,
    .room-details .row {
        row-gap: 1.25rem;
    }

    .room-rate-calendar,
    .calendar-container {
        width: 100%;
        max-width: 100%;
    }

    .cal-cell {
        min-width: 0;
        min-height: 68px;
        padding: 3px 1px;
    }

    .cal-rate {
        font-size: clamp(.5rem, 1.25vw, .62rem);
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: .65rem 1rem;
    }

    .room-booking-widget + .testimonials-section {
        margin-top: 0;
    }

    .room-card img,
    .roomSwiper .room-card img {
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .fac-img-fullwidth,
    .surf-map iframe,
    .fac-fullwidth-carousel iframe {
        height: clamp(280px, 48vw, 420px);
    }

    .fac-carousel .carousel-item .row,
    #bistroCarousel .carousel-item .row,
    .testimonials-section .carousel-item .row {
        align-items: stretch;
    }

    .floating-scroll {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .promotion-popup .modal-dialog {
        width: min(92vw, 640px);
        max-width: none;
        margin: max(1rem, env(safe-area-inset-top)) auto;
    }

    .promotion-popup__link img {
        width: 100%;
        max-height: 88dvh;
        object-fit: contain;
    }

    #toast-container {
        top: calc(var(--mobile-header-height) + .75rem);
        right: .75rem;
        left: .75rem;
        width: auto;
    }

    #toast-container > div {
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }

    .footer-frame {
        border-width: 2px;
    }

    .contact-bar {
        line-height: 1.55;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 100% !important;
    }

    .room-breadcrumb-banner {
        min-height: 300px;
        padding-top: calc(var(--mobile-header-height) + 3.5rem);
        padding-bottom: 2.75rem;
    }

    .room-breadcrumb-banner__trail {
        justify-content: center;
    }

    .hero-section {
        min-height: 700px;
    }

    .booking-widget {
        border-radius: .75rem;
    }

    .booking-widget .check-in-out {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-widget .check-col {
        min-width: 0;
        padding: .75rem .4rem;
    }

    .booking-widget .check-col input[type="date"] {
        width: min(100%, 145px);
    }

    .booking-widget .widget-section {
        align-items: stretch;
    }

    .booking-widget .radio-group {
        min-height: var(--touch-target);
        align-items: center;
    }

    .availability-btn {
        min-height: 54px;
    }

    .gallery-stage {
        min-height: 22rem;
        padding: 4.25rem .75rem 4.5rem;
    }

    .gallery-price-badge {
        top: 3.05rem;
        right: 50%;
        max-width: calc(100% - 1.5rem);
        transform: translateX(50%);
        text-align: center;
    }

    .main-image {
        max-height: 48vh;
    }

    .thumbnail-slider {
        gap: .35rem;
    }

    .thumbnail {
        flex-basis: calc(33.333% - .55rem);
        min-width: 76px;
    }

    .calendar-header {
        gap: .5rem;
    }

    .calendar-nav {
        width: var(--touch-target);
        height: var(--touch-target);
        flex: 0 0 auto;
    }

    .calendar-title {
        font-size: .95rem;
        text-align: center;
    }

    .calendar-grid {
        gap: 2px;
    }

    .cal-cell {
        min-height: 54px;
        border-radius: 4px;
    }

    .cal-rate {
        display: none;
    }

    .cal-rate:first-child {
        display: block;
        max-width: 100%;
        font-size: .53rem;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cal-rate:first-child b {
        display: none;
    }

    .calendar-detail {
        padding: .85rem;
    }

    .table-responsive table {
        min-width: 620px;
    }

    .bistro-section {
        padding: 1.5rem 0;
    }

    .bistro-banner img {
        height: auto;
        min-height: 220px;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .bistro-banner-video {
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .bistro-card {
        height: auto;
        aspect-ratio: 4 / 5;
        min-height: 440px;
    }

    .bistro-small-img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .bistro-carousel-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .bistro-video {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .bistro-split-banners .row {
        min-height: 0;
    }

    .bistro-split-banners img {
        height: auto;
    }

    .fac-carousel .carousel-item [class*="col-"],
    #bistroCarousel .carousel-item [class*="col-"],
    .testimonials-section .carousel-item [class*="col-"] {
        display: flex;
    }

    .fac-img-carousel {
        width: 100%;
        height: clamp(210px, 66vw, 320px);
    }

    .fac-img-tall,
    .fac-img-medium {
        height: clamp(220px, 68vw, 340px);
    }

    .contact-form-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-page input,
    .contact-page select,
    .contact-page textarea,
    .newsletter-input {
        font-size: 16px;
    }

    .contact-map iframe,
    .map-container iframe {
        height: 320px;
    }

    .our_tours_section {
        padding-inline: var(--responsive-gutter);
    }

    .middle-card,
    .middle-card:hover {
        transform: none;
    }

    .card-footer-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .btn-see-more,
    .transport-cta,
    .yh-btn,
    .btn-book-now,
    .btn-see-more {
        min-height: var(--touch-target);
    }

    .yh-lightbox img {
        max-width: 94vw;
        max-height: 72dvh;
    }

    .yh-lb-prev {
        left: 4px;
    }

    .yh-lb-next {
        right: 4px;
    }

    .footer-logo {
        max-width: 150px;
    }

    .footer-links a,
    .mobile-nav-link,
    .mobile-nav-submenu a {
        padding-block: .7rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --responsive-gutter: 1rem;
        --mobile-header-height: 74px;
    }

    .surf_spot .row.g-5 {
        --bs-gutter-x: 2rem;
    }

    .mobile-header-row {
        min-height: 58px;
    }

    .mobile-header-logo img {
        width: 62px;
        height: 48px;
    }

    .mobile-book-now {
        min-height: 40px;
        padding-inline: .85rem;
        font-size: .72rem;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero-section {
        min-height: 680px;
    }

    .hero-content {
        padding-inline: .75rem;
    }

    .date-display .day {
        font-size: 1.45rem;
    }

    .gallery {
        padding: .55rem;
        border-radius: 1rem;
    }

    .gallery-stage {
        border-radius: .75rem;
    }

    .gallery-badge {
        top: .75rem;
        width: calc(100% - 1.5rem);
        text-align: center;
    }

    .nav-button {
        width: 46px;
        height: 46px;
    }

    .thumb-nav {
        display: none;
    }

    .thumbnail-viewport {
        padding-bottom: .35rem;
    }

    .room-card img,
    .roomSwiper .room-card img {
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }

    .white_tape {
        outline-width: 10px;
    }

    .facilities_text {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .facilities_text p {
        font-size: 1.05rem;
    }

    .testimonials-section {
        padding-inline: var(--responsive-gutter);
    }

    .testimonial-card {
        min-height: 0;
    }

    .promotion-popup__close {
        width: var(--touch-target);
        height: var(--touch-target);
        top: 4px;
        right: 4px;
    }

    .floating-scroll {
        right: max(10px, env(safe-area-inset-right));
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
    }

    .footer-frame .col-6 {
        width: 100%;
        text-align: center;
    }

    .social-icons,
    .footer-heading {
        text-align: center;
    }
}

@media (max-width: 360px) {
    .mobile-header-actions {
        gap: .4rem;
    }

    .mobile-book-now {
        padding-inline: .7rem;
    }

    .booking-widget .check-col input[type="date"] {
        font-size: 14px;
        padding-inline: 2px;
    }

    .room-breadcrumb-banner__title {
        font-size: 2rem;
    }

    .thumbnail {
        min-width: 72px;
    }
}

@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 600px) {
    .mobile-nav-drawer .offcanvas-body {
        padding-bottom: 1rem;
    }

    .hero-section {
        min-height: 650px;
    }

    .promotion-popup__link img {
        max-height: 82dvh;
    }
}

@media (hover: none), (pointer: coarse) {
    .tour-card:hover,
    .room-card:hover,
    .review-item:hover,
    .testimonial-card:hover,
    .left-main-image:hover,
    .resort-content:hover {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .marquee-track,
    .marquee-track-location,
    .award-logo,
    .transport-img-panel img,
    .background-img::before {
        animation: none !important;
    }
}
