﻿/* ====================================================================
   CP-RESPONSIVE.CSS — Global Responsive System
   WalajabadProperty.com
   99acres / MagicBricks / Housing.com Grade
   ==================================================================== */

/* ── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden !important;
    font-family: 'Montserrat', 'Inter', 'Poppins', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #1a2c4e;
    background: #f8f9fb;
}

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; }

/* ── TYPOGRAPHY — Responsive ───────────────────────────────────── */
h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(20px, 3.5vw, 32px); font-weight: 700; }
h3 { font-size: clamp(18px, 3vw, 26px); font-weight: 700; }
h4 { font-size: clamp(16px, 2.5vw, 22px); font-weight: 700; }
h5 { font-size: clamp(14px, 2vw, 18px); font-weight: 600; }
p, span, li, a { font-size: clamp(13px, 1.4vw, 16px); }

/* ═══════════════════════════════════════════════════════════════
   HEADER — Professional Responsive
   ═══════════════════════════════════════════════════════════════ */
.header.header-light.head-shadow {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
    background: #fff !important;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Mobile header stacking */
@media (max-width: 991px) {
    .cp-header-nav {
        flex-direction: column !important;
        padding: 10px 16px !important;
        gap: 10px !important;
    }
    .cp-header-logo {
        text-align: center;
    }
    .cp-header-actions {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .cp-header-divider { display: none !important; }
    .cp-social-icons { margin-left: 0 !important; }
}

@media (max-width: 576px) {
    .cp-header-logo img {
        width: 130px !important;
    }
    .cp-nav-btn {
        padding: 7px 12px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        gap: 5px !important;
    }
    .cp-social-icons a {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HERO BANNER — Home Page
   ═══════════════════════════════════════════════════════════════ */
.hero-banner {
    background-size: cover !important;
    background-position: center !important;
}

.hero-banner h1.big-header-capt {
    font-size: clamp(22px, 5vw, 42px) !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-banner {
        height: 50vh !important;
        min-height: 350px !important;
    }
    .hero-banner .container { padding: 0 16px; }
    .hero-search-content { flex-direction: column; }
    .full-search-2 { padding: 16px !important; }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 45vh !important;
        min-height: 300px !important;
    }
    .hero-banner h1.big-header-capt { font-size: 20px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY IMAGE SLIDER — Professional Carousel
   ═══════════════════════════════════════════════════════════════ */
.cp-carousel {
    max-width: 1100px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    margin: 20px auto !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18) !important;
}

.cp-carousel-slide img {
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    -webkit-user-drag: none;
}

/* Desktop */
@media (min-width: 1025px) {
    .cp-carousel-slide img { height: 550px !important; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .cp-carousel-slide img { height: 400px !important; }
    .cp-carousel { border-radius: 14px !important; margin: 16px auto !important; }
}

/* Mobile */
@media (max-width: 768px) {
    .cp-carousel-slide img { height: 300px !important; }
    .cp-carousel { border-radius: 12px !important; margin: 12px 8px !important; }
    .cp-arrow { width: 36px !important; height: 36px !important; }
    .cp-arrow-prev { left: 8px !important; }
    .cp-arrow-next { right: 8px !important; }
}

@media (max-width: 480px) {
    .cp-carousel-slide img { height: 250px !important; }
    .cp-carousel { border-radius: 10px !important; margin: 8px 6px !important; }
    .cp-arrow { width: 32px !important; height: 32px !important; }
    .cp-arrow svg { width: 14px !important; height: 14px !important; }
    .cp-dots { bottom: 10px !important; padding: 4px 8px !important; }
    .cp-dot { width: 7px !important; height: 7px !important; }
    .cp-counter { font-size: 10px !important; padding: 3px 8px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY DETAIL — Header Info Card
   ═══════════════════════════════════════════════════════════════ */
.property_block_wrap.style-3 {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
    background: #fff !important;
}

.pbw-flex-thumb img {
    width: 100% !important;
    height: auto !important;
    max-height: 250px;
    object-fit: cover !important;
    border-radius: 12px !important;
}

.prt-detail-title-desc h3 {
    font-size: clamp(18px, 2.5vw, 26px) !important;
    font-weight: 800 !important;
    color: #1a2c4e !important;
    margin-bottom: 8px !important;
}

.prt-price-fix {
    font-size: clamp(20px, 3vw, 30px) !important;
    font-weight: 800 !important;
    color: #14304d !important;
}

@media (max-width: 991px) {
    .property_block_wrap.style-3 { flex-direction: column !important; }
    .pbw-flex-1 { width: 100% !important; }
    .pbw-flex-thumb img { max-height: 200px !important; }
    .pbw-flex { padding: 16px !important; }
    .gray-simple .container { padding-top: 60px !important; }
}

@media (max-width: 576px) {
    .gray-simple .container { padding-top: 40px !important; }
    .pbw-flex { padding: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY DETAIL — Collapsible Blocks
   ═══════════════════════════════════════════════════════════════ */
.property_block_wrap.style-2 {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 16px rgba(0,0,0,0.06) !important;
    margin-bottom: 16px !important;
    background: #fff !important;
    border: 1px solid #f0f2f5 !important;
}

.property_block_wrap.style-2 .property_block_wrap_header {
    padding: 14px 20px !important;
    background: #fafbfc !important;
}

.property_block_wrap.style-2 .property_block_wrap_header h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2c4e !important;
}

.property_block_wrap.style-2 .block-body {
    padding: 16px 20px !important;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY — Uniform Grid
   ═══════════════════════════════════════════════════════════════ */
.list-gallery-inline {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.list-gallery-inline li {
    display: block !important;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.list-gallery-inline li a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-gallery-inline li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.list-gallery-inline li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .list-gallery-inline {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 576px) {
    .list-gallery-inline {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY CARDS — Listing Pages
   ═══════════════════════════════════════════════════════════════ */
.property-listing.property-1 {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    background: #fff !important;
    margin-bottom: 20px !important;
}

.property-listing.property-1:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.16) !important;
}

.property-listing.property-1 .listing-img-wrapper img {
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Desktop: Image left, content right */
@media (min-width: 992px) {
    .property-listing.property-1 {
        flex-direction: row !important;
    }
    .property-listing.property-1 .listing-img-wrapper {
        width: 40% !important;
        flex-shrink: 0;
    }
    .property-listing.property-1 .listing-img-wrapper img {
        height: 100% !important;
        min-height: 220px !important;
    }
    .property-listing.property-1 .listing-content {
        width: 60% !important;
        padding: 20px !important;
    }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 991px) {
    .property-listing.property-1 {
        flex-direction: column !important;
    }
    .property-listing.property-1 .listing-img-wrapper {
        width: 100% !important;
    }
    .property-listing.property-1 .listing-img-wrapper img {
        height: 200px !important;
    }
    .property-listing.property-1 .listing-content {
        width: 100% !important;
        padding: 16px !important;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 576px) {
    .property-listing.property-1 {
        flex-direction: column !important;
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }
    .property-listing.property-1 .listing-img-wrapper {
        width: 100% !important;
    }
    .property-listing.property-1 .listing-img-wrapper img {
        height: 180px !important;
    }
    .property-listing.property-1 .listing-content {
        width: 100% !important;
        padding: 12px !important;
    }
    .property-listing.property-1 .listing-name {
        font-size: 14px !important;
    }
    .property-listing.property-1 .listing-card-info-price {
        font-size: 15px !important;
    }
    .property-listing.property-1 .listing-detail-btn .more-btn {
        padding: 8px 18px !important;
        font-size: 12px !important;
    }
    .property-listing.property-1 .listing-footer-wrapper {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY CARD FOOTER — fix location text overflowing under "View"
   ───────────────────────────────────────────────────────────────
   Bug: long location text slid behind the View button because the
   flex text container had the default min-width:auto and couldn't
   shrink, and the text had no overflow handling.
   ═══════════════════════════════════════════════════════════════ */
.property-listing.property-1 .listing-footer-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
}
/* Left text area: allowed to grow AND shrink, with a hard boundary */
.property-listing.property-1 .listing-footer-wrapper .listing-locate {
    flex: 1 1 auto;
    min-width: 0;          /* CRITICAL: lets the item shrink below content size */
}
/* Cut long text off cleanly with an ellipsis (single line) */
.property-listing.property-1 .listing-location {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-listing.property-1 .listing-location i {
    vertical-align: middle;
}
/* Right button area: fixed size, never shrinks, stays clear of the text */
.property-listing.property-1 .listing-footer-wrapper .listing-detail-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY CARD BODY — clean vertical stack, no overlaps, no clipping
   ───────────────────────────────────────────────────────────────
   Bug 1: "FOR SALE" badge crashed into the location row because the
          three siblings inside .listing-content had no vertical gap.
   Bug 2: "ID : P00000055" was clipped because h6.listing-card-info-price
          had a tight line-height/overflow inherited from the heading.
   Fix:   Make .listing-content a flex column with a fixed gap, treat
          each row (title/price box, status, footer) as a distinct block,
          and let the price+ID h6 render at natural height with no clip.
   ═══════════════════════════════════════════════════════════════ */
.property-listing.property-1 .listing-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.property-listing.property-1 .listing-detail-wrapper-box,
.property-listing.property-1 .price-features-wrapper,
.property-listing.property-1 .listing-footer-wrapper {
    width: 100% !important;
    margin: 0 !important;
}

/* Title + Price row stays horizontal but children can't squeeze each other.
   Bottom padding gives clear vertical clearance below the ID line so that
   the next sibling's border-top never crosses the text. */
.property-listing.property-1 .listing-detail-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 1.25rem 1rem 1rem !important;
}
.property-listing.property-1 .listing-short-detail {
    flex: 1 1 auto;
    min-width: 0;            /* lets long titles wrap instead of pushing price off-card */
}
.property-listing.property-1 .list-price {
    flex: 0 0 auto;
    text-align: right;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* ── Bug 1 fix ── "FOR SALE" badge: distinct block with hard bottom margin
   so the location text below can never overlap or touch it.            */
.property-listing.property-1 .listing-short-detail .prt-types,
.property-listing.property-1 .listing-short-detail .prt-types.sale,
.property-listing.property-1 .listing-short-detail .prt-types.rent {
    display: inline-block !important;
    margin-top: 12px !important;
    margin-bottom: 14px !important;     /* hard vertical clearance */
    line-height: 1 !important;
    padding: 6px 14px !important;
    vertical-align: middle !important;
}

/* ── Bug 2 fix ── Price + inline ID: kill heading line-height clipping
   and any height limits so the ID renders at full line height in its own
   inline-block. The gray divider line of the footer below now sits
   cleanly in the gap, never crossing the ID numbers.                   */
.property-listing.property-1 .listing-card-info-price {
    overflow: visible !important;
    line-height: 1.45 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding-bottom: 6px !important;
}
.property-listing.property-1 .listing-card-info-price font {
    display: inline-block !important;
    line-height: 1.8 !important;
    margin-top: 6px !important;
    padding: 2px 0 !important;
    white-space: nowrap !important;     /* ID stays on one line */
    vertical-align: baseline !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* ── HORIZONTAL DIVIDER LINE FIX ──
   The full-width gray line cutting across the FOR SALE badge was the
   `border-top: 1px solid #e5e9ec` on .listing-footer-wrapper (defined
   in styles5.css:5723) and the same rule in the list-layout variant
   (styles5.css:8806). The 14px column gap on .listing-content already
   provides clean visual separation, so the explicit border becomes
   redundant — and lands on top of the badge. Remove it everywhere it
   could appear inside this card variant. */
.property-listing.property-1 .listing-footer-wrapper,
.property-listing.property-1 .listing-detail-wrapper-box,
.property-listing.property-1 .listing-detail-wrapper,
.property-listing.property-1 .price-features-wrapper,
.property-listing.property-1 .listing-short-detail,
.property-listing.property-1 .list-price,
.list-layout .property-listing.property-1 .listing-footer-wrapper {
    border-top: none !important;
    border-bottom: none !important;
}

/* Listing page grid */
.list-layout .row {
    display: flex;
    flex-wrap: wrap;
}
.list-layout .col-lg-6 {
    display: flex;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR — Featured Property
   ═══════════════════════════════════════════════════════════════ */
.sides_list_property {
    display: flex !important;
    gap: 12px;
    padding: 12px !important;
    border-radius: 10px;
    margin-bottom: 10px !important;
    transition: background 0.2s ease;
}

.sides_list_property:hover {
    background: #f8f9fb;
}

.sides_list_property_thumb {
    flex-shrink: 0;
    width: 80px !important;
    height: 70px !important;
    border-radius: 8px;
    overflow: hidden;
}

.sides_list_property_thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    .sidebar-widgets { margin-top: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL FEATURES — Responsive Grid
   ═══════════════════════════════════════════════════════════════ */
ul.deatil_features {
    display: grid !important;
    gap: 0 !important;
}

@media (min-width: 769px) {
    ul.deatil_features { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
    ul.deatil_features { grid-template-columns: 1fr !important; }
    ul.deatil_features li { border-right: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   FORMS — Contact / Send Message
   ═══════════════════════════════════════════════════════════════ */
.form-control {
    border-radius: 10px !important;
    border: 1.5px solid #e0e4ea !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.form-control:focus {
    border-color: #14304d !important;
    box-shadow: 0 0 0 3px rgba(20,48,77,0.12) !important;
}

.btn-theme-light-2, .btn-black {
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Responsive
   ═══════════════════════════════════════════════════════════════ */
.modern-footer {
    font-family: 'Montserrat', 'Inter', Arial, sans-serif !important;
}

@media (max-width: 768px) {
    .modern-footer .footer-top { padding: 40px 0 20px !important; }
    .modern-footer .col-lg-4,
    .modern-footer .col-lg-2,
    .modern-footer .col-lg-3 {
        margin-bottom: 24px;
    }
    .footer-about { text-align: center; }
    .footer-contact-info .contact-item { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-social h5 { text-align: center; }
    .footer-bottom-links ul {
        justify-content: center !important;
        margin-top: 12px;
        flex-wrap: wrap;
        gap: 12px !important;
    }
    .copyright { text-align: center; }
    .call-to-act { flex-direction: column !important; text-align: center; gap: 16px; }
    .call-to-act-head { margin-bottom: 8px; }
}

@media (max-width: 480px) {
    .modern-footer .footer-top { padding: 30px 0 16px !important; }
    .footer-logo h3 { font-size: 18px !important; }
    .widget-title { font-size: 16px !important; margin-bottom: 14px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH SECTION — Responsive
   ═══════════════════════════════════════════════════════════════ */
.full-search-2 {
    border-radius: 16px !important;
}

@media (max-width: 768px) {
    .full-search-2 {
        border-radius: 12px !important;
        padding: 12px !important;
    }
    .search_1 { margin-bottom: 8px !important; }
    .hero-search-content .col-lg-3,
    .hero-search-content .col-lg-4 {
        margin-bottom: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION SPACING — Responsive
   ═══════════════════════════════════════════════════════════════ */
section {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    section { padding: 30px 0 !important; }
    .container { padding-left: 14px !important; padding-right: 14px !important; }
    .col-lg-11 { padding-left: 8px !important; padding-right: 8px !important; }
}

@media (max-width: 480px) {
    section { padding: 20px 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

/* Prevent any horizontal overflow */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #14304d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0b2038; }

/* Selection color */
::selection {
    background: rgba(20,48,77,0.2);
    color: #1a2c4e;
}

/* ═══════════════════════════════════════════════════════════════
   CALL-TO-ACTION SECTION — Responsive
   ═══════════════════════════════════════════════════════════════ */
.call-to-act-wrap {
    margin: 0 16px !important;
}

@media (max-width: 768px) {
    .call-to-act-wrap {
        margin: 0 8px !important;
        border-radius: 14px !important;
    }
    .call-to-act h3 { font-size: 20px !important; }
    .btn-call-to-act { font-size: 14px !important; padding: 12px 24px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL — Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .modal-dialog { margin: 8px !important; }
    .modal-body { padding: 20px 16px !important; }
    .modal-login-header h4 { font-size: 18px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP — Clean Style
   ═══════════════════════════════════════════════════════════════ */
#back2Top {
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    background: #14304d !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(20,48,77,0.3) !important;
    transition: all 0.3s ease !important;
}
#back2Top:hover {
    background: #0b2038 !important;
    transform: translateY(-3px) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRELOADER — Modern
   ═══════════════════════════════════════════════════════════════ */
#preloader {
    background: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH BAR — All Device Fixes
   ═══════════════════════════════════════════════════════════════ */
.hero-search-content .row {
    margin: 0 !important;
}
.hero-search-content .row > [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

@media (max-width: 991px) {
    .hero-search-content .row > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 576px) {
    .hero-search-content .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .tab { flex-wrap: wrap; gap: 6px !important; padding: 10px 14px 0 !important; }
    .tab button { font-size: 12px !important; padding: 6px 18px !important; }
    .tabcontent { padding: 10px 12px 14px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   INLINE STYLE OVERRIDES — Force responsive on elements with
   inline width/height styles
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    img[style*="width:700px"],
    img[style*="width:250px"],
    img[style*="width: 700px"],
    img[style*="width: 250px"] {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        object-fit: cover !important;
    }

    div[style*="width:250px"] {
        width: 100% !important;
    }

    .form-group[style*="width:250px"] {
        width: 100% !important;
    }

    /* Fix inline padding-top on containers */
    .container[style*="padding-top:100px"] {
        padding-top: 50px !important;
    }
}

@media (max-width: 480px) {
    .container[style*="padding-top:100px"] {
        padding-top: 30px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY LIST PAGE — Full Width Cards
   ═══════════════════════════════════════════════════════════════ */
.property-listing.property-1 .listing-detail-wrapper-box {
    width: 100% !important;
}

/* Price sorting links on property list */
@media (max-width: 768px) {
    div[align="right"] {
        text-align: center !important;
        font-size: 13px !important;
    }
    div[align="right"] a {
        display: inline-block;
        margin: 4px 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   POST PROPERTY / EDIT PROPERTY FORMS — Responsive
   ═══════════════════════════════════════════════════════════════ */
.submit-page .form-group {
    margin-bottom: 16px !important;
}

@media (max-width: 768px) {
    .submit-page .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .submit-page textarea {
        min-height: 100px;
    }
    .dashboard-body {
        padding: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REGISTER / LOGIN PAGES — Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .login-form .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .signup .modal-body .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE — Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .contact-info {
        text-align: center;
    }
    .contact-info .row > [class*="col-"] {
        margin-bottom: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BUILDER CARDS / TOP PROJECTS — Responsive Grid
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .col-lg-3.col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 12px !important;
    }
    .middle-icon-features-item.remove {
        padding: 16px 10px !important;
        height: auto !important;
        min-height: 130px !important;
    }
    .middle-icon-features-item.remove .icon-features-wrap img {
        max-width: 100px !important;
        max-height: 60px !important;
    }
    .middle-icon-features-item.remove .middle-icon-features-content strong {
        font-size: 11px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LOCATION PROJECT CARDS — Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .location-property-wrap {
        border-radius: 12px !important;
        margin-bottom: 16px !important;
    }
    .location-property-thumb img {
        height: 160px !important;
    }
    .location-property-content {
        padding: 12px !important;
    }
    .lp-content-title {
        font-size: 13px !important;
    }
}

/* =================================================================
   MOBILE UNIFIED LAYOUT ENGINE — Screens 768px and below (FIXED)
   ==================================================================== */
@media (max-width: 768px) {
    
    /* ── GLOBAL CONTAINER & BOUNDARY RESET ── */
    html, body, main, #main-wrapper, .wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box !important;
    }
    
    /* ── STRIP FIXED HEIGHTS FOR NATURAL FLOW ──
       .containerx (the home slider, aslider.php) is intentionally excluded:
       its slides are position:absolute for the crossfade effect, so an
       auto-height container has no in-flow content to size itself against
       and collapses to ~0px, hiding the whole slider on mobile. It already
       defines its own responsive fixed heights per breakpoint. ── */
    .image-cover.hero-banner,
    .cp-carousel,
    .hero-banner,
    section,
    .full-search-2,
    .hero-search-content,
    .property-listing,
    .listing-img-wrapper,
    [class*="slider"],
    [class*="carousel"] {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* ── REMOVE DESTRUCTIVE OVERLAPS & POSITIONING ── */
    .image-cover.hero-banner,
    .big-header-capt,
    .hero-search-content,
    .full-search-2,
    input[value="Advance Property Search"],
    a.advance-search-link,
    .advance-search-link,
    .property-listing,
    .listing-content {
        position: relative !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* ── HERO BANNER TEXT VISIBILITY FORCE ── */
    .big-header-capt h1,
    .big-header-capt p,
    .hero-banner h1,
    .hero-banner p {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        color: #ffffff !important;
    }

    .big-header-capt h1 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }

    .big-header-capt p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    /* ── VERTICAL STACKING ENGINE (SAFE FOR CHECKLISTS) ── */
    /* FIXED: .row containing checklists will NOT collapse into a single vertical broken line */
    #main-wrapper,
    .container,
    .container-fluid,
    section,
    .row:not(.checkbox-row):not(.checklist-row):not(.form-animate), 
    .hero-banner {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* ── FORM CONTROLS & CHECKBOX PROTECTION ── */
    .full-search-2 .form-control,
    .form-control:not([type="checkbox"]):not([type="radio"]),
    select.form-control,
    input[type="text"],
    input[type="number"] {
        width: 100% !important;
        height: 46px !important;
        margin-bottom: 10px !important;
    }

    /* FIXED: Keeps EB and Tar Road grid intact on mobile */
    .form-group.checklists, 
    .checkbox-row,
    .checklist-row {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        flex-direction: row !important; /* Prevents vertical collapsing */
    }

    input[type="checkbox"], 
    input[type="radio"] {
        width: 18px !important;
        height: 18px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    /* ── PROPERTY LISTING CARDS (PRICE & VIEW BUTTON FIX) ── */
    /* FIXED: Card expands dynamically so content is never cut off */
    .property-listing {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff;
        border-radius: 10px;
        overflow: visible !important;
        padding-bottom: 15px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    /* FIXED: Forces Price and View button to sit perfectly on the same line row */
    .listing-footer,
    .price-features-wrapper,
    div[align="right"] {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 15px 0px !important;
        margin-top: auto !important;
    }

    /* Price tag styling adjustment */
    .listing-price,
    .property-price,
    div[align="right"] b {
        font-size: 16px !important;
        color: #14304d !important;
        white-space: nowrap !important;
    }

    /* FIXED: Ensures View Button is visible and fully clickable */
    .view-btn,
    div[align="right"] b a {
        display: inline-block !important;
        visibility: visible !important;
        background: #14304d !important;
        color: #ffffff !important;
        padding: 6px 14px !important;
        border-radius: 4px !important;
        font-size: 13px !important;
        text-decoration: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE COMPREHENSIVE FIXES — 480px and below
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* ===== HEADER — COMPACT ===== */
    .cp-header-logo img {
        width: 100px !important;
    }
    
    .cp-nav-btn {
        padding: 7px 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    
    .cp-nav-btn i,
    .cp-nav-btn svg {
        font-size: 12px !important;
    }
    
    .cp-social-icons {
        display: none !important;
    }
    
    /* ===== SEARCH BOX ===== */
    .full-search-2 {
        margin: 0 6px !important;
        border-radius: 10px !important;
    }
    
    .full-search-2 .form-control {
        height: 42px !important;
        font-size: 13px !important;
        padding-left: 34px !important;
    }
    
    .full-search-2 .input-with-icon i {
        font-size: 13px !important;
        left: 10px !important;
    }
    
    .full-search-2 .btn.search-btn {
        height: 42px !important;
        font-size: 13px !important;
    }
    
    /* ===== HERO BANNER ===== */
    .image-cover.hero-banner {
        height: 40vh !important;
        min-height: 280px !important;
    }
    
    .image-cover.hero-banner .big-header-capt {
        font-size: 22px !important;
    }
    
    .image-cover.hero-banner p.text-center {
        font-size: 12px !important;
    }
    
    /* ===== CONTAINER ===== */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* ===== PROPERTY CARDS ===== */
    .property-listing.property-1 {
        border-radius: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .property-listing.property-1 .listing-img-wrapper img {
        height: 160px !important;
    }
    
    .property-listing.property-1 .listing-content {
        padding: 10px 12px !important;
    }
    
    .property-listing.property-1 .listing-name {
        font-size: 13px !important;
    }
    
    .property-listing.property-1 .listing-card-info-price {
        font-size: 14px !important;
    }
    
    /* ===== TABS ===== */
    .tab button {
        font-size: 11px !important;
        padding: 5px 12px !important;
        min-width: 70px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MY PROFILE / MY PROPERTY — Dashboard Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .dashboard-nav {
        flex-direction: column !important;
    }
    .dashboard-nav ul {
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: center !important;
    }
    .dashboard-nav ul li a {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR FILTER — Property List Page
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .page-sidebar {
        margin-top: 20px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ADVANCE SEARCH PAGE — Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .advance-search .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLE — Responsive (for any data tables)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FIXED ELEMENTS — WhatsApp & Phone Buttons
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .fixed-tel {
        bottom: 70px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
    }
    .fixed-tel:before {
        width: 44px !important;
        height: 44px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL IMAGE PROTECTION — Never overflow or distort
   ═══════════════════════════════════════════════════════════════ */
img {
    max-width: 100% !important;
}

/* Override all inline widths on images for mobile */
@media (max-width: 768px) {
    img[style*="width:"] {
        max-width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT US / FAQ / PRIVACY — Content Pages Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .page-title { font-size: 22px !important; }
    .content-area { padding: 20px 14px !important; }
    .page-content p { font-size: 14px !important; line-height: 1.7 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   HORIZONTAL SCROLL PREVENTION — Nuclear option
   ═══════════════════════════════════════════════════════════════ */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.container, .container-fluid, .row, section, header, footer, nav, main, article {
    max-width: 100% !important;
}

/* ═══════════════════════════════════════════════════════════════
   UNIFIED PAGE STYLES — About, Contact, Terms, Privacy
   Same colors, fonts, cards, hover effects across all pages
   ═══════════════════════════════════════════════════════════════ */

/* Page Title Banner */
.page-title {
    background: linear-gradient(135deg, #081627 0%, #081627 50%, #14304d 100%) !important;
    padding: 45px 0 !important;
    text-align: center !important;
}
.page-title .ipt-title {
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 6px !important;
}
.page-title .ipn-subtitle {
    color: rgba(255,255,255,0.85) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}
@media (max-width: 576px) {
    .page-title { padding: 30px 0 !important; }
    .page-title .ipt-title { font-size: 24px !important; }
}

/* Section Background */
.terms-section, .privacy-section, .contact-section, .bg-light {
    background: #f5f7fa !important;
    padding: 50px 0 !important;
}

/* Cards / Containers */
.terms-container, .privacy-container, .contact-form,
.contact-info-card, .about-content, .about-sidebar .sidebar-widget {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
    padding: 32px !important;
    border: 1px solid #eef1f5 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.terms-container:hover, .privacy-container:hover, .contact-form:hover,
.contact-info-card:hover, .about-sidebar .sidebar-widget:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(20,48,77,0.12) !important;
}

/* Titles */
.terms-title, .privacy-title, .section-title,
.contact-form h3, .widget-title {
    color: #14304d !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #14304d !important;
    letter-spacing: -0.3px !important;
}
.widget-title {
    font-size: 20px !important;
}

/* Subtitles / Section Headings */
.terms-subtitle, .privacy-subtitle, .subsection-title {
    color: #081627 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin: 28px 0 12px 0 !important;
    padding-left: 12px !important;
    border-left: 4px solid #14304d !important;
}

/* Body text */
.terms-content, .privacy-content, .about-content,
.terms-content p, .privacy-content p, .about-content p {
    font-family: 'Inter', 'Montserrat', sans-serif !important;
    color: #444 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* Lists */
.terms-content ul, .privacy-content ul, .feature-list {
    margin: 12px 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}
.terms-content li, .privacy-content li, .feature-list li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 10px !important;
    color: #444 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}
.terms-content li::before, .privacy-content li::before {
    content: '\f058' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: #14304d !important;
    font-size: 14px !important;
}

/* Lead text */
.lead {
    font-size: 17px !important;
    color: #333 !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

/* Contact Cards Icon */
.contact-icon {
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, #14304d, #c6960c) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
    transition: transform 0.3s ease !important;
}
.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg) !important;
}
.contact-icon i {
    color: #fff !important;
    font-size: 22px !important;
}
.contact-info-card h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a2c4e !important;
    margin-bottom: 8px !important;
}
.contact-info-card p {
    color: #555 !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.contact-info-card a {
    color: #14304d !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.contact-info-card a:hover {
    color: #081627 !important;
    text-decoration: underline !important;
}

/* Form Controls */
.contact-form .form-control {
    border: 1.5px solid #e3e8ef !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.contact-form .form-control:focus {
    border-color: #14304d !important;
    box-shadow: 0 0 0 3px rgba(20,48,77,0.15) !important;
    outline: none !important;
}
.contact-form label {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #14304d, #c6960c) !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 36px !important;
    border-radius: 50px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 18px rgba(20,48,77,0.35) !important;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #14304d, #081627) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(20,48,77,0.45) !important;
    color: #fff !important;
}

/* Stats Grid */
.stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}
.stat-item {
    text-align: center !important;
    padding: 20px 14px !important;
    background: linear-gradient(135deg, #f0faf9, #e6f7f6) !important;
    border-radius: 12px !important;
    border: 1px solid #d4efed !important;
    transition: transform 0.3s ease !important;
}
.stat-item:hover {
    transform: translateY(-3px) !important;
}
.stat-number {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #14304d !important;
    margin-bottom: 4px !important;
}
.stat-label {
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

/* Map Container */
.map-container {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* Sidebar Widget spacing */
.about-sidebar .sidebar-widget {
    margin-bottom: 20px !important;
}

/* About sidebar contact links */
.about-sidebar .contact-info p {
    margin-bottom: 10px !important;
    font-size: 14px !important;
}
.about-sidebar .contact-info i {
    color: #14304d !important;
    width: 22px !important;
    margin-right: 6px !important;
}

/* Team Section */
.team-member {
    text-align: center !important;
    margin-bottom: 30px !important;
}
.team-image {
    width: 160px !important;
    height: 160px !important;
    margin: 0 auto 14px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 4px solid #14304d !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.team-image:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(20,48,77,0.25) !important;
}
.team-info h5 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a2c4e !important;
}
.team-role {
    font-size: 13px !important;
    color: #666 !important;
}

/* Success Message */
.success-message {
    background: #e6f7f6 !important;
    color: #081627 !important;
    border: 1px solid #b8e6e2 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-weight: 600 !important;
}

/* Responsive for all info pages */
@media (max-width: 768px) {
    .terms-container, .privacy-container, .contact-form,
    .about-content, .about-sidebar .sidebar-widget {
        padding: 20px 16px !important;
        margin-bottom: 16px !important;
    }
    .terms-title, .privacy-title, .section-title { font-size: 22px !important; }
    .terms-subtitle, .privacy-subtitle, .subsection-title { font-size: 16px !important; }
    .contact-info-card { padding: 20px !important; margin-bottom: 16px !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PROPERTY LIST PAGE — Professional Filter Sidebar & Cards
   ═══════════════════════════════════════════════════════════════ */

/* Filter Sidebar */
.sidebar-widgets {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.single_search_boxed {
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 0;
}

.single_search_boxed:last-child {
    border-bottom: none;
}

.widget-boxed-header {
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.25s ease;
}

.widget-boxed-header:hover {
    background: #f7f7f4;
}

.widget-boxed-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a2c4e;
    font-family: 'Montserrat', sans-serif;
}

.widget-boxed-header h4 a {
    color: #1a2c4e;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-boxed-header h4 a:hover {
    color: #14304d;
}

.widget-boxed-header .selected {
    font-size: 13px;
    color: #14304d;
    font-weight: 600;
    background: #e6f7f6;
    padding: 3px 10px;
    border-radius: 20px;
}

.widget-boxed-body {
    padding: 20px;
    background: #fafbfc;
}

/* Filter List */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list .radio-custom {
    display: none;
}

.filter-list .radio-custom-label {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #eef1f5;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    font-weight: 500;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-list .radio-custom-label:hover {
    border-color: #14304d;
    background: #f0faf9;
    color: #14304d;
}

.filter-list .radio-custom:checked + .radio-custom-label {
    background: linear-gradient(135deg, #14304d, #c6960c);
    color: #fff;
    border-color: #14304d;
    box-shadow: 0 4px 12px rgba(20,48,77,0.3);
}

/* Form Controls in Sidebar */
.widget-boxed-body .form-control {
    border: 1.5px solid #eef1f5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #444;
    background: #fff;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

.widget-boxed-body .form-control:focus {
    border-color: #14304d;
    box-shadow: 0 0 0 3px rgba(20,48,77,0.1);
    outline: none;
}

.widget-boxed-body .form-control.simple {
    border: 1.5px solid #eef1f5;
}

/* Filter Button */
.filter_button .btn {
    background: linear-gradient(135deg, #14304d, #c6960c);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 16px rgba(20,48,77,0.3);
    transition: all 0.3s ease;
}

.filter_button .btn:hover {
    background: linear-gradient(135deg, #14304d, #081627);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(20,48,77,0.4);
}

/* Sorting Box */
.item-shorting-box {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-shorting .center-column h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a2c4e;
    font-family: 'Montserrat', sans-serif;
}

.item-shorting .left-column h6 {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Price Sort Links */
div[align="right"] b a {
    color: #14304d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    background: #f0faf9;
    border-radius: 20px;
    margin: 0 4px;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

div[align="right"] b a:hover {
    background: #14304d;
    color: #fff;
}

/* Property List Layout */
.list-layout {
    padding: 0;
}

.list-layout .col-lg-12 {
    padding: 0 8px 16px;
}

/* Responsive for Sidebar */
@media (max-width: 991px) {
    .sidebar-widgets {
        margin-bottom: 24px;
    }
    
    .widget-boxed-header {
        padding: 14px 16px;
    }
    
    .widget-boxed-body {
        padding: 16px;
    }
    
    .item-shorting-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .filter-list .radio-custom-label {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    div[align="right"] b a {
        display: block;
        margin: 4px 0;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES — Clean printing
   ═══════════════════════════════════════════════════════════════ */
@media print {
    .cp-header-nav, .modern-footer, .cp-social-icons,
    .fixed-tel, #back2Top, .cp-watermark, .cp-counter { display: none !important; }
    body { font-size: 12pt; background: #fff; color: #000; }
    .property-listing.property-1 { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   NOTE: Removed 4 obsolete mobile override blocks (ULTIMATE / HYPER-FORCE /
   NUCLEAR / COMBINED). They targeted non-existent selectors (div[align="right"],
   .search-form-wrap, .main-search-banner-wrap) and used absolute-positioned
   footers + forced min-heights that CLIPPED the price/View button.
   The two authoritative blocks below (HERO OVERLAP + CARD FOOTER) replace them
   using the real markup classes in normal document flow.
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE HERO OVERLAP: PULL SEARCH FILTER CARD ONTO THE BANNER IMAGE
   (Matches desktop portal layout — search box overlaps the hero image)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Banner keeps the image visible + reserves a bottom zone for the overlap */
    .image-cover.hero-banner,
    .hero-banner {
        position: relative !important;
        height: auto !important;
        min-height: 340px !important;
        max-height: none !important;
        padding: 30px 15px 100px !important; /* bottom room where the card overlaps */
        overflow: visible !important;
        display: block !important;
    }

    /* Keep the heading + subtext pinned to the upper area of the image */
    .image-cover.hero-banner > .container {
        position: relative !important;
        z-index: 2 !important;
        padding: 0 !important;
        display: block !important;
        height: auto !important;
    }

    /* Pull the entire search card UP so it layers over the banner image */
    .search-filter-section {
        position: relative !important;
        z-index: 30 !important;
        margin-top: -85px !important; /* overlap amount onto the image */
        margin-bottom: 20px !important;
        top: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .search-filter-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Crisp white card with shadow, centered inside the viewport */
    .search-filter-section .full-search-2,
    .full-search-2.eclip-search {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        box-shadow: 0 12px 34px rgba(0,0,0,0.22) !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .image-cover.hero-banner,
    .hero-banner {
        min-height: 300px !important;
        padding: 24px 12px 90px !important;
    }
    .search-filter-section {
        margin-top: -75px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE PROPERTY CARD FOOTER — REAL CLASSES (price + View visible)
   Targets .cp-card-cta / .cp-card-price / .more-btn to match desktop card.
   This block is LAST so it wins over the earlier generic appends.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Card: wider (near full width), shorter compact height */
    .property-listing.property-1 {
        width: 98% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 12px !important;
    }

    /* Tighter content padding for a sleek, premium feel */
    .property-listing.property-1 .listing-content {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 10px 12px !important;
    }

    /* Shorter image ratio for a compact card */
    .property-listing.property-1 .listing-img-wrapper img {
        height: 160px !important;
        min-height: 160px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    /* Tighter title */
    .property-listing.property-1 .cp-card-stack .listing-name {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    /* Left stack (badge, title, status, location) sits on top, full width */
    .property-listing.property-1 .cp-card-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
    }

    /* Tighten inner stack spacing to shorten the card */
    .property-listing.property-1 .cp-card-stack {
        width: 100% !important;
        min-width: 0 !important;
        gap: 6px !important;
    }

    /* Footer: ID on its own line, then Price (left) + View button (right) */
    .property-listing.property-1 .cp-card-cta {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 0 !important;
        margin-top: 4px !important;
        padding-top: 8px !important;
        border-top: 1px solid #f1efe9 !important;
    }

    .property-listing.property-1 .cp-card-cta .cp-card-id {
        flex: 0 0 100% !important;
        order: 0 !important;
        text-align: left !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        color: #64748B !important;
    }

    .property-listing.property-1 .cp-card-cta .cp-card-price {
        order: 1 !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 20px !important;
        font-weight: 800 !important;
        color: #14304d !important;
        line-height: 1.2 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    .property-listing.property-1 .cp-card-cta .more-btn {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: linear-gradient(135deg, #14304d, #1e3a56) !important;
        color: #ffffff !important;
        padding: 9px 24px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-align: center !important;
        white-space: nowrap !important;
        box-shadow: 0 4px 12px rgba(20,48,77,0.25) !important;
    }
}
