:root {
    --bg-primary: #F5F7FA;
    --bg-secondary: #EDF0F5;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.3);
    --accent-subtle: rgba(34, 197, 94, 0.1);
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --green: #16a34a;
    --amber: #d97706;
    --rose: #e11d48;
    --font-display: 'Space Mono', monospace;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --shadow-1: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-2: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Language system */
.nl { display: block; } .en { display: none; } .de { display: none; } .tr { display: none; } .ar { display: none; } .es { display: none; } .pl { display: none; } .it { display: none; } .fr { display: none; } .fy { display: none; } .srn { display: none; } .pap { display: none; } .pt { display: none; }
body.lang-en .nl { display: none; } body.lang-en .en { display: block; }
body.lang-de .nl { display: none; } body.lang-de .de { display: block; }
body.lang-tr .nl { display: none; } body.lang-tr .tr { display: block; }
body.lang-ar .nl { display: none; } body.lang-ar .ar { display: block; }
body.lang-es .nl { display: none; } body.lang-es .es { display: block; }
body.lang-pl .nl { display: none; } body.lang-pl .pl { display: block; }
body.lang-it .nl { display: none; } body.lang-it .it { display: block; }
body.lang-fr .nl { display: none; } body.lang-fr .fr { display: block; }
body.lang-fy .nl { display: none; } body.lang-fy .fy { display: block; }
body.lang-pap .nl { display: none; } body.lang-pap .pap { display: block; }
body.lang-pt .nl { display: none; } body.lang-pt .pt { display: block; }
span.nl, a.nl { display: inline; } span.en, a.en { display: none; } span.de, a.de { display: none; }
span.tr, a.tr { display: none; } span.ar, a.ar { display: none; } span.es, a.es { display: none; } span.pl, a.pl { display: none; }
span.it, a.it { display: none; } span.fr, a.fr { display: none; } span.fy, a.fy { display: none; } span.srn, a.srn { display: none; } span.pap, a.pap { display: none; } span.pt, a.pt { display: none; }
body.lang-en span.nl, body.lang-en a.nl { display: none; } body.lang-en span.en, body.lang-en a.en { display: inline; }
body.lang-de span.nl, body.lang-de a.nl { display: none; } body.lang-de span.de, body.lang-de a.de { display: inline; }
body.lang-tr span.nl, body.lang-tr a.nl { display: none; } body.lang-tr span.tr, body.lang-tr a.tr { display: inline; }
body.lang-ar span.nl, body.lang-ar a.nl { display: none; } body.lang-ar span.ar, body.lang-ar a.ar { display: inline; }
body.lang-es span.nl, body.lang-es a.nl { display: none; } body.lang-es span.es, body.lang-es a.es { display: inline; }
body.lang-pl span.nl, body.lang-pl a.nl { display: none; } body.lang-pl span.pl, body.lang-pl a.pl { display: inline; }
body.lang-it span.nl, body.lang-it a.nl { display: none; } body.lang-it span.it, body.lang-it a.it { display: inline; }
body.lang-fr span.nl, body.lang-fr a.nl { display: none; } body.lang-fr span.fr, body.lang-fr a.fr { display: inline; }
body.lang-fy span.nl, body.lang-fy a.nl { display: none; } body.lang-fy span.fy, body.lang-fy a.fy { display: inline; }
body.lang-pap span.nl, body.lang-pap a.nl { display: none; } body.lang-pap span.pap, body.lang-pap a.pap { display: inline; }
body.lang-pt span.nl, body.lang-pt a.nl { display: none; } body.lang-pt span.pt, body.lang-pt a.pt { display: inline; }

.grid-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; background: linear-gradient(145deg, #EFF6FF 0%, #F8FAFC 35%, #F0FDF4 65%, #F8FAFC 100%); }
.grid-bg::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 600px; background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, transparent 100%); }

.lang-selector { position: relative; }
.lang-current { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-full); cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); transition: all 0.2s ease; }
.lang-current:hover { border-color: var(--accent); background: var(--accent-subtle); }
.lang-current .lang-arrow { font-size: 8px; color: var(--text-muted); margin-left: 4px; transition: transform 0.2s; }
.lang-current .lang-flag { font-size: 16px; line-height: 1; }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.04); padding: 6px; z-index: 200; min-width: 230px; }
.lang-dropdown.open { display: flex; flex-direction: column; gap: 2px; }
.lang-dropdown button { padding: 10px 14px; border: none; background: transparent; border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all 0.15s ease; text-align: left; display: flex; align-items: center; gap: 10px; }
.lang-dropdown button .lang-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.lang-dropdown button .lang-name { flex: 1; }
.lang-dropdown button .lang-code { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; color: var(--text-muted); background: var(--bg-secondary); padding: 2px 6px; border-radius: 4px; }
.lang-dropdown button:hover { background: var(--accent-subtle); color: var(--accent); }
.lang-dropdown button:hover .lang-code { color: var(--accent); background: rgba(34,197,94,0.15); }
.lang-dropdown button.active { background: var(--accent); color: white; }
.lang-dropdown button.active .lang-code { background: rgba(255,255,255,0.2); color: white; }

.header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px; height: 64px;
    position: sticky; top: 0; z-index: 100;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; }
.brand-name { font-family: 'Space Mono', monospace; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.breadcrumb { max-width: 900px; margin: 16px auto 0; padding: 0 24px; font-size: 13px; color: var(--gray-600); position: relative; z-index: 1; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.hero { position: relative; z-index: 1; padding: 48px 24px 32px; text-align: center; max-width: 1200px; margin: 0 auto; }
.hero h1 { font-family: var(--font-body); font-size: 42px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; margin-bottom: 8px; line-height: 1.1; }
.hero h1 .highlight { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-secondary); margin-bottom: 24px; }
.hero-sub .count { color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; background: var(--bg-secondary); color: var(--text-secondary); }
.chip-green { background: var(--accent-subtle); color: var(--accent-dark); }

.content { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; position: relative; z-index: 1; }

.results-shell {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.filters-sidebar {
    position: sticky;
    top: 82px;
}
.filters-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding-right: 4px;
}
.filters-sidebar-inner::-webkit-scrollbar { width: 8px; }
.filters-sidebar-inner::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.filters-sidebar-inner::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.results-main {
    min-width: 0;
    padding-top: 2px;
}
.sidebar-filter-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}
.sidebar-filter-card .filter-bar { margin-bottom: 0; }
.filters-sidebar .specialty-filter-panel { margin: 0; }
.sidebar-filter-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.sidebar-sort-card .sort-bar {
    margin-bottom: 0;
}
.sidebar-sort-bar {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
}
.sidebar-sort-bar .sort-select {
    width: 100%;
}
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table tr { border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child { border-bottom: none; }
.data-table td { padding: 10px 20px; font-size: 14px; vertical-align: top; }
.label-col { color: var(--gray-600); width: 40%; font-weight: 500; }
.value-col { color: var(--gray-900); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--accent-subtle); color: var(--accent-dark); }

.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.section-title .icon { font-size: 22px; }
.section-divider { border: none; border-top: 1px solid var(--gray-200); margin: 32px 0; }
.results-divider { height: 14px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 32px; }
.info-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px; text-align: center; }
.info-card-icon { font-size: 24px; margin-bottom: 6px; }
.info-card-value { font-size: 20px; font-weight: 700; color: var(--gray-900); }
.info-card-label { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* Address page map (not makelaars) */
.address-map-container { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); height: 350px; margin-bottom: 16px; }
#address-map { height: 100%; width: 100%; }

.footer { background: #0b1120; color: #cbd5f5; padding: 3rem 0; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; padding: 0 24px 2rem; }
.footer-column h5 { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.18em; margin-bottom: 0.75rem; color: #94a3b8; }
.footer-column a { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-column a:hover { color: var(--accent); }
.footer-note { text-align: center; font-size: 0.85rem; color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; }
.language-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.language-tag { padding: 6px 14px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.35); font-size: 0.8rem; background: rgba(255,255,255,0.05); }
/* Mobile menu - hidden by default, shown via JS on hamburger click */
.mobile-menu-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: transparent; cursor: pointer; color: var(--text); font-size: 20px; }
.mobile-menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 12px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-menu.open { display: flex !important; }
.mobile-menu a { padding: 12px 16px; border: 1px solid var(--border); border-radius: 9999px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; text-align: center; transition: all 0.2s; }
.mobile-menu a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }


/* Search - Enhanced Modern Design */
.search-wrapper { max-width: 800px; margin: 32px auto 40px; position: relative; z-index: 10; }
.search-box { 
    display: flex; flex-direction: column; align-items: stretch;
    background: #ffffff; border: 2px solid var(--border); border-radius: 20px; 
    padding: 24px; transition: all 0.3s ease; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    position: relative; z-index: 11;
}
.search-box:focus-within { 
    border-color: var(--accent); 
    box-shadow: 0 12px 48px rgba(34,197,94,0.15), 0 4px 16px rgba(0,0,0,0.06);
}
.search-main-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.search-input-wrapper { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.search-icon { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.search-input { 
    flex: 1; border: none; outline: none; 
    font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 500;
    color: var(--text); background: transparent; 
}
.search-input::placeholder { color: var(--text-muted); font-weight: 400; }
.search-input:focus { outline: none; }
.search-submit-btn { 
    height: 52px; padding: 0 32px; 
    background: var(--accent); color: white; border: none; 
    border-radius: 14px; 
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px; 
    cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap; flex-shrink: 0;
}
.search-submit-btn:hover { 
    background: var(--accent-dark); 
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.search-quick-specialties { 
    display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--gray-100);
}
.search-quick-specialties .chip-label {
    font-size: 12px; color: var(--text-muted); font-weight: 500;
    display: flex; align-items: center; gap: 6px; margin-right: 8px;
}
.search-quick-specialties .quick-spec {
    padding: 6px 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary);
    cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
}
.search-quick-specialties .quick-spec:hover { 
    border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-dark); 
}
.search-quick-specialties .quick-spec.active { 
    background: var(--accent); color: white; border-color: var(--accent); 
}
.search-clear { width: 36px; height: 36px; border: none; background: var(--bg-secondary); color: var(--text-muted); cursor: pointer; border-radius: 50%; display: none; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 14px; flex-shrink: 0; }
.search-clear:hover { background: var(--accent); color: white; }
.search-clear.visible { display: flex; }
.spinner { display: none; width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
.spinner.visible { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Filter chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; justify-content: flex-start; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; text-decoration: none; transition: all 0.15s ease; font-family: var(--font-body);
    appearance: none; -webkit-appearance: none; line-height: 1.2;
}
.filter-chip:hover { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-dark); }
.filter-chip.active { background: var(--accent); color: white; border-color: var(--accent); }
.filter-chip.filter-chip--association { min-height: 34px; }

/* Modern specialty filter panel */
.specialty-filter-panel {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fffb 0%, #f0fdf4 100%);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.07);
}
.specialty-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.specialty-filter-title-wrap { display: flex; flex-direction: column; gap: 3px; }
.specialty-filter-title { font-size: 14px; font-weight: 700; color: var(--gray-900); display: inline-flex; align-items: center; gap: 6px; }
.specialty-filter-sub { font-size: 12px; color: var(--gray-600); }
.specialty-clear-btn {
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.specialty-clear-btn:hover { border-color: #86efac; color: var(--accent-dark); background: #f7fee7; }
.filter-bar.specialty-filters { justify-content: flex-start; margin-bottom: 0; gap: 9px; }
.filter-chip.filter-chip--specialty {
    padding: 8px 12px;
    border-radius: 999px;
    border-color: #d1fae5;
    background: white;
    color: var(--gray-700);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.filter-chip.filter-chip--specialty .chip-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #bbf7d0;
    color: transparent;
    background: #ecfdf3;
    transition: all 0.15s ease;
}
.filter-chip.filter-chip--specialty .chip-icon { font-size: 14px; line-height: 1; }
.filter-chip.filter-chip--specialty .chip-text { font-weight: 600; }
.filter-chip.filter-chip--specialty:hover { border-color: #86efac; background: #f7fee7; color: #166534; transform: translateY(-1px); }
.filter-chip.filter-chip--specialty.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
    color: white;
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.22);
}
.filter-chip.filter-chip--specialty.active .chip-check {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.18);
    color: white;
}

/* Trust signals section */
.trust-section { 
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
    border-radius: 16px; 
    padding: 18px; 
    margin: 32px auto 40px;
}
.trust-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); 
    gap: 12px; 
}
.trust-stat { 
    text-align: center; 
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
}
.trust-stat .icon { 
    font-size: 26px; 
    margin-bottom: 4px; 
    display: block;
}
.trust-stat .number { 
    font-size: 26px; 
    font-weight: 700; 
    color: var(--accent-dark); 
    font-family: var(--font-mono);
    display: block;
}
.trust-stat .label { 
    font-size: 12px; 
    color: var(--text-secondary); 
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

/* Results toolbar: put sort where users expect it (top-right of listings) */
.results-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.results-topbar-count {
    font-size: 12px;
    color: var(--text-muted);
}
.results-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Improved empty states */
.empty-state { 
    text-align: center; 
    padding: 64px 24px; 
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px dashed var(--border);
}
.empty-state .icon { 
    font-size: 64px; 
    opacity: 0.3; 
    margin-bottom: 16px;
    display: block;
}
.empty-state .title { 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--text);
    margin-bottom: 8px;
}
.empty-state .text { 
    font-size: 15px; 
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.empty-state .suggestions { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    justify-content: center;
}
.empty-state .suggestion-chip { 
    padding: 8px 16px; 
    background: var(--bg-card); 
    border: 1px solid var(--border);
    border-radius: 10px; 
    font-size: 13px; 
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: var(--text-secondary);
}
.empty-state .suggestion-chip:hover { 
    border-color: var(--accent); 
    background: var(--accent-subtle); 
    color: var(--accent-dark);
}

/* Map view toggle */
.view-toggle { 
    display: inline-flex; 
    gap: 8px; 
    margin-bottom: 16px; 
    justify-content: flex-end;
    padding: 6px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.view-toggle-btn { 
    padding: 8px 14px; 
    border: 1px solid transparent; 
    background: transparent; 
    color: var(--text-secondary);
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.15s ease;
    display: flex; 
    align-items: center; 
    gap: 6px;
}
.view-toggle-btn:hover { 
    border-color: var(--accent); 
    background: var(--accent-subtle); 
    color: var(--accent-dark);
}
.view-toggle-btn.active { 
    background: var(--accent); 
    color: white; 
    border-color: var(--accent);
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}
.map-container { 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid var(--border);
    height: 500px; 
    margin-bottom: 32px;
    display: none;
}
.map-container.visible { 
    display: block;
}
#makelaars-map { 
    height: 100%; 
    width: 100%; 
}
.makelaar-popup { 
    min-width: 250px;
}
.makelaar-popup .name { 
    font-weight: 700; 
    font-size: 15px; 
    margin-bottom: 4px;
}
.makelaar-popup .city { 
    color: var(--gray-600); 
    font-size: 13px;
}
.makelaar-popup .rating { 
    color: var(--accent-dark); 
    font-weight: 600;
    margin: 8px 0;
}

/* Sort dropdown */
.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.sort-label { font-size: 13px; color: var(--text-muted); }
.sort-select {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text);
    background: var(--bg-card); cursor: pointer;
}

/* Makelaar cards - Modern Design */
.makelaar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 28px; }
.makelaar-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 0; cursor: pointer; transition: all 0.3s ease;
    text-decoration: none; color: inherit; display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden;
}
.makelaar-card:hover { 
    border-color: var(--accent); 
    box-shadow: 0 8px 32px rgba(34,197,94,0.12), 0 4px 16px rgba(0,0,0,0.06); 
    transform: translateY(-4px); 
}
.makelaar-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.makelaar-card-photo {
    width: 100%; height: 136px; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.makelaar-card-photo .photo-placeholder {
    font-size: 52px; opacity: 0.3;
}
.makelaar-card-photo img {
    width: 100%; height: 100%; object-fit: cover;
}
.makelaar-card-badge {
    background: var(--accent); color: white;
    padding: 3px 8px; border-radius: 6px;
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.makelaar-card-body { padding: 14px; }
.makelaar-card-reviews { 
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px;
}
.makelaar-card-reviews .stars { font-size: 14px; letter-spacing: 1px; }
.makelaar-card-reviews .rating { font-weight: 600; color: var(--gray-700); }
.makelaar-card-reviews .review-count { color: var(--gray-500); font-size: 12px; }
.makelaar-card-name { 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--gray-900); 
    margin-bottom: 4px; 
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.makelaar-card-name .makelaar-card-badge {
    position: static;
    transform: none;
    font-size: 10px;
    padding: 2px 6px;
}
.makelaar-card-city { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.makelaar-card-city::before { content: '📍'; font-size: 14px; }
.makelaar-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.makelaar-card-chip { font-size: 10px; padding: 3px 8px; border-radius: 7px; background: var(--gray-100); color: var(--gray-600); font-weight: 500; }
.makelaar-card-chip.association { background: var(--accent-subtle); color: var(--accent-dark); font-weight: 600; }
.makelaar-card-actions { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; 
    padding-top: 10px; border-top: 1px solid var(--gray-100);
}
.makelaar-card-actions.single {
    grid-template-columns: 1fr;
}
.makelaar-card-action {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600;
    text-decoration: none; transition: all 0.15s ease;
}
.makelaar-card-action.call { background: var(--accent-subtle); color: var(--accent-dark); }
.makelaar-card-action.call:hover { background: var(--accent); color: white; }
.makelaar-card-action.email { background: var(--gray-100); color: var(--gray-700); }
.makelaar-card-action.email:hover { background: var(--gray-200); color: var(--gray-900); }

/* City cards */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 32px; }
.city-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border: 1px solid var(--gray-200); border-radius: var(--radius);
    text-decoration: none; color: inherit; transition: all 0.15s;
}
.city-card:hover { border-color: var(--accent); background: var(--gray-50); }
.city-card-name { font-weight: 500; font-size: 14px; }
.city-card-count { font-size: 12px; color: var(--gray-500); background: var(--gray-100); padding: 2px 8px; border-radius: 10px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
    font-size: 14px; text-decoration: none; color: var(--gray-700); transition: all 0.15s;
}
.pagination .ellipsis { border: none; background: transparent; cursor: default; }
.pagination a:hover { border-color: var(--accent); background: var(--gray-50); }
.pagination .active { background: var(--accent); color: var(--white); border-color: var(--accent); }

@media (max-width: 768px) {
    .hero h1 { font-size: 22px; }
    .makelaar-grid { grid-template-columns: 1fr; }
    .city-grid { grid-template-columns: 1fr; }
    .results-shell { grid-template-columns: 1fr; gap: 16px; }
    .filters-sidebar { position: static; top: auto; }
    .filters-sidebar-inner { max-height: none; overflow: visible; padding-right: 0; }
    .sidebar-filter-card { padding: 10px; }
    .brand-name { font-size: 14px; }
    .hero { padding-top: 28px; }
    .search-wrapper { margin: 20px auto 24px; }
    .search-box { padding: 16px; border-radius: 14px; }
    .search-main-row { flex-direction: column; align-items: stretch; margin-bottom: 10px; }
    .search-input-wrapper { width: 100%; }
    .search-input { font-size: 17px; }
    .search-submit-btn { height: 42px; width: 100%; justify-content: center; padding: 0 14px; font-size: 14px; }
    .search-quick-specialties { gap: 6px; }
    .search-quick-specialties .chip-label { width: 100%; margin-right: 0; margin-bottom: 2px; }
    .search-quick-specialties .quick-spec { padding: 6px 10px; font-size: 12px; }
    .specialty-filter-panel { padding: 12px; border-radius: 14px; }
    .specialty-filter-head { margin-bottom: 8px; }
    .specialty-clear-btn { width: 100%; justify-content: center; display: inline-flex; }
    .filter-bar.specialty-filters { gap: 7px; }
    .filter-chip.filter-chip--specialty { padding: 7px 10px; font-size: 12px; }
    .view-toggle { justify-content: flex-start; width: 100%; }
    .view-toggle-btn { flex: 1; justify-content: center; }
    .results-topbar { align-items: stretch; }
    .results-sort { width: 100%; justify-content: space-between; }
    .results-sort .sort-select { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
