/* =============================================
   Nest360 — Main Stylesheet
   Bootstrap 5.3 + Modern Design System
   ============================================= */

/* ----- CSS Variables / Theme ----- */
:root {
    --rp-primary:    #4F46E5;      /* Indigo */
    --rp-primary-hover: #4338CA;
    --rp-primary-rgb: 79, 70, 229;
    --rp-accent:     #F59E0B;      /* Amber */
    --rp-accent-rgb: 245, 158, 11;
    --rp-dark:       #1E1B4B;
    --rp-gray-50:    #F8FAFC;
    --rp-gray-100:   #F1F5F9;
    --rp-gray-200:   #E2E8F0;
    --rp-gray-500:   #64748B;
    --rp-gray-700:   #334155;
    --rp-gray-900:   #0F172A;
    --rp-success:    #10B981;
    --rp-danger:     #EF4444;
    --rp-pink:       #EC4899;
    --rp-violet:     #8B5CF6;
    --rp-cyan:       #06B6D4;
    --rp-white:      #FFFFFF;
    --rp-font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rp-radius:     0.75rem;
    --rp-radius-lg:  1rem;
    --rp-radius-xl:  1.5rem;
    --rp-shadow:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --rp-shadow-md:  0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --rp-shadow-lg:  0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
    --rp-shadow-xl:  0 20px 40px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.06);
    --rp-shadow-glow: 0 0 30px rgba(var(--rp-primary-rgb), 0.3);
    --rp-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rp-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Global Smooth Scroll ----- */
html { scroll-behavior: smooth; }

/* ----- Bootstrap Overrides ----- */
body {
    font-family: var(--rp-font);
    color: var(--rp-gray-900);
    background-color: var(--rp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.btn-primary {
    --bs-btn-bg: var(--rp-primary);
    --bs-btn-border-color: var(--rp-primary);
    --bs-btn-hover-bg: var(--rp-primary-hover);
    --bs-btn-hover-border-color: var(--rp-primary-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--rp-primary);
    --bs-btn-border-color: var(--rp-primary);
    --bs-btn-hover-bg: var(--rp-primary);
    --bs-btn-hover-border-color: var(--rp-primary);
}

.text-primary { color: var(--rp-primary) !important; }

.bg-light { background-color: var(--rp-gray-50) !important; }

.bg-light-gradient {
    background: linear-gradient(180deg, var(--rp-gray-50) 0%, rgba(var(--rp-primary-rgb), 0.02) 100%) !important;
}

.rounded-4 { border-radius: var(--rp-radius-lg) !important; }

.ls-wide { letter-spacing: 0.1em; }

.fw-800 { font-weight: 800; }

.min-vh-75 { min-height: 75vh; }

.z-2 { z-index: 2; }

.py-lg-6 { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 992px) { .py-lg-6 { padding-top: 5rem; padding-bottom: 5rem; } }

/* =============================================
   SECTION TAG (emoji pill labels)
   ============================================= */
.section-tag {
    display: inline-block;
    background: rgba(var(--rp-primary-rgb), 0.08);
    color: var(--rp-primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(var(--rp-primary-rgb), 0.06);
    transition: var(--rp-transition);
}

.site-header .navbar {
    padding: 0.75rem 0;
}

.site-header .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--rp-dark);
}

.brand-text, .brand-text-footer {
    font-weight: 800;
    font-size: 1.35rem;
}

.site-header .nav-link {
    color: var(--rp-gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: var(--rp-transition);
    font-size: 0.9rem;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--rp-primary);
    background: rgba(var(--rp-primary-rgb), 0.06);
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        background: var(--rp-white);
        border-radius: var(--rp-radius-lg);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--rp-shadow-xl);
        border: 1px solid var(--rp-gray-200);
    }
    .nav-cta {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--rp-gray-200);
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-color: var(--rp-dark);
    transform: scale(1.05);
    animation: heroZoom 8s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(30, 27, 75, 0.55) 0%,
        rgba(79, 70, 229, 0.35) 50%,
        rgba(30, 27, 75, 0.50) 100%
    );
}

.hero-title {
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--rp-accent), #FBBF24, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.text-accent { color: var(--rp-accent); }

.text-white-50 { color: rgba(255,255,255,0.65) !important; }
.text-white-70 { color: rgba(255,255,255,0.7); }

/* Hero pill badge */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rp-success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Glow button */
.btn-glow {
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-violet));
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(var(--rp-primary-rgb), 0.4);
    transition: var(--rp-transition);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--rp-primary-rgb), 0.5);
    color: white;
}

/* Glass button */
.btn-glass {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    transition: var(--rp-transition);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

/* Hero trust avatars */
.hero-trust__avatars {
    display: flex;
}

.hero-trust__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-violet));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(30, 27, 75, 0.8);
    margin-left: -8px;
}

.hero-trust__avatar:first-child { margin-left: 0; }
.hero-trust__avatar:nth-child(2) { background: linear-gradient(135deg, var(--rp-accent), #F97316); }
.hero-trust__avatar:nth-child(3) { background: linear-gradient(135deg, var(--rp-pink), #F43F5E); }
.hero-trust__avatar:nth-child(4) { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); }

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator__mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.hero-scroll-indicator__wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* =============================================
   GLASSMORPHISM UTILITY
   ============================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--rp-shadow-lg);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-bar {
    background: var(--rp-white);
    border: 1px solid var(--rp-gray-200);
}

.stat-item {
    position: relative;
    padding: 0.5rem 0;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--rp-gray-500);
    margin-top: 0.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-title {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--rp-gray-900);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

/* =============================================
   PROPERTY CARD
   ============================================= */
.property-card {
    border-radius: var(--rp-radius-xl) !important;
    transition: transform var(--rp-transition), box-shadow var(--rp-transition);
    border: 1px solid var(--rp-gray-200) !important;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--rp-shadow-xl);
}

.property-card__image {
    height: 220px;
    overflow: hidden;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-card__image img {
    transform: scale(1.08);
}

.property-card__location {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    color: var(--rp-gray-700);
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.property-card__status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.property-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rp-gray-900);
}

.property-card__logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rp-gray-200);
}

.bg-pink { background-color: var(--rp-pink); color: white; }

/* =============================================
   NEIGHBORHOOD CARDS
   ============================================= */
.neighborhood-card {
    border-radius: var(--rp-radius-lg);
    overflow: hidden;
    transition: transform var(--rp-transition), box-shadow var(--rp-transition);
}

.neighborhood-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--rp-shadow-md);
}

.neighborhood-card__img {
    height: 120px;
    overflow: hidden;
    border-radius: var(--rp-radius-lg);
}

.neighborhood-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.neighborhood-card:hover .neighborhood-card__img img {
    transform: scale(1.1);
}

.neighborhood-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.neighborhood-card__info h6 {
    color: var(--rp-gray-900);
    font-weight: 600;
    font-size: 0.85rem;
}

/* =============================================
   HOW IT WORKS — STEPS
   ============================================= */
.step-card {
    position: relative;
    padding: 1.5rem 1rem;
    border-radius: var(--rp-radius-lg);
    transition: var(--rp-transition);
}

.step-card:hover {
    background: var(--rp-gray-50);
}

.step-number {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(var(--rp-primary-rgb), 0.06);
    line-height: 1;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--rp-primary-rgb), 0.1), rgba(139, 92, 246, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rp-primary);
    transition: var(--rp-transition);
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-violet));
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(var(--rp-primary-rgb), 0.3);
}

/* =============================================
   FEATURE / COMMUNITY CARDS — MODERN
   ============================================= */
.feature-card-modern {
    background: var(--rp-white);
    border: 1px solid var(--rp-gray-200);
    transition: var(--rp-transition);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--rp-primary), var(--rp-violet), var(--rp-accent));
    opacity: 0;
    transition: var(--rp-transition);
}

.feature-card-modern:hover {
    border-color: rgba(var(--rp-primary-rgb), 0.2);
    box-shadow: var(--rp-shadow-lg);
    transform: translateY(-4px);
}

.feature-card-modern:hover::before {
    opacity: 1;
}

.feature-icon-modern {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--rp-primary-rgb), 0.1), rgba(139, 92, 246, 0.06));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--rp-primary);
    transition: var(--rp-transition);
}

.feature-card-modern:hover .feature-icon-modern {
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-violet));
    color: white;
    transform: scale(1.1);
}

/* Legacy feature-card (kept for backward compat) */
.feature-card {
    background: var(--rp-white);
    border: 1px solid var(--rp-gray-200);
    transition: var(--rp-transition);
}

.feature-card:hover {
    border-color: var(--rp-primary);
    box-shadow: var(--rp-shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--rp-primary-rgb), 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--rp-primary);
}

/* =============================================
   TESTIMONIAL CARDS
   ============================================= */
.testimonial-card {
    background: var(--rp-white);
    border: 1px solid var(--rp-gray-200);
    display: flex;
    flex-direction: column;
    transition: var(--rp-transition);
}

.testimonial-card:hover {
    box-shadow: var(--rp-shadow-lg);
    transform: translateY(-4px);
}

.testimonial-card__review {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--rp-gray-700);
}

.testimonial-card__avatar {
    object-fit: cover;
}

.testimonial-card__avatar-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-violet));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* =============================================
   PRESS SECTION
   ============================================= */
.press-section { background: var(--rp-white); }

.press-logo-img {
    height: 28px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: var(--rp-transition);
}

.press-logo-link:hover .press-logo-img {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.press-logo-text {
    color: var(--rp-gray-500);
    font-size: 1rem;
    transition: var(--rp-transition);
}

.press-logo-link:hover .press-logo-text {
    color: var(--rp-gray-900);
}

/* =============================================
   NEWSLETTER SECTION
   ============================================= */
.newsletter-section { background: var(--rp-white); }

.newsletter-box {
    background: linear-gradient(135deg, rgba(var(--rp-primary-rgb), 0.04) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(var(--rp-primary-rgb), 0.1);
    border-radius: var(--rp-radius-xl) !important;
}

.newsletter-form .form-control {
    border-radius: var(--rp-radius-lg) 0 0 var(--rp-radius-lg);
    border-color: var(--rp-gray-200);
    padding: 0.75rem 1.25rem;
}

.newsletter-form .form-control:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(var(--rp-primary-rgb), 0.1);
}

.newsletter-form .btn {
    border-radius: 0 var(--rp-radius-lg) var(--rp-radius-lg) 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--rp-dark);
    color: rgba(255,255,255,0.7);
}

.footer-brand img { filter: brightness(0) invert(1); }

.brand-text-footer { color: var(--rp-white); }

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
}

.footer-socials a {
    color: rgba(255,255,255,0.5);
    font-size: 1.25rem;
    transition: var(--rp-transition);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}

.footer-socials a:hover {
    color: var(--rp-accent);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.footer-heading {
    color: var(--rp-white);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--rp-transition);
}

.footer-links a:hover {
    color: var(--rp-white);
    padding-left: 4px;
}

.footer-bottom { border-color: rgba(255,255,255,0.1) !important; }

.footer-bottom p { color: rgba(255,255,255,0.4); }

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    animation: whatsapp-bounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
    color: white;
    animation: none;
}

@keyframes whatsapp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   SWIPER OVERRIDES
   ============================================= */
.swiper-pagination-bullet {
    background: var(--rp-gray-500);
    width: 8px;
    height: 8px;
    transition: var(--rp-transition);
}

.swiper-pagination-bullet-active {
    background: var(--rp-primary);
    width: 24px;
    border-radius: 4px;
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-slide { min-height: 65vh; }
    .min-vh-75 { min-height: 65vh; }
    .section-title { font-size: 1.5rem; }
    .stats-section { margin-top: -2rem; }
    .stat-number { font-size: 1.5rem; }
    .property-card__image { height: 180px; }
    .hero-scroll-indicator { display: none; }
    .step-number { font-size: 2rem; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title { font-size: 2.5rem; }
}

/* =============================================
   UTILITY — BADGE
   ============================================= */
.badge.bg-success { background-color: var(--rp-success) !important; }
.badge.bg-danger { background-color: var(--rp-danger) !important; }
.badge.bg-warning { background-color: var(--rp-accent) !important; }

/* =============================================
   QUALITY CHECK CARDS
   ============================================= */
.qc-card {
    position: relative;
    background: var(--rp-white);
    border: 1px solid var(--rp-gray-200);
    border-radius: var(--rp-radius-xl);
    padding: 2rem 1.5rem 1.5rem;
    overflow: hidden;
    transition: var(--rp-transition);
}

.qc-card:hover {
    border-color: rgba(var(--rp-primary-rgb), 0.2);
    box-shadow: var(--rp-shadow-lg);
    transform: translateY(-4px);
}

.qc-card__number {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(var(--rp-primary-rgb), 0.06);
    line-height: 1;
}

.qc-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--rp-primary-rgb), 0.1), rgba(139, 92, 246, 0.06));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--rp-primary);
    margin-bottom: 1rem;
    transition: var(--rp-transition);
}

.qc-card:hover .qc-card__icon {
    background: linear-gradient(135deg, var(--rp-primary), #8B5CF6);
    color: white;
    transform: scale(1.1);
}

/* =============================================
   LISTINGS PAGE
   ============================================= */
.listings-hero {
    padding-bottom: 1rem !important;
}

.filter-bar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.filter-bar .form-select-sm,
.filter-bar .form-control-sm {
    font-size: 0.85rem;
    border-color: var(--rp-gray-200);
}

.filter-bar .form-label {
    color: var(--rp-gray-500);
    font-size: 0.75rem;
}

.filter-bar .form-check-input:checked {
    background-color: var(--rp-primary);
    border-color: var(--rp-primary);
}

[x-cloak] { display: none !important; }

/* Pagination */
.pagination .page-link {
    color: var(--rp-gray-700);
    border-color: var(--rp-gray-200);
    font-size: 0.85rem;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
}

.pagination .page-link:hover {
    background-color: var(--rp-gray-50);
    color: var(--rp-primary);
}

/* =============================================
   GET A QUOTE PAGE
   ============================================= */

/* Hero */
.quote-hero {
    background: linear-gradient(135deg, var(--rp-primary) 0%, #8B5CF6 60%, #06B6D4 100%);
    color: white;
    padding: 5rem 0 4rem;
}

/* Progress Steps */
.quote-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.quote-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.quote-step.active {
    opacity: 1;
}

.quote-step__num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    background: var(--rp-gray-100);
    color: var(--rp-gray-600);
    transition: all 0.3s ease;
}

.quote-step.active .quote-step__num {
    background: linear-gradient(135deg, var(--rp-primary), #8B5CF6);
    color: white;
    box-shadow: 0 4px 18px rgba(var(--rp-primary-rgb), 0.35);
}

.quote-step.completed .quote-step__num {
    background: #10B981;
    color: white;
}

.quote-step span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rp-gray-600);
}

.quote-step.active span {
    color: var(--rp-primary);
}

.quote-step__line {
    width: 80px;
    height: 3px;
    background: var(--rp-gray-200);
    border-radius: 3px;
    margin: 0 12px;
    margin-bottom: 20px;
    transition: background 0.4s ease;
}

.quote-step__line.active {
    background: linear-gradient(90deg, var(--rp-primary), #8B5CF6);
}

/* Panels */
.quote-panel {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--rp-gray-100);
    overflow: hidden;
    animation: quoteFadeIn 0.35s ease;
}

.quote-panel.active {
    display: block;
}

@keyframes quoteFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quote-panel__header {
    padding: 2rem 2.5rem 1rem;
    border-bottom: 1px solid var(--rp-gray-100);
}

.quote-panel__body {
    padding: 2rem 2.5rem;
}

.quote-panel__footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--rp-gray-100);
    background: var(--rp-gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Toggle Groups (radio as pill buttons) */
.quote-toggle-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quote-toggle {
    cursor: pointer;
    flex: 1;
    min-width: 140px;
}

.quote-toggle input {
    display: none;
}

.quote-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid var(--rp-gray-200);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--rp-gray-600);
    background: white;
    transition: all 0.25s ease;
    text-align: center;
}

.quote-toggle:hover span {
    border-color: var(--rp-primary);
    color: var(--rp-primary);
}

.quote-toggle.active span {
    border-color: var(--rp-primary);
    background: rgba(var(--rp-primary-rgb), 0.06);
    color: var(--rp-primary);
    box-shadow: 0 2px 12px rgba(var(--rp-primary-rgb), 0.12);
}

.quote-toggle-group.three .quote-toggle {
    min-width: 120px;
}

/* Facility Checkboxes */
.facility-check {
    display: block;
    cursor: pointer;
    margin: 0;
}

.facility-check input {
    display: none;
}

.facility-check__box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid var(--rp-gray-200);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--rp-gray-600);
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

.facility-check__box i:first-child {
    font-size: 1.15rem;
    color: var(--rp-gray-400);
    transition: color 0.2s;
}

.facility-check__tick {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rp-primary);
    font-size: 1rem;
}

.facility-check:hover .facility-check__box {
    border-color: var(--rp-primary);
}

.facility-check input:checked + .facility-check__box {
    border-color: var(--rp-primary);
    background: rgba(var(--rp-primary-rgb), 0.05);
    color: var(--rp-primary);
}

.facility-check input:checked + .facility-check__box i:first-child {
    color: var(--rp-primary);
}

.facility-check input:checked + .facility-check__box .facility-check__tick {
    display: block;
}

/* Success State */
.quote-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #34D399);
    animation: quoteSuccessPulse 1.5s ease infinite;
}

.quote-success__icon i {
    font-size: 3rem;
    color: white;
}

@keyframes quoteSuccessPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50%      { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

/* Form Controls Override */
.quote-panel .form-control-lg,
.quote-panel .form-select-lg {
    border-radius: 12px;
    border: 2px solid var(--rp-gray-200);
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-panel .form-control-lg:focus,
.quote-panel .form-select-lg:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 4px rgba(var(--rp-primary-rgb), 0.08);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .quote-hero { padding: 3rem 0 2.5rem; }
    .quote-panel__header { padding: 1.5rem 1.25rem 0.75rem; }
    .quote-panel__body   { padding: 1.5rem 1.25rem; }
    .quote-panel__footer { padding: 1rem 1.25rem; }
    .quote-step__line { width: 40px; margin: 0 6px; }
    .quote-toggle { min-width: 0; }
    .quote-toggle-group.three .quote-toggle { min-width: 0; }
    .facility-check__box { padding: 10px 12px; font-size: 0.82rem; }
}


/* ================================================
   PRICE CALCULATOR PAGE
   ================================================ */

/* Hero */
.calc-hero {
    background: linear-gradient(135deg, var(--rp-primary) 0%, #6D28D9 40%, #0EA5E9 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.calc-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
    border-radius: 50%;
}
.calc-hero .section-tag {
    background: rgba(255,255,255,.15);
    color: #fff;
    backdrop-filter: blur(6px);
}

/* Input Card */
.calc-input-card {
    background: #fff;
    border: 1px solid var(--rp-gray-200, #e5e7eb);
    border-radius: var(--rp-radius-xl, 1.5rem);
    padding: 2rem;
    height: 100%;
}

/* Toggle Row */
.calc-toggle-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.calc-toggle {
    padding: 10px 18px;
    border-radius: 12px;
    border: 2px solid var(--rp-gray-200, #e5e7eb);
    background: #fff;
    color: var(--rp-gray-700, #374151);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rp-transition, all .25s ease);
    flex: 1;
    text-align: center;
    min-width: 0;
}
.calc-toggle:hover {
    border-color: var(--rp-primary);
    color: var(--rp-primary);
}
.calc-toggle.active {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--rp-primary-rgb, 79,70,229), .3);
}

/* Add-on Checkboxes */
.calc-addon {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid var(--rp-gray-200, #e5e7eb);
    transition: var(--rp-transition, all .25s ease);
    font-size: .9rem;
    font-weight: 500;
    margin: 0;
}
.calc-addon:hover {
    border-color: rgba(var(--rp-primary-rgb, 79,70,229), .4);
}
.calc-addon input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rp-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.calc-addon input[type="checkbox"]:checked + span {
    color: var(--rp-primary);
    font-weight: 600;
}
.calc-addon:has(input:checked) {
    border-color: var(--rp-primary);
    background: rgba(var(--rp-primary-rgb, 79,70,229), .04);
}

/* Result Card */
.calc-result-card {
    background: #fff;
    border: 1px solid var(--rp-gray-200, #e5e7eb);
    border-radius: var(--rp-radius-xl, 1.5rem);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Big Total Box */
.calc-total-box {
    background: linear-gradient(135deg, var(--rp-primary) 0%, var(--rp-violet, #8B5CF6) 100%);
    color: #fff;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}
.calc-total-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .8;
    margin-bottom: .5rem;
}
.calc-total-amount {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.calc-total-note {
    display: block;
    font-size: .8rem;
    opacity: .65;
    margin-top: .5rem;
}

/* Pop animation for total */
@keyframes calcPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.calc-pop {
    animation: calcPop .35s ease;
}

/* Breakdown Section */
.calc-breakdown,
.calc-onetime {
    padding: 1.5rem 2rem;
}
.calc-onetime {
    border-top: 1px dashed var(--rp-gray-200, #e5e7eb);
}

/* Individual Row */
.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
    font-size: .92rem;
    transition: var(--rp-transition, all .25s ease);
}
.calc-row:last-child {
    border-bottom: none;
}
.calc-row__label {
    color: var(--rp-gray-600, #4b5563);
}
.calc-row__value {
    font-weight: 600;
    color: var(--rp-gray-800, #1f2937);
    white-space: nowrap;
}

/* Savings Badge */
.calc-savings {
    margin: 0 1.5rem 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(16,185,129,.08) 0%, rgba(16,185,129,.02) 100%);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: 16px;
}
.calc-savings__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10B981, #34D399);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

/* Helper Colors */
.text-violet { color: var(--rp-violet, #8B5CF6) !important; }
.text-pink   { color: #EC4899 !important; }

/* ──── Mobile ──── */
@media (max-width: 768px) {
    .calc-hero { padding: 3rem 0 2.5rem; }
    .calc-total-amount { font-size: 2.25rem; }
    .calc-total-box { padding: 1.5rem; }
    .calc-breakdown, .calc-onetime { padding: 1.25rem 1.25rem; }
    .calc-savings { margin: 0 1rem 1rem; padding: 1rem; }
    .calc-input-card { padding: 1.5rem; }
    .calc-toggle { padding: 8px 10px; font-size: .82rem; }
}