/* ============================================================
   PROPERTY PLATFORM — COMPLETE MOBILE RESPONSIVE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* iOS zoom fix */
input, select, textarea { font-size: 16px !important; }

/* ===== HEADER ===== */
@media (max-width: 991px) {
    .ph-topbar { display: none !important; }
    .ph-nav { top: 0 !important; }
    .ph-nav-inner { min-height: 60px !important; padding: 0 14px !important; gap: 10px !important; }
    .ph-nav-links { display: none !important; }
    .ph-btn-outline { display: none !important; }
    .ph-text-btn { display: none !important; }
    .ph-user-drop { display: none !important; }
    .ph-hamburger { display: flex !important; }
    .pp-filter-bar, .fb-wrap { top: 60px !important; }
}
@media (max-width: 480px) {
    .ph-logo-tagline { display: none !important; }
    .ph-logo-brand { font-size: 0.95rem !important; }
    .ph-logo-img-wrap { width: 42px !important; height: 42px !important; }
    .ph-btn-primary { padding: 6px 10px !important; font-size: 0.72rem !important; }
    .ph-free-tag { display: none !important; }
}
@media (max-width: 400px) {
    .ph-drawer { width: 100% !important; }
}

/* ===== HERO — HOME ===== */
@media (max-width: 767px) {
    .propr-hero { min-height: 100svh; }
    .propr-hero-content { padding: 80px 0 200px; }
    .propr-hero-title { font-size: 1.75rem !important; letter-spacing: -0.5px; }
    .propr-hero-sub { font-size: 0.88rem; margin-bottom: 20px; }
    .propr-hero-badge { font-size: 0.72rem; padding: 5px 14px; }
    .propr-search-card { padding: 10px 10px 12px !important; border-radius: 14px !important; }
    .propr-search-tabs { gap: 3px; padding-bottom: 10px; }
    .propr-tab { padding: 6px 10px !important; font-size: 0.76rem !important; }
    .propr-search-row { flex-direction: column !important; gap: 8px !important; }
    .propr-search-field { width: 100% !important; max-width: 100% !important; min-width: unset !important; }
    .propr-input { height: 46px; }
    .propr-search-btn { width: 100%; height: 46px; justify-content: center; }
    .propr-near-btn { width: 100% !important; height: 44px; justify-content: center; }
    .hero-chips { gap: 5px; padding: 8px 0 4px; }
    .hero-chip { padding: 5px 10px; font-size: 0.74rem; }
    .propr-stats-grid { flex-wrap: wrap; padding: 12px 8px; }
    .propr-stat { min-width: 50%; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .propr-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
    .propr-stat-num { font-size: 1.5rem; }
    .propr-stat-divider { display: none; }
}
@media (max-width: 480px) {
    .propr-hero-content { padding: 70px 0 20px; }
    .propr-hero-title { font-size: 1.5rem !important; }
    .propr-hero-stats { position: relative; }
}

/* ===== PROPERTY TYPE CARDS ===== */
@media (max-width: 480px) {
    .propr-type-card { padding: 14px 6px 12px; border-radius: 12px; }
    .propr-type-ico { width: 50px; height: 50px; font-size: 1.2rem; border-radius: 12px; }
    .propr-type-name { font-size: 0.78rem; }
    .propr-type-sub { font-size: 0.68rem; }
}

/* ===== SECTION COMMON ===== */
@media (max-width: 767px) {
    .propr-section { padding: 44px 0 !important; }
    .propr-section-head { margin-bottom: 28px; }
    .propr-section-head h2 { font-size: 1.4rem !important; }
    .propr-section-tag { font-size: 0.7rem; }
    .container, .container-fluid { padding-left: 14px !important; padding-right: 14px !important; }
    .row { --bs-gutter-x: 12px; }
}

/* ===== PROPERTY CARDS — HOME ===== */
@media (max-width: 767px) {
    .propr-card { border-radius: 14px; }
    .propr-card-img { height: 200px; }
    .propr-card-body { padding: 14px; }
    .propr-card-price { font-size: 1.2rem; }
    .propr-card-title { font-size: 0.92rem; }
    .propr-card-feats { gap: 8px; }
    .propr-card-feats span { font-size: 0.74rem; }
    .propr-act { padding: 7px 4px; font-size: 0.74rem; }
    .propr-sl-btn { opacity: 1 !important; width: 26px; height: 26px; font-size: 0.6rem; }
}

/* ===== TOP LOCALITIES ===== */
@media (max-width: 767px) {
    .pp-loc-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .pp-loc-chip {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        gap: 6px !important;
        flex: unset !important;
        max-width: unset !important;
        width: 100% !important;
    }
    .pp-loc-count { font-size: 0.7rem; }
}
@media (max-width: 400px) {
    .pp-loc-chip { padding: 8px 10px !important; font-size: 0.75rem !important; }
    .pp-loc-count { font-size: 0.65rem !important; }
}

/* ===== POPULAR SEARCHES ===== */
@media (max-width: 767px) {
    .pp-ps-tabs {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pp-ps-tabs::-webkit-scrollbar { display: none; }
    .pp-ps-tab {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 7px 16px !important;
        font-size: 0.8rem !important;
    }
    .pp-ps-panel.active {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 7px !important;
    }
    .pp-ps-tag {
        font-size: 0.75rem !important;
        padding: 8px !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
}

/* ===== CTA — HOME ===== */
@media (max-width: 767px) {
    .propr-cta-inner { padding: 28px 20px !important; flex-direction: column !important; text-align: center !important; border-radius: 16px !important; }
    .propr-cta-text h2 { font-size: 1.3rem; }
    .propr-cta-btns { justify-content: center; flex-direction: column; align-items: center; gap: 10px; }
    .propr-cta-btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ===== LISTING TABS ===== */
@media (max-width: 480px) {
    .listing-tab-btn { padding: 7px 14px !important; font-size: 0.78rem !important; }
}

/* ===== TICKER ===== */
@media (max-width: 767px) {
    .propr-ticker-item { font-size: 0.72rem; padding: 4px 10px; }
    .propr-quick-links > span { font-size: 0.7rem; }
}

/* ===== WHY CARDS ===== */
@media (max-width: 767px) {
    .propr-why-card { padding: 22px 18px; }
    .propr-why-ico { width: 48px; height: 48px; font-size: 1.2rem; }
    .propr-why-card h5 { font-size: 0.95rem; }
    .propr-why-card p { font-size: 0.82rem; }
}

/* ===== PROPERTY LIST PAGE ===== */
@media (max-width: 767px) {
    .pp-page-hero { padding: 36px 0 30px !important; }
    .pp-page-hero h1 { font-size: 1.5rem !important; }
    .pp-page-sub { font-size: 0.82rem !important; }

    /* Filter Bar */
    .fb-wrap { top: 60px !important; padding: 10px 0 8px !important; }
    .fb-row1 { gap: 8px; margin-bottom: 8px; }
    .fb-tabs, .fb-deal { padding: 2px; }
    .fb-tab, .fb-deal-btn { padding: 5px 10px !important; font-size: 0.74rem !important; }
    .fb-chips { gap: 5px; margin-bottom: 8px; }
    .fb-chip { padding: 4px 10px; font-size: 0.74rem; }
    .fb-row3 { gap: 6px; flex-wrap: wrap; }
    .fb-drop { flex: 0 0 calc(50% - 3px); }
    .fb-select, .fb-multi { min-width: 100% !important; width: 100% !important; font-size: 0.78rem !important; height: 40px !important; }
    .fb-search-btn { width: 100% !important; justify-content: center; height: 42px; flex: 0 0 100%; }
    .fb-clear { width: 100%; justify-content: center; height: 38px; flex: 0 0 100%; }

    /* List Cards — stack */
    .pp-list-card { flex-direction: column !important; border-radius: 14px; }
    .pp-list-img { width: 100% !important; height: 210px !important; }
    .pp-list-body { padding: 14px !important; }
    .pp-list-price { font-size: 1.25rem !important; }
    .pp-list-title { font-size: 0.92rem !important; }
    .pp-list-desc { font-size: 0.78rem !important; }
    .pp-list-feats span { font-size: 0.74rem !important; }
    .pp-la { padding: 7px 4px !important; font-size: 0.74rem !important; }
    .pp-ls-btn { opacity: 1 !important; }

    .pp-results-bar { gap: 8px; margin-bottom: 18px; }
    .pp-results-count { font-size: 0.88rem; }
}
@media (max-width: 480px) {
    .fb-drop { flex: 0 0 100%; }
}

/* ===== PROPERTY DETAILS PAGE ===== */
@media (max-width: 991px) {
    .ppd-sidebar { position: static !important; margin-top: 24px; }
}
@media (max-width: 767px) {
    .ppd-wrap { padding: 16px 0 100px !important; }
    .ppd-breadbar { font-size: 0.76rem; padding: 10px 0; }
    .ppd-gallery-main { height: 230px !important; border-radius: 12px !important; }
    .ppd-thumbs { display: none !important; }
    .ppd-gallery-actions { gap: 6px; }
    .ppd-gal-btn { padding: 7px 12px !important; font-size: 0.76rem !important; }
    .ppd-title { font-size: 1.2rem !important; }
    .ppd-price { font-size: 1.5rem !important; }
    .ppd-price-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .ppd-quick-actions { width: 100%; }
    .ppd-qa { flex: 1; justify-content: center; padding: 9px 12px !important; font-size: 0.8rem !important; }
    .ppd-key-facts { padding: 14px !important; gap: 8px !important; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
    .ppd-fact { min-width: 75px; flex-shrink: 0; }
    .ppd-fact i { font-size: 1rem; }
    .ppd-fact span { font-size: 0.8rem; }
    .ppd-fact small { font-size: 0.65rem; }
    .ppd-section { padding: 18px !important; border-radius: 12px !important; }
    .ppd-desc { font-size: 0.85rem !important; }
    .ppd-map { height: 220px !important; }
    .ppd-price-card { padding: 20px !important; border-radius: 14px !important; }
    .ppd-pc-price { font-size: 1.7rem !important; }
    .ppd-pc-actions { flex-direction: row !important; gap: 8px !important; }
    .ppd-pc-btn { flex: 1; padding: 10px 8px !important; font-size: 0.82rem !important; }
    .ppd-tour-card, .ppd-summary-card { padding: 18px !important; border-radius: 14px !important; }
    .ppd-input { padding: 9px 12px !important; font-size: 0.82rem !important; }
    .ppd-tour-btn { padding: 11px !important; font-size: 0.85rem !important; }
    .ppd-summary-list li { font-size: 0.78rem !important; padding: 8px 0 !important; }

    /* Sticky bottom bar */
    .ppd-sticky-cta {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff; padding: 10px 16px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
        z-index: 990; display: flex; gap: 10px;
    }
    .ppd-sticky-cta a { flex: 1; justify-content: center; min-height: 44px; }
}

/* ===== ABOUT PAGE ===== */
@media (max-width: 767px) {
    .pp-about-img { height: 220px !important; border-radius: 14px !important; }
    .pp-offer-card { padding: 22px 18px !important; border-radius: 14px !important; }
    .pp-why-row { padding: 16px !important; gap: 12px !important; }
    .pp-cta-box { padding: 28px 20px !important; flex-direction: column !important; text-align: center !important; border-radius: 16px !important; }
    .pp-cta-box h3 { font-size: 1.3rem !important; }
    .pp-cta-btns { justify-content: center; flex-direction: column; align-items: center; }
    .pp-btn-primary, .pp-btn-outline-w { width: 100%; max-width: 260px; justify-content: center; }
}

/* ===== CONTACT PAGE ===== */
@media (max-width: 767px) {
    .pp-contact-card { padding: 24px 18px !important; border-radius: 14px !important; }
    .pp-map-wrap { height: 220px !important; border-radius: 12px !important; }
    .pp-form-card { padding: 20px 16px !important; border-radius: 14px !important; }
    .pp-form-input { padding: 10px 13px !important; }
    .pp-submit-btn { padding: 12px !important; }
}

/* ===== MY PROPERTIES ===== */
@media (max-width: 767px) {
    .pp-myp-card { flex-direction: column !important; border-radius: 14px !important; }
    .pp-myp-img { width: 100% !important; height: 190px !important; }
    .pp-myp-body { padding: 14px 16px !important; }
    .pp-myp-price { font-size: 1.2rem !important; }
    .pp-myp-actions { flex-direction: row !important; border-left: none !important; border-top: 1px solid #f0f0f5 !important; min-width: unset !important; padding: 12px 14px !important; }
    .pp-myp-btn { width: auto !important; flex: 1 !important; padding: 8px 6px !important; font-size: 0.74rem !important; }
}
@media (max-width: 480px) {
    .pp-myp-header { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    .pp-myp-add-btn { width: 100% !important; justify-content: center !important; }
    .pp-myp-tabs { overflow-x: auto !important; flex-wrap: nowrap !important; }
    .pp-myp-tab { white-space: nowrap !important; flex-shrink: 0 !important; }
}

/* ===== LOGIN / OTP PAGE ===== */
@media (max-width: 700px) {
    .ppa-wrap { padding: 0; align-items: stretch; }
    .ppa-card { flex-direction: column !important; border-radius: 0 !important; min-height: 100svh !important; box-shadow: none !important; }
    .ppa-left { width: 100% !important; padding: 20px !important; flex-direction: row !important; min-height: auto !important; }
    .ppa-left-inner { display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; }
    .ppa-logo { width: 52px !important; height: 52px !important; margin-bottom: 0 !important; animation: none !important; }
    .ppa-brand { font-size: 1.1rem !important; }
    .ppa-desc, .ppa-badges, .ppa-toggle-hint, .ppa-toggle-btn { display: none !important; }
    .ppa-form-wrap { padding: 24px 18px 36px !important; opacity: 1 !important; transform: none !important; }
    .ppa-title { font-size: 1.25rem !important; }
    .ppa-btn { padding: 11px !important; }
    .ppa-left::before, .ppa-left::after { display: none !important; }
    .pp-otp-single { width: 44px !important; height: 50px !important; font-size: 1.25rem !important; border-radius: 10px !important; }
    .pp-auth-left { display: none !important; }
    .pp-auth-right { padding: 24px 18px 36px !important; }
}

/* ===== POST PROPERTY ===== */
@media (max-width: 767px) {
    .pp1-bg { padding: 16px 0 40px !important; }
    .pp1-card { border-radius: 14px !important; }
    .pp1-card-title { font-size: 1.1rem !important; }
    .pp1-purpose-lbl, .pp1-listing-lbl { padding: 10px 12px !important; font-size: 0.82rem !important; }
    .pp1-type-lbl { padding: 10px 8px !important; font-size: 0.72rem !important; }
    .pp1-btn { padding: 11px 22px !important; font-size: 0.88rem !important; width: 100% !important; justify-content: center !important; }
    .pp-processbar { padding: 10px 0; overflow-x: auto; }
    .pp-processbar .container { min-width: 500px; }
}

/* ===== TERMS / PRIVACY ===== */
@media (max-width: 767px) {
    .pp-terms-content, .pp-legal-wrap { padding: 20px 14px !important; font-size: 0.88rem !important; }
    .pp-terms-content h2, .pp-legal-wrap h2 { font-size: 1.2rem !important; }
    .pp-terms-content h3, .pp-legal-wrap h3 { font-size: 1rem !important; }
    .pp-legal-wrap p, .pp-legal-wrap li { line-height: 1.7 !important; }
}

/* ===== ADMIN ===== */
@media (max-width: 767px) {
    .admin-sidebar { width: 100% !important; }
    .admin-content { padding: 12px !important; }
    .admin-table-wrap { overflow-x: auto !important; }
    .admin-table th, .admin-table td { font-size: 0.78rem !important; padding: 8px 10px !important; white-space: nowrap !important; }
}

/* ===== FOOTER ===== */
@media (max-width: 767px) {
    .pf-newsletter { padding: 28px 0 !important; }
    .pf-newsletter-inner { flex-direction: column !important; align-items: flex-start !important; gap: 18px !important; }
    .pf-nl-form { max-width: 100% !important; width: 100% !important; }
    .pf-nl-text { flex-direction: row !important; gap: 12px !important; }
    .pf-nl-icon { width: 44px !important; height: 44px !important; }
    .pf-newsletter h4 { font-size: 1rem !important; }
    .pf-cta-strip { padding: 26px 0 !important; }
    .pf-cta-inner { flex-direction: column !important; text-align: center !important; gap: 16px !important; }
    .pf-cta-left h3 { font-size: 1.1rem !important; }
    .pf-cta-btns { flex-direction: column !important; align-items: center !important; width: 100% !important; }
    .pf-cta-btn { width: 100% !important; max-width: 280px !important; justify-content: center !important; }
    .pf-footer { padding: 36px 0 0 !important; }
    .pf-bottom-inner { flex-direction: column !important; text-align: center !important; }
    .pf-bottom-links { justify-content: center !important; gap: 12px !important; }
    .pf-seo-strip { padding: 28px 0 20px !important; }
    .pf-seo-strip .col-lg { flex: 0 0 50% !important; max-width: 50% !important; }
    .pf-seo-tags a { white-space: normal !important; overflow: visible !important; text-overflow: unset !important; font-size: 0.76rem !important; line-height: 1.4 !important; }
    .pf-seo-title { font-size: 0.66rem !important; }
    .pf-review-box { padding: 12px !important; gap: 10px !important; }
    .pf-qr { width: 54px !important; height: 54px !important; }
}
@media (max-width: 480px) {
    .pf-seo-strip .col-lg, .pf-seo-strip .col-6 { flex: 0 0 100% !important; max-width: 100% !important; }
    .pf-col-title { font-size: 0.78rem !important; }
    .pf-links a { font-size: 0.82rem !important; }
}

/* ===== POPUP ===== */
@media (max-width: 767px) {
    .zb-popup {
        width: 96% !important; max-height: 90dvh !important;
        flex-direction: column !important; border-radius: 16px !important;
    }
    .zb-left {
        width: 100% !important; border-radius: 16px 16px 0 0 !important;
        padding: 14px 16px 10px !important; gap: 8px !important;
        border-right: none !important; border-bottom: 2px solid #f0f0f0;
    }
    .zb-logo-box img { height: 55px !important; }
    .zb-heading { font-size: 1.1rem !important; }
    .zb-features { flex-direction: row !important; flex-wrap: wrap !important; gap: 6px !important; margin-top: 2px !important; }
    .zb-feat { font-size: 0.72rem !important; padding: 5px 8px !important; }
    .zb-right { border-radius: 0 0 16px 16px !important; padding: 12px 16px 18px !important; }
    .zb-input { padding: 7px 10px !important; }
    .zb-close { top: 8px !important; right: 8px !important; width: 28px !important; height: 28px !important; }
}
@media (max-width: 400px) {
    .zb-popup { width: 99% !important; }
    .zb-features { display: none !important; }
}

/* ===== RESIDENTIAL / COMMERCIAL PAGES ===== */
@media (max-width: 767px) {
    .pp-res-hero h1, .pp-com-hero h1 { font-size: 1.4rem !important; }
}

/* ===== TOUCH TARGETS ===== */
@media (max-width: 767px) {
    button, [type="button"], [type="submit"],
    .propr-act, .pp-la, .ppd-qa, .ppd-pc-btn,
    .pf-cta-btn, .propr-cta-btn { min-height: 42px; }
}

/* ===== NO HOVER ON TOUCH ===== */
@media (hover: none) {
    .propr-card:hover, .pp-list-card:hover, .pp-myp-card:hover,
    .pp-offer-card:hover, .propr-type-card:hover { transform: none !important; box-shadow: none !important; }
}

/* ===== TABLES ===== */
@media (max-width: 767px) {
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ===== WHATSAPP FLOAT ===== */
.pp-whatsapp-float {
    position: fixed; bottom: 20px; right: 16px; z-index: 998;
    width: 52px; height: 52px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    text-decoration: none; transition: transform 0.2s;
}
.pp-whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@media (min-width: 768px) {
    .pp-whatsapp-float { bottom: 28px; right: 24px; width: 58px; height: 58px; font-size: 1.6rem; }
}
