/* ========== MEDIUM (768px–991px) ========== */
@media (max-width: 991px) {
    #mainNav .navbar-toggler {
        display: block;
    }

    #mainNav .nav-pipe {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        max-height: 0;
        overflow: hidden;
        padding: 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
        transition: max-height .35s ease;
    }

    #mainNav .nav-pipe.open {
        max-height: 600px;
        overflow-y: auto;
    }

    #mainNav .nav-separator {
        display: none;
    }

    #mainNav .nav-pipe .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    #mainNav .nav-pipe .nav-link {
        display: block;
        padding: 14px 24px;
        width: 100%;
    }

    #mainNav .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 14px 24px;
    }

    /* on mobile the submenu becomes an inline accordion, not a floating panel —
       every hidden/visible rule here is !important so nothing from a legacy
       desktop-only stylesheet can leave it stuck at opacity:0 */
    #mainNav .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        border-radius: 0 !important;
        background: #faf9f6 !important;
        max-height: 0;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
        overflow: hidden;
        padding: 0 !important;
        width: 100%;
        transition: max-height .3s ease;
    }

    #mainNav .nav-dropdown-menu::before {
        display: none !important;
    }

    #mainNav .nav-dropdown-item.open .nav-dropdown-menu {
        max-height: 280px !important;
        pointer-events: all !important;
        padding: 4px 0 !important;
    }

    #mainNav .nav-dropdown-link {
        padding: 12px 40px !important;
    }

    /* Hero */
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    /* Redefines */
    .redefines-img-left img,
    .redefines-img-right img {
        height: 220px;
    }

    /* Exclusivity */
    .excl-title {
        font-size: 2rem;
    }

    .excl-text-col {
        flex: 0 0 42%;
        max-width: 42%;
        padding-left: 30px;
    }

    .excl-img-col {
        flex: 0 0 58%;
        max-width: 58%;
    }

    .excl-img {
        height: 220px;
    }

    /* Amenities Grid → 2 columns */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .am-col:nth-child(1) .am-item:nth-child(1) {
        height: 200px;
    }

    .am-col:nth-child(1) .am-item:nth-child(2) {
        height: 220px;
    }

    .am-col:nth-child(1) .am-item:nth-child(3) {
        height: 180px;
    }

    .am-col:nth-child(2) .am-item:nth-child(1) {
        height: 170px;
    }

    .am-col:nth-child(2) .am-item:nth-child(2) {
        height: 210px;
    }

    .am-col:nth-child(3) .am-item:nth-child(1) {
        height: 160px;
    }

    .am-col:nth-child(3) .am-item:nth-child(2) {
        height: 170px;
    }

    .am-col:nth-child(4) .am-item:nth-child(1) {
        height: 200px;
    }

    .am-col:nth-child(4) .am-item:nth-child(2) {
        height: 140px;
    }

    .am-col:nth-child(4) .am-item:nth-child(3) {
        height: 200px;
    }

    /* Lightbox */
    .lb-stage {
        padding: 70px 60px 110px;
    }

    .lb-arrow {
        width: 42px;
        height: 42px;
    }

    /* Instagram */
    /* Instagram */
    .insta-img {
        height: 160px;
    }

    /* CTA */
    .cta-card {
        padding: 45px 30px 40px;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    /* Partners */

    .content-box {
        padding: 30px 0 0;
        text-align: center;
    }

    .content-box h2 {
        font-size: 32px;
    }

    .main-image img {
        height: auto;
    }

    .lifestyle-section {
        padding: 80px 0;
    }

    .lifestyle-title {
        font-size: 2.2rem;
    }

    .philosophy-section {
        padding: 70px 0 60px;
    }

    .philosophy-card {
        padding: 36px 24px 32px;
    }

    .strategic-section {
        padding: 70px 0;
    }

    .strategic-map-img {
        height: 260px;
    }

    .strategic-locations {
        gap: 22px 30px;
    }

    .about-story-left {
        padding-right: 16px;
        margin-bottom: 60px;
    }

    .about-story-right {
        padding-left: 16px;
    }

    .about-story-img img {
        height: 360px;
    }

    .about-badge {
        bottom: -16px;
    }

    /* FAQ */
    .faq-section {
        padding: 70px 0 80px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 0.88rem;
    }

    .faq-answer-inner {
        padding: 0 20px 20px;
    }

    /* Projects */
    .projects-hero {
        min-height: 340px;
        padding: 110px 0 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .filter-btn {
        padding: 12px 16px;
        font-size: 0.72rem;
    }

    .post-sidebar {
        position: static;
        margin-top: 20px;
    }

    .property-banner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 250px);
    }

    .pb-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .lc-groups {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .floor-plan-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .location-card,
    .consultation-card {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }

    .vision-collage-small {
        width: 150px;
        height: 150px;
        left: -14px;
        bottom: -20px;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-main-card {
        grid-template-columns: 1fr;
    }

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

    .terms-section {
        padding: 80px 0 90px;
    }

    .terms-content {
        padding: 50px 40px;
    }
}

/* ========== SMALL (576px–767px) ========== */
@media (max-width: 767px) {

    /* Hero */
    .hero-section {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    .hero-content .row {
        min-height: 90vh !important;
    }

    /* Redefines */
    .redefines-section {
        padding: 50px 0;
    }

    .redefines-img-left,
    .redefines-img-right {
        display: none;
    }

    /* Exclusivity */
    .exclusivity-section {
        padding: 50px 0;
    }

    .excl-row {
        flex-direction: column;
    }

    .excl-text-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 24px;
    }

    .excl-img-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .excl-title {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .excl-img {
        height: 200px;
    }

    .excl-line {
        max-width: 200px;
    }

    /* Amenities Grid → single column stacked */
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .am-col {
        gap: 12px;
    }

    .am-col .am-item {
        height: 220px !important;
    }

    .am-text-block {
        order: -1;
        padding: 0 0 4px;
    }

    .am-text-block p {
        font-size: 1.3rem;
    }

    /* Lightbox - mobile */
    .lb-stage {
        padding: 60px 16px 100px;
    }

    .lb-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .lb-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .lb-prev {
        left: 8px;
    }

    .lb-next {
        right: 8px;
    }

    .lb-thumbs {
        bottom: 16px;
    }

    .lb-thumb {
        width: 46px;
        height: 34px;
    }

    .lb-counter {
        bottom: 70px;
    }

    /* Partners */
    .partners-section {
        padding: 30px 0;
    }

    /* Instagram */
    .instagram-section {
        padding: 50px 0;
    }

    .insta-img {
        height: 120px;
    }

    /* CTA */
    .cta-section {
        padding: 0 0 50px;
    }

    .cta-card {
        padding: 35px 20px 30px;
        border-radius: 8px;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-content .text-end {
        text-align: center !important;
    }

    /* Blogs */
    .blogs-section {
        padding: 50px 0 60px;
    }

    .blogs-heading {
        font-size: 1.6rem;
    }

    .blog-img-wrap {
        height: 200px;
    }

    /* Footer */
    .footer-top {
        padding: 40px 0 36px;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Section headings */
    .section-heading {
        font-size: 1.4rem;
    }

    .lifestyle-section {
        padding: 65px 0;
    }

    .lifestyle-title {
        font-size: 1.9rem;
    }

    .lifestyle-text {
        font-size: 0.83rem;
    }

    .lifestyle-overlay {
        background: rgba(8, 6, 4, 0.82);
    }

    .philosophy-section {
        padding: 55px 0 50px;
    }

    .strategic-section {
        padding: 55px 0;
    }

    .strategic-locations {
        grid-template-columns: 1fr 1fr;
        gap: 20px 20px;
    }

    .strategic-map-img {
        height: 220px;
    }

    .strategic-title {
        font-size: 2rem;
    }

    .sp-section {
        padding: 55px 0 50px;
    }

    .sp-col {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 20px 12px;
    }

    .sp-col:last-child {
        border-bottom: none;
    }

    .legacy-section {
        padding: 70px 0;
    }

    .legacy-title {
        font-size: 1.9rem;
    }

    .legacy-btns {
        gap: 12px;
    }

    .btn-legacy-gold,
    .btn-legacy-outline {
        padding: 11px 20px;
        font-size: 0.68rem;
    }

    .about-hero {
        min-height: 55vh;
    }

    .about-hero-title {
        font-size: 2.2rem;
    }

    .about-hero-sub {
        font-size: 0.82rem;
    }

    .about-story-section {
        padding: 60px 0 80px;
    }

    .about-story-left {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .about-story-right {
        padding-left: 0;
    }

    .about-story-img img {
        height: 300px;
    }

    .about-badge {
        padding: 14px 20px;
    }

    .badge-number {
        font-size: 1.6rem;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 14px;
    }

    .gallery-item {
        margin-bottom: 14px;
    }

    .gl-stage {
        padding: 0 56px;
    }

    .gl-arrow {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .gl-prev {
        left: 10px;
    }

    .gl-next {
        right: 10px;
    }

    .gl-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .post-hero {
        min-height: 380px;
        padding-top: 120px;
    }

    .post-hero-meta {
        gap: 14px;
        font-size: 0.72rem;
    }

    .post-figure img {
        height: 220px;
    }

    .property-banner-section {
        padding-top: 50px;
    }

    .property-title {
        font-size: 1.35rem;
    }

    .property-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 34px;
    }

    .property-contact-btn {
        width: 100%;
        justify-content: center;
    }

    .lc-group-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lc-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-list {
        grid-template-columns: 1fr;
    }

    .location-info,
    .consultation-form-wrap {
        padding: 30px 24px;
    }

    .cf-row-split {
        grid-template-columns: 1fr;
    }

    .vision-collage-small {
        display: none;
    }

    .lifestyle-parallax-tags {
        gap: 20px 26px;
    }

    .testimonials-swiper-wrap {
        padding: 0 8px;
    }

    .testi-arrow {
        width: 38px;
        height: 38px;
        top: 35%;
    }

    .testi-prev {
        left: -6px;
    }

    .testi-next {
        right: -6px;
    }

    .consultation-form-wrap h3 {
        max-width: 100%;
    }

    .lifestyle-collections-section {
        padding: 60px 0;
    }

    .contact-hero {
        min-height: 320px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .contact-form-wrap .cf-row-split {
        grid-template-columns: 1fr;
    }

    .contact-map-card {
        position: static;
        margin: 16px;
        box-shadow: none;
        border: 1px solid var(--border-light);
    }

    .terms-intro {
        margin-bottom: 45px;
    }

    .terms-title {
        font-size: 42px;
    }

    .terms-intro-text {
        font-size: 14px;
    }

    .terms-content {
        padding: 35px 22px;
    }

    .terms-content h2 {
        margin-top: 35px;
        font-size: 25px;
    }

    .terms-content h3 {
        font-size: 16px;
    }

    .terms-content p,
    .terms-content li {
        font-size: 14px;
        line-height: 1.8;
    }

    .terms-highlight {
        padding: 20px;
    }

    .terms-contact {
        padding: 25px 20px;
    }
}

/* ========== EXTRA SMALL (<576px) ========== */
@media (max-width: 575px) {

    /* Hero */
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .btn-hero {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    /* Exclusivity images — stack vertically */
    .excl-img-row {
        flex-direction: column;
    }

    .excl-img {
        height: 180px;
    }

    /* Amenities — keep single column from 767px breakpoint, slightly shorter on tiny screens */
    .am-col .am-item {
        height: 180px !important;
    }

    .am-text-block p {
        font-size: 1.15rem;
    }

    /* Instagram */
    /* Instagram */
    .insta-img {
        height: 100px;
    }

    /* CTA inputs */
    .cta-input {
        font-size: 0.82rem;
        padding: 10px 14px;
    }

    /* Blog */
    .blog-img-wrap {
        height: 170px;
    }

    .blog-title {
        font-size: 0.95rem;
    }

    .strategic-locations {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .legacy-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-legacy-gold,
    .btn-legacy-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* FAQ */
    .faq-title {
        font-size: 1.7rem;
    }

    .faq-question span {
        font-size: 0.85rem;
    }

    .faq-icon {
        width: 26px;
        height: 26px;
    }

    /* Projects */
    .projects-hero {
        min-height: 300px;
        padding: 100px 0 40px;
    }

    .projects-hero-title {
        font-size: 1.7rem;
    }

    .projects-hero-divider {
        margin-top: 16px;
    }

    .projects-filter {
        gap: 4px 24px;
    }

    .filter-btn {
        padding: 10px 12px;
        font-size: 0.66rem;
    }

    .project-img-wrap {
        height: 210px;
    }

    .project-body {
        padding: 20px 20px 22px;
    }

    .vision-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-vision-gold,
    .btn-vision-outline {
        justify-content: center;
    }

    .gallery-grid {
        column-count: 1;
    }

    .property-banner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
        gap: 8px;
    }

    .floor-plan-tabs .filter-indicator {
        display: none;
    }
}

/* ========== PRINT ========== */
@media print {

    #mainNav,
    .hero-section,
    .cta-section,
    .instagram-section {
        display: none;
    }
}