/* ========================================================
   SmartProperty Real Estate - Public Stylesheet
   Modern, Clean, High-Contrast Real Estate Theme
   ======================================================== */

:root {
    --sp-primary: #1d4ed8;
    --sp-primary-dark: #1e40af;
    --sp-primary-light: #eff6ff;
    --sp-secondary: #0f172a;
    --sp-accent: #f59e0b;
    --sp-success: #10b981;
    --sp-danger: #ef4444;
    --sp-surface: #ffffff;
    --sp-bg: #f8fafc;
    --sp-border: #e2e8f0;
    --sp-text: #1e293b;
    --sp-text-muted: #64748b;
    --sp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sp-radius: 12px;
    --sp-radius-sm: 8px;
    --sp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --sp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --sp-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sp-font-sans);
    color: var(--sp-text);
    background-color: var(--sp-bg);
    line-height: 1.6;
}

img, video, iframe {
    max-width: 100%;
}

/* Prevent iOS Safari auto-zoom on inputs */
@media screen and (max-width: 767.98px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    select.form-select,
    .form-control {
        font-size: 16px !important;
    }
}

a {
    color: var(--sp-primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
a:hover {
    color: var(--sp-primary-dark);
}

/* Navbar */
.sp-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--sp-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.sp-navbar.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.sp-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sp-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}
.sp-brand i {
    color: var(--sp-primary);
}
.sp-brand span {
    color: var(--sp-primary);
}
.sp-nav-link {
    font-weight: 600;
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--sp-radius-sm);
    transition: all 0.2s;
}
.sp-nav-link:hover, .sp-nav-link.active {
    color: var(--sp-primary) !important;
    background-color: var(--sp-primary-light);
}

/* Navbar Mobile Responsiveness */
@media (max-width: 991.98px) {
    .sp-navbar {
        padding: 0.65rem 0;
    }
    .sp-navbar .navbar-collapse {
        background: #ffffff;
        border-radius: var(--sp-radius);
        padding: 1.25rem 1rem;
        margin-top: 0.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--sp-border);
    }
    .sp-navbar .navbar-nav .nav-link {
        padding: 0.65rem 0.85rem !important;
        border-bottom: 1px solid #f1f5f9;
    }
    .sp-navbar .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .sp-brand {
        font-size: 1.15rem;
        gap: 0.45rem;
    }
    .sp-brand .p-2 {
        width: 36px !important;
        height: 36px !important;
        padding: 0.35rem !important;
    }
    .sp-brand .p-2 i {
        font-size: 1rem !important;
    }
    .sp-brand span.d-block.lh-1 {
        font-size: 1.05rem !important;
    }
    .sp-brand span.small {
        font-size: 0.58rem !important;
        letter-spacing: 0.2px !important;
    }
    .navbar-toggler {
        padding: 0.35rem 0.55rem;
        font-size: 0.95rem;
    }
}

/* Buttons */
.btn-primary-sp {
    background-color: var(--sp-primary);
    border-color: var(--sp-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: var(--sp-radius-sm);
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.2);
    transition: all 0.2s;
}
.btn-primary-sp:hover {
    background-color: var(--sp-primary-dark);
    border-color: var(--sp-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(29, 78, 216, 0.3);
}
.btn-outline-sp {
    border: 2px solid var(--sp-primary);
    color: var(--sp-primary);
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: var(--sp-radius-sm);
    background: transparent;
    transition: all 0.2s;
}
.btn-outline-sp:hover {
    background: var(--sp-primary);
    color: #fff;
}
.btn-whatsapp {
    background-color: #25D366;
    color: #fff !important;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-whatsapp:hover {
    background-color: #1ebc59;
    color: #fff !important;
}

/* Hero Section */
.sp-hero {
    position: relative;
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
    color: #fff;
    border-bottom: 1px solid #334155;
}
.sp-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
    pointer-events: none;
}
.sp-hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.sp-hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

/* Hero Search Box */
.sp-hero-search {
    background: #ffffff;
    border-radius: var(--sp-radius);
    padding: 1.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    color: var(--sp-text);
}
.sp-search-tabs .nav-link {
    color: var(--sp-text-muted);
    font-weight: 700;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--sp-radius-sm);
    margin-right: 0.5rem;
}
.sp-search-tabs .nav-link.active {
    background-color: var(--sp-primary);
    color: #ffffff;
}

/* Property Card */
.property-card {
    background: #ffffff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-shadow-hover);
    border-color: #cbd5e1;
}
.property-card-img-wrap {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background-color: #e2e8f0;
}
.property-card-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.property-card:hover .property-card-img {
    transform: scale(1.05);
}
.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.badge-sale { background-color: #2563eb; color: #fff; }
.badge-rent { background-color: #059669; color: #fff; }
.badge-lease { background-color: #d97706; color: #fff; }

.property-featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #fbbf24;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.property-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.property-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--sp-primary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}
.property-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sp-text-muted);
}
.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sp-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.property-location {
    font-size: 0.875rem;
    color: var(--sp-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.property-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-top: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 1rem;
}
.property-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.property-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* List View Variant */
.property-card-list {
    flex-direction: row;
}
.property-card-list .property-card-img-wrap {
    width: 38%;
    padding-top: 0;
    height: 100%;
    min-height: 240px;
}
.property-card-list .property-card-body {
    width: 62%;
}
@media (max-width: 768px) {
    .property-card-list {
        flex-direction: column;
    }
    .property-card-list .property-card-img-wrap {
        width: 100%;
        padding-top: 60%;
    }
    .property-card-list .property-card-body {
        width: 100%;
    }
}

/* Property Details Page */
.property-gallery-main {
    border-radius: var(--sp-radius);
    overflow: hidden;
    position: relative;
    height: 480px;
    background: #0f172a;
}
.property-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.property-thumb-item {
    width: 110px;
    height: 75px;
    flex-shrink: 0;
    border-radius: var(--sp-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}
.property-thumb-item.active, .property-thumb-item:hover {
    border-color: var(--sp-primary);
    opacity: 1;
}
.property-thumb-item img {
    width: 100%; height: 100%; object-fit: cover;
}

.spec-box {
    background: #ffffff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    padding: 1rem;
    text-align: center;
}
.spec-box i {
    font-size: 1.5rem;
    color: var(--sp-primary);
    margin-bottom: 0.35rem;
}
.spec-box .spec-title {
    font-size: 0.8rem;
    color: var(--sp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.spec-box .spec-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sp-secondary);
}

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin: 0.25rem;
}
.amenity-chip i {
    color: var(--sp-primary);
}

/* Sidebar Card */
@media (min-width: 992px) {
    .sticky-sidebar {
        position: sticky;
        top: 90px;
    }
}
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static !important;
    }
}
.widget-card {
    background: #ffffff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--sp-shadow);
}

/* Footer */
.sp-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid #1e293b;
}
.sp-footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.sp-footer a {
    color: #94a3b8;
}
.sp-footer a:hover {
    color: #ffffff;
}
.sp-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    margin-top: 3.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header .section-tag {
    color: var(--sp-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--sp-secondary);
    letter-spacing: -0.5px;
}
.section-header p {
    color: var(--sp-text-muted);
    max-width: 600px;
    margin: 0.5rem auto 0;
    font-size: 1.1rem;
}

/* Map frame */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: var(--sp-radius);
}
.map-responsive iframe {
    left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0;
}

/* ========================================================
   UNIVERSAL BOTTOM MENU & DOCK (ALL DEVICES)
   ======================================================== */

/* Body spacing to prevent bottom content cutoff */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }
}
@media (min-width: 992px) {
    body {
        padding-bottom: 50px;
    }
}

/* 1. Mobile & Tablet Fixed Bottom Nav Bar (< 992px) */
.sp-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
    padding-bottom: max(4px, env(safe-area-inset-bottom));
}

.sp-mob-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 60px;
    max-width: 580px;
    margin: 0 auto;
    padding: 0 4px;
}

.sp-mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1 1 0;
    min-width: 0;
    padding: 3px 2px;
    user-select: none;
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1.1;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.sp-mob-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    margin-top: 1px;
}

.sp-mob-nav-item .sp-mob-icon-wrap {
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.sp-mob-nav-item:hover,
.sp-mob-nav-item.active {
    color: var(--sp-primary);
}

.sp-mob-nav-item.active .sp-mob-icon-wrap {
    transform: translateY(-2px);
    color: var(--sp-primary);
}

/* Center Elevated Action Button (FAB) */
.sp-mob-nav-item.sp-mob-center-fab {
    position: relative;
    top: -12px;
}

.sp-mob-fab-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 2px;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sp-mob-center-fab:hover .sp-mob-fab-btn,
.sp-mob-center-fab.active .sp-mob-fab-btn {
    transform: scale(1.08) rotate(90deg);
}

@media (max-width: 375px) {
    .sp-mob-nav-item span {
        font-size: 0.58rem;
    }
    .sp-mob-nav-item .sp-mob-icon-wrap {
        font-size: 1.05rem;
    }
    .sp-mob-fab-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    .sp-mob-nav-item.sp-mob-center-fab {
        top: -10px;
    }
}

.sp-nav-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 1px solid #fff;
}

/* 2. Desktop Floating Dock (>= 992px) */
.sp-desktop-bottom-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1045;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sp-dock-container {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.sp-dock-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.sp-dock-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.sp-dock-item.active {
    color: #ffffff;
    background: rgba(2, 132, 199, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.sp-dock-item.sp-dock-cta {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 7px 16px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.sp-dock-item.sp-dock-cta:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
    transform: translateY(-2px) scale(1.03);
}

.sp-dock-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 4px;
}

.dropdown-menu-center {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Floating WhatsApp Button adjustments across devices */
.btn-whatsapp-floating {
    position: fixed;
    z-index: 1030;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease;
}
.btn-whatsapp-floating:hover {
    transform: scale(1.08);
}

@media (max-width: 991.98px) {
    .btn-whatsapp-floating {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}
@media (max-width: 480px) {
    .btn-whatsapp-floating {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}
@media (min-width: 992px) {
    .btn-whatsapp-floating {
        bottom: 24px;
        right: 24px;
        width: 58px;
        height: 58px;
        font-size: 28px;
    }
}

/* Print mode override */
@media print {
    .sp-mobile-bottom-nav,
    .sp-desktop-bottom-dock,
    .btn-whatsapp-floating {
        display: none !important;
    }
}

/* ========================================================
   MODERN HOMEPAGE UI ENHANCEMENTS
   ======================================================== */

/* Hero Gradient & Mesh */
.sp-hero-enhanced {
    position: relative;
    padding: 5.5rem 0 6.5rem;
    background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.25) 0%, transparent 45%),
                linear-gradient(135deg, #0b1329 0%, #0f172a 50%, #1e293b 100%);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-hero-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.4;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Hero Search Card */
.sp-hero-search-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    color: var(--sp-text);
}

.sp-search-nav-pill {
    cursor: pointer;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sp-search-nav-pill:hover {
    color: var(--sp-primary);
    border-color: #cbd5e1;
    background: #ffffff;
}
.sp-search-nav-pill.active {
    background: var(--sp-primary);
    color: #ffffff !important;
    border-color: var(--sp-primary);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.sp-trending-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}
.sp-trending-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Stat Cards Modern */
.stat-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    height: 100%;
}
.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* 3 Action Pillars */
.pillar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.25rem 1.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
}
.pillar-card.pillar-buy::before { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.pillar-card.pillar-rent::before { background: linear-gradient(90deg, #059669, #34d399); }
.pillar-card.pillar-sell::before { background: linear-gradient(90deg, #d97706, #fbbf24); }

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

/* Modern Category Cards */
.cat-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--sp-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s ease;
    height: 100%;
}
.cat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    border-color: #93c5fd;
    color: var(--sp-primary);
}
.cat-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    transition: transform 0.25s ease;
}
.cat-card-modern:hover .cat-icon-circle {
    transform: scale(1.1);
}

/* Section Header Styles */
.sp-section-heading {
    margin-bottom: 2.5rem;
}
.sp-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    border: 1px solid #bfdbfe;
}

/* EMI Calculator Widget */
.emi-calc-box {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.emi-slider {
    accent-color: var(--sp-primary);
    cursor: pointer;
}
.emi-result-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 2rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -6px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

/* ========================================================
   COMPREHENSIVE MOBILE & RESPONSIVE MEDIA QUERIES
   ======================================================== */

.property-detail-price {
    font-size: 2.25rem;
}

/* Tablet & Mobile (< 992px) */
@media (max-width: 991.98px) {
    .sp-hero-enhanced {
        padding: 3.5rem 0 4.5rem;
    }
    .testimonial-card {
        padding: 1.5rem 1.25rem;
    }
    .emi-result-card {
        margin-top: 1.25rem;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Standard Mobile Phones (< 768px) */
@media (max-width: 767.98px) {
    .sp-hero-enhanced {
        padding: 2.5rem 0 3.5rem;
    }
    .sp-hero-enhanced h1,
    .sp-hero-enhanced .display-4 {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }
    .sp-hero-enhanced p.lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.25rem !important;
    }
    .sp-hero-search-card {
        padding: 1.25rem 1rem !important;
        border-radius: 14px !important;
    }
    .sp-search-nav-pill {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.8rem !important;
    }

    /* Property Gallery & Specs */
    .property-gallery-main {
        height: 260px !important;
    }
    .property-thumb-item {
        width: 80px;
        height: 56px;
    }
    .spec-box {
        padding: 0.75rem 0.4rem;
    }
    .spec-box i {
        font-size: 1.25rem;
    }
    .spec-box .spec-title {
        font-size: 0.72rem;
    }
    .spec-box .spec-val {
        font-size: 0.92rem;
        word-break: break-word;
    }
    .property-detail-price {
        font-size: 1.75rem !important;
    }
    #propertyMap {
        height: 240px !important;
    }

    /* Pillars & Stat Cards */
    .pillar-card {
        padding: 1.5rem 1.25rem !important;
    }
    .stat-card-modern {
        padding: 1.25rem 0.75rem;
    }
    .stat-card-modern h3 {
        font-size: 1.35rem;
    }

    /* EMI Box & Footer */
    .emi-calc-box {
        border-radius: 14px;
    }
    .emi-result-card {
        padding: 1.25rem !important;
        border-radius: 14px;
        margin-top: 1rem;
    }
    .emi-result-card .display-5 {
        font-size: 1.75rem !important;
    }
    .sp-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    .sp-footer .bg-dark {
        padding: 1.25rem !important;
        border-radius: 14px !important;
    }
    .sp-footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        text-align: center;
    }
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Extra-Small Mobile Devices (< 576px) */
@media (max-width: 575.98px) {
    .sp-hero-enhanced h1,
    .sp-hero-enhanced .display-4 {
        font-size: 1.65rem !important;
    }
    .cat-card-modern {
        padding: 1rem 0.5rem;
    }
    .cat-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    .cat-card-modern h6 {
        font-size: 0.85rem;
    }
    .property-detail-price {
        font-size: 1.5rem !important;
    }
    .property-gallery-main {
        height: 210px !important;
    }
    .property-thumb-item {
        width: 66px;
        height: 46px;
    }
    .property-price {
        font-size: 1.25rem;
    }
    .property-title {
        font-size: 0.98rem;
    }
    .property-card-body {
        padding: 0.95rem;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 3px;
        justify-content: center;
    }
    .pagination .page-item .page-link {
        padding: 0.35rem 0.6rem;
        font-size: 0.82rem;
    }
    .widget-card {
        padding: 1.15rem;
    }
}

/* Ultra-Compact Phones (< 375px: iPhone SE, Galaxy narrow) */
@media (max-width: 375px) {
    .sp-hero-enhanced h1,
    .sp-hero-enhanced .display-4 {
        font-size: 1.5rem !important;
    }
    .sp-search-nav-pill {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.74rem !important;
    }
    .stat-card-modern {
        padding: 0.85rem 0.5rem;
    }
    .stat-card-modern .fs-4 {
        font-size: 1.1rem !important;
    }
    .stat-card-modern h3 {
        font-size: 1.15rem;
    }
    .stat-card-modern p {
        font-size: 0.7rem;
    }
}


