/* ═══════════════════════════════════════════════════════════
   VASTGOED.LAND — Premium Design System v2.0
   Navy / White / Gold — Bloomberg meets Funda
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Brand palette */
    --vg-navy: #081F3C;
    --vg-navy-light: #1a3a5c;
    --vg-blue: #1463FF;
    --vg-blue-light: #3b82f6;
    --vg-green: #16A34A;
    --vg-green-light: #DCFCE7;
    --vg-green-dark: #166534;
    --vg-gold: #C89B3C;
    --vg-gold-light: #F5E6C8;

    /* Neutrals */
    --vg-bg: #F8FAFC;
    --vg-white: #FFFFFF;
    --vg-text: #111827;
    --vg-text-secondary: #4B5563;
    --vg-text-light: #9CA3AF;
    --vg-border: #E5E7EB;
    --vg-border-light: #F3F4F6;

    /* Typography */
    --vg-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --vg-font-display: "Inter", -apple-system, sans-serif;

    /* Shadows */
    --vg-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --vg-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --vg-shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
    --vg-shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --vg-shadow-glow: 0 0 30px rgba(20, 99, 255, 0.15);

    /* Radius */
    --vg-radius-sm: 8px;
    --vg-radius: 16px;
    --vg-radius-lg: 24px;
    --vg-radius-xl: 32px;

    /* Transitions */
    --vg-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────── */

* {
    box-sizing: border-box;
}

body {
    background: var(--vg-bg);
    font-family: var(--vg-font);
    color: var(--vg-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--vg-blue);
    text-decoration: none;
    transition: color var(--vg-transition);
}
a:hover {
    color: var(--vg-navy);
}

h1, h2, h3, h4 {
    font-family: var(--vg-font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--vg-navy);
    margin: 0 0 16px;
}

p {
    line-height: 1.6;
    color: var(--vg-text-secondary);
}

/* ─── Layout ───────────────────────────────────────────────── */

.vg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.vg-section {
    padding: 64px 0;
}

.vg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.vg-section-header h2 {
    font-size: 28px;
    margin: 0;
}

.vg-section-header a {
    font-size: 14px;
    font-weight: 600;
    color: var(--vg-blue);
}

/* ─── Header ───────────────────────────────────────────────── */

.vastgoed-header {
    background: var(--vg-white);
    border-bottom: 1px solid var(--vg-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.vastgoed-header .vastgoed-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vastgoed-header h1,
.vastgoed-header .vg-site-logo {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1;
    flex-shrink: 0;
}

.vastgoed-header h1 a,
.vastgoed-header .vg-site-logo a {
    color: var(--vg-navy);
    text-decoration: none;
}

.vastgoed-header nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.vastgoed-header nav a {
    color: var(--vg-text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--vg-transition);
}

.vastgoed-header nav a:hover {
    color: var(--vg-navy);
}

.vg-header-cta {
    background: var(--vg-navy);
    color: var(--vg-white) !important;
    padding: 8px 20px;
    border-radius: var(--vg-radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.vg-header-cta:hover {
    background: var(--vg-navy-light);
}

/* Old 768px nav shrink removed — hamburger menu handles mobile nav now */

/* ─── Hero ─────────────────────────────────────────────────── */

.vg-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--vg-navy);
}

.vg-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.vg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,31,60,0.85) 0%, rgba(8,31,60,0.4) 50%, rgba(8,31,60,0.1) 100%);
}

.vg-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.vg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--vg-white);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.vg-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--vg-green);
    border-radius: 50%;
    animation: vg-pulse 2s infinite;
}

@keyframes vg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.vg-hero h1 {
    color: var(--vg-white);
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 16px;
    max-width: 700px;
    letter-spacing: -0.03em;
}

.vg-hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    margin: 0 0 40px;
    max-width: 500px;
    line-height: 1.5;
}

/* ─── Search Bar (Hero) ────────────────────────────────────── */

.vg-search-hero {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 640px;
    box-shadow: var(--vg-shadow-xl);
    align-items: center;
}

.vg-search-hero input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    padding: 16px 20px;
    font-family: var(--vg-font);
    background: transparent;
    color: var(--vg-text);
}

.vg-search-hero input::placeholder {
    color: var(--vg-text-light);
}

.vg-search-btn {
    background: var(--vg-navy);
    color: var(--vg-white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--vg-radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--vg-transition);
    font-family: var(--vg-font);
    white-space: nowrap;
}

.vg-search-btn:hover {
    background: var(--vg-navy-light);
}

/* ─── Popular searches ─────────────────────────────────────── */

.vg-popular {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.vg-popular-label {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
}

.vg-popular a {
    color: var(--vg-white);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--vg-transition);
    backdrop-filter: blur(5px);
}

.vg-popular a:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* ─── Stats bar ────────────────────────────────────────────── */

.vg-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    box-shadow: var(--vg-shadow-lg);
    overflow: hidden;
    margin: -40px auto 0;
    max-width: 1280px;
    position: relative;
    z-index: 10;
}

.vg-stat-item {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--vg-border-light);
}

.vg-stat-item:last-child {
    border-right: none;
}

.vg-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--vg-navy);
    letter-spacing: -0.02em;
}

.vg-stat-label {
    font-size: 13px;
    color: var(--vg-text-light);
    margin-top: 4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .vg-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin: -20px 16px 0;
    }
    .vg-stat-item {
        padding: 20px 16px;
    }
    .vg-stat-number {
        font-size: 24px;
    }
    .vg-hero h1 {
        font-size: 36px;
    }
    .vg-hero-subtitle {
        font-size: 16px;
    }
    .vg-search-hero {
        flex-direction: column;
        padding: 12px;
    }
    .vg-search-hero input {
        width: 100%;
    }
    .vg-search-btn {
        width: 100%;
    }
}

/* ─── Property Cards ───────────────────────────────────────── */

.vg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.vg-property-card {
    display: block;
    background: var(--vg-white);
    border-radius: var(--vg-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--vg-text);
    box-shadow: var(--vg-shadow);
    transition: all var(--vg-transition);
    border: 1px solid var(--vg-border-light);
}

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

.vg-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--vg-border-light);
}

/* Premium placeholder when no photo exists yet */
.vg-card-image.vg-no-photo {
    background: linear-gradient(135deg, var(--vg-navy) 0%, var(--vg-navy-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vg-card-image.vg-no-photo .vg-placeholder-icon {
    width: 56px;
    height: 56px;
    opacity: 0.25;
}

.vg-card-image.vg-no-photo .vg-placeholder-text {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.vg-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* LQIP and the full image must occupy the same frame. Previously the
 * placeholder participated in normal flow and pushed the real image below
 * the card's clipped 240px image area, leaving cards permanently blurred. */
.vg-card-image .vg-lqip,
.vg-card-image .vg-lazy {
    position: absolute;
    inset: 0;
}

.vg-card-image .vg-lqip {
    z-index: 1;
}

.vg-card-image .vg-lazy {
    z-index: 2;
}

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

.vg-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--vg-white);
    color: var(--vg-navy);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--vg-shadow-sm);
}

.vg-card-badge-ai {
    background: var(--vg-green-light);
    color: var(--vg-green-dark);
}

.vg-card-badge-new {
    background: var(--vg-gold-light);
    color: #92660a;
}

.vg-card-badge-drop {
    background: #FEE2E2;
    color: #991B1B;
}

.vg-card-body {
    padding: 24px;
}

.vg-card-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--vg-navy);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.vg-card-address {
    font-size: 16px;
    font-weight: 600;
    color: var(--vg-text);
    margin-bottom: 2px;
}

.vg-card-city {
    font-size: 14px;
    color: var(--vg-text-light);
    margin-bottom: 16px;
}

.vg-card-specs {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--vg-text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--vg-border-light);
}

.vg-card-spec {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vg-card-ai-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vg-green-light);
    color: var(--vg-green-dark);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
}

.vg-card-ai-score svg {
    width: 14px;
    height: 14px;
}

/* ─── City Cards ───────────────────────────────────────────── */

.vg-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 16px;
}

.vg-city-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 210px;
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--vg-text);
    box-shadow: var(--vg-shadow-sm);
    transition: all var(--vg-transition);
    border: 1px solid var(--vg-border);
    text-align: left;
}

.vg-city-card:hover {
    box-shadow: var(--vg-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--vg-blue);
}

.vg-city-card h3 {
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--vg-navy);
}

.vg-city-card-count {
    font-size: 14px;
    color: var(--vg-text-secondary);
    margin-bottom: 12px;
}

.vg-city-card-avg {
    font-size: 13px;
    color: var(--vg-text-light);
}

.vg-city-card-trend {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vg-green);
    background: var(--vg-green-light);
    padding: 4px 10px;
    border-radius: 100px;
}

/* ─── Market Intelligence Cards ────────────────────────────── */

.vg-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vg-intel-card {
    background: var(--vg-white);
    border-radius: var(--vg-radius-lg);
    padding: 32px;
    box-shadow: var(--vg-shadow);
    border: 1px solid var(--vg-border-light);
    transition: all var(--vg-transition);
}

.vg-intel-card:hover {
    box-shadow: var(--vg-shadow-lg);
}

.vg-intel-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--vg-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.vg-intel-icon-blue {
    background: #EFF6FF;
    color: var(--vg-blue);
}

.vg-intel-icon-green {
    background: var(--vg-green-light);
    color: var(--vg-green);
}

.vg-intel-icon-gold {
    background: var(--vg-gold-light);
    color: var(--vg-gold);
}

.vg-intel-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.vg-intel-card p {
    font-size: 14px;
    margin: 0;
}

.vg-intel-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--vg-navy);
    margin: 12px 0 4px;
    letter-spacing: -0.02em;
}

.vg-intel-change {
    font-size: 14px;
    font-weight: 600;
}

.vg-intel-change-up {
    color: var(--vg-green);
}

.vg-intel-change-down {
    color: #DC2626;
}

@media (max-width: 768px) {
    .vg-intelligence-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Why Vastgoed.land Section ────────────────────────────── */

.vg-why {
    background: var(--vg-navy);
    color: var(--vg-white);
    padding: 80px 0;
    margin-top: 64px;
}

.vg-why h2 {
    color: var(--vg-white);
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
}

.vg-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.vg-why-item {
    text-align: center;
}

.vg-why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--vg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.vg-why-item h3 {
    color: var(--vg-white);
    font-size: 20px;
    margin: 0 0 8px;
}

.vg-why-item p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .vg-why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Horizontal layout on mobile: icon left, text right */
    .vg-why-item {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }
    .vg-why-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
        font-size: 22px;
    }
    .vg-why-item h3 {
        font-size: 17px;
        margin: 0 0 4px;
    }
    .vg-why-item p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ─── Property Detail Page ─────────────────────────────────── */

.vg-breadcrumb {
    font-size: 14px;
    color: var(--vg-text-light);
    padding: 20px 0;
}

.vg-breadcrumb a {
    color: var(--vg-text-secondary);
    text-decoration: none;
}

.vg-breadcrumb a:hover {
    color: var(--vg-blue);
}

.vg-breadcrumb span {
    color: var(--vg-text);
    font-weight: 500;
}

/* Breadcrumbs (WHYBLE-2310) — used on /woningen hierarchy pages */
.vg-breadcrumbs {
    font-size: 14px;
    color: var(--vg-text-light);
    padding: 16px 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vg-breadcrumbs a {
    color: var(--vg-text-secondary);
    text-decoration: none;
}

.vg-breadcrumbs a:hover {
    color: var(--vg-blue);
}

.vg-breadcrumbs span {
    color: var(--vg-text);
    font-weight: 500;
}

/* Property header */
.vg-property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.vg-property-header h1 {
    font-size: 36px;
    margin: 0 0 4px;
}

.vg-property-location {
    font-size: 18px;
    color: var(--vg-text-secondary);
    margin: 0;
}

.vg-property-price {
    text-align: right;
}

.vg-property-price .vg-price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--vg-navy);
    letter-spacing: -0.02em;
}

.vg-property-price .vg-price-note {
    font-size: 14px;
    color: var(--vg-text-light);
}

/* Gallery */
.vg-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
    margin-bottom: 40px;
    border-radius: var(--vg-radius-lg);
    overflow: hidden;
}

.vg-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.vg-gallery-item:first-child {
    grid-row: span 2;
}

.vg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.vg-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .vg-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 180px;
    }
    .vg-gallery-item:first-child {
        grid-row: span 1;
        grid-column: span 2;
    }
}

/* Intelligence panels */
.vg-intelligence-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.vg-panel {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 28px;
    box-shadow: var(--vg-shadow);
    border: 1px solid var(--vg-border-light);
}

.vg-panel-label {
    font-size: 13px;
    color: var(--vg-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.vg-panel-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--vg-navy);
    letter-spacing: -0.02em;
}

.vg-panel-value-green {
    color: var(--vg-green);
}

.vg-panel-value-gold {
    color: var(--vg-gold);
}

.vg-panel-sub {
    font-size: 14px;
    color: var(--vg-text-secondary);
    margin-top: 8px;
}
.vg-market-comparison { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.vg-market-comparison span { display:flex; min-width:0; flex-direction:column; gap:3px; padding:10px; border-radius:10px; background:var(--vg-bg); }
.vg-market-comparison small { color:var(--vg-text-light); font-size:10px; font-weight:700; text-transform:uppercase; }
.vg-market-comparison strong { color:var(--vg-navy); font-size:13px; overflow-wrap:anywhere; }
.vg-data-examples { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.vg-data-examples span { padding:5px 8px; border-radius:999px; background:var(--vg-bg); color:var(--vg-text-secondary); font-size:10px; font-weight:700; }

.vg-panel-bar {
    height: 8px;
    background: var(--vg-border-light);
    border-radius: 100px;
    margin-top: 16px;
    overflow: hidden;
}

.vg-panel-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s ease;
}

.vg-panel-bar-fill-green {
    background: var(--vg-green);
}

.vg-panel-bar-fill-gold {
    background: var(--vg-gold);
}

.vg-panel-bar-fill-blue {
    background: var(--vg-blue);
}

@media (max-width: 768px) {
    .vg-intelligence-panels {
        grid-template-columns: 1fr;
    }
}

/* Property layout */
.vg-property-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .vg-property-layout {
        grid-template-columns: 1fr;
    }
}

/* Facts table */
.vg-facts {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 32px;
    box-shadow: var(--vg-shadow);
    margin-bottom: 32px;
}

.vg-facts h2 {
    font-size: 22px;
    margin: 0 0 24px;
}

.vg-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.vg-fact-item {
    padding: 18px;
    border: 1px solid var(--vg-border-light);
    border-radius: 12px;
    background: var(--vg-bg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.vg-fact-icon { flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:#fff; color:var(--vg-blue); box-shadow:0 1px 3px rgba(8,31,60,.08); }
.vg-fact-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.vg-fact-copy { display:flex; min-width:0; flex-direction:column; gap:5px; }
.vg-verified-image-fallback { background-color:#173a5d; background-image:radial-gradient(circle at 78% 22%,rgba(212,164,54,.35),transparent 24%),linear-gradient(135deg,#081f3c 0%,#17466d 56%,#2a607b 100%); }

.vg-fact-label {
    color: var(--vg-text-light);
    font-size: 14px;
}

.vg-fact-value {
    font-weight: 700;
    font-size: 15px;
    line-height:1.35;
    color: var(--vg-text);
    overflow-wrap:anywhere;
}

@media (max-width: 900px) { .vg-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 600px) {
    .vg-facts-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Analysis panel */
.vg-ai-panel {
    background: linear-gradient(135deg, #F0F7FF 0%, #E0F2FE 100%);
    border: 1px solid #BAE6FD;
    border-radius: var(--vg-radius);
    padding: 32px;
    margin-bottom: 32px;
}

.vg-ai-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vg-ai-icon {
    width: 40px;
    height: 40px;
    background: var(--vg-blue);
    border-radius: var(--vg-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vg-white);
    font-size: 20px;
}

.vg-ai-panel h2 {
    font-size: 22px;
    margin: 0;
}

.vg-ai-summary {
    font-size: 18px;
    font-weight: 600;
    color: var(--vg-navy);
    margin-bottom: 24px;
    line-height: 1.5;
}

.vg-ai-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.vg-ai-col h3 {
    font-size: 15px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vg-ai-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vg-ai-col li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.vg-ai-strengths li {
    color: var(--vg-green-dark);
}

.vg-ai-risks li {
    color: #92400E;
}

.vg-ai-confidence {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(186, 230, 253, 0.5);
    font-size: 13px;
    color: var(--vg-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Intelligence insight tags (WHYBLE-2298) */
.vg-ai-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.vg-insight-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(186, 230, 253, 0.15);
    color: var(--vg-blue);
    border: 1px solid rgba(186, 230, 253, 0.3);
}

.vg-confidence-dots {
    display: inline-flex;
    gap: 4px;
}

.vg-confidence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vg-border);
}

.vg-confidence-dot.active {
    background: var(--vg-blue);
}

@media (max-width: 600px) {
    .vg-ai-columns {
        grid-template-columns: 1fr;
    }
}

/* Price history */
.vg-history {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 32px;
    box-shadow: var(--vg-shadow);
    margin-bottom: 32px;
}

.vg-history h2 {
    font-size: 22px;
    margin: 0 0 24px;
}

.vg-timeline {
    position: relative;
    padding-left: 24px;
}

.vg-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--vg-border);
}

.vg-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.vg-timeline-item:last-child {
    padding-bottom: 0;
}

.vg-timeline-dot {
    position: absolute;
    left: -22px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--vg-white);
    border: 3px solid var(--vg-blue);
}

.vg-timeline-dot.drop {
    border-color: var(--vg-green);
}

.vg-timeline-dot.increase {
    border-color: #DC2626;
}

.vg-timeline-date {
    font-size: 13px;
    color: var(--vg-text-light);
    margin-bottom: 2px;
}

.vg-timeline-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--vg-navy);
}

.vg-timeline-change {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}

.vg-timeline-change.drop {
    color: var(--vg-green);
}

.vg-timeline-change.increase {
    color: #DC2626;
}

/* Evidence panel */
.vg-evidence {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 32px;
    box-shadow: var(--vg-shadow);
    margin-bottom: 32px;
}

.vg-evidence h2 {
    font-size: 22px;
    margin: 0 0 8px;
}

.vg-evidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vg-green-light);
    color: var(--vg-green-dark);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.vg-evidence-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vg-evidence-item {
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-sm);
    padding: 16px 20px;
    text-align: center;
    min-width: 140px;
}

.vg-evidence-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--vg-navy);
}

.vg-evidence-label {
    font-size: 12px;
    color: var(--vg-text-light);
    margin-top: 4px;
}

/* Similar properties */
.vg-similar {
    margin-bottom: 32px;
}

.vg-similar h2 {
    font-size: 22px;
    margin: 0 0 24px;
}

/* Sidebar */
.vg-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.vg-lead-box {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 28px;
    box-shadow: var(--vg-shadow-lg);
    border: 1px solid var(--vg-border);
    margin-bottom: 20px;
}

.vg-lead-box h3 {
    font-size: 20px;
    margin: 0 0 4px;
}

.vg-lead-box p {
    font-size: 14px;
    color: var(--vg-text-secondary);
    margin: 0 0 20px;
}

/* Property page checkout CTAs */
.vg-property-actions {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 24px;
    margin-top: 20px;
    box-shadow: var(--vg-shadow);
}
.vg-property-actions h3 {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--vg-text);
}
.vg-property-actions h4 {
    font-size: 16px;
    margin: 0 0 12px;
    color: var(--vg-text);
}
.vg-property-actions .vg-btn {
    margin-bottom: 8px;
}
.vg-action-desc {
    font-size: 13px;
    color: var(--vg-text-secondary);
    margin: 4px 0 16px;
    line-height: 1.5;
}
.vg-action-divider {
    height: 1px;
    background: var(--vg-border);
    margin: 20px 0;
}
.vg-action-row {
    display: flex;
    gap: 8px;
}
.vg-action-row .vg-btn {
    flex: 1;
    margin-bottom: 0;
}

.vg-form input,
.vg-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-sm);
    margin-bottom: 10px;
    font-size: 15px;
    font-family: var(--vg-font);
    transition: border-color var(--vg-transition);
}

.vg-form input:focus,
.vg-form textarea:focus {
    outline: none;
    border-color: var(--vg-blue);
    box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.1);
}

.vg-form textarea {
    resize: vertical;
    min-height: 80px;
}

.vg-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--vg-navy);
    color: var(--vg-white);
    border: none;
    border-radius: var(--vg-radius-sm);
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--vg-font);
    transition: all var(--vg-transition);
    text-align: center;
}

.vg-btn:hover {
    background: var(--vg-navy-light);
    color: var(--vg-white);
    transform: translateY(-1px);
    box-shadow: var(--vg-shadow);
}

.vg-btn-blue {
    background: var(--vg-blue);
}

.vg-btn-blue:hover {
    background: #2563EB;
}

.vg-btn-full {
    width: 100%;
    display: block;
}

.vg-btn-outline {
    background: transparent;
    color: var(--vg-navy);
    border: 2px solid var(--vg-border);
}

.vg-btn-outline:hover {
    border-color: var(--vg-navy);
    background: var(--vg-bg);
}

/* Source link */
.vg-source-box {
    background: var(--vg-bg);
    border-radius: var(--vg-radius);
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--vg-text-light);
}

.vg-source-box a {
    font-weight: 600;
}

/* ─── City Page ────────────────────────────────────────────── */

.vg-city-hero {
    background: var(--vg-navy);
    background-size: cover;
    background-position: center;
    color: var(--vg-white);
    padding: 80px 0 60px;
    border-radius: 0 0 var(--vg-radius-xl) var(--vg-radius-xl);
    margin-bottom: 40px;
    position: relative;
}

.vg-city-hero .vg-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(8,31,60,0.85) 0%, rgba(8,31,60,0.6) 100%);
    border-radius: 0 0 var(--vg-radius-xl) var(--vg-radius-xl);
}

.vg-city-hero .vg-container {
    position: relative;
    z-index: 1;
}

.vg-city-hero h1 {
    color: var(--vg-white);
    font-size: 42px;
    margin: 0 0 8px;
}

.vg-city-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    margin: 0;
}

.vg-city-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.vg-stat-card {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 24px;
    box-shadow: var(--vg-shadow);
    border: 1px solid var(--vg-border-light);
}

.vg-stat-card .vg-stat-label {
    font-size: 13px;
    color: var(--vg-text-light);
    margin-bottom: 8px;
}

.vg-stat-card .vg-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--vg-navy);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .vg-city-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Search Page ──────────────────────────────────────────── */

.vg-search-page {
    padding: 40px 0;
}

.vg-search-page h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

.vg-search-filters-bar {
    background: var(--vg-white);
    border-radius: var(--vg-radius);
    padding: 20px;
    box-shadow: var(--vg-shadow);
    margin-bottom: 32px;
}

.vg-search-main {
    display: flex;
    gap: 32px;
}

.vg-search-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.vg-search-results {
    flex: 1;
}

.vg-filter-group {
    margin-bottom: 24px;
}

.vg-filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vg-text);
    margin-bottom: 8px;
}

.vg-filter-group select,
.vg-filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-sm);
    font-size: 14px;
    font-family: var(--vg-font);
}

@media (max-width: 768px) {
    .vg-search-main {
        flex-direction: column;
    }
    .vg-search-sidebar {
        width: 100%;
    }
}

.vg-results-count {
    font-size: 16px;
    color: var(--vg-text-secondary);
    margin-bottom: 20px;
}

/* ─── Opportunities Page ───────────────────────────────────── */

.vg-opportunity-card {
    border-left: 4px solid var(--vg-green);
}

.vg-card-ppm {
    font-size: 13px;
    color: var(--vg-text-light);
    margin-top: 4px;
}

.vg-card-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vg-green-dark);
    background: var(--vg-green-light);
    padding: 4px 10px;
    border-radius: 100px;
    margin-top: 8px;
}

/* ─── Footer ───────────────────────────────────────────────── */

.vastgoed-footer {
    background: var(--vg-navy);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
    /* No margin-top — navy flows into navy when preceded by .vg-why.
       On white-section pages the color change provides enough separation. */
}

.vastgoed-footer .vg-container {
    max-width: 1280px;
}

.vg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.vg-footer-brand h2 {
    color: var(--vg-white);
    font-size: 24px;
    margin: 0 0 12px;
}

.vg-footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    max-width: 300px;
}

.vg-footer-col h4 {
    color: var(--vg-white);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
}

.vg-footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    padding: 4px 0;
    text-decoration: none;
    transition: color var(--vg-transition);
}

.vg-footer-col a:hover {
    color: var(--vg-white);
}

.vg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.vg-footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.vg-footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.vg-footer-legal a:hover {
    color: var(--vg-white);
}
@media (max-width: 640px) {
    .vg-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .vg-footer-legal {
        justify-content: center;
    }
}

/* Account type selection icons */
.vg-type-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--vg-gold, #c7a45c);
}

/* GDPR banner styles are in the bitbeam-gdpr plugin */

@media (max-width: 768px) {
    .vg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* ─── Floating AI Assistant ────────────────────────────────── */

.vg-ai-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.vg-ai-fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--vg-navy);
    border: none;
    cursor: pointer;
    box-shadow: var(--vg-shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--vg-transition);
    position: relative;
}

.vg-ai-fab-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(20, 99, 255, 0.3);
}

.vg-ai-fab-btn svg {
    width: 28px;
    height: 28px;
    color: var(--vg-white);
}

.vg-ai-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--vg-blue);
    opacity: 0.3;
    animation: vg-fab-pulse 2s infinite;
    pointer-events: none;
}

@keyframes vg-fab-pulse {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.vg-ai-chat {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    background: var(--vg-white);
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow-xl);
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-height: 500px;
}

.vg-ai-chat.open {
    display: flex;
    transform: translateX(0);
    min-height: 360px;
}

/* Compact segmented control: tabs stay on one line, including on phones. */
.vg-lead-actions {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 18px 0;
    border: 1px solid var(--vg-border);
    border-radius: 12px;
    background: var(--vg-bg);
    overflow-x: auto;
    scrollbar-width: none;
}
.vg-lead-actions::-webkit-scrollbar { display: none; }
.vg-lead-action {
    flex: 1 0 auto;
    min-width: 0;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: transparent;
    color: var(--vg-text-secondary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}
.vg-lead-action.is-active {
    background: var(--vg-navy);
    color: var(--vg-white);
    box-shadow: var(--vg-shadow-sm);
}

.vg-ai-chat-header {
    background: var(--vg-navy);
    color: var(--vg-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vg-ai-chat-header h4 {
    color: var(--vg-white);
    margin: 0;
    font-size: 16px;
}

.vg-ai-chat-header span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vg-ai-chat-header span::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--vg-green);
    border-radius: 50%;
}

.vg-ai-chat-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.vg-ai-chat-msg {
    margin-bottom: 16px;
}

.vg-ai-chat-msg-ai {
    background: var(--vg-bg);
    border-radius: var(--vg-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--vg-text);
    line-height: 1.5;
}

.vg-ai-chat-msg-user {
    background: var(--vg-blue);
    color: var(--vg-white);
    border-radius: var(--vg-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-left: 40px;
    line-height: 1.5;
}

.vg-ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vg-ai-suggestion {
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--vg-text-secondary);
    cursor: pointer;
    transition: all var(--vg-transition);
}

.vg-ai-suggestion:hover {
    background: var(--vg-blue);
    color: var(--vg-white);
    border-color: var(--vg-blue);
}

.vg-ai-chat-input {
    padding: 16px;
    border-top: 1px solid var(--vg-border);
    display: flex;
    gap: 8px;
}

.vg-ai-chat-input input {
    flex: 1;
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--vg-font);
    outline: none;
}

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

.vg-ai-chat-input button {
    background: var(--vg-navy);
    color: var(--vg-white);
    border: none;
    border-radius: var(--vg-radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

/* Chat footer — contact/lead button */
.vg-ai-chat-footer {
    display: flex;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--vg-border-light);
}
.vg-ai-chat-lead-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--vg-border);
    color: var(--vg-text-secondary);
    border-radius: var(--vg-radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s;
    width: 100%;
    justify-content: center;
}
.vg-ai-chat-lead-btn:hover {
    background: var(--vg-bg);
    border-color: var(--vg-blue);
    color: var(--vg-blue);
}

/* Chat lead form */
.vg-ai-chat-lead-form {
    padding: 16px;
    border-top: 1px solid var(--vg-border-light);
}
.vg-ai-chat-lead-form h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--vg-text);
    margin: 0 0 12px;
}
.vg-ai-chat-lead-form input,
.vg-ai-chat-lead-form textarea {
    width: 100%;
    background: var(--vg-bg);
    border: 1px solid var(--vg-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--vg-text);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
    resize: none;
}
.vg-ai-chat-lead-form input:focus,
.vg-ai-chat-lead-form textarea:focus {
    outline: none;
    border-color: var(--vg-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.vg-ai-chat-lead-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.vg-ai-chat-lead-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid var(--vg-border);
    color: var(--vg-text-secondary);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
}
.vg-ai-chat-lead-cancel:hover { background: var(--vg-bg); }
.vg-ai-chat-lead-send {
    flex: 2;
    background: var(--vg-blue);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
}
.vg-ai-chat-lead-send:hover { background: #1d4ed8; }

@media (max-width: 480px) {
    .vg-ai-chat {
        width: calc(100vw - 48px);
    }
}

/* ─── AI Chat: Rich Content (cards + actions) ──────────────── */

.vg-ai-chat-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.vg-ai-chat-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--vg-white);
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-sm);
    text-decoration: none;
    color: var(--vg-text);
    transition: all var(--vg-transition);
    cursor: pointer;
}

.vg-ai-chat-card:hover {
    border-color: var(--vg-blue);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.vg-ai-chat-card img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.vg-ai-chat-card-body {
    flex: 1;
    min-width: 0;
}

.vg-ai-chat-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--vg-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-ai-chat-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--vg-text-secondary);
}

.vg-ai-chat-card-price {
    font-weight: 600;
    color: var(--vg-navy);
}

.vg-ai-chat-card-city {
    font-size: 11px;
    color: var(--vg-text-secondary);
    margin-top: 2px;
}

.vg-ai-chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.vg-ai-chat-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--vg-blue);
    color: var(--vg-white);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--vg-transition);
}

.vg-ai-chat-action:hover {
    background: var(--vg-navy);
    color: var(--vg-white);
}

/* ─── Utility ──────────────────────────────────────────────── */

.vg-hidden {
    display: none !important;
}

.vg-text-green { color: var(--vg-green); }
.vg-text-gold { color: var(--vg-gold); }
.vg-text-navy { color: var(--vg-navy); }

.vg-mt-0 { margin-top: 0; }
.vg-mb-0 { margin-bottom: 0; }
.vg-mt-20 { margin-top: 20px; }
.vg-mt-40 { margin-top: 40px; }

/* ─── SEO Page Hero (compact variant) ───────────────────────── */

.vg-hero-seo {
    min-height: 420px;
    display: flex;
    align-items: center;
}

.vg-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* When CTAs stack vertically on small screens, give them bottom margin */
@media (max-width: 600px) {
    .vg-hero-ctas {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    .vg-hero-ctas .vg-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ─── Contact Form ──────────────────────────────────────────── */

.vg-form {
    width: 100%;
}

.vg-contact-card {
    max-width: 600px;
    background: var(--vg-white);
    border-radius: var(--vg-radius-lg);
    padding: 32px;
    box-shadow: var(--vg-shadow);
    border: 1px solid var(--vg-border-light);
}

.vg-form-field {
    margin-bottom: 20px;
}

.vg-form-field:last-of-type {
    margin-bottom: 24px;
}

.vg-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vg-navy);
    margin-bottom: 6px;
}

.vg-form input,
.vg-form select,
.vg-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--vg-border);
    border-radius: var(--vg-radius-sm);
    font-size: 15px;
    font-family: var(--vg-font);
    background: var(--vg-white);
    box-sizing: border-box;
    transition: border-color var(--vg-transition);
}

.vg-form input:focus,
.vg-form select:focus,
.vg-form textarea:focus {
    border-color: var(--vg-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.1);
}

.vg-btn-full {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* ─── Mobile Nav Toggle (Hamburger) ─────────────────────────── */

.vg-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.vg-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--vg-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.vg-nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.vg-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.vg-nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Nav Breakpoint (≤ 900px) — hamburger activates ────────── */
/* Must come AFTER base .vg-nav-toggle { display: none } so it overrides */

@media (max-width: 900px) {
    .vg-nav-toggle {
        display: flex;
    }

    .vastgoed-header .vastgoed-container {
        position: relative;
    }

    .vastgoed-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--vg-white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--vg-border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .vastgoed-header nav.open {
        max-height: 500px;
        padding: 8px 0;
    }

    .vastgoed-header nav a {
        padding: 14px 24px;
        font-size: 15px;
        border-bottom: 1px solid var(--vg-border-light);
        width: 100%;
        box-sizing: border-box;
    }

    .vastgoed-header nav a:last-child {
        border-bottom: none;
    }

    .vg-header-cta {
        margin: 8px 24px;
        text-align: center;
        border-radius: var(--vg-radius-sm);
    }
}

/* ─── Tablet Breakpoint (≤ 1024px) ──────────────────────────── */

@media (max-width: 1024px) {
    .vg-intelligence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vg-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vg-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 24px;
    }
}

/* ─── Mobile Breakpoint (≤ 768px) ───────────────────────────── */

@media (max-width: 768px) {
    /* Hero — smaller on mobile */
    .vg-hero {
        min-height: 380px;
    }
    .vg-hero h1 {
        font-size: 28px !important;
    }
    .vg-hero-subtitle {
        font-size: 15px !important;
    }

    /* Stats bar — 2x2 grid on mobile */
    .vg-stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    .vg-stat-number {
        font-size: 24px !important;
    }

    /* Sections — less padding on mobile */
    .vg-section {
        padding: 40px 0;
    }
    .vg-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .vg-section-header h2 {
        font-size: 22px;
    }

    /* Cards — full width on mobile */
    .vg-intelligence-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .vg-intel-card {
        padding: 24px;
    }

    /* Why section — less padding on mobile, horizontal items */
    .vg-why {
        padding: 48px 0;
        margin-top: 40px;
    }
    .vg-why h2 {
        font-size: 26px;
        margin-bottom: 32px;
    }
    .vg-why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vg-why-item {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }
    .vg-why-icon {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
        font-size: 22px;
    }
    .vg-why-item h3 {
        font-size: 17px;
        margin: 0 0 4px;
    }
    .vg-why-item p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Footer — stack on mobile */
    .vg-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Container — less padding on mobile */
    .vg-container,
    .vastgoed-header .vastgoed-container {
        padding: 0 16px;
    }

    /* Contact form — responsive */
    .vg-form input,
    .vg-form select,
    .vg-form textarea {
        font-size: 16px !important; /* prevents iOS zoom */
    }
    .vg-contact-card {
        padding: 24px;
    }
}

/* ─── Small Mobile (≤ 480px) ────────────────────────────────── */

@media (max-width: 480px) {
    .vg-hero {
        min-height: 320px;
    }
    .vg-hero h1 {
        font-size: 24px !important;
    }
    .vg-hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    .vg-stats-bar {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }
    .vg-stat-number {
        font-size: 20px !important;
    }
    .vg-stat-label {
        font-size: 11px !important;
    }
    .vg-section {
        padding: 32px 0;
    }
    .vg-intel-card {
        padding: 20px;
    }
    .vg-why {
        padding: 40px 0;
    }
    .vg-why h2 {
        font-size: 22px;
    }
}

/* ─── Map section ─────────────────────────────────────────── */
.vg-map-section { padding: 40px 0; background: #f8f9fc; }
.vg-map-section .vg-section-title { text-align: center; font-size: 28px; margin-bottom: 8px; }
.vg-map-section .vg-section-subtitle { text-align: center; color: #666; margin-bottom: 24px; }
.vg-map-page { padding: 30px 0; }
.vg-map-page h1 { font-size: 32px; margin-bottom: 8px; }
.vg-map-subtitle { color: #666; margin-bottom: 20px; }

/* Keep the docked assistant entirely inside every viewport. The theme also
   carries legacy popup rules, so these complete declarations intentionally
   reset both axes instead of relying on partial cascade overrides. */
.vg-ai-chat {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 100vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    transform: translateX(110%);
    z-index: 1000;
}
.vg-ai-chat.open {
    display: flex;
    min-height: 0;
    transform: translateX(0);
}
.vg-ai-chat-body { min-height: 0; }

/* ─── Chat open: shift body content to avoid overlap ─── */
@media (min-width: 769px) {
    body.vg-chat-open #et-main-area,
    body.vg-chat-open #main-content,
    body.vg-chat-open .vg-section,
    body.vg-chat-open .vg-container,
    body.vg-chat-open .et_builder_inner_content {
        padding-right: 380px;
        transition: padding-right 0.3s ease;
    }
}
@media (max-width: 768px) {
    body.vg-chat-open {
        overflow: hidden;
    }
}

/* ─── Account page light theme (force light, override Divi) ─── */
body.vg-account-body,
body:has(.vg-account-section) {
    background: #f8f9fb !important;
    color: #1f2937 !important;
}
.vg-account-section {
    background: #f8f9fb !important;
    color: #1f2937 !important;
    padding: 40px 0 60px;
    min-height: 60vh;
}
.vg-account-section h1,
.vg-account-section h2,
.vg-account-section h3,
.vg-account-section h4 {
    color: #111827 !important;
}
.vg-account-section p,
.vg-account-section span,
.vg-account-section li,
.vg-account-section a {
    color: #4b5563;
}
.vg-account-section a:hover {
    color: #2563eb;
}
.vg-account-section h1,
.vg-account-section h2,
.vg-account-section h3 {
    color: #111827;
}
.vg-account-section p {
    color: #4b5563;
}
.vg-account-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.vg-account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vg-account-title { flex: 1; min-width: 200px; }
.vg-account-title .vg-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}
.vg-account-role-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}
.vg-account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.vg-account-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.vg-account-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}
.vg-account-stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}
.vg-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.vg-account-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.vg-account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.vg-account-card-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.vg-account-card-green { background: linear-gradient(135deg, #059669, #047857); }
.vg-account-card-gold { background: linear-gradient(135deg, #d97706, #b45309); }
.vg-account-card-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.vg-account-card-teal { background: linear-gradient(135deg, #0891b2, #0e7490); }
.vg-account-card-admin { background: linear-gradient(135deg, #1f2937, #111827); }
.vg-account-card-icon { opacity: 0.9; }
.vg-account-card h3 { color: #fff; margin: 0; font-size: 18px; }
.vg-account-card p { color: rgba(255,255,255,0.85); margin: 0; font-size: 14px; }
.vg-account-card-arrow { margin-top: auto; font-size: 20px; }
.vg-account-journey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.vg-account-journey-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.vg-account-journey-panel h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #111827;
}
.vg-account-empty {
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
}
.vg-account-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vg-account-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.vg-account-activity-item:last-child { border-bottom: none; }
.vg-account-activity-icon { flex-shrink: 0; margin-top: 2px; }
.vg-account-activity-label {
    display: block;
    font-size: 14px;
    color: #374151;
}
.vg-account-activity-time {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.vg-account-interest-bars { display: flex; flex-direction: column; gap: 12px; }
.vg-account-interest-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
}
.vg-account-interest-bar-track {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}
.vg-account-interest-bar-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.vg-account-interest-count {
    font-weight: 600;
    color: #6b7280;
    min-width: 24px;
    text-align: right;
}

/* Orders table — checkout history */
.vg-account-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}
.vg-account-orders-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vg-account-orders-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}
.vg-account-orders-table tr:hover td {
    background: #f9fafb;
}
.vg-account-orders-table code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}
.vg-order-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #8b5cf6;
    background: #ede9fe;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}
.vg-order-status {
    font-weight: 600;
    font-size: 13px;
}
.vg-account-admin {
    margin-top: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    color: #e2e8f0;
}
.vg-account-admin .vg-account-journey-header h2 { color: #fff; }
.vg-account-admin .vg-account-journey-header p { color: #94a3b8; }
.vg-account-admin .vg-account-stat { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
.vg-account-admin .vg-account-stat-value { color: #fff; }
.vg-account-admin .vg-account-stat-label { color: #94a3b8; }
.vg-account-admin .vg-account-orders-table th { color: #94a3b8; border-bottom-color: rgba(255,255,255,0.15); }
.vg-account-admin .vg-account-orders-table td { color: #cbd5e1; border-bottom-color: rgba(255,255,255,0.06); }
.vg-account-admin .vg-account-orders-table tr:hover td { background: rgba(255,255,255,0.04); }
.vg-account-admin .vg-account-orders-table code { background: rgba(255,255,255,0.1); color: #e2e8f0; }

/* ─── Currency Selector ─── */
.vg-currency-selector { display: flex; align-items: center; gap: 6px; }
.vg-currency-selector label { font-size: 12px; color: #6b7280; margin-right: 4px; }
.vg-currency-btn { background: transparent; border: 1px solid #d1d5db; border-radius: 6px; padding: 4px 10px; font-size: 13px; color: #4b5563; cursor: pointer; transition: all 0.15s; }
.vg-currency-btn:hover { border-color: #1463FF; color: #1463FF; }
.vg-currency-btn.active { background: #1463FF; border-color: #1463FF; color: #fff; }
.vg-currency-note { font-size: 11px; color: #9ca3af; margin-left: 4px; }
