/* input(75,24): run-time error CSS1046: Expect comma, found '92'
input(75,30): run-time error CSS1046: Expect comma, found ')' */
/* ============================================
   GMPKLIK - Real Estate Marketplace
   Modern CSS with Bootstrap 5.3 Compatible
   ============================================ */

/* CSS Variables */
:root {
    --primary: #049db5;
    --secondary: #033f46;
    --accent: #06c1dd;
    --light: #f4fbfc;
    --dark: #01292e;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1030;
    background: rgb(18 92 103);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navbar.transparent {
    background: rgba(1, 41, 46, 0.62);
}

.navbar.scrolled {
    background: rgba(1, 41, 46, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

.navbar.scrolled .navbar-brand {
    color: var(--white) !important;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent) !important;
}

.navbar .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.navbar .btn-outline-primary:hover {
    border-color: var(--accent);
    background: rgba(6, 193, 221, 0.16);
    color: var(--white);
}

.navbar .btn-primary {
    box-shadow: 0 6px 16px rgba(4, 157, 181, 0.35);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(6, 193, 221, 0.25);
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

/* Mega Menu */
.has-megamenu {
    position: static !important;
}

.megamenu {
    width: 100%;
    padding: 2rem 0;
    border: none;
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--shadow-xl);
    margin-top: 0 !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.megamenu .dropdown-header {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.megamenu .dropdown-item {
    padding: 0.5rem 0;
    color: var(--gray-600);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.megamenu .dropdown-item:hover {
    color: var(--primary);
    background: transparent;
    padding-left: 0.5rem;
}

.megamenu .dropdown-item i {
    color: var(--primary);
}

.mini-property-card {
    background: var(--light);
    padding: 1rem;
    border-radius: 0.75rem;
}

.mini-property-card img {
    border-radius: 0.5rem;
    height: 120px;
    object-fit: cover;
    width: 100%;
}

.gmp-ad-slot {
    background: var(--light);
    border: 1px dashed #cdd5df;
    border-radius: 0.75rem;
    padding: 0.95rem;
    min-height: 150px;
    display: flex;
    align-items: stretch;
}

.gmp-ad-slot-fallback {
    width: 100%;
    background: linear-gradient(145deg, #ffffff, #f5f7fb);
    border-radius: 0.65rem;
    padding: 0.8rem 0.9rem;
}

.gmp-ad-slot-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b78c5;
    background: #e8f4ff;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.45rem;
}

.gmp-ad-slot-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.gmp-ad-slot-fallback p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.home-hero-ad-slot {
    margin-top: -0.75rem;
}

.marketplace-grid-ad-slot {
    margin-top: 0.25rem;
}

.blog-detail-ad-slot {
    margin-top: 0.35rem;
}

.quick-search-box {
    background: var(--light);
    padding: 1rem;
    border-radius: 0.75rem;
}

/* Backdrop Effect for Mega Menu */
.megamenu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.megamenu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 41, 46, 0.85) 0%, rgba(3, 63, 70, 0.75) 50%, rgba(4, 157, 181, 0.65) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 8rem 0 4rem;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Smart Search Card */
.smart-search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-tab {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-tab.active {
    background: var(--primary);
    color: var(--white);
}

.search-tab:hover:not(.active) {
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
}

.search-input-group {
    position: relative;
    height: 100%;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
}

.search-input-group .form-control,
.search-input-group .form-select {
    padding-left: 2.5rem;
    height: 50px;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.search-input-group .form-control:focus,
.search-input-group .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 157, 181, 0.15);
}

.search-btn {
    height: 50px;
    width: 100%;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-ai-btn {
    border-width: 1px;
    font-weight: 600;
}

.search-ai-btn i {
    font-size: 1rem;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin-bottom: 0.5rem;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(4, 157, 181, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 184, 0, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f4f8fb 100%);
    overflow: hidden;
}

.home-stats-sentinel {
    width: 100%;
    height: 1px;
}

.stats-section-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.stats-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stats-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 800;
    color: var(--dark);
}

.stats-subtitle {
    margin: 0 auto;
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.75;
}

.stat-card-skeleton {
    pointer-events: none;
}

.home-skeleton-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    margin: 0 auto 1rem;
}

.home-skeleton-stat-number {
    width: 68%;
    height: 2.55rem;
    border-radius: 0.85rem;
    margin: 0 auto 0.75rem;
}

.home-skeleton-stat-label {
    width: 56%;
    height: 0.9rem;
    border-radius: 999px;
    margin: 0.4rem auto 0;
}

.home-skeleton-stat-note {
    width: 82%;
    height: 0.78rem;
    border-radius: 999px;
    margin: 0.8rem auto 0;
}

.stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem 1.5rem 1.6rem;
    border-radius: 1.35rem;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(4, 157, 181, 0.08);
    backdrop-filter: blur(10px);
    min-height: 228px;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 1.35rem 1.35rem 0 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.stat-note {
    margin-top: 0.5rem;
    color: var(--gray-500);
    font-size: 0.78rem;
    line-height: 1.55;
    min-height: 2.4rem;
}

.home-stats-alert {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 193, 7, 0.28);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 760px;
}

/* ============================================
   PROPERTY FILTERS
   ============================================ */
.property-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.property-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    font-size: 0.7rem;
}

.btn-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 2;
}

.btn-favorite:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-favorite.active {
    background: var(--danger);
    color: var(--white);
}

.btn-favorite.active i::before {
    content: "\f415";
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: center;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.property-content {
    padding: 1.25rem;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-location i {
    color: var(--primary);
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-features span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.property-features i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.property-footer-actions-only {
    justify-content: flex-end;
}

.property-agent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-agent img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.property-agent span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.property-card-actions {
    align-items: center;
}

.property-card-btn {
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
}

.property-card-btn i {
    font-size: 0.9rem;
    margin: 0 !important;
}

.property-card-btn-outline {
    min-width: 126px;
}

.property-card-btn-primary {
    min-width: 80px;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.map-section-panel {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.map-panel-copy {
    width: 100%;
    max-width: 820px;
    padding: 1.1rem 1.25rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(4, 157, 181, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.map-panel-kicker {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.map-panel-copy h3 {
    margin: 0.85rem 0 0.45rem;
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 700;
}

.map-panel-copy p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

.map-container {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

#propertyMap {
    height: 500px;
    width: 100%;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.map-location-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.12);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(4, 157, 181, 0.25);
    box-shadow: 0 10px 20px rgba(4, 157, 181, 0.08);
}

.map-location-link:hover {
    background: var(--primary);
    color: var(--white);
}

.map-controls button {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-container {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.compare-empty-state {
    max-width: 520px;
    margin: 0 auto;
}

.compare-empty-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(4, 157, 181, 0.14), rgba(255, 184, 0, 0.18));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(4, 157, 181, 0.08);
}

.compare-action-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.compare-action-bar .btn {
    margin: 0 !important;
}

.compare-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    position: relative;
}

.compare-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.compare-card .remove-compare {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.compare-table {
    width: 100%;
    margin-top: 2rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.compare-table td strong,
.compare-table td .text-primary {
    white-space: nowrap;
}

/* ============================================
   KPR CALCULATOR
   ============================================ */
.calculator-section {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.calculator-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.calculator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 110, 253, 0.1);
    color: var(--gray-700);
    font-size: 0.92rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.calculator-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-item i {
    color: var(--success);
    font-size: 1.25rem;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(14px);
}

.calculator-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculator-card-header h3 {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    color: var(--dark);
}

.calculator-card-kicker {
    display: inline-flex;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calculator-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: var(--light);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.calculator-submit-btn {
    min-height: 52px;
}

.calculator-result {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.calculator-result-highlight {
    padding: 1.1rem 1.1rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(13, 110, 253, 0.08);
    margin-bottom: 1rem;
}

.result-highlight-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calculator-result-highlight strong {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    line-height: 1.1;
}

.calculator-result-highlight small {
    display: block;
    margin-top: 0.4rem;
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.6;
}

.calculator-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

.result-item span {
    font-size: 0.86rem;
    color: var(--gray-600);
    font-weight: 600;
}

.result-item strong {
    color: var(--dark);
    font-size: 1.05rem;
}

.result-item-total {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 202, 240, 0.08));
    border-color: rgba(13, 110, 253, 0.12);
}

.stats-story-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.stats-story-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.stats-story-pill i {
    color: var(--primary);
}

.kpr-scenario-showcase {
    display: grid;
    gap: 0.8rem;
    margin: 1.25rem 0 1.4rem;
}

.kpr-scenario-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.14);
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
    transition: all 0.22s ease;
}

.kpr-scenario-chip strong {
    color: var(--dark);
    font-size: 0.98rem;
}

.kpr-scenario-chip span {
    color: var(--gray-600);
    font-size: 0.86rem;
    line-height: 1.5;
}

.kpr-scenario-chip:hover,
.kpr-scenario-chip.active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.08));
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: 0 18px 34px rgba(13, 110, 253, 0.12);
}

.calculator-live-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.live-strip-item {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.live-strip-label {
    display: block;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 0.28rem;
}

.live-strip-item strong {
    color: var(--dark);
    font-size: 0.98rem;
}

.calculator-insight-banner {
    margin: 1rem 0 1.1rem;
    padding: 1rem 1rem 0.95rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.calculator-insight-banner p {
    margin: 0.7rem 0 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.insight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(13, 110, 253, 0.12);
    color: var(--primary);
}

.insight-badge.success {
    background: rgba(25, 135, 84, 0.14);
    color: #146c43;
}

.insight-badge.primary {
    background: rgba(13, 110, 253, 0.12);
    color: var(--primary);
}

.insight-badge.warning {
    background: rgba(255, 193, 7, 0.16);
    color: #9c6b00;
}

@media (max-width: 991.98px) {
    .calculator-live-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .stats-story-strip {
        justify-content: stretch;
    }

    .stats-story-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ============================================
   AGENTS SECTION
   ============================================ */
.agents-section {
    background: var(--light);
}

.agent-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.agent-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.agent-card:hover .agent-image img {
    transform: scale(1.05);
}

.agent-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--success);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.agent-content {
    padding: 1.5rem;
    text-align: center;
}

.agent-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.agent-title {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.agent-stats .stat {
    text-align: center;
}

.agent-stats .number {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.agent-stats .label {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    padding: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.testimonial-card-real {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.testimonial-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.testimonial-role-agen {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

.testimonial-role-buyer,
.testimonial-role-member {
    background: rgba(25, 135, 84, 0.12);
    color: #157347;
}

.testimonial-role-tamu {
    background: rgba(255, 193, 7, 0.16);
    color: #b58105;
}

.testimonial-rating {
    color: var(--warning);
    font-size: 1rem;
    margin-bottom: 0;
    display: flex;
    gap: 0.2rem;
}

.testimonial-headline {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.45;
    color: var(--dark);
    text-align: left;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.8;
    text-align: left;
}

.testimonial-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.testimonial-verified,
.testimonial-source {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 600;
}

.testimonial-verified i {
    color: var(--primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-fallback,
.testimonial-avatar-skeleton {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 56px;
}

.testimonial-author-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #5aa2ff);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    margin-bottom: 0.25rem;
    color: var(--dark);
    text-align: left;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.9rem;
    text-align: left;
}

.testimonial-card-skeleton .home-skeleton {
    border-radius: 0.9rem;
}

.testimonial-empty-state {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.testimonial-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    font-size: 2rem;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    background: linear-gradient(180deg, #f7fafc 0%, #f1f6fb 100%);
}

.blog-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-link:hover {
    color: var(--secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    color: var(--white);
    box-shadow: 0 22px 54px rgba(4, 157, 181, 0.2);
}

.cta-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem;
}

.cta-actions .btn {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background:
        radial-gradient(circle at top left, rgba(4, 157, 181, 0.18), transparent 28%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: var(--white);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.footer-brand-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-cta-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-cta-link-secondary {
    background: transparent;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    border-radius: 1.5rem 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    font-size: 0.7rem;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}

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

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-1px);
}

/* ============================================
   FLOATING AI ASSISTANT
   ============================================ */
.ai-assistant-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
}

.ai-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    font-size: 0.85rem;
    animation: tooltipFloat 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}

.ai-tooltip-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 0.5rem;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
    padding: 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.wishlist-item-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.wishlist-item-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
    font-size: 1.2rem;
}

.wishlist-item-link {
    display: inline-flex;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.wishlist-remove-btn {
    flex-shrink: 0;
}

@keyframes tooltipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ai-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(4, 157, 181, 0.4);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(4, 157, 181, 0.5);
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* AI Chat Panel */
.ai-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.ai-chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.ai-chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.25rem;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.ai-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.ai-bubble {
    background: var(--light);
    padding: 1rem;
    border-radius: 1rem;
    border-top-left-radius: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    max-width: calc(100% - 50px);
}

.ai-bubble p {
    margin-bottom: 0.5rem;
}

.ai-bubble ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.ai-bubble li {
    margin-bottom: 0.25rem;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.user-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-top-right-radius: 0.25rem;
    font-size: 0.9rem;
    max-width: 80%;
}

.ai-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 42px;
}

.ai-typing-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.75);
    animation: aiTyping 1.2s infinite ease-in-out;
}

.ai-typing-bubble span:nth-child(2) {
    animation-delay: 0.18s;
}

.ai-typing-bubble span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes aiTyping {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.55;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.ai-quick-suggestions {
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.ai-suggestion {
    background: var(--light);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ai-suggestion:hover {
    background: var(--primary);
    color: var(--white);
}

.ai-chat-input {
    display: flex;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    gap: 0.75rem;
}

.ai-chat-input input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    outline: none;
}

.ai-chat-input input:focus {
    border-color: var(--primary);
}

.ai-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-input button:hover {
    background: var(--secondary);
}

/* Property Recommendation Card in Chat */
.property-recommendation {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.property-recommendation img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.property-recommendation .info {
    padding: 0.75rem;
}

.property-recommendation .price {
    color: var(--primary);
    font-weight: 600;
}

.property-recommendation .title {
    font-size: 0.85rem;
    color: var(--dark);
    margin: 0.25rem 0;
}

.property-recommendation .location {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 157, 181, 0.4);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-light:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 157, 181, 0.15);
}

.input-group-text {
    background: var(--light);
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    color: var(--gray-600);
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.8rem 0;
        overflow-x: clip;
    }

    .navbar > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding-inline: 1rem;
    }

    .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 64px);
    }

    .brand-logo {
        height: 36px;
    }

    .navbar-toggler {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .navbar-collapse {
        background: rgba(1, 41, 46, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        width: 100%;
        flex-basis: 100%;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar .nav-link {
        color: var(--white) !important;
    }

    .navbar-collapse .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-collapse .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        border-radius: 0.85rem;
    }

    .navbar-collapse .d-flex.align-items-center.gap-2 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-top: 1rem;
        width: 100%;
    }

    .navbar-collapse .btn {
        width: 100%;
        justify-content: center;
    }
    
    .megamenu {
        width: auto;
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .hero-content {
        padding: 6.25rem 0 2.75rem;
    }
    
    .smart-search-card {
        margin: 0;
        padding: 1rem;
        border-radius: 1.15rem;
        box-shadow: 0 18px 42px rgba(1, 41, 46, 0.2);
    }

    .search-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .search-tab {
        width: 100%;
    }
    
    .search-filters .row > div {
        margin-bottom: 0.5rem;
    }

    .section-header {
        gap: 1rem;
    }

    .property-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .property-filters .filter-btn,
    .map-location-link {
        margin: 0;
    }

    .map-location-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .cta-card .btn {
        width: 100%;
        justify-content: center;
        margin-right: 0 !important;
    }
    
    .ai-chat-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 1060;
    }
    
    .ai-assistant-container {
        bottom: 5rem;
        right: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .ai-tooltip {
        display: none !important;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 767.98px) {
    .navbar > .container {
        padding-inline: 0.85rem;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar,
    .hero-section,
    .hero-background,
    .hero-content,
    .hero-content > .container,
    .hero-content .row,
    .smart-search-card,
    .search-filters,
    .search-filters .row {
        max-width: 100%;
        overflow-x: clip;
    }

    .navbar-brand {
        max-width: calc(100% - 4.25rem);
    }

    .brand-logo {
        width: auto;
        max-width: min(160px, 52vw);
        height: 34px;
        object-fit: contain;
        object-position: left center;
    }

    .navbar-toggler {
        width: 48px;
        height: 48px;
        padding: 0.4rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content > .container {
        padding-inline: 1rem;
    }

    .hero-content .row,
    .search-filters .row {
        --bs-gutter-x: 0.75rem;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-content .row > *,
    .search-filters .row > * {
        padding-left: 0;
        padding-right: 0;
    }

    .section-title {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 0.96rem;
        margin-bottom: 1.25rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .smart-search-card {
        padding: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .search-input-group,
    .search-btn {
        min-height: 52px;
    }

    .search-input-group .form-control,
    .search-input-group .form-select,
    .search-btn {
        width: 100%;
        max-width: 100%;
    }

    .search-ai-btn span {
        display: none;
    }

    .search-ai-btn {
        display: none !important;
    }
    
    .stat-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .stats-section-heading {
        margin-bottom: 1.5rem;
    }

    .stats-title {
        font-size: 1.55rem;
        line-height: 1.3;
    }

    .stats-subtitle {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .map-panel-copy {
        padding: 1rem 1.1rem;
    }

    .map-panel-copy h3 {
        font-size: 1.05rem;
    }

    .map-panel-copy p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .home-skeleton-stat-number {
        height: 2.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .stat-note {
        min-height: initial;
        font-size: 0.76rem;
    }

    .property-card,
    .blog-card,
    .cta-card,
    .comparison-container,
    .map-container {
        border-radius: 1rem;
    }

    .property-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .property-card-btn {
        min-height: 38px;
        padding: 0.5rem 0.75rem;
        font-size: 0.84rem;
        border-radius: 0.8rem;
    }

    .property-card-btn-outline {
        min-width: 112px;
    }

    .property-card-btn-primary {
        min-width: 76px;
    }
    
    .cta-card {
        padding: 2rem;
        text-align: center;
    }

    .cta-actions {
        width: 100%;
        justify-content: center;
    }

    .cta-actions .btn {
        width: 100%;
        min-width: 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-cta-links {
        justify-content: center;
    }

    .footer-cta-link {
        width: 100%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .ai-assistant-container {
        right: 0.75rem;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 5.35rem);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .ai-button {
        width: 52px;
        height: 52px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        padding: 5.9rem 0 2.25rem;
    }

    .hero-content > .container {
        padding-inline: 0.85rem;
    }

    .search-tabs {
        justify-content: center;
    }
    
    .search-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .smart-search-card {
        padding: 0.85rem;
        border-radius: 1rem;
    }
    
    .property-filters {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }

    .calculator-card-header,
    .testimonial-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .calculator-result-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-author {
        align-items: center;
    }
    
    .comparison-container {
        padding: 1rem;
    }

    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: var(--white);
}
