/* ═══════════════════════════════════════════════════════════════
   Mobile Responsive — media.css
   Loads AFTER styles.css — these rules take final priority
   ═══════════════════════════════════════════════════════════════ */

html, body { overflow-x: hidden; }

/* ── 768px — Tablet ───────────────────────────────────────────── */
@media only screen and (max-width: 768px) {

    /* Desktop/mobile layout toggles */
    .hd-desktop-only { display: none !important; }
    .hd-mobile-only { display: block !important; }
    .hr-desktop-only { display: none !important; }
    .hr-mobile-only { display: block !important; }
    .tb-desktop-only { display: none !important; }
    .tb-mobile-only { display: block !important; }


    /* Premium mobile nav drawer */
    .mn-overlay, .mn-drawer { display: flex; }
    .mn-drawer { display: flex; }
    .menu { display: none !important; }

    /* Header */
    header { padding: 10px 0; }
    header .logo { max-width: 140px; height: auto; }
    .menu {
        left: -100%;
        transition: 0.5s all;
        display: block;
        position: fixed;
        background: #073445;
        width: 88%;
        height: 100vh;
        z-index: 999;
        top: 0;
        padding: 32px 24px;
        overflow-y: auto;
    }
    .menu.active { left: 0; }
    .menu > ul { display: block; }
    .menu > ul > li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .mega-box { display: none !important; }
    .dropdown-custom { display: none !important; }
    .search-bar { display: none; }
    .hamburger {
        display: block;
        background: none;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }
    .hamburger span {
        background: #fff;
        height: 2px;
        width: 100%;
        position: absolute;
        border-radius: 1px;
        transition: 0.3s all;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* Hero */
    .ah-hero--home { min-height: 440px; }
    .ah-inner { padding-top: 36px; padding-bottom: 48px; }
    .ah-title { font-size: 30px; }
    .ah-title em { font-size: 0.62em; }
    .ah-desc { font-size: 13px; margin-bottom: 20px; max-width: 100%; }
    .ah-eyebrow { font-size: 10px; padding: 5px 12px; }
    .ah-breadcrumb { font-size: 11px; }
    .ah-stats { width: 100%; }
    .ah-stat { padding: 10px 14px; }
    .ah-stat-num { font-size: 17px; }
    .ah-stat-label { font-size: 9px; }
    .ah-search-wrap { margin-top: 20px; }
    .ah-scroll-cue { display: none; }

    /* Search bar hidden on mobile — replaced with simple CTA */
    .ah-search-desktop { display: none !important; }
    .ah-search-mobile {display: block !important;width: 100%;}

    /* Non-hero search bar */
    .new-filter-container-wrapper .new-filter-container .new-filter-form .filter-box {
        border: none !important;
        padding: 0 !important;
    }

    /* Trust badges */
    .icon-section { padding: 40px 16px; }
    .icon-section-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .icon-section-wrapper .col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 20px 16px;
    }
    .icon-section-wrapper .image-wrapper { width: 44px; height: 44px; margin-bottom: 12px; }
    .icon-section-wrapper h4 { font-size: 13px; margin-top: 0; }
    .icon-section-wrapper p {
        font-size: 11px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Destinations */
    .populat-destinations { padding: 40px 16px; }
    .hp-dest-header { margin-bottom: 28px; }
    .hp-dest-heading { font-size: 26px; }
    .hp-dest-desc { font-size: 13px; }
    .wrapper-popular-destination { flex-wrap: wrap; flex-direction: column; gap: 12px; }
    .wrapper-popular-destination > .col { width: 100%; }
    .wrapper-popular-destination .row.column-row { gap: 12px; }
    .wrapper-popular-destination .col:last-child .row.column-row .major-box { width: 100%; }
    .major-box { width: 100%; padding: 14px; min-height: 150px; border-radius: 14px; }
    .content-major-box h4 { font-size: 15px; }
    .content-major-box a { font-size: 11px; }
    .column-row .row:nth-child(2) { gap: 12px; width: 100%; }

    /* Why Book */
    .why-book { min-height: auto; height: auto; padding: 48px 0; }
    .why-book h2 { font-size: 26px; line-height: 1.2; }
    .why-book p { font-size: 13px; max-width: 100%; }
    .why-book .green-button { padding: 12px 24px; font-size: 13px; }

    /* Recommended Villas */
    .hr-section { padding: 48px 0 40px; }
    .hr-header { margin-bottom: 32px; }
    .hr-heading { font-size: 24px; }
    .hr-desc { font-size: 13px; }
    .hr-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hr-card--hero { grid-column: span 2; grid-row: span 1; }
    .hr-card--hero .hr-card-img { min-height: 180px; }
    .hr-card .hr-card-img { height: 140px; }
    /* Show only 4 cards on tablet */
    .hr-card:nth-child(n+5) { display: none; }
    .hr-card-body { padding: 14px 14px 16px; }
    .hr-card-name { font-size: 13px; }
    .hr-card--hero .hr-card-name { font-size: 16px; }
    .hr-card-loc { font-size: 11px; }
    .hr-card-badge { font-size: 10px; padding: 4px 10px; }

    /* Villa Collections */
    .sv-section { padding: 48px 0 40px; }
    .sv-heading { font-size: 24px !important; }
    .sv-subheading { font-size: 13px; }
    .sv-panel-desc { font-size: 12px; margin-bottom: 16px; }
    .sv-tabs-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; gap: 6px; padding-bottom: 6px; }
    .sv-tabs-strip::-webkit-scrollbar { display: none; }
    .sv-tab { flex-shrink: 0; }

    /* Testimonials */
    .testimonials { padding: 44px 0 36px; margin: 0; }
    .testimonials h2 { font-size: 24px !important; margin-bottom: 8px !important; }
    .box-testimonial { padding: 18px 16px !important; border-radius: 14px !important; }
    .box-testimonial p { font-size: 12px; line-height: 1.6; text-align: left; }
    .author-tes { flex-direction: row; gap: 10px; }
    .author-rating { flex-direction: row; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; }
    .author-rating h5 { font-size: 13px; text-align: left; }
    .author-rating h5 span { font-size: 10px; }
    .testimonials .slick-slide { margin: 0 8px; }
    .testimonials .slick-list { margin: 0 -8px; }

    /* Blog */
    .blog-section { padding: 44px 0 40px !important; background-size: cover !important; }
    .blog-section .container { padding-right: 0; }
    .blog-container { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .blog-container::-webkit-scrollbar { display: none; }
    .blog-container-box { min-width: 260px; flex-shrink: 0; }
    .blog-container-box h4 { font-size: 14px; }
    .blog-container-box p { font-size: 11px; }

    /* FAQ */
    .hp-faq { padding: 48px 0; }
    .hp-faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .hp-faq-heading { font-size: 24px; }
    .hp-faq-q { padding: 14px 16px; font-size: 13px; }
    .hp-faq-a p { font-size: 12px; padding: 0 16px 14px; }

    /* CTA */
    .hp-cta { padding: 52px 0; }
    .hp-cta-title { font-size: 26px; }
    .hp-cta-desc { font-size: 13px; }
    .hp-cta-btn { padding: 14px 28px; font-size: 13px; }

    /* Footer */
    footer { padding: 48px 16px 32px; border-top-left-radius: 24px; border-top-right-radius: 24px; }
    footer .container > .row { flex-direction: column-reverse; row-gap: 32px; }
    footer .container > .row .col-md-7 .row { flex-direction: column; }
    .menu-wrapper-footer ul { display: none; }
    footer h5 { position: relative; cursor: pointer; }
    footer h5::after {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        border: 2px solid rgba(255,255,255,0.5);
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        border-left: 0;
        border-top: 0;
        transform: rotate(45deg);
    }
    .join-news-letter h5::after { display: none; }
    .logo-wrapper { max-width: 180px; margin: 0 auto 36px; }
    .copyrights { flex-direction: column; text-align: center; gap: 16px; }

    /* Footer FAQ/CTA (other pages) */
    .faq-section .row { flex-direction: column; }
    .faq-section .col-md-8 { width: 100%; max-width: 100%; }
    .lets-find .row { flex-direction: column; gap: 24px; }
    .lets-find .col-md-5, .lets-find .col-md-6 { width: 100%; max-width: 100%; }
    .lets-find .col-md-1 { display: none; }
    .container-text-let-find h3 { font-size: 26px; margin-top: 0; }

    /* Inner pages */
    .banner-inner-pages { padding: 40px 0; min-height: auto; }
    .banner-inner-pages h1 { font-size: 36px; margin: 16px 0; }
    .banner-inner-pages h2 { font-size: 36px; line-height: normal; }
    .banner-inner-pages h2 br { display: none; }
    .banner-inner-pages p { font-size: 13px; line-height: 1.6; }
    .breadcrumbs { font-size: 12px; }

    /* Blog listing */
    .blog-posts-filters { padding: 24px 0; }
    .blog-posts-filters ul { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; justify-content: flex-start; }
    .blog-posts-filters a { white-space: nowrap; flex-shrink: 0; }
    .row.main-blog .col-md-6:last-child { padding: 20px 16px; }
    .row.main-blog h2 { font-size: 18px; letter-spacing: normal; }
    .row.main-blog p { font-size: 13px; line-height: 1.6; }

    /* ── Property Detail — Full Mobile Redesign ─────────────────── */
    .property-detail-container { padding: 0 0 80px; }
    .property-detail-container .container { padding: 0; }

    /* Breadcrumb */
    .sada-breadcrumb { padding: 12px 16px 0; }
    .sada-breadcrumb h6 { font-size: 12px; margin: 0 0 8px; color: #6b7280; }

    /* Gallery — main image full width, thumbnails as horizontal strip below */
    .images-detail { padding: 0; border-radius: 0; background: none; box-shadow: none; margin-bottom: 0; }
    .images-detail > .row { display: flex; flex-direction: column; margin: 0; }

    /* Main image — full width */
    .images-detail > .row > .col-md-8 { flex: none; width: 100%; max-width: 100%; padding: 0; }
    .images-detail .col-md-8 img { border-radius: 0; width: 100%; min-height: 240px; max-height: 280px; object-fit: cover; }

    /* Thumbnails — horizontal scroll strip */
    .images-detail > .row > .col-md-4 { display: block; flex: none; width: 100%; max-width: 100%; padding: 0; }
    .images-detail .col-md-4 > .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        padding: 10px 16px;
        margin: 0;
    }
    .images-detail .col-md-4 > .row::-webkit-scrollbar { display: none; }
    .images-detail .col-md-4 > .row > .col-md-6 {
        flex: 0 0 110px;
        max-width: 110px;
        min-width: 110px;
        padding: 0;
        height: auto;
    }
    .images-detail .col-md-4 .col-md-6 img {
        border-radius: 10px;
        width: 110px;
        height: 75px;
        min-height: 75px;
        max-height: 75px;
        object-fit: cover;
    }

    /* Main content area */
    .main-row-detail { flex-direction: column; padding: 0; min-height: auto; }
    .main-row-detail > .col-md-8 { width: 100%; padding: 0 16px; }

    /* Villa title + sharing — horizontal layout */
    .villa-detail { flex-direction: row; align-items: flex-start; justify-content: space-between; margin: 16px 0 14px; gap: 12px; }
    .heading-villa { max-width: 100%; gap: 4px; }
    .heading-villa h2 { font-size: 20px; line-height: 1.25; color: #083344; }
    .heading-villa span { font-size: 11px; padding: 3px 10px; }
    .sharing { margin: 0; flex-shrink: 0; gap: 8px; }
    .sharing span { width: 36px; height: 36px; border-radius: 10px; }

    /* Key facts — horizontal scroll pills */
    .vila-hides { margin-bottom: 16px; }
    .vila-hides ul { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; gap: 8px; border: none; border-radius: 0; padding: 0; background: none; }
    .vila-hides ul::-webkit-scrollbar { display: none; }
    .vila-hides li { flex-shrink: 0; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 10px 14px; background: #fafbfc; min-width: auto; }
    .vila-hides li:last-child { border-right: 1.5px solid #e5e7eb; }
    .vila-hides li span { white-space: nowrap; font-size: 12px; }
    .main-row-detail .vila-hides h4 { font-size: 9px; margin-bottom: 3px; }

    /* Description */
    .property-detail-container .details { margin: 16px 0; padding: 20px 0; border-top: 1px solid #f0f0f0; }
    .property-detail-container .main-row-detail h4 { font-size: 16px; margin-bottom: 12px; }
    .property-detail-container .details p,
    .property-detail-container .details div { font-size: 13px; line-height: 1.7; }

    /* Amenities — 2-col grid */
    .property-detail-container .amenities { padding: 16px 0; }
    .property-detail-container .amenities ul { gap: 8px; }
    .property-detail-container .amenities li { width: calc(50% - 4px); padding: 10px 12px; border-radius: 10px; }
    .property-detail-container .amenities li span { font-size: 11px; gap: 6px; }

    /* Map */
    .property-detail-container .map { padding: 16px 0 0; }
    .property-detail-container .map #property-map { height: 280px !important; border-radius: 14px; }

    /* ── Booking — Fixed Bottom Bar ────────────────────────────── */
    .property-detail-container .main-row-detail > .col-md-4 {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        z-index: 999 !important;
        background: #fff !important;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
        padding: 0 !important;
        max-height: none !important;
        min-height: auto !important;
    }

    .property-detail-container .fxied-right { padding: 0 !important; }
    .property-detail-container .fixture-right {
        background: #fff !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 14px 16px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .property-detail-container .fxied-right > h5 { display: none !important; }
    .property-detail-container .fixture-right > h5 { display: none !important; }
    .property-detail-container .form-wrappers { display: none !important; }
    .property-detail-container .cancelationPrice { display: none !important; }
    .property-detail-container .totalprice { display: none !important; }
    .property-detail-container .request-wrapper { display: none !important; }
    .property-detail-container .errorDisplay { display: none !important; }
    .property-detail-container #globalMessage { display: none !important; }

    .property-detail-container .button-wrapper { flex: 1; }
    .property-detail-container .button-wrapper button {
        width: 100% !important;
        background: linear-gradient(135deg, #135966 0%, #083344 100%) !important;
        color: #fff !important;
        border-radius: 12px !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        font-family: "Montserrat", sans-serif !important;
        box-shadow: 0 4px 16px rgba(8,51,68,0.25) !important;
        gap: 8px;
        justify-content: center;
        border: none !important;
        display: flex !important;
        align-items: center !important;
    }
    .property-detail-container .button-wrapper button img { filter: brightness(10) !important; width: 16px; }

    /* Amenities — tighter on mobile */
    .am-list { max-height: 200px; }

    /* Similar properties — horizontal scroll */
    .similar-properties { padding: 40px 0 0; margin-top: 20px; }
    .similar-properties .heading-wrapper { padding: 0 16px; }
    .similar-properties h2 { font-size: 20px; }
    .similar-properties .row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px; gap: 12px; }
    .similar-properties .row::-webkit-scrollbar { display: none; }
    .similar-properties .col-md-4 { flex: 0 0 280px; max-width: 280px; padding: 0; }
    .similar-properties .col-md-4:nth-child(n+4) { display: flex; }

    /* Contact page */
    .cu-cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cu-form-grid { grid-template-columns: 1fr; gap: 32px; }
    .cu-form-row { grid-template-columns: 1fr; }
    .cu-hero-title { font-size: 32px; }

    /* Area pages — sidebar hidden off-screen, slides in when .open */
    .ap-sidebar { display: block; }

    /* Headings global */
    .heading-wrapper h2 { font-size: 22px; }
    .heading-wrapper p { font-size: 13px; }

    /* Various lists */
    .wrapperstulling > ul { justify-content: flex-start; padding-left: 15px; overflow: auto; width: 100%; }
    .wrapperstulling li a { white-space: nowrap; }
    .wrapperstulling { align-items: flex-start; }
    .attractive .col-md-3 { max-width: 50%; }
    .wrapper-colored span:last-child { display: none; }
    .card-wrapper-used { overflow: auto; width: 100%; }
    .card-box-wrapepr { min-width: 300px; }
    ul.list-numbers li, ul.list-numbers li:nth-child(odd), ul.list-numbers li:nth-child(even) {
        max-width: 100%;
        background: #fff;
        position: relative;
        z-index: 2;
    }
    span.dots { background: none; }
    ul.list-numbers::after { z-index: -1; margin: auto; left: 0; right: 0; }
    ul.list-numbers h4 { width: auto; font-size: 30px; }
    .content-span-dots h5 { font-size: 16px; }
    .form-wrapperss { padding: 40px 0 0; }
    .form-wrapperss h3 { font-size: 16px; }
    .explore-cards .container { padding-left: 10px; }
    .explore-cards .row .col-md-4 { min-width: 80%; }
    a.action-hero-card .content-wrapper-cards h4,
    a.action-hero-card .content-wrapper-cards h3,
    a.action-hero-card .content-wrapper-cards p { padding: 0 10px; }
    .box-wrapper-stat { padding: 20px; gap: 20px; }
    .box-wrapper-stat h5 { margin: 0; }
    .explore-more-villas .container { padding-left: 10px; }
    .slider-wrapper-more-villas > div:first-child { min-width: 80%; }
    .slide-1-container { min-width: 70%; }
    .slider-wrapper-more-villas { overflow: auto; padding: 20px 0; }
    .slider-wrapper-more-location { padding-left: 10px; }
    .explore-more-villas.destination-more-locations .slick-next,
    .explore-more-villas.destination-more-locations .slick-prev { display: none !important; }
    .ah-hero--home .ah-stats {
        display: none;
    }
}

/* ── 480px — Small phones ─────────────────────────────────────── */
@media only screen and (max-width: 480px) {

    /* Hero */
    .ah-hero--home { min-height: 360px; }
    .ah-title { font-size: 24px; }
    .ah-desc { font-size: 12px; }
    .ah-stat { padding: 8px 10px; }
    .ah-stat-num { font-size: 15px; }
    .ah-breadcrumb { display: none; }



    /* Trust badges — single column, horizontal cards */
    .icon-section { padding: 32px 12px; }
    .icon-section-wrapper { grid-template-columns: 1fr; gap: 10px; }
    .icon-section-wrapper .col {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        text-align: left;
        padding: 16px 14px;
    }
    .icon-section-wrapper .image-wrapper { margin: 0; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; }
    .icon-section-wrapper .image-wrapper img { width: 20px; height: 20px; }
    .icon-section-wrapper h4 { font-size: 13px; margin-top: 0; margin-bottom: 4px; }
    .icon-section-wrapper p { max-width: 100%; -webkit-line-clamp: unset; font-size: 11px; }

    /* Destinations */
    .populat-destinations { padding: 32px 12px; }
    .hp-dest-heading { font-size: 22px; }
    .major-box { min-height: 130px; border-radius: 12px; }
    .wrapper-popular-destination .col .row { flex-direction: column; }

    /* Why Book */
    .why-book { padding: 36px 0; }
    .why-book h2 { font-size: 22px; }
    .why-book p { font-size: 12px; }

    /* Recommended */
    .hr-section { padding: 36px 0 32px; }
    .hr-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hr-card--hero { grid-column: span 2; }
    .hr-card--hero .hr-card-img { min-height: 160px; }
    .hr-card .hr-card-img { height: 120px; }
    .hr-card-body { padding: 10px 12px 12px; }
    .hr-card-name { font-size: 12px; }
    .hr-card--hero .hr-card-name { font-size: 14px; }
    .hr-card-loc { font-size: 10px; }
    .hr-card-link { font-size: 11px; margin-top: 4px; }
    .hr-card-badge { font-size: 9px; padding: 3px 8px; top: 8px; left: 8px; }
    .hr-heading { font-size: 22px; }
    /* Still limit to 4 cards */
    .hr-card:nth-child(n+5) { display: none; }

    /* Villa Collections */
    .sv-heading { font-size: 20px !important; }
    .sv-tab { padding: 6px 10px; }
    .sv-tab-name { font-size: 10px; }
    .sv-tab-img { width: 26px; height: 26px; }
    .sv-nav-row { flex-wrap: wrap; gap: 10px; justify-content: center; }
    .sv-explore-btn { font-size: 12px; order: 3; width: 100%; text-align: center; justify-content: center; }

    /* Testimonials */
    .testimonials h2 { font-size: 20px !important; }
    .box-testimonial { padding: 14px 12px !important; }

    /* Blog */
    .blog-section .heading-wrapper h2 { font-size: 20px !important; }

    /* FAQ */
    .hp-faq-heading { font-size: 20px; }
    .hp-faq-item { border-radius: 12px; margin-bottom: 8px; }
    .hp-faq-q { font-size: 12px; padding: 12px 14px; }

    /* CTA */
    .hp-cta { padding: 44px 0; }
    .hp-cta-title { font-size: 22px; }
    .hp-cta-desc { font-size: 12px; }
    .hp-cta-btn { width: 100%; justify-content: center; padding: 14px 20px; }

    /* Footer */
    footer { padding: 36px 12px 24px; }
    .logo-wrapper { max-width: 150px; margin-bottom: 28px; }

    /* Contact */
    .cu-cards-grid { grid-template-columns: 1fr; }
    .cu-hero-title {font-size: clamp(42px, 3vw, 54px) !important;}
    .cu-card { padding: 20px 16px; }

    /* Property detail — phone */
    .images-detail .col-md-8 img { min-height: 200px; max-height: 240px; }
    .images-detail .col-md-4 > .row > .col-md-6 { flex: 0 0 90px; max-width: 90px; min-width: 90px; }
    .images-detail .col-md-4 .col-md-6 img { width: 90px; height: 65px; min-height: 65px; max-height: 65px; border-radius: 8px; }
    .heading-villa h2 { font-size: 18px; }
    .similar-properties .col-md-4 { flex: 0 0 240px; max-width: 240px; }

    /* Inner pages */
    .banner-inner-pages h1 { font-size: 28px; }
    .container-text-let-find h3 { font-size: 22px; }
}

/* ── Disable hover transforms on touch ────────────────────────── */
@media (hover: none) {
    .hr-card:hover,
    .major-box:hover,
    .icon-section-wrapper .col:hover,
    .box-testimonial:hover,
    .blog-container-box:hover,
    .cu-card:hover,
    .flex-column.resource-blog:hover { transform: none; box-shadow: none; }
}