/* ============================================================
   JHOPDI - RESPONSIVE CSS (Laptops + Mobile)
   Loaded after style.css, property-listing.css & single-property.css
   Breakpoints: 1440 / 1366 / 1280 / 1199 / 1024 / 991 / 767 / 575 / 480
   ============================================================ */

/* ---------- GLOBAL SAFETY ---------- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 1440px) {
    body {
        --g5-h1-font-size: 42px;
        --g5-h2-font-size: 38px;
        --g5-h3-font-size: 32px;
    }
    p {
        font-size: 16px;
    }
    .gel-heading-title {
        font-size: clamp(30px, 4vw, 46px) !important;
    }
}

/* ---------- HEADER (LAPTOP) ---------- */
@media (max-width: 1440px) {
    .g5core-header-desktop-wrapper > .container {
        max-width: 100% !important;
        padding-left: 30px;
        padding-right: 30px;
    }
    .g5core-header-desktop-wrapper .callback-box {
        gap: 15px;
    }
    .callback-btn {
        padding: 16px 26px;
        font-size: 10px;
    }
}

@media (max-width: 1366px) {
    .g5core-header-desktop-wrapper > .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .menu-horizontal > .menu-item + .menu-item {
        margin-left: 22px;
    }
    .menu-horizontal > .menu-item > a {
        font-size: 13px;
    }
    .g5core-header-customize-item + .g5core-header-customize-item {
        margin-left: 1.5rem;
    }
    .g5core-site-branding img.site-logo {
        max-height: 46px;
        width: auto;
    }
    .phone-number {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .g5core-header-desktop-wrapper {
        display: none !important;
    }
    .g5core-mobile-header-wrapper .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ---------- HOMEPAGE ---------- */

/* Hero / banner */
@media (max-width: 1366px) {
    .main-banner .vc_column-inner {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 991px) {
    .main-banner .info-boxes {
        flex-wrap: wrap;
        gap: 12px;
    }
    .feature-box {
        padding: 11px 18px;
    }
    .feature-box span {
        font-size: 13px;
    }
    .jhopdi-search-card-fields-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    
    .g5core-mobile-header-wrapper {background-color:#144168;}
  
  
    .main-banner .wpb_column {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .gel-heading-title {
        font-size: 30px !important;
        line-height: 1.2 !important;
    }
    .sub-title p {
        font-size: 16px;
        line-height: 1.5;
    }
    .jhopdi-search-card-wrapper {
        margin: 24px auto;
        border-radius: 26px;
    }
    .jhopdi-search-card-inner {
        padding: 30px 20px !important;
    }
    .jhopdi-search-card-title {
        font-size: 24px;
    }
    .jhopdi-trending-wrapper,
    .jhopdi-search-trending-wrapper {
        margin-top: 12px;
    }
}

/* Callback bar */
@media (max-width: 767px) {
    .callback-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 14px;
        padding: 20px 16px;
    }
    .callback-content {
        align-items: center;
    }
    .callback-btn {
        text-align: center;
    }
    .footer-topbar {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .footer-topbar h2 {
        font-size: 28px !important;
    }
}

/* Counters */
@media (max-width: 991px) {
    .counter-item p {
        font-size: 44px;
        line-height: 48px;
    }
}
@media (max-width: 767px) {
    .counter-item p {
        font-size: 34px;
        line-height: 40px;
    }
}

/* Location grid */
@media (max-width: 1280px) {
    .location-grid {
        flex-wrap: wrap;
    }
    .location-box {
        padding: 24px 16px;
    }
}

@media (max-width: 767px) {
    .location-grid {
        flex-direction: column;
    }
    .location-box {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: center;
        text-align: center;
    }
    .location-box:last-child {
        border-bottom: 0;
    }
    .popular-box {
        min-width: 100%;
        justify-content: center;
        padding: 20px;
    }
    .location-arrow {
        display: none;
    }
}

/* Property tabs on homepage */
@media (max-width: 1199px) {
    #tabsxxx .wpb_wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .g5core__cate-filer {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .g5core__cate-filer li a {
        font-size: 13px;
        padding: 4px 18px;
    }
    .g5core__cate-filer {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .prop-sec .g5ere__loop-property-title {
        font-size: 26px;
    }
    .prop-sec .g5ere__loop-property-price {
        font-size: 28px;
    }
}

/* Founder section */
@media (max-width: 767px) {
    .founder-sec {
        display: block;
        text-align: center;
    }
    .founder-img img {
        margin-bottom: 20px;
    }
    .trust-box {
        position: static;
        right: auto;
        bottom: auto;
        margin: 20px auto 0;
        max-width: 260px;
    }
    .trust-number {
        font-size: 42px;
    }
    .founder-text p {
        font-size: 24px;
        line-height: 1.3;
    }
    .founder-name p {
        font-size: 22px;
    }
}

/* Stats */
@media (max-width: 991px) {
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (max-width: 575px) {
    .stats-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Comparison table */
@media (max-width: 1199px) {
    .comparison-table {
        overflow-x: auto;
    }
    .table-header,
    .table-row {
        min-width: 560px;
    }
}
@media (max-width: 767px) {
    .table-header,
    .table-row {
        padding: 16px 24px;
        font-size: 14px;
    }
    .title {
        font-size: 15px;
    }
}

/* Team / members */
@media (max-width: 1199px) {
    .member-image,
    .member-overlay {
        height: 320px;
    }
}
@media (max-width: 767px) {
    .member-image,
    .member-overlay {
        height: 280px;
    }
    .team-card {
        padding: 28px 18px;
    }
    .team-name {
        font-size: 24px;
    }
    .member-info h3 {
        font-size: 26px;
    }
    .office-stat h3 {
        font-size: 28px;
    }
}

/* Awards page heading */
@media (max-width: 1366px) {
    .award-section h1 {
        font-size: 46px;
        line-height: 56px;
    }
}
@media (max-width: 767px) {
    .award-section h1 {
        font-size: 30px;
        line-height: 38px;
    }
    .award-section .trust-rating {
        width: 100%;
        padding: 20px;
    }
    .award-section .rating-item {
        font-size: 15px;
    }
    .award-title {
        font-size: 26px !important;
    }
    .feature-badge {
        margin-left: 15px;
    }
    .feature-title,
    .feature-text {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Big section titles (60px) */
@media (max-width: 1366px) {
    .property-type h2.jhopdi-property-types-title,
    .neighborhood h2.jhopdi-neighborhoods-title,
    .builder-section .jhopdi-builders-title {
        font-size: 46px !important;
        letter-spacing: -2px !important;
    }
}
@media (max-width: 767px) {
    .property-type h2.jhopdi-property-types-title,
    .neighborhood h2.jhopdi-neighborhoods-title,
    .builder-section .jhopdi-builders-title {
        font-size: 30px !important;
        letter-spacing: -1px !important;
    }
    .property-type span.jhopdi-subtitle-prefix,
    .neighborhood span.jhopdi-neighborhoods-prefix,
    .builder-section .jhopdi-builders-subtitle {
        font-size: 13px;
    }
}

/* Builder filter bar */
@media (max-width: 767px) {
    .builder-section .jhopdi-filter-select-wrapper .jhopdi-archive-filter-select {
        width: 100%;
    }
    .builder-section .jhopdi-filter-bar-inner {
        gap: 10px;
    }
}

/* Breadcrumb */
@media (max-width: 767px) {
    .breadcrumb .vc_column-inner {
        padding: 0 20px !important;
    }
    .g5core__single-breadcrumbs {
        margin-bottom: 1.5rem;
    }
}

/* FAQ section */
@media (max-width: 767px) {
    .faq-section {
        padding: 0;
    }
    .faq-section .vc_toggle_title {
        padding: 20px !important;
    }
    .faq-section .vc_toggle_content {
        padding: 10px 20px 20px !important;
    }
}

/* CTA section + office highlight */
@media (max-width: 767px) {
    .cta-section h2 {
        font-size: 30px;
        line-height: 40px;
    }
    .cta-section .btn.btn-md {
        width: 100%;
    }
    .office-overlay {
        padding: 30px 18px;
    }
    .office-main-title {
        font-size: 26px;
    }
    .office-stats {
        flex-direction: column;
    }
}

/* Contact page */
@media (max-width: 991px) {
    .jdc-row {
        flex-direction: column;
    }
}
@media (max-width: 767px) {
    .jdc-btns {
        flex-direction: column;
    }
    .jdc-btn,
    .jdc-whatsapp-btn {
        min-height: 52px;
    }
    .hero-contact-form {
        padding: 26px 18px;
        border-radius: 26px;
    }
    .hero-form-row {
        flex-direction: column;
        gap: 0;
    }
    .hero-contact-form .hero-submit,
    .hero-whatsapp {
        height: 56px;
    }
    .office-card {
        padding: 26px 20px;
    }
    .two-btns .wpb_wrapper,
    .two-mid-btn .wpb_wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .office-hours-head,
    .office-hours-row {
        padding: 14px 16px;
        font-size: 13px;
    }
    .office-day,
    .office-time strong {
        font-size: 15px;
    }
    .location-sec {
        flex-direction: column;
        gap: 24px;
    }
}

/* Partners / reviews / blogs on homepage */
@media (max-width: 767px) {
    .partners-sec {
        flex-wrap: wrap;
        gap: 14px;
    }
    .reviews {
        flex-direction: column;
    }
    .reviews .vc_column-inner {
        padding: 24px !important;
    }
    .stars p {
        font-size: 24px;
    }
    .testimonial-author {
        flex-wrap: wrap;
    }
    .blog-subscribe-box {
        padding: 34px 20px;
    }
    .blog-subscribe-box h3 {
        font-size: 22px;
    }
    .main-blog article.g5core__gutter-item:first-child .g5blog__post-inner {
        flex-direction: column;
        gap: 16px;
    }
    .main-blog article.g5core__gutter-item:first-child .g5blog__post-featured {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .main-blog article.g5core__gutter-item:first-child .g5core__entry-thumbnail {
        min-height: 220px !important;
    }
}

/* Why-JDC / property info cards */
@media (max-width: 767px) {
    .why-jdc-box {
        padding: 28px 20px !important;
    }
    .why-list {
        font-size: 16px;
        line-height: 2;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-box {
        padding: 20px 22px;
    }
    .list-grid {
        grid-template-columns: 1fr;
    }
    .timeline-section {
        padding-left: 30px;
    }
    .info-card {
        padding: 18px;
    }
    .property-info-section {
        max-width: 100%;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
@media (max-width: 1366px) {
    .footer-main > .wpb_column:nth-child(1) {
        width: 38%;
    }
    .footer-main > .wpb_column:nth-child(2),
    .footer-main > .wpb_column:nth-child(3),
    .footer-main > .wpb_column:nth-child(4) {
        width: 20.666%;
    }
    .vc_custom_1780902802722 {
        padding-right: 50px !important;
    }
}

@media (max-width: 991px) {
    .footer-main {
        flex-wrap: wrap;
    }
    .footer-main > .wpb_column:nth-child(1) {
        width: 100%;
    }
    .footer-main > .wpb_column:nth-child(2),
    .footer-main > .wpb_column:nth-child(3),
    .footer-main > .wpb_column:nth-child(4) {
        width: 33.333%;
    }
    .vc_custom_1780902802722 {
        padding-right: 30px !important;
    }
    .footer-btns .wpb_wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-btns .gel-btn {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .footer-main > .wpb_column:nth-child(2),
    .footer-main > .wpb_column:nth-child(3),
    .footer-main > .wpb_column:nth-child(4) {
        width: 100%;
    }
    .footer-main p {
        font-size: 15px;
    }
    .footer-main p:first-child {
        margin-top: 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-bottom: 8px;
    }
    .footer-bottom-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-contact {
        gap: 14px;
    }
    .footer-main {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .footer-bottombar .vc_row {
        margin: 0;
    }
}

/* ============================================================
   PROPERTY ARCHIVE / LISTING
   ============================================================ */
@media (max-width: 1366px) {
    .property-archive-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
}

@media (max-width: 1199px) {
    .property-archive-wrapper {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .property-filters-sidebar {
        padding: 26px;
    }
    .property-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .property-archive-wrapper {
        margin: 24px auto;
    }
    .property-filters-sidebar {
        padding: 20px 18px;
        border-radius: 16px;
    }
    .filter-header {
        margin-bottom: 20px;
    }
    .property-grid-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .card-image-wrapper {
        height: 210px;
    }
    .card-content {
        padding: 18px;
    }
    .property-title {
        font-size: 22px;
    }
    .price-value {
        font-size: 26px;
    }
    .results-header h2 {
        font-size: 21px;
    }
    .results-header {
        align-items: flex-start;
    }
    .active-tags-container {
        gap: 10px;
    }
    .enquire-modal-content {
        padding: 28px 22px;
    }
    .enquire-modal-content h3 {
        font-size: 22px;
    }
    .property-pagination-list .pagination-btn {
        height: 40px;
        width: 40px;
    }

    /* SEO Header */
    .property-listing-seo-header {
        margin-bottom: 6px;
    }
    .seo-listing-title {
        font-size: 26px;
        letter-spacing: -0.3px;
    }
    .seo-listing-intro {
        font-size: 14px;
    }

    /* Bottom SEO content */
    .property-listing-seo-bottom {
        margin: 36px 0 0;
        padding: 28px 22px;
        border-radius: 16px;
    }
    .seo-bottom-title {
        font-size: 23px;
    }
    .seo-bottom-description p {
        font-size: 14px;
    }

    /* FAQ */
    .property-listing-faq {
        margin: 36px 0 0;
    }
    .faq-section-title {
        font-size: 24px;
    }
    .faq-section-subtitle {
        font-size: 14px;
    }
    .faq-question-btn {
        padding: 17px 18px;
        font-size: 15px;
    }
    .faq-answer-content {
        padding: 0 18px;
    }
    .faq-item.open .faq-answer-content {
        padding: 0 18px 18px;
    }
    .faq-answer-content p {
        font-size: 14px;
    }
}

/* ============================================================
   SINGLE PROPERTY PAGE
   ============================================================ */
@media (max-width: 1440px) {
    .single-property-wrapper {
        grid-template-columns: 1fr 340px;
        gap: 32px;
    }
    .single-property .g5ere__sph-layout-2 > .container {
        max-width: 1320px;
    }
}

@media (max-width: 1280px) {
    .single-property-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 28px;
    }
    .single-property-main {
        padding: 30px;
    }
}

@media (max-width: 1199px) {
    .single-property-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .single-property-sidebar {
        order: 2;
    }
    .sticky-sidebar-card {
        position: static !important;
        top: auto !important;
    }
    .single-property-main {
        order: 1;
    }
}

@media (max-width: 767px) {
    .single-property-wrapper {
        margin: 20px auto;
    }
    .single-property-main {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .property-main-title {
        font-size: 28px !important;
    }
    .property-main-address {
        font-size: 13px;
    }
    .property-header-badges {
        gap: 8px;
    }
    .header-badge {
        padding: 5px 13px;
        font-size: 10px;
    }

    /* Specs grid */
    .property-specs-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .spec-card-v2 {
        padding: 12px 8px;
    }
    .spec-val-v2 {
        font-size: 14px;
    }

    /* Price banner */
    .property-price-range-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 22px 18px;
    }
    h2.price-range-text {
        font-size: 24px !important;
    }
    .price-range-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .price-range-actions button.btn-best-price,
    .price-range-actions a.btn-brochure {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 16px 20px;
    }

    /* Parameters */
    .parameters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .parameter-card {
        padding: 15px;
    }

    /* Floor plans */
    .floor-plans-tabs-header-v2 {
        flex-wrap: wrap;
        gap: 8px;
    }
    .floor-plans-tabs-header-v2 .floor-tab-btn-v2 {
        padding: 12px 22px !important;
        font-size: 14px !important;
    }
    .floor-plans-grid-v2 {
        /*grid-template-columns: 1fr;*/
        /*gap: 16px;*/
    }
    .floor-plan-details-v2 {
        padding: 16px;
    }
    .floor-plan-image-v2 {
        height: 170px;
    }

    /* Price breakup table */
    .price-breakup-table {
        min-width: 560px;
    }
    .price-breakup-table th,
    .price-breakup-table td {
        padding: 12px 14px;
        font-size: 12px;
    }
    .price-breakup-footer {
        padding: 13px 16px;
        font-size: 12px;
    }

    /* Amenities */
    .amenities-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .amenity-card-v2 {
        padding: 14px 8px;
    }

    /* Sections */
    .property-section {
        padding: 26px 0;
    }
    .property-section h3 {
        font-size: 19px;
    }
    .property-description {
        font-size: 14px;
    }

    /* FAQ */
    .faq-trigger {
        padding: 16px 18px;
    }
    .faq-question {
        font-size: 14px;
        white-space: normal !important;
    line-height: 20px;
    }
    .faq-answer {
        padding: 0 18px 18px;
        font-size: 13px;
    }

    /* Map */
    .map-iframe-container iframe {
        height: 280px !important;
    }

    /* Sidebar form */
    .sticky-sidebar-card,
    .price-form-wrapper {
        padding: 24px 18px;
    }
    .custom-price-form {
        padding: 26px 18px !important;
    }
    .single-property .g5core__single-breadcrumbs {
        padding-top: 4rem;
        margin-bottom: 30px;
    }
    .post-type-archive-property .g5core__single-breadcrumbs,
    .tax-property-city .g5core__single-breadcrumbs,
    .tax-property-state .g5core__single-breadcrumbs,
    .tax-property-type .g5core__single-breadcrumbs,
    .tax-property-status .g5core__single-breadcrumbs,
    .tax-property-feature .g5core__single-breadcrumbs,
    .tax-property-label .g5core__single-breadcrumbs,
    .tax-property-neighborhood .g5core__single-breadcrumbs {
        padding-top: 4rem;
        margin-bottom: 30px;
    }

    /* Similar properties */
    .similar-properties-section {
        margin-top: 36px;
        padding-top: 30px;
    }
    .similar-properties-title {
        font-size: 22px;
    }
    .similar-properties-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 991px) {
    .similar-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 479px) {
    .single-property-main {
        padding: 16px 12px;
    }
    .property-specs-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .property-developer-strip .dev-text-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* ---------- CTA POPUP + FORMS ---------- */
@media (max-width: 767px) {
    .cta-popup-overlay {
        padding: 14px;
    }
    .cta-popup-modal {
        margin: 40px auto;
        padding: 26px 18px;
        max-width: 100%;
    }
    .cta-popup-content .popup-form {
        padding: 26px 18px;
    }
    .cta-popup-content .popup-form h2 {
        font-size: 21px;
    }
    .cta-popup-content .popup-form input[type="submit"],
    .cta-popup-content .popup-form .whatsapp-btn {
        padding: 16px 10px;
    }
}

/* ---------- LIGHTBOX ---------- */
@media (max-width: 767px) {
    .lightbox-arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .lightbox-arrow-btn.prev-btn {
        left: 12px;
    }
    .lightbox-arrow-btn.next-btn {
        right: 12px;
    }
    .close-lightbox-btn {
        top: 14px;
        right: 18px;
        font-size: 40px;
    }
    .lightbox-container-image {
        max-width: 94%;
    }
    .lightbox-overlay-wrapper {
        padding: 20px 0;
    }
}

/* ---------- MOBILE MENU ---------- */
@media (max-width: 767px) {
    .g5core-mobile-header-wrapper .g5core-site-branding img.site-logo {
        /*max-height: 38px;*/
        width: auto;
    }
    .menu-mobile-toggle {
        transform: scale(0.9);
    }
    
    
     .main-banner .vc_column-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  
  .for-mobile-view .vc_col-sm-8{padding-left:20px; padding-right:20px;}
    
 .why-choose-box{margin-bottom:30px;} 
 
 
 
 .jhopdi-partners-carousel-wrap {padding: 0 !important;}
    
    
    
}

/* ---------- GENERIC TABLES / IFRAMES ---------- */
@media (max-width: 767px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
    }
    iframe {
        max-width: 100%;
    }
    .wpb_single_image img,
    .vc_single_image-wrapper img,
    .vc_figure img,
    .g5blog__post-thumb img,
    .entry-content img {
        max-width: 100%;
        height: auto;
    }
}