/* ============================================================
   Base & Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    background: #eef2f7;
    min-height: 100%;
}

a { color: #4a6cf7; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ============================================================
   Top Navbar
   ============================================================ */
.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; color: #0f172a; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 0.9rem;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.nav-link:hover { color: #0f172a; text-decoration: none; }
.nav-link.active { color: #0f172a; font-weight: 600; }

.nav-dropdown-wrap { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }

/* Invisible bridge so moving the mouse into the menu doesn't lose :hover */
.nav-dropdown-wrap::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    display: none;
}
.nav-dropdown-wrap:hover::after { display: block; }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 160px;
    padding: 6px;
    display: none;
    z-index: 200;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover { display: block; }

.dropdown-item {
    display: block;
    padding: 9px 14px;
    font-size: 0.875rem;
    color: #374151;
    border-radius: 6px;
    transition: background 0.1s;
    text-decoration: none;
}
.dropdown-item:hover { background: #f3f4f6; color: #0f172a; text-decoration: none; }
.dropdown-item.active { color: #4a6cf7; font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }

.icon-btn-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #6b7280;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.icon-btn-nav:hover { color: #0f172a; }

.theme-selector-wrap { display: flex; align-items: center; gap: 8px; }
.theme-label { font-size: 0.82rem; color: #9ca3af; }
.theme-select-box {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.82rem;
    color: #374151;
    cursor: pointer;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 500px;
    background: url('/images/site/home-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 32px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: white;
    line-height: 1.15;
    max-width: 560px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 420px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover { background: #3451d1; text-decoration: none; color: white; }

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); text-decoration: none; color: white; }

/* ============================================================
   Partners Strip
   ============================================================ */
.partners-section {
    background: white;
    padding: 48px 32px;
    border-bottom: 1px solid #f3f4f6;
}
.partners-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.partners-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #1a1a2e;
    line-height: 1.4;
    max-width: 360px;
}
.partners-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
}
.partner-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.65;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #374151;
}
.partner-logo svg { flex-shrink: 0; }

/* ============================================================
   Section Common
   ============================================================ */
.section { padding: 72px 32px; }
.section-white { background: white; }
.section-gray { background: #eef2f7; }

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #0f172a;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

/* ============================================================
   Property Search Bar
   ============================================================ */
.search-bar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}
.search-bar input[type="text"] {
    flex: 1;
    min-width: 140px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #374151;
    background: transparent;
}
.search-bar input::placeholder { color: #9ca3af; }
.search-divider { width: 1px; height: 28px; background: #e5e7eb; flex-shrink: 0; }

.search-btn {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}
.search-btn:hover { background: #3451d1; }

.filter-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    color: #6b7280;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.filter-icon-btn:hover { color: #4a6cf7; }

/* ============================================================
   Property Cards Grid
   ============================================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prop-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.prop-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.13); transform: translateY(-2px); }

/* Carousel */
.prop-carousel {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}
.prop-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Promote to its own compositor layer so horizontal-carousel scrolling
       always repaints the image (fixes cards appearing blank until hover). */
    transform: translateZ(0);
    backface-visibility: hidden;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.prop-carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }
.carousel-btn svg { color: #374151; }

.prop-card-body { padding: 16px; }

.prop-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 8px;
}
.prop-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a6cf7;
    cursor: pointer;
    line-height: 1.3;
}
.prop-card-title:hover { text-decoration: underline; }

.prop-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    text-align: right;
}
.prop-card-price-sqm {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: #9ca3af;
}

.prop-card-addr {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.prop-card-stats {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.prop-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.prop-stat-icon { color: #6b7280; }
.prop-stat-val { font-size: 0.85rem; font-weight: 600; color: #0f172a; }
.prop-stat-lbl { font-size: 0.68rem; color: #9ca3af; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination-wrap {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.browse-all-wrap {
    margin-top: 36px;
    text-align: center;
}
.btn-browse-all {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-browse-all:hover { background: #3451d1; text-decoration: none; color: white; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.testimonial-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.testimonial-stars .star { color: #fbbf24; font-size: 1.1rem; }
.testimonial-score { font-size: 0.82rem; color: #9ca3af; margin-left: 6px; }
.testimonial-text { font-size: 0.9rem; color: #374151; line-height: 1.6; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: #0f172a; }

/* ============================================================
   Page Header (breadcrumb pages)
   ============================================================ */
.page-header {
    background: #f5f7fa;
    padding: 48px 32px 40px;
    border-bottom: 1px solid #e5e7eb;
}
.page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 10px;
}
.breadcrumb a { color: #4a6cf7; }
.breadcrumb-sep { color: #d1d5db; }
.page-heading {
    font-size: 2.5rem;
    font-weight: 300;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
}
.show-filters-btn {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    margin-top: 4px;
}
.show-filters-btn:hover { background: #3451d1; }

/* ============================================================
   Properties Listing Page
   ============================================================ */
.properties-page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px;
}

.filters-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: none;
}
.filters-panel.visible { display: block; }
.filters-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }
.filter-label { font-size: 0.78rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================================
   Property Detail
   ============================================================ */
.detail-page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
.detail-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 16/9;
    margin-bottom: 0;
}
.detail-carousel-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.15s;
}
.detail-carousel-btn:hover { background: white; }
.detail-carousel-btn-prev { left: 14px; }
.detail-carousel-btn-next { right: 14px; }

.detail-section {
    background: white;
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.detail-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.detail-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.detail-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.detail-stat-icon { color: #4a6cf7; flex-shrink: 0; }
.detail-stat-val { font-size: 1rem; font-weight: 700; color: #0f172a; }
.detail-stat-lbl { font-size: 0.72rem; color: #9ca3af; }

.detail-description { font-size: 0.9rem; color: #4b5563; line-height: 1.75; }

/* Agent sidebar card */
.agent-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border: 1px solid #f3f4f6;
}
.sidebar-card-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 16px; }

.agent-info-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.agent-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.agent-name-link { font-size: 0.95rem; font-weight: 600; color: #4a6cf7; display: block; margin-bottom: 2px; }
.agent-title-text { font-size: 0.8rem; color: #6b7280; }

.agent-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.85rem;
}
.agent-contact-label { color: #9ca3af; }
.agent-contact-val { color: #0f172a; font-weight: 500; }

/* Request Info Form */
.request-form { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   Agents Page
   ============================================================ */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.agent-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    transition: box-shadow 0.2s;
}
.agent-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.agent-card-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin: 28px 0 28px 28px;
    border: 4px solid #f1f5f9;
    align-self: center;
}
.agent-card-body { padding: 28px; flex: 1; }
.agent-card-name { font-size: 1.3rem; font-weight: 400; color: #0f172a; margin-bottom: 4px; }
.agent-card-title { font-size: 0.85rem; font-weight: 600; color: #0f172a; margin-bottom: 14px; }
.agent-card-bio { font-size: 0.875rem; color: #4b5563; line-height: 1.65; margin-bottom: 16px; }
.learn-more-link { font-size: 0.875rem; color: #4a6cf7; font-weight: 500; }
.learn-more-link:hover { text-decoration: underline; }

/* ============================================================
   About Us Page
   ============================================================ */
.about-hero {
    background: #f5f7fa;
    padding: 80px 32px 60px;
    border-bottom: 1px solid #e5e7eb;
}
.about-hero-inner { max-width: 1280px; margin: 0 auto; }
.about-hero-title { font-size: 3.5rem; font-weight: 300; color: #0f172a; letter-spacing: -0.03em; }

.about-who { background: white; padding: 64px 32px; border-bottom: 1px solid #f3f4f6; }
.about-who-inner { max-width: 1280px; margin: 0 auto; max-width: 600px; }
.about-who h2 { font-size: 1.8rem; font-weight: 300; color: #0f172a; margin-bottom: 20px; }
.about-who p { font-size: 0.95rem; color: #4b5563; line-height: 1.75; }

.about-why { background: #eef2f7; padding: 64px 32px; }
.about-why-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-col-title { font-size: 1.6rem; font-weight: 300; color: #0f172a; margin-bottom: 20px; }
.about-item-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.about-item-icon {
    width: 44px;
    height: 44px;
    background: #eef2f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4a6cf7;
}
.about-item-title { font-size: 0.9rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.about-item-desc { font-size: 0.82rem; color: #6b7280; line-height: 1.5; }

/* ============================================================
   Contact Us Page
   ============================================================ */
.contact-hero { background: #f5f7fa; padding: 80px 32px 60px; border-bottom: 1px solid #e5e7eb; }
.contact-hero-inner { max-width: 1280px; margin: 0 auto; }
.contact-hero-title { font-size: 3.5rem; font-weight: 300; color: #0f172a; letter-spacing: -0.03em; }

.contact-body { padding: 64px 32px; }
.contact-body-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-section-title { font-size: 1.5rem; font-weight: 300; color: #0f172a; margin-bottom: 28px; }
.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #374151;
}
.contact-detail-icon { color: #4a6cf7; flex-shrink: 0; margin-top: 2px; }
.visit-hours { font-size: 0.9rem; color: #374151; line-height: 1.8; }
.visit-note { font-size: 0.85rem; color: #6b7280; font-style: italic; margin-top: 12px; }
.map-placeholder {
    background: #f3f4f6;
    border-radius: 10px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ============================================================
   Newsletter (in footer)
   ============================================================ */
.footer-newsletter {
    background: #3d5a8a;
    padding: 64px 32px;
    text-align: center;
}
.newsletter-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.newsletter-title { font-size: 2.5rem; font-weight: 300; color: white; margin-bottom: 12px; }
.newsletter-sub { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; justify-content: center; flex-wrap: wrap; }
.newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #374151;
}

/* ============================================================
   Footer Bottom
   ============================================================ */
.footer-bottom { background: #1a2035; padding: 48px 32px 24px; }
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.2em; color: white; margin-bottom: 8px; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: background 0.2s;
}
.social-icon:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.footer-col-title { font-size: 0.875rem; font-weight: 600; color: white; margin-bottom: 16px; }
.footer-link { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: color 0.15s; }
.footer-link:hover { color: white; text-decoration: none; }
.footer-contact { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.4); }
.footer-copyright { max-width: 1280px; margin: 20px auto 0; font-size: 0.78rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ============================================================
   Radzen overrides
   ============================================================ */
.rz-paginator { justify-content: center; }
.rz-paginator-element { border-radius: 50% !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-inner { grid-template-columns: 1fr; }
    .detail-page-content { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .properties-grid { grid-template-columns: 1fr; }
    .agents-grid { grid-template-columns: 1fr; }
    .agent-card { flex-direction: column; align-items: center; text-align: center; }
    .agent-card-photo { margin: 28px 0 0; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-why-inner { grid-template-columns: 1fr; }
    .contact-body-inner { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .theme-selector-wrap { display: none; }
}

/* ============================================================
   Auth Modal
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.modal-card {
    background: white;
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: slideUp 0.2s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes slideUp { from { transform:translateY(16px);opacity:0 } to { transform:translateY(0);opacity:1 } }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s;
}
.modal-close:hover { background: #e5e7eb; color: #0f172a; }

.modal-header { margin-bottom: 24px; }
.modal-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.modal-subtitle { font-size: 0.875rem; color: #6b7280; }

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    text-decoration: none;
    margin-bottom: 10px;
}
.google-btn {
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.google-btn:hover { background: #f9fafb; text-decoration: none; color: #374151; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.facebook-btn {
    background: #1877F2;
    border: 1px solid #1877F2;
    color: white;
}
.facebook-btn:hover { background: #166fe5; text-decoration: none; color: white; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.form-group { margin-bottom: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: white;
}
.form-input:focus { border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74,108,247,0.12); }
.form-input::placeholder { color: #9ca3af; }

.form-remember { margin-bottom: 16px; }
.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4b5563;
    cursor: pointer;
}
.remember-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #4a6cf7; cursor: pointer; }

.auth-submit-btn {
    width: 100%;
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.auth-submit-btn:hover { background: #3451d1; }

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-top: 12px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: #6b7280;
}
.auth-switch-btn {
    background: none;
    border: none;
    color: #4a6cf7;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
}
.auth-switch-btn:hover { text-decoration: underline; }

/* ============================================================
   Navbar login button & user menu
   ============================================================ */
.nav-login-btn {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-login-btn:hover { background: #3451d1; }

.nav-user-menu { position: relative; }
.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50px;
    transition: background 0.15s;
}
.nav-user-trigger:hover { background: #f3f4f6; }
.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4a6cf7;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-user-name { font-size: 0.875rem; font-weight: 600; color: #374151; }

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 6px;
    z-index: 200;
}
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 6px;
}
.user-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4a6cf7;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-dropdown-name { font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.user-dropdown-email { font-size: 0.75rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.user-dropdown-divider { height: 1px; background: #f3f4f6; margin: 6px 0; }
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    font-size: 0.875rem;
    color: #374151;
    border-radius: 8px;
    transition: background 0.1s;
    text-decoration: none;
    cursor: pointer;
}
.user-dropdown-item:hover { background: #f3f4f6; text-decoration: none; }
.logout-item { color: #dc2626; }
.logout-item:hover { background: #fef2f2; }

/* ============================================================
   AI Mode Button
   ============================================================ */
.ai-mode-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(102,126,234,0.4);
    position: relative;
    overflow: hidden;
}
.ai-mode-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
}
.ai-mode-btn:hover { opacity: 0.9; box-shadow: 0 4px 20px rgba(102,126,234,0.55); transform: translateY(-1px); }
.ai-mode-btn.ai-mode-active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 12px rgba(245,87,108,0.4);
    animation: ai-pulse 2s infinite;
}
@keyframes ai-pulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(245,87,108,0.4); }
    50% { box-shadow: 0 4px 24px rgba(245,87,108,0.65); }
}

/* ============================================================
   AI Insight Panel
   ============================================================ */
.ai-panel {
    background: white;
    border-radius: 16px;
    border: 2px solid rgba(102,126,234,0.2);
    box-shadow: 0 8px 40px rgba(102,126,234,0.15);
    padding: 28px;
    margin-bottom: 32px;
    animation: ai-panel-in 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ai-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
}
@keyframes ai-panel-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Loading state */
.ai-loading {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 20px;
    justify-content: center;
}
.ai-loading-spinner { flex-shrink: 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.ai-loading-steps { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.step-active { color: #4a6cf7; font-weight: 600; }
.step-done { color: #10b981; font-weight: 600; }
.step-pending { color: #cbd5e1; }
.step-dot { color: #cbd5e1; }

/* Panel header */
.ai-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.ai-panel-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.ai-panel-location { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0; }
.ai-panel-sources { font-size: 0.78rem; color: #9ca3af; }
.ai-panel-close {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    flex-shrink: 0;
    transition: background 0.15s;
}
.ai-panel-close:hover { background: #e5e7eb; color: #0f172a; }

/* Source tabs */
.ai-source-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ai-tab {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-tab:hover { background: #eff6ff; border-color: #bfdbfe; color: #3451d1; }
.ai-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

/* Metrics grid */
.ai-metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.ai-metric-card {
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid transparent;
}
.ai-metric-icon { font-size: 1.3rem; margin-bottom: 6px; }
.ai-metric-val { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 3px; }
.ai-metric-lbl { font-size: 0.68rem; color: #64748b; font-weight: 500; }

.ai-metric-blue   { background: #eff6ff; border-color: #bfdbfe; }
.ai-metric-green  { background: #f0fdf4; border-color: #bbf7d0; }
.ai-metric-purple { background: #f5f3ff; border-color: #ddd6fe; }
.ai-metric-orange { background: #fff7ed; border-color: #fed7aa; }
.ai-metric-teal   { background: #f0fdfa; border-color: #99f6e4; }
.ai-metric-yellow { background: #fefce8; border-color: #fde68a; }
.ai-metric-red    { background: #fef2f2; border-color: #fecaca; }

/* Charts */
.ai-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.ai-chart-card {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 18px;
}
.ai-chart-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-chart-legend { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: #64748b; font-weight: 400; }
.legend-line { display: inline-block; width: 24px; height: 2px; border-radius: 2px; }
.legend-line.solid { background: #4a6cf7; }
.legend-line.dashed { background: none; border-top: 2px dashed #10b981; }

/* Summary row */
.ai-summary-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
}
.ai-summary-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px;
}
.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.ai-source-tag {
    background: white;
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a6cf7;
}
.ai-summary-label { font-size: 0.78rem; color: #9ca3af; }
.ai-summary-text { font-size: 0.9rem; color: #374151; line-height: 1.7; margin-bottom: 14px; }
.ai-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #374151;
    border: 1px solid #e0e7ff;
}

.ai-strengths-risks { display: flex; flex-direction: column; gap: 12px; }
.ai-strengths, .ai-risks { background: #fafbfc; border: 1px solid #f1f5f9; border-radius: 12px; padding: 14px 16px; }
.ai-sr-title { font-size: 0.82rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.ai-sr-item { font-size: 0.8rem; color: #475569; padding: 4px 0; border-bottom: 1px solid #f8fafc; display: flex; align-items: center; gap: 6px; }
.ai-sr-item::before { content: '•'; color: #94a3b8; }
.ai-sr-item:last-child { border-bottom: none; }

/* Risk gauge */
.ai-risk-gauge-row {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 4px;
}
.ai-risk-gauge-label { font-size: 0.8rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.ai-risk-gauge-track {
    height: 12px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    border-radius: 6px;
    position: relative;
    margin-bottom: 6px;
}
.ai-risk-gauge-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    border-radius: 6px;
    background: transparent !important;
}
.ai-risk-gauge-marker {
    position: absolute;
    top: -3px;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #0f172a;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.ai-risk-gauge-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
    margin-bottom: 12px;
}
.ai-disclaimer {
    font-size: 0.72rem;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .ai-metrics-grid { grid-template-columns: repeat(3, 1fr); }
    .ai-charts-row { grid-template-columns: 1fr; }
    .ai-summary-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ai-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Suburb Autocomplete
   ============================================================ */
.autocomplete-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
}

.autocomplete-wrap input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #374151;
}
.autocomplete-wrap input::placeholder { color: #9ca3af; }

.autocomplete-spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.spin-sm { animation: spin 0.8s linear infinite; }

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -44px;
    right: -24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 500;
    overflow: hidden;
    animation: dropIn 0.12s ease;
    min-width: 320px;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.autocomplete-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f9fafb;
}
.autocomplete-item:last-of-type { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.highlighted { background: #f0f4ff; }

.autocomplete-primary {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.autocomplete-secondary {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1px;
}

.autocomplete-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.7rem;
    color: #c4c9d4;
    background: #fafbfc;
    border-top: 1px solid #f3f4f6;
}

.autocomplete-empty {
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

/* ============================================================
   Address-specific AI strip
   ============================================================ */
.ai-address-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.ai-address-kpi {
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}
.aak-icon { font-size: 1.2rem; margin-bottom: 4px; }
.aak-val  { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.aak-unit { font-size: 0.65rem; font-weight: 400; color: #9ca3af; }
.aak-lbl  { font-size: 0.65rem; color: #64748b; font-weight: 500; }

/* ============================================================
   Comparable Sales Table
   ============================================================ */
.comp-sales-table { width: 100%; }

.comp-sales-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 0.5fr 0.5fr 0.8fr 1fr;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.comp-sales-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 0.5fr 0.5fr 0.8fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.82rem;
    color: #374151;
    align-items: center;
    transition: background 0.1s;
}
.comp-sales-row:hover { background: #f8fafc; }
.comp-sales-row:last-child { border-bottom: none; }

.comp-addr  { font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-date  { color: #9ca3af; font-size: 0.78rem; }
.comp-price { font-weight: 700; color: #0f172a; }
.comp-diff  { font-weight: 700; font-size: 0.82rem; text-align: center; padding: 3px 8px; border-radius: 20px; }
.comp-above { background: #f0fdf4; color: #16a34a; }
.comp-below { background: #fef2f2; color: #dc2626; }

@media (max-width: 1024px) {
    .ai-address-strip { grid-template-columns: repeat(4, 1fr); }
    .comp-sales-header, .comp-sales-row { grid-template-columns: 2fr 1fr 1.2fr 0.8fr 1fr; }
    .comp-sales-header span:nth-child(4),
    .comp-sales-header span:nth-child(5),
    .comp-sales-row span:nth-child(4),
    .comp-sales-row span:nth-child(5) { display: none; }
}

/* Cache badge */
.ai-cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    cursor: default;
}

.autocomplete-address-tag {
    flex-shrink: 0;
    background: #eff6ff;
    color: #4a6cf7;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
    margin-left: auto;
    white-space: nowrap;
}

/* AI error / no-data box */
.ai-error-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin-top: 8px;
}
.ai-error-title { font-size: 1rem; font-weight: 700; color: #991b1b; margin-bottom: 2px; }
.ai-error-text  { font-size: 0.85rem; color: #b91c1c; }

/* ============================================================
   Agent Portal — button, banners & modal
   ============================================================ */
.page-header-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

.agent-login-btn {
    background: #0f172a;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.agent-login-btn:hover { background: #1e293b; }

.agent-success-banner {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 14px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #16a34a;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-modal { max-width: 520px; }

.agent-badge-pill {
    display: inline-block;
    background: #eff6ff;
    color: #4a6cf7;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Membership fee banner */
.membership-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: white;
}
.membership-banner-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }
.membership-banner-price { font-size: 1.8rem; font-weight: 800; }
.membership-banner-price span { font-size: 0.85rem; font-weight: 400; color: rgba(255,255,255,0.7); }
.membership-perks { font-size: 0.78rem; color: rgba(255,255,255,0.85); display: flex; flex-direction: column; gap: 4px; }

/* Payment method selector */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
}
.payment-option:hover { border-color: #bfdbfe; background: #f8fafc; }
.payment-option.selected { border-color: #4a6cf7; background: #eff6ff; color: #4a6cf7; }
.payment-option input { display: none; }

.card-fields { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e5e7eb; }
.pay-redirect-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #64748b;
}

.pay-btn { margin-top: 16px; }
.pay-disclaimer { font-size: 0.72rem; color: #9ca3af; text-align: center; margin-top: 10px; line-height: 1.5; }

/* ============================================================
   Sell / My Listings
   ============================================================ */
.sell-signin-prompt, .sell-empty {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sell-prompt-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-top: 14px; }
.sell-prompt-sub { font-size: 0.875rem; color: #94a3b8; }

.sell-card-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.sell-edit-btn, .sell-delete-btn {
    flex: 1;
    padding: 7px 0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.15s;
}
.sell-edit-btn { color: #4a6cf7; }
.sell-edit-btn:hover { background: #eff6ff; border-color: #bfdbfe; }
.sell-delete-btn { color: #dc2626; }
.sell-delete-btn:hover { background: #fef2f2; border-color: #fecaca; }

.listing-modal { max-width: 560px; max-height: 90vh; overflow-y: auto; }
select.form-input { appearance: auto; background: white; cursor: pointer; }
textarea.form-input { resize: vertical; font-family: inherit; }
.form-file { width: 100%; font-size: 0.85rem; padding: 8px 0; }

.listing-img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.listing-thumb { position: relative; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-thumb-remove {
    position: absolute;
    top: 2px; right: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   Detailed Analysis — buttons in panel
   ============================================================ */
.ai-source-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.detail-analysis-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(102,126,234,0.35);
}
.detail-analysis-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.detail-analysis-btn-lg { padding: 13px 26px; font-size: 0.95rem; }

.detail-analysis-cta {
    margin-top: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.detail-cta-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.detail-cta-sub { font-size: 0.85rem; color: #64748b; margin-top: 2px; }

/* ============================================================
   Detailed Analysis page
   ============================================================ */
.analysis-page-content { max-width: 1180px; margin: 0 auto; padding: 32px; }

.analysis-hero {
    background: white;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.analysis-score-ring {
    --score: 0;
    width: 150px; height: 150px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(#4a6cf7 calc(var(--score) * 1%), #eef2f7 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.analysis-score-inner {
    width: 120px; height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.analysis-score-num { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1; }
.analysis-score-lbl { font-size: 0.8rem; color: #94a3b8; }

.analysis-hero-body { flex: 1; min-width: 0; }
.analysis-hero-grade {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.grade-a { background: #f0fdf4; color: #16a34a; }
.grade-b { background: #ecfccb; color: #65a30d; }
.grade-c { background: #fffbeb; color: #d97706; }
.grade-d { background: #fff7ed; color: #ea580c; }
.grade-e { background: #fef2f2; color: #dc2626; }
.analysis-hero-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.analysis-hero-text { font-size: 0.92rem; color: #475569; line-height: 1.65; margin-bottom: 14px; }
.analysis-hero-rec {
    display: flex; align-items: flex-start; gap: 8px;
    background: #f8fafc; border: 1px solid #e0e7ff;
    border-radius: 10px; padding: 12px 16px;
    font-size: 0.88rem; color: #374151;
}

.analysis-metrics {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.analysis-metric {
    background: white;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.am-icon { font-size: 1.3rem; margin-bottom: 4px; }
.am-val { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.am-lbl { font-size: 0.68rem; color: #64748b; margin-top: 2px; }

.analysis-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.analysis-50-header { text-align: center; margin: 36px 0 24px; }
.analysis-50-header h2 { font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.analysis-50-header span { font-size: 0.85rem; color: #94a3b8; }

.analysis-category {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.analysis-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}
.analysis-cat-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.analysis-cat-icon { font-size: 1.2rem; }
.analysis-cat-score { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; color: #475569; white-space: nowrap; }
.analysis-cat-bar { width: 120px; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.analysis-cat-fill { height: 100%; border-radius: 4px; }

.analysis-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
}
.analysis-point { display: flex; gap: 12px; }
.analysis-point-num {
    width: 26px; height: 26px;
    flex-shrink: 0;
    background: #eef2ff;
    color: #4a6cf7;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.analysis-point-body { flex: 1; min-width: 0; }
.analysis-point-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.analysis-point-label { font-size: 0.85rem; font-weight: 600; color: #1e293b; }
.analysis-point-score { font-size: 0.9rem; font-weight: 800; }
.analysis-point-bar { height: 5px; background: #f1f5f9; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.analysis-point-fill { height: 100%; border-radius: 3px; }
.analysis-point-note { font-size: 0.72rem; color: #94a3b8; }

.analysis-sr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.analysis-sr-card { background: white; border-radius: 14px; padding: 20px 24px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.analysis-sr-head { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.analysis-sr-item { font-size: 0.88rem; color: #475569; padding: 7px 0; border-bottom: 1px solid #f8fafc; }
.analysis-sr-item:last-child { border-bottom: none; }
.analysis-sr-strengths { border-top: 3px solid #10b981; }
.analysis-sr-risks { border-top: 3px solid #f59e0b; }

@media (max-width: 1024px) {
    .analysis-metrics { grid-template-columns: repeat(3, 1fr); }
    .analysis-charts-row { grid-template-columns: 1fr; }
    .analysis-points { grid-template-columns: 1fr; }
    .analysis-sr-row { grid-template-columns: 1fr; }
    .analysis-hero { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .analysis-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Category "More details" button + facts panel
   ============================================================ */
.analysis-cat-header-right { display: flex; align-items: center; gap: 16px; }

.cat-details-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4a6cf7;
    border: 1px solid #e0e7ff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.cat-details-btn:hover { background: #4a6cf7; color: white; border-color: #4a6cf7; }
.cat-details-btn.open { background: #4a6cf7; color: white; border-color: #4a6cf7; }

.cat-facts-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    animation: factsIn 0.18s ease;
}
@keyframes factsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.cat-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 10px 12px;
}
.cat-fact-icon { font-size: 1.1rem; flex-shrink: 0; }
.cat-fact-label { font-size: 0.78rem; color: #64748b; flex: 1; min-width: 0; }
.cat-fact-value { font-size: 0.85rem; font-weight: 800; color: #0f172a; white-space: nowrap; }

@media (max-width: 1024px) { .cat-facts-panel { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
    .cat-facts-panel { grid-template-columns: 1fr; }
    .analysis-cat-header-right { flex-direction: column; align-items: flex-end; gap: 8px; }
}

/* ============================================================
   Category details popup modal
   ============================================================ */
.cat-detail-modal { max-width: 600px; max-height: 88vh; overflow-y: auto; }
.cat-detail-head { margin-bottom: 18px; }
.cat-detail-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 10px; }
.cat-detail-sub { font-size: 0.82rem; color: #94a3b8; margin-top: 4px; }

.cat-facts-modal {
    grid-template-columns: repeat(2, 1fr);
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 16px;
}
.cat-detail-foot {
    font-size: 0.72rem;
    color: #94a3b8;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    line-height: 1.5;
}
@media (max-width: 640px) { .cat-facts-modal { grid-template-columns: 1fr; } }

/* Detailed Analysis — AI source selector bar */
.analysis-source-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.analysis-source-label { font-size: 0.85rem; font-weight: 700; color: #475569; white-space: nowrap; }

/* ============================================================
   Home — section heads, featured properties, agent sections
   ============================================================ */
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.section-sub { font-size: 0.9rem; color: #94a3b8; }

/* 4-up property grid for Featured */
.properties-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* NEW badge on featured listings */
.prop-new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #10b981;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 6px;
    z-index: 2;
}

/* ── Featured (sponsored) agents ── */
.featured-agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.featured-agent-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.featured-agent-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.sponsored-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}
.featured-agent-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 24px auto 0;
    display: block;
    border: 4px solid #f1f5f9;
}
.featured-agent-body { padding: 18px; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.featured-agent-name { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.featured-agent-title { font-size: 0.82rem; color: #64748b; margin-bottom: 8px; }
.featured-agent-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fa-rating { color: #f59e0b; font-weight: 700; font-size: 0.85rem; }
.fa-reviews { color: #94a3b8; font-size: 0.78rem; }
.featured-agent-loc { font-size: 0.8rem; color: #64748b; margin-bottom: 10px; }
.featured-agent-stats { display: flex; gap: 16px; font-size: 0.8rem; color: #475569; padding: 10px 0; border-top: 1px solid #f1f5f9; margin-bottom: 12px; }
.featured-agent-stats strong { color: #0f172a; }
.featured-agent-btn {
    margin-top: auto;
    background: #4a6cf7; color: white; border: none;
    padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.featured-agent-btn:hover { background: #3451d1; }

/* ── Meet our agents (review-ranked, like the sample) ── */
.meet-agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.meet-agent-card {
    background: white;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 28px 20px 18px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.meet-agent-photo {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    display: block;
}
.meet-agent-name { font-size: 1.15rem; font-weight: 500; color: #1e293b; margin-bottom: 14px; }
.meet-agent-footer { display: flex; align-items: center; justify-content: center; gap: 10px; }
.meet-agent-title { font-size: 0.82rem; color: #cbd5e1; }
.meet-agent-btn {
    background: #eef2f7; color: #1e293b; border: none;
    padding: 8px 16px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.meet-agent-btn:hover { background: #e0e7ef; }

@media (max-width: 1024px) {
    .properties-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .featured-agents-grid { grid-template-columns: 1fr; }
    .meet-agents-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .properties-grid-4 { grid-template-columns: 1fr; }
    .meet-agents-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Dark mode
   ============================================================ */
.site-wrapper.dark-mode { background: #0f172a; }

.dark-mode .site-main { background: #0f172a; }

/* Navbar */
.dark-mode .top-navbar { background: #1a2235; border-bottom-color: #2a3550; }
.dark-mode .nav-logo { color: #f1f5f9; }
.dark-mode .nav-link { color: #cbd5e1; }
.dark-mode .nav-link:hover, .dark-mode .nav-link.active { color: #fff; }
.dark-mode .nav-dropdown-menu { background: #1e293b; border-color: #334155; }
.dark-mode .dropdown-item { color: #cbd5e1; }
.dark-mode .dropdown-item:hover { background: #334155; color: #fff; }
.dark-mode .icon-btn-nav { color: #cbd5e1; }
.dark-mode .icon-btn-nav:hover { color: #fff; }

/* Sections */
.dark-mode .section-white { background: #1a2235; }
.dark-mode .section-gray { background: #0f172a; }
.dark-mode .partners-section { background: #1a2235; border-bottom-color: #2a3550; }
.dark-mode .section-title,
.dark-mode .partners-text,
.dark-mode .page-heading,
.dark-mode .about-hero-title,
.dark-mode .contact-hero-title { color: #f1f5f9; }
.dark-mode .section-sub,
.dark-mode .card-subtitle,
.dark-mode .breadcrumb { color: #94a3b8; }

/* Page headers / hero band */
.dark-mode .page-header,
.dark-mode .about-hero,
.dark-mode .contact-hero { background: #1a2235; border-bottom-color: #2a3550; }
.dark-mode .about-who { background: #1a2235; border-bottom-color: #2a3550; }
.dark-mode .about-why { background: #0f172a; }
.dark-mode .about-who h2, .dark-mode .about-col-title { color: #f1f5f9; }
.dark-mode .about-who p, .dark-mode .about-item-desc { color: #94a3b8; }

/* Cards (properties, agents, listings, generic) */
.dark-mode .prop-card,
.dark-mode .property-list-item,
.dark-mode .agent-card,
.dark-mode .featured-agent-card,
.dark-mode .meet-agent-card,
.dark-mode .card,
.dark-mode .chart-card,
.dark-mode .testimonial-card,
.dark-mode .about-item-card,
.dark-mode .emp-stat-card,
.dark-mode .rentals-stats-bar,
.dark-mode .detail-section,
.dark-mode .sidebar-card,
.dark-mode .action-card,
.dark-mode .similar-properties,
.dark-mode .agent-card-card,
.dark-mode .ai-chart-card,
.dark-mode .analysis-category,
.dark-mode .analysis-hero,
.dark-mode .analysis-metric,
.dark-mode .analysis-sr-card,
.dark-mode .analysis-source-bar {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.dark-mode .prop-card-title { color: #93c5fd; }
.dark-mode .prop-card-price,
.dark-mode .prop-stat-val,
.dark-mode .meet-agent-name,
.dark-mode .featured-agent-name,
.dark-mode .agent-card-name,
.dark-mode .testimonial-name,
.dark-mode .detail-section-title,
.dark-mode .am-val,
.dark-mode .analysis-hero-title,
.dark-mode .analysis-score-num,
.dark-mode .analysis-cat-title,
.dark-mode .stat-val { color: #f1f5f9; }

.dark-mode .prop-card-addr,
.dark-mode .prop-stat-lbl,
.dark-mode .prop-card-price-sqm,
.dark-mode .featured-agent-title,
.dark-mode .meet-agent-title,
.dark-mode .agent-card-title,
.dark-mode .agent-card-bio,
.dark-mode .testimonial-text,
.dark-mode .am-lbl,
.dark-mode .detail-description { color: #94a3b8; }

.dark-mode .prop-card-stats { border-color: #334155; }

/* Search bar & inputs */
.dark-mode .search-bar { background: #1e293b; border-color: #334155; }
.dark-mode .search-bar input,
.dark-mode .autocomplete-wrap input { color: #f1f5f9; }
.dark-mode .search-divider { background: #334155; }
.dark-mode .autocomplete-dropdown { background: #1e293b; border-color: #334155; }
.dark-mode .autocomplete-item:hover, .dark-mode .autocomplete-item.highlighted { background: #334155; }
.dark-mode .autocomplete-primary { color: #f1f5f9; }

/* Meet-agent footer button */
.dark-mode .meet-agent-btn { background: #334155; color: #e2e8f0; }
.dark-mode .meet-agent-btn:hover { background: #475569; }
.dark-mode .meet-agent-title { color: #64748b; }

/* Filters panel */
.dark-mode .filters-panel { background: #1e293b; border-color: #334155; }
.dark-mode .filter-label { color: #94a3b8; }

/* Footer already dark — keep as-is */

/* Modals */
.dark-mode .modal-card { background: #1e293b; }
.dark-mode .modal-title, .dark-mode .cat-detail-title { color: #f1f5f9; }
.dark-mode .modal-subtitle, .dark-mode .cat-detail-sub { color: #94a3b8; }
.dark-mode .form-input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
.dark-mode .cat-fact { background: #0f172a; border-color: #334155; }
.dark-mode .cat-fact-value { color: #f1f5f9; }
.dark-mode .modal-close { background: #334155; color: #cbd5e1; }

/* Detailed analysis facts/points */
.dark-mode .analysis-point-label, .dark-mode .cat-fact-label { color: #cbd5e1; }
.dark-mode .analysis-point-bar, .dark-mode .analysis-cat-bar, .dark-mode .progress-bar-bg { background: #334155; }
.dark-mode .ai-panel { background: #1e293b; border-color: #334155; }

/* ============================================================
   Detailed Analysis — generate prompt
   ============================================================ */
.analysis-generate-prompt {
    background: white;
    border-radius: 16px;
    padding: 56px 32px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.analysis-gen-title { font-size: 1.4rem; font-weight: 700; color: #0f172a; margin-top: 10px; }
.analysis-gen-sub { font-size: 0.92rem; color: #64748b; max-width: 520px; line-height: 1.6; margin-bottom: 18px; }

/* ── Fact "View" drill-down button ── */
.fact-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef2ff;
    color: #4a6cf7;
    border: 1px solid #e0e7ff;
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.15s;
}
.fact-view-btn:hover { background: #4a6cf7; color: #fff; border-color: #4a6cf7; }

/* ── Places drill-down modal ── */
.places-modal { max-width: 860px; max-height: 90vh; overflow-y: auto; }
.places-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.places-list { display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; }
.place-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
}
.place-pin { font-size: 1rem; }
.place-body { flex: 1; min-width: 0; }
.place-name { font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.place-detail { font-size: 0.72rem; color: #94a3b8; }
.place-dist { font-size: 0.8rem; font-weight: 700; color: #4a6cf7; white-space: nowrap; }
.places-map {
    min-height: 440px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    z-index: 0;
}
.places-map-empty {
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #94a3b8; font-size: 0.85rem;
}

/* Dark mode for new bits */
.dark-mode .analysis-generate-prompt { background: #1e293b; }
.dark-mode .analysis-gen-title { color: #f1f5f9; }
.dark-mode .place-item { background: #0f172a; border-color: #334155; }
.dark-mode .place-name { color: #f1f5f9; }

@media (max-width: 768px) {
    .places-layout { grid-template-columns: 1fr; }
    .places-map { min-height: 300px; }
}

.cat-fact-loading { color: #94a3b8; font-weight: 400; }

/* ============================================================
   Infrastructure projects drill-down modal
   ============================================================ */
.projects-modal { max-width: 640px; max-height: 88vh; overflow-y: auto; }
.projects-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.project-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px 16px;
}
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.project-name { font-size: 0.92rem; font-weight: 700; color: #0f172a; }
.project-status {
    font-size: 0.68rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; white-space: nowrap;
    background: #eef2ff; color: #4a6cf7;
}
.project-status.status-completed { background: #f0fdf4; color: #16a34a; }
.project-status.status-under-construction { background: #fffbeb; color: #d97706; }
.project-status.status-approved { background: #eff6ff; color: #2563eb; }
.project-status.status-planned { background: #f5f3ff; color: #7c3aed; }
.project-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: #64748b; }
.project-cat {
    background: #e2e8f0; color: #475569; font-weight: 600;
    padding: 1px 9px; border-radius: 6px; font-size: 0.72rem;
}
.project-source {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem; color: #94a3b8; margin-top: 8px;
    padding-top: 8px; border-top: 1px solid #eef2f7;
}

.dark-mode .project-item { background: #0f172a; border-color: #334155; }
.dark-mode .project-name { color: #f1f5f9; }

/* Place list item — clickable + selected state */
.place-item { cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.place-item:hover { background: #eef2ff; border-color: #c7d2fe; }
.place-item.selected { background: #eef2ff; border-color: #4a6cf7; box-shadow: 0 0 0 1px #4a6cf7 inset; }
.dark-mode .place-item:hover, .dark-mode .place-item.selected { background: #1e293b; border-color: #4a6cf7; }

/* Map wrapper + reset button overlay */
.places-map-wrap { position: relative; }
.map-reset-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #4a6cf7;
    border: 1px solid #e0e7ff;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.15s, color 0.15s;
}
.map-reset-btn:hover { background: #4a6cf7; color: #fff; border-color: #4a6cf7; }

/* ============================================================
   Featured Properties — single-row sliding carousel
   ============================================================ */
.featured-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.featured-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px;
    flex: 1;
    scrollbar-width: none;          /* Firefox */
}
.featured-track::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.featured-track-item {
    flex: 0 0 calc((100% - 48px) / 3);   /* 3 cards visible, 24px gaps */
    scroll-snap-align: start;
    min-width: 280px;
}
.row-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    color: #4a6cf7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.15s, color 0.15s;
}
.row-arrow:hover { background: #4a6cf7; color: #fff; border-color: #4a6cf7; }
.dark-mode .row-arrow { background: #1e293b; border-color: #334155; }

@media (max-width: 1024px) {
    .featured-track-item { flex: 0 0 calc((100% - 24px) / 2); }   /* 2 visible */
}
@media (max-width: 640px) {
    .featured-track-item { flex: 0 0 88%; }                        /* 1 visible */
}

/* Force carousel cards onto their own layer so slides repaint reliably */
.featured-track-item { transform: translateZ(0); }

/* ============================================================
   Buyer Report
   ============================================================ */
.report-gate { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.report-form { max-width: 1000px; margin: 0 auto; padding: 24px 32px 40px; }
.report-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rf-field { display: flex; flex-direction: column; gap: 5px; }
.rf-field.rf-span2 { grid-column: span 2; }
.rf-field label { font-size: 0.78rem; font-weight: 600; color: #64748b; }
.report-form-actions { display: flex; gap: 12px; margin-top: 20px; }

/* The printable sheet */
.report-sheet {
    max-width: 900px;
    margin: 0 auto 48px;
    background: white;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    color: #1a2235;
}

.rpt-cover { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: white; padding: 40px 44px; }
.rpt-brand { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.rpt-logo { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.18em; }
.rpt-brand-tag { font-size: 0.8rem; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; }
.rpt-address { font-size: 2rem; font-weight: 300; margin-bottom: 10px; letter-spacing: -0.02em; }
.rpt-cover-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 26px; }
.rpt-cover-meta strong { color: white; }
.rpt-cover-stats { display: flex; gap: 28px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.rpt-cs-v { font-size: 1.6rem; font-weight: 700; }
.rpt-cs-l { font-size: 0.72rem; color: rgba(255,255,255,0.6); }

.rpt-section { padding: 26px 44px; border-bottom: 1px solid #f1f5f9; }
.rpt-h2 { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #2563eb; display: inline-block; }

.rpt-value-row { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.rpt-value-num { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1; }
.rpt-value-range { font-size: 0.85rem; color: #64748b; margin-top: 6px; }
.rpt-value-asking { font-size: 0.85rem; font-weight: 700; margin-top: 8px; padding: 4px 12px; border-radius: 20px; display: inline-block; }
.rpt-value-asking.over { background: #fef2f2; color: #dc2626; }
.rpt-value-asking.under { background: #f0fdf4; color: #16a34a; }
.rpt-value-side { flex: 1; min-width: 220px; }
.rpt-kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem; }
.rpt-kv span { color: #64748b; }

.rpt-details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.rpt-d { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; }
.rpt-d span { font-size: 0.72rem; color: #94a3b8; }
.rpt-d strong { font-size: 0.92rem; color: #0f172a; }

.rpt-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.rpt-m { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 10px; padding: 14px; text-align: center; }
.rpt-m-v { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.rpt-m-u { font-size: 0.75rem; font-weight: 400; color: #94a3b8; }
.rpt-m-l { font-size: 0.72rem; color: #64748b; margin-top: 2px; }

.rpt-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rpt-table th { text-align: left; padding: 8px 10px; background: #f8fafc; color: #475569; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rpt-table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; }

.rpt-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rpt-project { background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 10px; padding: 12px 14px; }
.rpt-project-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rpt-project-name { font-weight: 700; font-size: 0.88rem; color: #0f172a; }
.rpt-project-status { font-size: 0.66rem; font-weight: 700; background: #eef2ff; color: #2563eb; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.rpt-project-meta { font-size: 0.76rem; color: #64748b; margin-top: 4px; }
.rpt-project-src { font-size: 0.68rem; color: #94a3b8; margin-top: 4px; }

.rpt-callout { background: #f8fafc; border-left: 3px solid #2563eb; border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 0.88rem; color: #374151; line-height: 1.6; margin-top: 12px; }
.rpt-callout-rec { border-left-color: #16a34a; }

.rpt-footer { background: #0f172a; color: rgba(255,255,255,0.75); padding: 20px 44px; font-size: 0.78rem; }
.rpt-disclaimer { font-size: 0.68rem; color: rgba(255,255,255,0.45); margin-top: 8px; line-height: 1.5; }

@media (max-width: 768px) {
    .report-form-grid { grid-template-columns: repeat(2, 1fr); }
    .rpt-details-grid, .rpt-metrics { grid-template-columns: repeat(2, 1fr); }
    .rpt-projects { grid-template-columns: 1fr; }
}

/* ── Print: only the report sheet, full width, page breaks per section ── */
@media print {
    body * { visibility: hidden; }
    #reportSheet, #reportSheet * { visibility: visible; }
    #reportSheet { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; box-shadow: none; border-radius: 0; }
    .no-print, .top-navbar, .site-footer, .row-arrow { display: none !important; }
    .rpt-section { break-inside: avoid; page-break-inside: avoid; }
    .rpt-cover { break-after: avoid; }
}

/* No focus rectangle on headings (search input gets focus instead) */
h1:focus, h1:focus-visible, .hero-title:focus { outline: none; }

/* ============================================================
   Tier locks (Free / Premium / Agent gating)
   ============================================================ */
.tier-lock, .tier-teaser { position: relative; border-radius: 12px; overflow: hidden; }
.tier-lock-blur, .tier-teaser-blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: 0.55; }
.tier-lock-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 8px; padding: 24px;
    background: linear-gradient(180deg, rgba(248,250,252,0.55) 0%, rgba(248,250,252,0.92) 60%);
}
.tier-lock-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2); color: white;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
    padding: 4px 12px; border-radius: 20px;
}
.tier-lock-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.tier-lock-sub { font-size: 0.85rem; color: #64748b; max-width: 460px; line-height: 1.5; }
.tier-lock-btn {
    margin-top: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2); color: white;
    border: none; padding: 11px 26px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 16px rgba(102,126,234,0.4); transition: transform 0.15s, opacity 0.2s;
}
.tier-lock-btn:hover { transform: translateY(-1px); opacity: 0.94; }
.tier-teaser { min-height: 200px; }

.dark-mode .tier-lock-overlay { background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.92) 60%); }
.dark-mode .tier-lock-title { color: #f1f5f9; }

/* Premium modal banner */
.premium-modal { max-width: 460px; }
.premium-badge-pill {
    display: inline-block; background: linear-gradient(135deg, #667eea, #764ba2); color: white;
    font-size: 0.72rem; font-weight: 800; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px;
}
.premium-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%); color: white;
    border-radius: 12px; padding: 18px 20px; margin-bottom: 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.premium-signin-note { font-size: 0.88rem; color: #64748b; margin-bottom: 14px; text-align: center; }
