/* ============================================
   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;
    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 {
    background: var(--light);
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.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: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============================================
   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;
}

/* ============================================
   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-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);
}

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

.map-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#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);
}

.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: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.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);
}

/* ============================================
   KPR CALCULATOR
   ============================================ */
.calculator-section {
    background: var(--white);
}

.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: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.calculator-result {
    background: var(--light);
    border-radius: 1rem;
    padding: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: var(--dark);
}

.result-item strong.text-primary {
    font-size: 1.25rem;
}

/* ============================================
   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: var(--white);
}

.testimonial-card {
    background: var(--light);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-rating {
    color: var(--warning);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

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

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

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

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

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

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

.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;
}

.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;
}

.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);
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    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-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;
}

.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);
}

/* ============================================
   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.5rem;
}

.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;
}

@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-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;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar .nav-link {
        color: var(--white) !important;
    }
    
    .megamenu {
        width: auto;
        padding: 1rem;
    }
    
    .hero-content {
        padding: 6rem 0 3rem;
    }
    
    .smart-search-card {
        margin: 0 1rem;
    }
    
    .search-filters .row > div {
        margin-bottom: 0.5rem;
    }
    
    .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;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 2rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .search-tabs {
        justify-content: center;
    }
    
    .search-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .property-filters {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .comparison-container {
        padding: 1rem;
    }
}

/* ============================================
   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);
}
