/**
 * WoonView Platform CSS
 * Easy customization via CSS variables
 */

/* ============================================
   COLOR SCHEME - WoonView Brand Colors
   Based on WOONVIEW.md documentation
   ============================================ */
:root {
    /* Primary Colors from WoonView Design System */
    --woonview-title: #003366;        /* Main headings, titles */
    --woonview-button: #4CAF50;       /* Primary buttons, CTA */
    --woonview-text: #6b7280;         /* Standard text, body */
    --woonview-background: #a5d5eb;   /* Main app background (light blue) */
    --woonview-card: #ffffff;         /* Card backgrounds */
    
    /* Primary Colors (for compatibility) */
    --woonview-primary: #003366;
    --woonview-primary-dark: #002244;
    --woonview-primary-light: #4A6FA5;
    --woonview-primary-lighter: #BBDEFB;
    
    /* Secondary Colors */
    --woonview-secondary: #FF9800;
    --woonview-secondary-dark: #F57C00;
    --woonview-secondary-light: #FFB74D;
    
    /* Accent Colors */
    --woonview-accent: #4CAF50;
    --woonview-accent-dark: #388E3C;
    --woonview-accent-light: #81C784;
    
    /* Status Colors */
    --woonview-success: #4CAF50;
    --woonview-success-dark: #388E3C;
    --woonview-warning: #ffc107;
    --woonview-warning-dark: #F9A825;
    --woonview-error: #dc3545;
    --woonview-error-dark: #D32F2F;
    --woonview-info: #20B2AA;         /* Teal for informational content */
    --woonview-info-dark: #0288D1;
    
    /* Neutral Colors */
    --woonview-white: #FFFFFF;
    --woonview-black: #000000;
    --woonview-gray-50: #FAFAFA;
    --woonview-gray-100: #F5F5F5;
    --woonview-gray-200: #EEEEEE;
    --woonview-gray-300: #E0E0E0;
    --woonview-gray-400: #BDBDBD;
    --woonview-gray-500: #9E9E9E;
    --woonview-gray-600: #757575;
    --woonview-gray-700: #616161;
    --woonview-gray-800: #424242;
    --woonview-gray-900: #212121;
    
    /* Background Colors */
    --woonview-bg-primary: #f8fafc;      /* Light gray for page backgrounds */
    --woonview-bg-secondary: var(--woonview-gray-50);
    --woonview-bg-tertiary: var(--woonview-gray-100);
    --woonview-card-bg: #ffffff;          /* White for cards */
    --woonview-app-background: #f5f8fa;   /* Main app background */
    
    /* Text Colors */
    --woonview-text-primary: var(--woonview-title);
    --woonview-text-secondary: var(--woonview-text);
    --woonview-text-tertiary: var(--woonview-gray-600);
    --woonview-text-muted: var(--woonview-gray-500);
    --woonview-text-inverse: var(--woonview-white);
    
    /* Border Colors */
    --woonview-border-light: var(--woonview-gray-200);
    --woonview-border-medium: var(--woonview-gray-300);
    --woonview-border-dark: var(--woonview-gray-400);
    
    /* Shadow Colors */
    --woonview-shadow-sm: rgba(0, 0, 0, 0.05);
    --woonview-shadow-md: rgba(0, 0, 0, 0.1);
    --woonview-shadow-lg: rgba(0, 0, 0, 0.15);
    --woonview-shadow-xl: rgba(0, 0, 0, 0.2);

    /* Solid primary CTAs — flat fill + soft elevation (no gradient) */
    --woonview-btn-green-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(46, 125, 50, 0.22);
    --woonview-btn-green-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.07), 0 10px 24px rgba(46, 125, 50, 0.28);
}

/* ============================================
   ENERGY LABEL COLORS (shared: dashboard, properties list, etc.)
   ============================================ */
.energy-A,
.energy-A\+,
.energy-A\+\+,
.energy-A\+\+\+ { background: #22c55e !important; }
.energy-B { background: #84cc16 !important; }
.energy-C { background: #eab308 !important; }
.energy-D { background: #f97316 !important; }
.energy-E { background: #ef4444 !important; }
.energy-F { background: #dc2626 !important; }
.energy-G { background: #991b1b !important; }
.energy-none { background: var(--woonview-border-light, #e2e8f0) !important; }

/* ============================================
   PAGE INTRO (guidance line under nav — no duplicate page title)
   ============================================ */
.woonview-page-lead {
    font-size: 1.0625rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--woonview-gray-800);
    margin: 0;
    max-width: 42rem;
    letter-spacing: -0.012em;
}

.woonview-page-lead strong {
    color: var(--woonview-title);
    font-weight: 600;
}

.woonview-page-lead--callout {
    padding: 0.8rem 1rem 0.85rem 1rem;
    border-left: 3px solid var(--woonview-button);
    background: var(--woonview-bg-primary);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 1px 3px var(--woonview-shadow-sm);
    max-width: min(44rem, 100%);
}

.section-header .woonview-page-lead,
.woonview-page-lead--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 26rem;
}

.woonview-page-lead--center.woonview-page-lead--wide,
.section-header .woonview-page-lead--wide {
    max-width: 38rem;
}

.section-header .woonview-page-lead--callout {
    text-align: left;
}

@media (max-width: 576px) {
    .woonview-page-lead {
        font-size: 1rem;
    }
}

/* ============================================
   TYPOGRAPHY - Easy to customize
   ============================================ */
:root {
    /* Font Family - Lato */
    --woonview-font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --woonview-font-family-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --woonview-font-family-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Font Sizes */
    --woonview-font-size-xs: 0.75rem;      /* 12px */
    --woonview-font-size-sm: 0.875rem;    /* 14px */
    --woonview-font-size-base: 1rem;       /* 16px */
    --woonview-font-size-lg: 1.125rem;     /* 18px */
    --woonview-font-size-xl: 1.25rem;     /* 20px */
    --woonview-font-size-2xl: 1.5rem;      /* 24px */
    --woonview-font-size-3xl: 1.875rem;    /* 30px */
    --woonview-font-size-4xl: 2.25rem;     /* 36px */
    --woonview-font-size-5xl: 3rem;        /* 48px */
    
    /* Font Weights */
    --woonview-font-weight-light: 300;
    --woonview-font-weight-normal: 400;
    --woonview-font-weight-medium: 500;
    --woonview-font-weight-semibold: 600;
    --woonview-font-weight-bold: 700;
    --woonview-font-weight-extrabold: 800;
    
    /* Line Heights */
    --woonview-line-height-tight: 1.25;
    --woonview-line-height-normal: 1.5;
    --woonview-line-height-relaxed: 1.75;
    
    /* Letter Spacing */
    --woonview-letter-spacing-tight: -0.025em;
    --woonview-letter-spacing-normal: 0;
    --woonview-letter-spacing-wide: 0.025em;
    --woonview-letter-spacing-wider: 0.05em;
}

/* ============================================
   SPACING - Easy to customize
   ============================================ */
:root {
    --woonview-spacing-xs: 0.25rem;    /* 4px */
    --woonview-spacing-sm: 0.5rem;     /* 8px */
    --woonview-spacing-md: 1rem;       /* 16px */
    --woonview-spacing-lg: 1.5rem;      /* 24px */
    --woonview-spacing-xl: 2rem;        /* 32px */
    --woonview-spacing-2xl: 3rem;       /* 48px */
    --woonview-spacing-3xl: 4rem;       /* 64px */
}

/* ============================================
   BORDER RADIUS - Easy to customize
   ============================================ */
:root {
    --woonview-radius-sm: 0.25rem;      /* 4px */
    --woonview-radius-md: 0.5rem;       /* 8px */
    --woonview-radius-lg: 0.75rem;      /* 12px */
    --woonview-radius-xl: 1rem;         /* 16px */
    --woonview-radius-2xl: 1.5rem;      /* 24px */
    --woonview-radius-full: 9999px;
}

/* ============================================
   SHADOWS - Easy to customize
   ============================================ */
:root {
    --woonview-shadow-sm: 0 1px 2px 0 var(--woonview-shadow-sm);
    --woonview-shadow-md: 0 4px 6px -1px var(--woonview-shadow-md), 0 2px 4px -1px var(--woonview-shadow-sm);
    --woonview-shadow-lg: 0 10px 15px -3px var(--woonview-shadow-lg), 0 4px 6px -2px var(--woonview-shadow-sm);
    --woonview-shadow-xl: 0 20px 25px -5px var(--woonview-shadow-xl), 0 10px 10px -5px var(--woonview-shadow-md);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--woonview-font-family);
    font-size: var(--woonview-font-size-base);
    font-weight: var(--woonview-font-weight-normal);
    line-height: var(--woonview-line-height-normal);
    color: var(--woonview-text-primary);
    background-color: var(--woonview-app-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--woonview-font-family-heading);
    font-weight: var(--woonview-font-weight-bold);
    line-height: var(--woonview-line-height-tight);
    color: var(--woonview-text-primary);
    margin-top: 0;
    margin-bottom: var(--woonview-spacing-md);
}

h1 { font-size: var(--woonview-font-size-4xl); }
h2 { font-size: var(--woonview-font-size-3xl); }
h3 { font-size: var(--woonview-font-size-2xl); }
h4 { font-size: var(--woonview-font-size-xl); }
h5 { font-size: var(--woonview-font-size-lg); }
h6 { font-size: var(--woonview-font-size-base); }

p {
    margin-top: 0;
    margin-bottom: var(--woonview-spacing-md);
}

a {
    color: var(--woonview-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--woonview-primary-dark);
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--woonview-font-family);
    font-size: var(--woonview-font-size-base);
    font-weight: var(--woonview-font-weight-semibold);
    line-height: var(--woonview-line-height-normal);
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-primary {
    background-color: var(--woonview-button);
    color: white;
    border-color: transparent;
    box-shadow: var(--woonview-btn-green-shadow);
}

.btn-primary:hover {
    background-color: var(--woonview-success-dark);
    transform: translateY(-1px);
    box-shadow: var(--woonview-btn-green-shadow-hover);
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--woonview-font-size-sm);
    border-radius: 8px;
}

.btn-secondary {
    background: white;
    color: var(--woonview-title);
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--woonview-button);
    color: var(--woonview-button);
    text-decoration: none;
}

.btn-outline-primary {
    color: var(--woonview-title);
    border-color: var(--woonview-title);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--woonview-title);
    color: white;
    text-decoration: none;
}

.btn-success {
    background-color: var(--woonview-success);
    color: white;
    border-color: transparent;
    box-shadow: var(--woonview-btn-green-shadow);
}

.btn-success:hover {
    background-color: var(--woonview-success-dark);
    transform: translateY(-1px);
    box-shadow: var(--woonview-btn-green-shadow-hover);
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--woonview-error), var(--woonview-error-dark));
    color: white;
    border-color: transparent;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--woonview-card-bg);
    border: 1px solid var(--woonview-border-light);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: var(--woonview-spacing-lg);
    margin-bottom: var(--woonview-spacing-lg);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding-bottom: var(--woonview-spacing-md);
    margin-bottom: var(--woonview-spacing-md);
    border-bottom: 1px solid var(--woonview-border-light);
}

.card-title {
    font-size: var(--woonview-font-size-xl);
    font-weight: var(--woonview-font-weight-bold);
    color: var(--woonview-title);
    margin: 0;
}

/* Property details tab: keep card from growing with price inputs */
.property-details-card {
    max-width: 100%;
    overflow: hidden;
}

.property-details-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.property-details-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.property-details-table td {
    min-width: 0;
}

.property-detail-input-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.property-detail-price-input {
    width: 100%;
    max-width: 120px;
    min-width: 0;
    text-align: right;
    padding: 0.35rem 0.5rem;
    font-size: var(--woonview-font-size-sm);
    height: auto;
}

.property-detail-input-group .btn {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: var(--woonview-font-size-sm);
}

@media (max-width: 576px) {
    .property-detail-price-input {
        max-width: 100px;
    }
}

/* ============================================
   JOURNEY STEP CARD (wizard / comparisons sidebar)
   ============================================ */
.journey-page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.journey-page-layout > .journey-page-main {
    min-width: 0;
}

.journey-page-layout > .journey-page-aside {
    min-width: 0;
    position: sticky;
    top: 1rem;
}

@media (max-width: 991px) {
    .journey-page-layout {
        grid-template-columns: 1fr;
    }
    .journey-page-layout > .journey-page-aside {
        position: static;
    }
}

.journey-stepcard {
    padding: 0;
}

.journey-stepcard .card-header {
    padding: 1.25rem 1.5rem 0.5rem;
}

.journey-stepcard .card-body {
    padding: 1rem 1.5rem 1.25rem;
}

.journey-stepcard .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.journey-stepcard-subtitle {
    color: var(--woonview-text);
    font-size: 0.875rem;
    margin: 0;
}

.journey-stepcard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.journey-stepcard-list::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: var(--woonview-border-light);
    border-radius: 2px;
}

.journey-stepcard-item {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.journey-stepcard-item + .journey-stepcard-item {
    margin-top: 0.25rem;
}

.journey-stepcard-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--woonview-card-bg);
    border: 2px solid var(--woonview-border-light);
    color: var(--woonview-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
    transition: all 0.2s ease;
}

.journey-stepcard-item.is-done .journey-stepcard-marker {
    background: var(--woonview-button);
    border-color: var(--woonview-button);
    color: #fff;
}

.journey-stepcard-item.is-active .journey-stepcard-marker {
    background: #fff;
    border-color: var(--woonview-button);
    color: var(--woonview-button);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

.journey-stepcard-item.is-skipped .journey-stepcard-marker {
    background: var(--woonview-card-bg);
    border-color: var(--woonview-border-light);
    border-style: dashed;
    color: var(--woonview-text);
    opacity: 0.9;
}

.journey-stepcard-body {
    padding-top: 4px;
}

.journey-stepcard-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--woonview-text);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.journey-stepcard-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.journey-stepcard-pill--done {
    background: rgba(76, 175, 80, 0.12);
    color: var(--woonview-button);
}

.journey-stepcard-pill--active {
    background: var(--woonview-button);
    color: #fff;
}

.journey-stepcard-pill--skipped {
    background: rgba(0, 0, 0, 0.06);
    color: var(--woonview-text-secondary, var(--woonview-text));
}

.journey-stepcard-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--woonview-title);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
}

.journey-stepcard-item.is-pending .journey-stepcard-title {
    color: var(--woonview-text);
}

.journey-stepcard-item.is-skipped .journey-stepcard-title {
    color: var(--woonview-text);
}

.journey-stepcard-title i {
    color: var(--woonview-button);
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}

.journey-stepcard-item.is-pending .journey-stepcard-title i {
    color: var(--woonview-border-light);
}

.journey-stepcard-item.is-skipped .journey-stepcard-title i {
    color: var(--woonview-border-light);
}

.journey-stepcard-desc {
    font-size: 0.82rem;
    color: var(--woonview-text);
    line-height: 1.45;
}

.journey-stepcard-item.is-pending .journey-stepcard-desc {
    opacity: 0.75;
}

.journey-stepcard-video-wrap {
    padding-top: 0;
}

.journey-stepcard-video {
    position: relative;
    border-radius: 12px;
    border: 1px dashed var(--woonview-border-light);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.06), rgba(76, 175, 80, 0.02));
    padding: 0.9rem 1rem;
}

.journey-stepcard-video-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.journey-stepcard-video-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--woonview-button);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.85;
}

.journey-stepcard-video-title {
    font-weight: 700;
    color: var(--woonview-title);
    font-size: 0.9rem;
}

.journey-stepcard-video-meta {
    color: var(--woonview-text);
    font-size: 0.78rem;
}

/* Locked/blocked state card used on vergelijken / bezichtigen when prerequisites not met. */
.journey-locked-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.journey-locked-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.12);
    color: var(--woonview-button);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.journey-locked-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--woonview-title);
    margin: 0;
}

.journey-locked-lead {
    color: var(--woonview-text);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    max-width: 560px;
}

.journey-locked-progress {
    width: 100%;
    max-width: 460px;
    margin-bottom: 1.25rem;
    text-align: left;
}

.journey-locked-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    color: var(--woonview-text);
    margin-bottom: 0.35rem;
}

.journey-locked-progress-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-size: 0.72rem;
}

.journey-locked-progress-count strong {
    color: var(--woonview-button);
    font-size: 1rem;
}

.journey-locked-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--woonview-border-light);
    overflow: hidden;
}

.journey-locked-progress-fill {
    height: 100%;
    background: var(--woonview-button);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.journey-locked-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   SUSTAINABILITY TAB (property detail)
   ============================================ */
.sustainability-tab-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.sustainability-tab-left {
    min-width: 0;
}

.sustainability-stats-wrap {
    margin-top: 1.5rem;
}

.sustainability-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sustainability-regenerate-form {
    margin-top: 1rem;
}

.sustainability-regenerate-btn {
    width: 100%;
}

.sustainability-info-cards {
    margin-top: 2rem;
}

.sustainability-tab-right {
    min-width: 0;
}

.sustainability-measures-card {
    max-width: 100%;
    overflow: hidden;
}

.sustainability-measures-intro {
    margin: 0.5rem 0 0 0;
    color: var(--woonview-text);
    font-size: 0.875rem;
}

/* PDF download + tip (Energie tab) */
.sustainability-report-footer-wrap {
    padding-top: 2rem !important;
}

.sustainability-report-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem 1.25rem;
}

.sustainability-report-footer-actions {
    flex: 0 0 auto;
}

.sustainability-report-download-btn {
    white-space: nowrap;
}

.sustainability-report-tip {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 1rem;
    background: var(--woonview-bg-primary);
    border: 1px solid var(--woonview-border-light);
    border-radius: 8px;
    border-left: 3px solid var(--woonview-button);
    box-shadow: 0 1px 2px rgba(0, 51, 102, 0.06);
}

.sustainability-report-tip-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.22);
    color: var(--woonview-warning-dark);
    font-size: 1.05rem;
    line-height: 1;
}

.sustainability-report-tip-body {
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--woonview-text);
}

.sustainability-report-tip-lead {
    margin: 0 0 0.5rem 0;
}

.sustainability-report-tip-meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--woonview-text);
    opacity: 0.92;
}

.sustainability-report-tip-meta a {
    font-weight: 600;
    color: var(--woonview-button);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sustainability-report-tip-meta a:hover {
    color: var(--woonview-title);
}

/* Keep button + tip on one row; only tighten spacing on narrow viewports */
@media (max-width: 576px) {
    .sustainability-report-footer {
        gap: 0.75rem 0.85rem;
    }

    .sustainability-report-tip {
        padding: 0.65rem 0.75rem;
    }

    .sustainability-report-tip-body {
        font-size: 0.8125rem;
    }

    .sustainability-report-tip-meta {
        font-size: 0.75rem;
    }
}

/* Sort controls: desktop = table headers; mobile = bar (thead hidden on small screens) */
.sustainability-mobile-sort-bar {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1rem 0;
    padding: 0.65rem 0.75rem;
    background: var(--woonview-bg-primary);
    border: 1px solid var(--woonview-border-light);
    border-radius: 8px;
}

.sustainability-mobile-sort-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--woonview-title);
    margin-right: 0.25rem;
}

/* Mobile toolbar: full chip-style buttons (when .sustainability-mobile-sort-bar is present) */
.sustainability-mobile-sort-bar .sustainability-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--woonview-title);
    background: transparent;
    border: 1px solid var(--woonview-border-light);
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.2;
}

.sustainability-mobile-sort-bar .sustainability-sort-btn:hover,
.sustainability-mobile-sort-bar .sustainability-sort-btn:focus-visible {
    border-color: var(--woonview-button);
    color: var(--woonview-button);
    outline: none;
}

/* Table header: labels look like original plain <th> text; only the arrow is interactive */
.sustainability-thead-row .sustainability-th-inner {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 1.25rem;
}

.sustainability-thead-row .sustainability-th-inner--start {
    justify-content: flex-start;
}

.sustainability-thead-row .sustainability-th-inner--end {
    justify-content: flex-end;
}

.sustainability-thead-row .sustainability-th-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--woonview-title);
    line-height: 1.25;
}

.sustainability-thead-row .sustainability-sort-btn--arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0.2rem 0.35rem;
    min-width: 1.6rem;
    min-height: 1.6rem;
    font: inherit;
    line-height: 1;
    color: var(--woonview-title);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.9;
}

.sustainability-thead-row .sustainability-sort-btn--arrow:hover,
.sustainability-thead-row .sustainability-sort-btn--arrow:focus-visible {
    opacity: 1;
    color: var(--woonview-button);
    border-color: var(--woonview-border-light);
    background: rgba(0, 51, 102, 0.06);
    outline: none;
}

.sustainability-thead-row .sustainability-sort-btn--arrow .sustainability-sort-icon {
    font-size: 0.7rem;
}

@media (min-width: 769px) {
    .sustainability-mobile-sort-bar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .sustainability-mobile-sort-bar {
        display: flex;
    }
}

.sustainability-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sustainability-measures-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.sustainability-measures-table th,
.sustainability-measures-table td {
    padding: 0.5rem 0.65rem;
}

.sustainability-thead-row th {
    background: var(--woonview-bg-primary);
    border-bottom: 2px solid var(--woonview-border-light);
    font-weight: 600;
    color: var(--woonview-title);
    font-size: 0.8125rem;
}

.sustainability-th-maatregel {
    text-align: left;
}

.sustainability-th-investering,
.sustainability-th-eur,
.sustainability-th-energie {
    text-align: right;
    white-space: nowrap;
}

.sustainability-measures-table tbody tr {
    border-bottom: 1px solid var(--woonview-border-light);
}

.sustainability-td-investering,
.sustainability-td-eur,
.sustainability-td-energie {
    text-align: right;
}

/* Besparing/jaar (€) column: all values green and bold */
.sustainability-td-eur,
.sustainability-td-eur span,
.sustainability-td-eur div {
    color: var(--woonview-success) !important;
    font-weight: 600;
}

.sustainability-tfoot-row {
    background: var(--woonview-bg-primary);
    border-top: 2px solid var(--woonview-border-light);
}

.sustainability-tfoot-row td {
    font-weight: 700;
    color: var(--woonview-title);
    font-size: 0.875rem;
}

.sustainability-tfoot-value {
    text-align: right;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .sustainability-tab-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile: card layout with Besparing/jaar (energie) then Besparing/jaar (€) */
@media (max-width: 768px) {
    .sustainability-table-wrap {
        overflow-x: visible;
    }

    .sustainability-measures-table {
        min-width: 0;
        display: block;
    }

    .sustainability-measures-table thead {
        display: none;
    }

    .sustainability-measures-table tbody {
        display: block;
    }

    .sustainability-tbody-row {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        border-bottom: 1px solid var(--woonview-border-light);
        padding: 0.65rem 0;
        gap: 0;
    }

    .sustainability-tbody-row-alt {
        background: var(--woonview-bg-primary);
    }

    .sustainability-tbody-row td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.35rem 0;
        border: none;
        font-size: 0.8125rem;
    }

    .sustainability-tbody-row td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--woonview-title);
        flex-shrink: 0;
    }

    .sustainability-td-maatregel {
        flex-direction: column;
        align-items: stretch;
    }

    /* Hide "Maatregel" label and show value as larger title */
    .sustainability-td-maatregel::before {
        display: none;
    }

    .sustainability-td-maatregel,
    .sustainability-td-maatregel div {
        font-size: 1.0625rem;
        font-weight: 700;
        color: var(--woonview-title);
    }

    .sustainability-td-investering,
    .sustainability-td-eur,
    .sustainability-td-energie {
        justify-content: flex-end;
    }

    /* Order: 1 Maatregel, 2 Investering, 3 → row 4 (energie), 4 → row 3 (€) */
    .sustainability-td-maatregel { order: 1; }
    .sustainability-td-investering { order: 2; }
    .sustainability-td-energie { order: 3; }
    .sustainability-td-eur { order: 4; }

    .sustainability-measures-table tfoot {
        display: block;
    }

    .sustainability-tfoot-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.65rem 0 0;
        margin-top: 0.25rem;
        border-top: 2px solid var(--woonview-border-light);
    }

    .sustainability-tfoot-row td {
        display: block;
        padding: 0.35rem 0;
        border: none;
    }

    .sustainability-tfoot-eur,
    .sustainability-tfoot-energie {
        display: none !important;
    }

    .sustainability-tfoot-value {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .sustainability-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--woonview-spacing-lg);
}

.form-label {
    display: block;
    font-size: var(--woonview-font-size-sm);
    font-weight: var(--woonview-font-weight-medium);
    color: var(--woonview-text-secondary);
    margin-bottom: var(--woonview-spacing-xs);
}

.form-control {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: var(--woonview-font-family);
    font-size: var(--woonview-font-size-base);
    line-height: var(--woonview-line-height-normal);
    color: var(--woonview-text-primary);
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 52px;
}

/* Select elements */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 44px;
    cursor: pointer;
}

select.form-control::-ms-expand {
    display: none;
}

/* Date/Time inputs */
input[type="datetime-local"].form-control,
input[type="date"].form-control,
input[type="time"].form-control {
    height: 52px;
}

/* Number inputs */
input[type="number"].form-control {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Textarea */
textarea.form-control {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--woonview-button);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-control::placeholder {
    color: var(--woonview-text-muted);
}

/* Form control hover state */
.form-control:hover:not(:focus) {
    border-color: #cbd5e1;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--woonview-spacing-lg);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--woonview-text-muted);
}

.mt-1 { margin-top: var(--woonview-spacing-sm); }
.mt-2 { margin-top: var(--woonview-spacing-md); }
.mt-3 { margin-top: var(--woonview-spacing-lg); }
.mt-4 { margin-top: var(--woonview-spacing-xl); }

.mb-1 { margin-bottom: var(--woonview-spacing-sm); }
.mb-2 { margin-bottom: var(--woonview-spacing-md); }
.mb-3 { margin-bottom: var(--woonview-spacing-lg); }
.mb-4 { margin-bottom: var(--woonview-spacing-xl); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: white;
    border-bottom: 1px solid var(--woonview-border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: var(--woonview-spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: var(--woonview-font-size-xl);
    font-weight: var(--woonview-font-weight-bold);
    color: var(--woonview-title);
    text-decoration: none;
}

.navbar-brand:hover {
    text-decoration: none;
    color: var(--woonview-title);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--woonview-spacing-lg);
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--woonview-title);
    text-decoration: none;
    font-weight: var(--woonview-font-weight-medium);
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    /* A menu item is one word as far as the reader is concerned. Without this,
       two-word labels ("Knowledge base", "About us") broke across two lines in
       the logged-in nav, which carries more items than the public one and so
       has less room per item. The underline indicator below assumes a single
       line too. */
    white-space: nowrap;
}

/* Underline indicator: grows on hover, stays put on the current page. Colour
   alone was doing all the work of saying "you are here", which is easy to miss
   and invisible to anyone who can't distinguish the green from the navy. */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--woonview-button);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--woonview-button);
    text-decoration: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--woonview-button);
    font-weight: var(--woonview-font-weight-bold);
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* The greyed-out guest items are deliberately not clickable destinations, so
   they should not advertise themselves with the underline. */
.nav-link--guest-locked::after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .nav-link::after { transition: none; }
}

/* Navbar inner layout (brand + menu) */
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-brand-text {
    font-family: var(--woonview-font-family-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Hamburger: hidden on desktop */
.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--woonview-border-light);
    border-radius: var(--woonview-radius-md);
    color: var(--woonview-title);
    cursor: pointer;
    font-size: 1.25rem;
}

.navbar-toggle:hover {
    border-color: var(--woonview-button);
    color: var(--woonview-button);
}

.navbar-toggle-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

/* Desktop: menu row with centered nav + right auth */
.navbar-menu {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    margin-left: var(--woonview-spacing-lg);
    position: relative;
}

/* Centred with auto margins rather than position:absolute. Absolute positioning
   takes the menu out of the flow, so it cannot push against the auth block on its
   right and simply runs over it: at 992px the two overlapped by 74px, and even at
   1280px there was only 30px of clearance. Auto margins centre it while it still
   occupies space, so the two groups can never collide. */
.navbar-nav-center {
    display: flex;
    gap: 1.5rem;
    margin-inline: auto;
    min-width: 0;
}

.navbar-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Between the mobile breakpoint and roughly 1200px every item still has to fit on
   one row, so buy room by tightening the gaps rather than letting things collide. */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav-center,
    .navbar-nav-right {
        gap: 1rem;
    }
}

.nav-account-wrap {
    position: relative;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--woonview-spacing-xl) 0;
}

.main-content--landing {
    padding: 0 !important;
}

/* Footer */
.site-footer {
    background-color: var(--woonview-title);
    color: white;
    padding: var(--woonview-spacing-xl) 0;
    margin-top: var(--woonview-spacing-3xl);
}

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

.site-footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--woonview-font-size-sm);
}

.site-footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
    font-size: var(--woonview-font-size-sm);
}

.site-footer-link:hover {
    color: var(--woonview-button);
}

/* ============================================
   NAVBAR & FOOTER – MOBILE
   ============================================ */
@media (max-width: 991px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-top: var(--woonview-spacing-sm);
        flex-direction: column;
        align-items: stretch;
        background: var(--woonview-card-bg);
        border-radius: var(--woonview-radius-md);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border: 1px solid var(--woonview-border-light);
        padding: var(--woonview-spacing-md);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s;
    }

    .navbar-menu.is-open {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav-center,
    .navbar-nav-right {
        position: static;
        transform: none;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--woonview-border-light);
    }

    .navbar-nav-right {
        border-bottom: none;
    }

    .navbar-nav-center li,
    .navbar-nav-right li {
        border-bottom: 1px solid var(--woonview-border-light);
    }

    .navbar-nav-right li:last-child {
        border-bottom: none;
    }

    .navbar-menu .nav-link,
    .navbar-menu .nav-account-trigger {
        display: block;
        padding: 0.75rem 1rem;
        min-height: 44px;
        box-sizing: border-box;
    }

    /* In the hamburger the items are full-width rows with their own dividers,
       so the underline indicator would read as a second divider. Mark the
       current page with a left bar instead. */
    .navbar-menu .nav-link::after {
        display: none;
    }

    .navbar-menu .nav-link.active {
        box-shadow: inset 3px 0 0 var(--woonview-button);
        background: var(--wv-accent-tint, rgba(76, 175, 80, 0.08));
    }

    .navbar-menu .nav-account-wrap {
        display: block;
    }

    /* Hide the collapsible trigger — show account items flat in the hamburger */
    .navbar-menu .nav-account-trigger {
        display: none;
    }

    /* Always expand the account dropdown inside the hamburger menu */
    .navbar-menu .nav-account-menu,
    .navbar-menu .nav-account-menu[hidden] {
        display: block !important;
        position: static;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        max-height: none;
        overflow: visible;
    }

    /* Style account items the same as nav links */
    .navbar-menu .nav-account-item {
        display: block;
        padding: 0.75rem 1rem;
        min-height: 44px;
        box-sizing: border-box;
        border-bottom: 1px solid var(--woonview-border-light);
    }

    .navbar-menu li:last-child .nav-account-item {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .site-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .site-footer-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .site-footer {
        padding: var(--woonview-spacing-lg) 0;
    }

    .main-content {
        padding: var(--woonview-spacing-lg) 0;
        min-height: calc(100vh - 180px);
    }
}

/* ============================================
   HOMEPAGE / LANDING PAGE STYLES
   ============================================ */

/* Landing page specific overrides */
body.landing-page main {
    padding: 0 !important;
}

body.landing-page {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background-image: url("../img/wvp/hero.a8799358b468.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.1) 0%, rgba(0, 51, 102, 0.05) 100%);
}

.hero-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 12px;
    font-family: var(--woonview-font-family-heading);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--woonview-text);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-hero-primary {
    background-color: var(--woonview-button);
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--woonview-btn-green-shadow);
}

.btn-hero-primary:hover {
    background-color: var(--woonview-success-dark);
    transform: translateY(-1px);
    box-shadow: var(--woonview-btn-green-shadow-hover);
    color: white;
    text-decoration: none;
}

.btn-hero-secondary {
    background: white;
    color: var(--woonview-title);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--woonview-title);
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: var(--woonview-title);
    color: white;
    text-decoration: none;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--woonview-button);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--woonview-btn-green-shadow);
}

.trust-badge i {
    font-size: 0.9rem;
}

/* Accent Bars */
.accent-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--woonview-secondary), var(--woonview-button));
}

/* Section Label */
.section-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.2));
    color: var(--woonview-button);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-header.text-center {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 0.75rem;
    font-family: var(--woonview-font-family-heading);
    text-align: center;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--woonview-button);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--woonview-text);
    line-height: 1.6;
    text-align: center;
}

/* ============================================
   JOURNEY SECTION - Step Process
   ============================================ */
.journey-section {
    background: white;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.journey-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.journey-step {
    position: relative;
    background: #f8fafc;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.journey-step:hover {
    background: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--woonview-button);
}

.journey-step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--woonview-button), #388E3C);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.journey-step-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--woonview-button);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.journey-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 8px;
    font-family: var(--woonview-font-family-heading);
}

.journey-step-description {
    font-size: 0.9rem;
    color: var(--woonview-text);
    line-height: 1.6;
    margin: 0;
}

.journey-cta {
    text-align: center;
}

/* ============================================
   APP SECTION - iPhone App Showcase
   ============================================ */
.app-section {
    background: linear-gradient(135deg, #f5f8fa 0%, #e8f5e9 100%);
    padding: 80px 20px;
}

.app-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-text {
    padding-right: 20px;
}

.app-text .section-label {
    margin-bottom: 16px;
}

.app-text .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.app-description {
    font-size: 1.1rem;
    color: var(--woonview-text);
    line-height: 1.7;
    margin-bottom: 32px;
}

.app-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.app-features-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.app-features-list li i {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--woonview-button);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.app-features-list li div {
    display: flex;
    flex-direction: column;
}

.app-features-list li strong {
    font-size: 1rem;
    color: var(--woonview-title);
    margin-bottom: 4px;
}

.app-features-list li span {
    font-size: 0.9rem;
    color: var(--woonview-text);
    line-height: 1.5;
}

.app-download {
    display: flex;
    gap: 16px;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--woonview-title);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
    color: white;
    text-decoration: none;
}

.app-store-badge img {
    height: 44px;
}

.app-store-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-store-fallback i {
    font-size: 1.5rem;
}

/* Phone Mockup */
.app-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    background: white;
    border-radius: 32px;
    height: 100%;
    overflow: hidden;
}

.phone-screen-app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    vertical-align: top;
}

.phone-app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    background: linear-gradient(135deg, var(--woonview-button), #388E3C);
    color: white;
    padding: 50px 20px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-property {
    flex: 1;
    padding: 20px;
}

.preview-image {
    width: 100%;
    height: 160px;
    background-image: url("../img/wvp/hero.a8799358b468.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.preview-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.preview-details {
    padding: 0 4px;
}

.preview-address {
    font-weight: 700;
    color: var(--woonview-title);
    font-size: 1rem;
    margin-bottom: 4px;
}

.preview-city {
    color: var(--woonview-text);
    font-size: 0.9rem;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.preview-action {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--woonview-button), #388E3C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

/* ============================================
   SERVICES SECTION - Expert Services
   ============================================ */
.services-section {
    background: white;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-green:hover {
    border-color: var(--woonview-button);
}

.service-blue:hover {
    border-color: var(--woonview-title);
}

.service-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.service-green .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.2));
    color: var(--woonview-button);
}

.service-blue .service-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(0, 51, 102, 0.2));
    color: var(--woonview-title);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 12px;
    font-family: var(--woonview-font-family-heading);
}

.service-description {
    font-size: 1rem;
    color: var(--woonview-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--woonview-text);
}

.service-green .service-benefits li i {
    color: var(--woonview-button);
}

.service-blue .service-benefits li i {
    color: var(--woonview-title);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.service-green .service-link {
    color: var(--woonview-button);
}

.service-blue .service-link {
    color: var(--woonview-title);
}

.service-link:hover {
    gap: 12px;
    text-decoration: none;
}

/* ============================================
   STATS SECTION - Social Proof
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--woonview-title) 0%, #002244 100%);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    font-family: var(--woonview-font-family-heading);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   CTA SECTION - Updated
   ============================================ */
.cta-section {
    background: #f8fafc;
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 16px;
    font-family: var(--woonview-font-family-heading);
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--woonview-text);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--woonview-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-note i {
    color: var(--woonview-button);
}

/* Legacy: Features and How sections (kept for other pages) */
.features-section {
    background: white;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s;
}

.feature-card:hover {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    color: var(--woonview-button);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 12px;
    font-family: var(--woonview-font-family-heading);
}

.feature-description {
    color: var(--woonview-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.how-section {
    background: #f5f8fa;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--woonview-button), #388E3C);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 10px;
    font-family: var(--woonview-font-family-heading);
}

.step-description {
    color: var(--woonview-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: white;
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 16px;
    font-family: var(--woonview-font-family-heading);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--woonview-text);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background-color: var(--woonview-button);
    color: white;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--woonview-btn-green-shadow);
}

.btn-cta-primary:hover {
    background-color: var(--woonview-success-dark);
    transform: translateY(-1px);
    box-shadow: var(--woonview-btn-green-shadow-hover);
    color: white;
    text-decoration: none;
}

.btn-cta-secondary {
    background: white;
    color: var(--woonview-title);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    border-color: var(--woonview-button);
    color: var(--woonview-button);
    text-decoration: none;
}

/* Footer accent */
.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--woonview-secondary), var(--woonview-button), var(--woonview-title));
}

/* Welcome Section (for logged in users) */
.welcome-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f8fa 0%, #e8f5e9 100%);
}

.welcome-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    /* Journey section tablet */
    .journey-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* App section tablet */
    .app-content {
        gap: 40px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--woonview-spacing-md);
    }
    
    h1 { font-size: var(--woonview-font-size-3xl); }
    h2 { font-size: var(--woonview-font-size-2xl); }
    h3 { font-size: var(--woonview-font-size-xl); }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Homepage responsive */
    .hero-card {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    /* Journey section mobile */
    .journey-section {
        padding: 40px 16px;
    }

    .journey-section .section-header {
        margin-bottom: 1.5rem;
    }

    .journey-timeline {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 24px;
    }

    .journey-step {
        padding: 14px 16px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        border-radius: 12px;
    }

    .journey-step:hover {
        transform: none;
    }

    .journey-step-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
        font-size: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .journey-step-content {
        flex: 1;
        min-width: 0;
    }

    .journey-step-number {
        margin-bottom: 2px;
        font-size: 0.7rem;
    }

    .journey-step-title {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .journey-step-description {
        font-size: 0.82rem;
        line-height: 1.4;
        margin: 0;
    }
    
    /* App section mobile */
    .app-section {
        padding: 60px 20px;
    }
    
    .app-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .app-text {
        padding-right: 0;
        order: 2;
    }
    
    .app-text .section-title {
        text-align: center;
    }
    
    .app-text .section-label {
        display: block;
        text-align: center;
    }
    
    .app-description {
        text-align: center;
    }
    
    .app-visual {
        order: 1;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 36px;
        padding: 10px;
    }
    
    .phone-mockup::before {
        width: 80px;
        height: 24px;
        top: 16px;
    }
    
    .phone-screen {
        border-radius: 26px;
    }
    
    .preview-header {
        padding: 40px 16px 16px;
        font-size: 1rem;
    }
    
    .preview-image {
        height: 120px;
    }
    
    .app-download {
        justify-content: center;
    }
    
    /* Services section mobile */
    .services-section {
        padding: 60px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    /* Stats section mobile */
    .stats-section {
        padding: 48px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-note {
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.toast {
    background: var(--woonview-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    width: 100%;
}

.toast i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--woonview-text);
}

.toast-close {
    background: none;
    border: none;
    color: var(--woonview-text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

.toast-close:hover {
    opacity: 1;
}

.toast-close i {
    font-size: 0.875rem;
}

/* Toast Types */
.toast-success {
    border-left-color: var(--woonview-success);
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
}

.toast-success i {
    color: var(--woonview-success);
}

.toast-error {
    border-left-color: var(--woonview-error);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.toast-error i {
    color: var(--woonview-error);
}

.toast-warning {
    border-left-color: var(--woonview-warning);
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.toast-warning i {
    color: var(--woonview-warning);
}

.toast-info {
    border-left-color: var(--woonview-info);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.toast-info i {
    color: var(--woonview-info);
}

/* Default toast (no tag) */
.toast:not([class*="toast-"]) {
    border-left-color: var(--woonview-info);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.toast:not([class*="toast-"]) i {
    color: var(--woonview-info);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .toast {
        transform: translateX(100vw);
    }
    
    .toast.show {
        transform: translateX(0);
    }
}

/* Context help (DB-driven info icon + tooltip) */
.wvp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wvp-context-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.wvp-context-help__trigger {
    cursor: help;
    color: var(--woonview-button);
    line-height: 1;
}

.wvp-context-help__icon {
    font-size: 0.85em;
    opacity: 0.85;
}

.wvp-context-help:hover .wvp-context-help__icon,
.wvp-context-help:focus-within .wvp-context-help__icon {
    opacity: 1;
}

.wvp-context-help__tooltip {
    display: none;
    position: absolute;
    z-index: 1080;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 12rem;
    max-width: min(22rem, 85vw);
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--woonview-title);
    text-align: left;
    background: var(--woonview-card);
    border: 1px solid var(--woonview-border-medium);
    border-radius: 6px;
    box-shadow: 0 4px 12px var(--woonview-shadow-md);
    pointer-events: none;
}

.wvp-context-help__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: var(--woonview-card);
}

.wvp-context-help:hover .wvp-context-help__tooltip,
.wvp-context-help:focus-within .wvp-context-help__tooltip {
    display: block;
}

/* JS moves tooltips to body; hide in-flow copies so we don't double-show */
html.wvp-context-help-js .wvp-context-help:hover .wvp-context-help__tooltip:not(.wvp-context-help__tooltip--layer),
html.wvp-context-help-js
    .wvp-context-help:focus-within
    .wvp-context-help__tooltip:not(.wvp-context-help__tooltip--layer) {
    display: none !important;
}

/* High overlay layer (appendChild to body); escapes overflow on cards / tables */
/* Must override base `bottom` or fixed-position + inline `top` + `bottom` from base
   CSS yields a stretched box height and clips content; background then appears "gone". */
.wvp-context-help__tooltip.wvp-context-help__tooltip--layer {
    display: block !important;
    position: fixed;
    bottom: auto !important;
    right: auto;
    max-width: min(22rem, 85vw);
    height: auto;
    min-height: 0;
    overflow: visible;
    pointer-events: auto;
    z-index: 2147483000;
    background: var(--woonview-card);
    border: 1px solid var(--woonview-border-medium);
    border-radius: 6px;
    box-shadow: 0 8px 24px var(--woonview-shadow-md);
    color: var(--woonview-title);
}

/* Personal star ratings (Notities + vergelijking) */
.wvp-pr {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--woonview-border-light);
}
.wvp-pr__head {
    margin-bottom: 0.75rem;
}
.wvp-pr__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}
.wvp-pr__title-row .wvp-pr__title {
    margin-bottom: 0;
}
.wvp-pr__autosave-status {
    font-size: 0.875rem;
    color: var(--woonview-text);
    font-weight: 500;
    min-height: 1.2em;
}
.wvp-pr__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin: 0 0 0.35rem 0;
}
.wvp-pr__hint {
    font-size: 0.85rem;
    color: var(--woonview-text);
    margin: 0;
    line-height: 1.45;
}
.wvp-pr__rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.wvp-pr__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.wvp-pr__label {
    font-size: 0.9rem;
    color: var(--woonview-text);
    min-width: 8rem;
}
.wvp-pr__stars {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.wvp-pr__star {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--woonview-border-light);
    background: var(--woonview-card);
    color: var(--woonview-text);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}
.wvp-pr__star:hover {
    border-color: var(--woonview-button);
    color: var(--woonview-title);
}
.wvp-pr__star.is-on {
    background: var(--woonview-button);
    border-color: var(--woonview-button);
    color: white;
}
.wvp-pr__custom {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.wvp-pr__custom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: nowrap;
}
@media (max-width: 520px) {
    .wvp-pr__custom-row {
        flex-wrap: wrap;
    }
    .wvp-pr__custom-row-stars {
        width: 100%;
        justify-content: flex-end;
    }
}
.wvp-pr__custom-row-left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}
.wvp-pr__custom-row-stars {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}
.wvp-pr__crit-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--woonview-text);
}
.wvp-pr__custom-label {
    flex: 1 1 120px;
    min-width: 100px;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--woonview-border-light);
    border-radius: 6px;
    font-size: 0.9rem;
}
.wvp-pr__save-row {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--woonview-border-light);
    border-radius: 6px;
    background: var(--woonview-bg-primary);
    color: var(--woonview-button);
    cursor: pointer;
    font-size: 0.85rem;
}
.wvp-pr__save-row:hover {
    border-color: var(--woonview-button);
    background: rgba(76, 175, 80, 0.12);
}
.wvp-pr__save-row:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.wvp-pr__add {
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border: 1px dashed var(--woonview-border-medium);
    background: transparent;
    color: var(--woonview-title);
    border-radius: 8px;
    cursor: pointer;
}
.wvp-pr__add:hover {
    border-color: var(--woonview-button);
    color: var(--woonview-button);
}
.wvp-pr__remove {
    border: none;
    background: transparent;
    color: var(--woonview-text);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
}
.wvp-pr__remove:hover {
    color: var(--woonview-error);
}
.wvp-pr__stars--compact .wvp-pr__star {
    min-width: 1.65rem;
    height: 1.65rem;
    font-size: 0.65rem;
}

/* Add-property button: optional shorter label on narrow viewports */
.add-property-label-short {
    display: none;
}
@media (max-width: 640px) {
    .btn:has(.add-property-label-short) .add-property-label-full {
        display: none;
    }
    .btn:has(.add-property-label-short) .add-property-label-short {
        display: inline;
    }
}

/* Legal pages (terms, privacy, disclaimer): hero title scales down on narrow viewports */
.wvp-legal-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--woonview-title);
    margin-bottom: 1rem;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .wvp-legal-hero__title {
        font-size: 1.75rem;
    }
}

