/* ===== Zon zoeken en favorieten (kaartknoppen rechts) ===== */
#sun-toggle, #fav-toggle, #locate-btn {
    position: absolute;
    right: 12px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    color: var(--p4w-muted);
    border: 1px solid var(--p4w-border);
    border-radius: 12px;
    box-shadow: var(--p4w-shadow);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
#sun-toggle { top: 108px; }
#fav-toggle { top: 156px; }
#locate-btn { top: 204px; }
@media (max-width: 768px) {
    #sun-toggle { top: 132px; }
    #fav-toggle { top: 180px; }
    #locate-btn { top: 228px; }
}
#sun-toggle svg, #fav-toggle svg, #locate-btn svg { width: 20px; height: 20px; }
#locate-btn:hover { background: var(--p4w-surface); }
#locate-btn.active { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
#locate-btn.loading svg { animation: p4w-spin 1.2s linear infinite; }
body.ps-hero-open #locate-btn { opacity: 0.35; pointer-events: none; }
body.is-phone #locate-btn { top: 60px; right: 12px; }

/* Eigen locatie: blauwe stip */
.p4w-me { background: none; border: none; }
.p4w-me-dot {
    display: block;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 2px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45), 0 1px 4px rgba(0, 0, 0, 0.35);
    animation: p4w-me-pulse 2.2s ease-out infinite;
}
@keyframes p4w-me-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45), 0 1px 4px rgba(0, 0, 0, 0.35); }
    70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0), 0 1px 4px rgba(0, 0, 0, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 1px 4px rgba(0, 0, 0, 0.35); }
}
#sun-toggle:hover, #fav-toggle:hover { background: var(--p4w-surface); }
#sun-toggle.active { color: var(--p4w-orange); background: var(--p4w-orange-50); border-color: #fed7aa; }
#sun-toggle.loading svg { animation: p4w-spin 1.2s linear infinite; }
#fav-toggle.active { color: #e11d48; background: #fff1f2; border-color: #fecdd3; }
#fav-toggle.active svg { fill: currentColor; }
#fav-toggle .fav-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
#fav-toggle .fav-count[hidden] { display: none; }
body.ps-hero-open #sun-toggle, body.ps-hero-open #fav-toggle { opacity: 0.35; pointer-events: none; }
@keyframes p4w-spin { to { transform: rotate(360deg); } }

/* ===== Slider: delen, regenplan, hartje, slimme labels ===== */
.ts-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ts-tabs::-webkit-scrollbar { display: none; }
.ts-tabs button { flex: 0 0 auto; white-space: nowrap; }
.ts-subrow[hidden] { display: none; }
.ts-subrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ts-subrow .ts-plan { min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
.ts-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 3px 9px;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.ts-chip.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.ts-chip[hidden] { display: none; }
.ts-chip .p4w-icon { width: 13px; height: 13px; }
.ts-share {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: var(--p4w-surface);
    color: var(--p4w-muted);
    border: 1px solid var(--p4w-border);
    cursor: pointer;
}
.ts-share:hover { color: var(--p4w-green); background: #fff; }
.ts-share svg { width: 15px; height: 15px; }

.ts-fav {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.ts-fav svg { width: 15px; height: 15px; }
.ts-fav:hover { color: #e11d48; }
.ts-fav.is-fav { color: #e11d48; }
.ts-fav.is-fav svg, .p4w-act-fav.is-fav svg { fill: currentColor; }

.ts-badge.ts-smart {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--p4w-orange-50) !important;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.ts-badge.ts-smart-good { background: var(--p4w-green-50) !important; color: var(--p4w-green); border-color: #bbf7d0; }
.ts-badge.ts-smart-rain { background: #eff6ff !important; color: #1d4ed8; border-color: #bfdbfe; }
.ts-badge.ts-smart .p4w-icon { width: 11px; height: 11px; }

/* ===== Popups: bewaar en delen ===== */
.p4w-actions { display: flex; gap: 6px; margin: 10px 0 6px; flex-wrap: wrap; }
.p4w-act {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--p4w-border);
    background: #fff;
    color: var(--p4w-text) !important;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
}
.p4w-act:hover { background: var(--p4w-surface); }
.p4w-act svg { width: 16px; height: 16px; }
.p4w-act-fav.is-fav { color: #e11d48 !important; border-color: #fecdd3; background: #fff1f2; }
.shared-popup { padding: 12px 14px 6px; }
.shared-popup h3 { margin: 0 0 4px; font-size: 1rem; color: var(--p4w-text); }
.shared-popup p { margin: 0; font-size: 0.8rem; color: var(--p4w-muted); }

/* ===== Kaartmarkers ===== */
.fav-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #e11d48;
    border: 2px solid #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fav-marker svg { width: 15px; height: 15px; fill: currentColor; }
.fav-marker-container.is-active .fav-marker {
    transform: scale(1.25);
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e11d48, 0 0 20px 6px rgba(225, 29, 72, 0.5);
}
.shared-pin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--p4w-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, 0.3);
}
.shared-pin svg { width: 18px; height: 18px; }
.tourism-marker-container.is-dimmed { opacity: 0.25; filter: grayscale(1); }
.sun-label-container { pointer-events: none; }
.sun-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #fed7aa;
    color: var(--p4w-text);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.75rem;
    box-shadow: var(--p4w-shadow);
    transform: translate(-50%, -50%);
}
.sun-label svg { width: 16px; height: 16px; color: var(--p4w-orange-500); }
.sun-label b { color: #c2410c; font-weight: 700; }
.sun-label span { color: var(--p4w-muted); }
.fav-ico { color: #e11d48; fill: currentColor; }

/* ===== Telefoon: rustige weergave ===== */
.ps-brand { display: none; }
.ts-filter { display: none; }
.layer-phone-only { display: none; }
.filter-clear-map { display: none; }

body.is-phone #header { display: none; }
body.is-phone .leaflet-control-zoom { display: none; }
body.is-phone #weather-toggle,
body.is-phone #sun-toggle,
body.is-phone #fav-toggle { display: none; }
body.is-phone #p4n-filter-btn,
body.is-phone #tourism-filter-btn,
body.is-phone #p4n-clear-btn,
body.is-phone #tourism-clear-btn { display: none !important; }

/* Zoekbalk met klein logo */
body.is-phone #place-search.mode-compact .ps-brand {
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
    color: var(--p4w-green);
}
body.is-phone #place-search.mode-compact .ps-brand b { color: var(--p4w-orange); font-weight: 800; }
@media (max-width: 600px) {
    body.is-phone #place-search.mode-compact { left: 10px; right: 58px; width: auto; transform: none; }
}

/* Camperplekken / Activiteiten als knoppenbalk onderin, alleen zolang er nog niets gezocht is */
body.is-phone #search-controls {
    top: auto !important;
    bottom: calc(var(--map-bottom-ui, 0px) + 26px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: 8px !important;
    width: max-content;
    max-width: calc(100% - 20px) !important;
}
body.is-phone.ts-has-results #search-controls,
body.is-phone.ps-hero-open #search-controls { display: none; }

/* Filterpanelen direct onder de zoekbalk */
@media (max-width: 600px) {
    body.is-phone #map-container #p4n-filter-panel,
    body.is-phone #map-container #tourism-filter-panel {
        top: 60px;
        left: 10px;
        right: auto;
        transform: none;
        width: min(300px, calc(100% - 20px));
        max-height: calc(100% - 72px - var(--map-bottom-ui, 0px));
    }
}
body.is-phone .filter-clear-map { display: inline-block; }

/* Lagenmenu: schakelaars voor Weer, Zon zoeken en Favorieten */
body.is-phone .layer-phone-only { display: block; }
.layer-switch {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: none;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 0.85rem;
    color: var(--p4w-text);
    cursor: pointer;
    text-align: left;
}
.layer-switch:hover { background: var(--p4w-surface); }
.layer-switch .layer-name { flex: 1; }
.layer-switch .layer-icon { display: flex; }
.layer-switch .layer-icon svg { width: 18px; height: 18px; color: var(--p4w-muted); }
.layer-switch .switch {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 20px;
    border-radius: 10px;
    background: #d1d5db;
    transition: background 0.2s ease;
}
.layer-switch .switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.layer-switch.on .switch { background: var(--p4w-green); }
.layer-switch.on .switch::after { transform: translateX(14px); }

/* Weer als klein pilletje */
body.is-phone .weather-marker {
    flex-direction: row;
    align-items: center;
    gap: 3px;
    padding: 3px 8px 3px 5px;
    border-radius: 999px;
}
body.is-phone .weather-marker .city-name { display: none; }
body.is-phone .weather-marker .weather-icon .p4w-icon { width: 18px; height: 18px; }
body.is-phone .weather-marker .temperature { font-size: 0.75rem; }
body.is-phone.p4n-on .weather-marker { transform: scale(0.85); opacity: 0.9; }

/* Laden als klein pilletje bovenin */
body.is-phone #loading {
    top: 60px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}
body.is-phone #loading .spinner { width: 16px; height: 16px; border-width: 2px; }

/* Slider: ingeklapt (alleen kopregel) */
#tourism-slider.ts-collapsed .ts-track { display: none; }
#tourism-slider.ts-collapsed .ts-header { cursor: pointer; padding-bottom: 10px; }
#tourism-slider.ts-collapsed .ts-minimize svg { transform: rotate(180deg); }
body.is-phone .ts-filter {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: var(--p4w-surface);
    color: var(--p4w-muted);
    border: 1px solid var(--p4w-border);
    cursor: pointer;
}
body.is-phone .ts-filter[hidden] { display: none; }
.ts-filter svg { width: 15px; height: 15px; }
.ts-tabs button.is-empty { border-style: dashed; color: var(--p4w-orange); }
.ts-tabs button.is-empty b { display: none; }
.ts-chip[data-kind="sun"] { background: var(--p4w-orange-50); border-color: #fed7aa; color: #c2410c; }
.ts-chip[data-kind="sun"].active { background: var(--p4w-orange); border-color: var(--p4w-orange); color: #fff; }
body.is-phone .sun-label { font-size: 0.68rem; padding: 3px 8px; gap: 4px; }
body.is-phone .sun-label span { display: none; }
body.is-phone .sun-label svg { width: 13px; height: 13px; }

/* Gegroepeerde markers */
.p4w-cluster {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--cluster-color);
    color: var(--p4w-text);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.p4w-cluster-container.is-active { z-index: 2000 !important; }
.p4w-cluster-container.is-active .p4w-cluster {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--cluster-color), 0 0 20px 6px var(--cluster-color);
}

/* ===== Zon zoeken: periodekeuze en legenda ===== */
#sun-bar {
    position: absolute;
    top: 112px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    width: max-content;
    max-width: calc(100% - 20px);
    background: #fff;
    border: 1px solid var(--p4w-border);
    border-radius: 14px;
    box-shadow: var(--p4w-shadow-lg);
    padding: 6px 6px 7px;
    font-size: 0.78rem;
    color: var(--p4w-text);
}
#sun-bar[hidden] { display: none; }
.sb-top { display: flex; align-items: center; gap: 6px; }
.sb-modes { display: flex; gap: 4px; background: var(--p4w-surface); border-radius: 10px; padding: 3px; }
.sb-modes button {
    border: none;
    background: none;
    border-radius: 8px;
    padding: 5px 10px;
    font: inherit;
    font-weight: 600;
    color: var(--p4w-muted);
    cursor: pointer;
    white-space: nowrap;
}
.sb-modes button.active { background: #fff; color: var(--p4w-green); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.sb-short { display: none; }
.sb-close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--p4w-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sb-close:hover { background: var(--p4w-surface); }
.sb-close svg { width: 16px; height: 16px; }
.sb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 6px 0; color: var(--p4w-muted); font-size: 0.72rem; }
.sb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sb-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sb-sun { background: #16a34a; }
.sb-dry { background: #eab308; }
.sb-damp { background: #f97316; }
.sb-status { color: var(--p4w-text); font-weight: 600; }
body.is-phone #sun-bar { top: 60px; left: 10px; right: 10px; transform: none; width: auto; }
body.is-phone .sb-long { display: none; }
body.is-phone .sb-short { display: inline; }
body.is-phone .sb-modes { flex: 1; }
body.is-phone .sb-modes button { flex: 1; }
@media (max-width: 768px) { body:not(.is-phone) #sun-bar { top: 100px; } }

/* Pagina niet per ongeluk inzoomen (dubbeltik) en geen automatische zoom bij het zoekveld op iOS */
html, body { touch-action: pan-x pan-y; }
#app, #map-container > *:not(#map), .leaflet-popup, .leaflet-control { touch-action: pan-x pan-y; }
@media (pointer: coarse) { #ps-input { font-size: 16px; } }

.ts-badge.ts-smart-dry { background: #fefce8 !important; color: #a16207; border-color: #fde68a; }

/* ===== Telefoon: duidelijke filterknop, filter als groot paneel van onderaf ===== */
.filter-footer { display: none; }
.ts-filter-count[hidden] { display: none; }
body.is-phone .ts-subrow .ts-filter {
    margin-left: auto;
    width: auto;
    height: 36px;
    padding: 0 14px;
    gap: 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--p4w-text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
}
body.is-phone .ts-subrow .ts-filter svg { width: 17px; height: 17px; color: var(--p4w-green); }
body.is-phone .ts-subrow .ts-filter.is-filtered { border-color: var(--p4w-orange); }
body.is-phone .ts-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--p4w-orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}
body.is-phone .ts-subrow { gap: 8px; margin-top: 4px; }
body.is-phone .ts-chip { height: 32px; padding: 0 12px; font-size: 0.78rem; }
body.is-phone .ts-chip .p4w-icon { width: 15px; height: 15px; }
body.is-phone .ts-tabs button { padding: 8px 14px; font-size: 0.85rem; }
body.is-phone .ts-share,
body.is-phone .ts-minimize { width: 38px; height: 38px; border-radius: 10px; }
body.is-phone .ts-share svg { width: 18px; height: 18px; }
body.is-phone .ts-minimize svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
    body.is-phone #map-container #p4n-filter-panel,
    body.is-phone #map-container #tourism-filter-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 82vh;
        max-height: 82dvh;
        transform: none;
        display: flex;
        flex-direction: column;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
        z-index: 3000;
        box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.35), 0 -8px 30px rgba(15, 23, 42, 0.2);
    }
    body.is-phone #map-container #p4n-filter-panel.hidden,
    body.is-phone #map-container #tourism-filter-panel.hidden { display: none; }
    body.is-phone .p4n-filter-header,
    body.is-phone .tourism-filter-header { padding: 16px 18px; font-size: 1.05rem; }
    body.is-phone .p4n-filter-header button,
    body.is-phone .tourism-filter-header button { width: 40px; height: 40px; align-items: center; justify-content: center; }
    body.is-phone .p4n-filter-header svg,
    body.is-phone .tourism-filter-header svg { width: 22px; height: 22px; }
    body.is-phone .p4n-filter-actions,
    body.is-phone .tourism-filter-actions { padding: 12px 18px; gap: 8px; }
    body.is-phone .p4n-filter-actions button,
    body.is-phone .tourism-filter-actions button,
    body.is-phone .filter-clear-map { min-height: 42px; font-size: 0.9rem; flex: 1; }
    body.is-phone .p4n-filter-list,
    body.is-phone .tourism-filter-list {
        flex: 1 1 auto;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 18px;
    }
    body.is-phone .p4n-filter-list label,
    body.is-phone .tourism-filter-list label {
        min-height: 50px;
        gap: 14px;
        padding: 6px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--p4w-border);
    }
    body.is-phone .p4n-filter-list label:last-child,
    body.is-phone .tourism-filter-list label:last-child { border-bottom: none; }
    body.is-phone .p4n-filter-list input,
    body.is-phone .tourism-filter-list input { width: 22px; height: 22px; flex: 0 0 auto; }
    body.is-phone .tourism-filter-list i[data-lucide],
    body.is-phone .tourism-filter-list svg.lucide { width: 22px; height: 22px; }
    body.is-phone .p4n-filter-list img { width: 26px; height: 26px; }
    body.is-phone .filter-footer {
        display: block;
        flex: 0 0 auto;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--p4w-border);
        background: #fff;
    }
    body.is-phone .filter-search {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 52px;
        border: none;
        border-radius: 14px;
        background: var(--p4w-green);
        color: #fff;
        font: inherit;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
    }
    body.is-phone .filter-search svg { width: 20px; height: 20px; }
}
body.is-phone .ts-filter-count[hidden] { display: none; }
body.is-phone .ts-header { align-items: flex-start; }
body.is-phone .filter-search:disabled { background: var(--p4w-border); color: var(--p4w-muted); cursor: default; }

/* Popup: knoppen (Bewaar, Delen, Park4Night, Navigeer, Route) altijd zichtbaar onderaan */
.p4w-popup-footer { position: sticky; bottom: 0; z-index: 6; background: #fff; padding-bottom: 2px; }
.leaflet-popup-scrolled .p4w-popup-footer { box-shadow: 0 -10px 12px -10px rgba(15, 23, 42, 0.18); }
.p4n-popup-links { display: flex; gap: 8px; flex-wrap: wrap; }
.p4n-popup-links .p4n-popup-link { flex: 1 1 auto; justify-content: center; }
.p4n-popup-links .p4n-popup-route { background: #fff; color: var(--p4w-green); border: 1px solid var(--p4w-border); }
.p4n-popup-links .p4n-popup-route:hover { background: var(--p4w-surface); }
.p4n-popup-links .p4w-icon { width: 15px; height: 15px; }
.leaflet-container a.p4n-popup-link, .leaflet-container a.tourism-popup-btn-primary { color: #fff; }
.leaflet-container a.p4n-popup-route, .leaflet-container a.tourism-popup-btn:not(.tourism-popup-btn-primary) { color: var(--p4w-green); }
.p4w-popup-footer .tourism-popup-actions { flex-wrap: wrap; }

/* Telefoon: bronvermelding klein linksboven, onder de zoekbalk */
body.is-phone .leaflet-bottom.leaflet-right {
    top: 56px;
    bottom: auto !important;
    left: 10px;
    right: auto;
    transition: none;
}
body.is-phone .leaflet-bottom.leaflet-right .leaflet-control-attribution {
    margin: 0;
    max-width: calc(100vw - 80px);
    padding: 1px 5px;
    font-size: 9px;
    line-height: 1.35;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
    color: #555;
}
body.is-phone .leaflet-control-attribution svg { width: 9px; height: 6px; }

/* Popup met meer inhoud dan past: 'Meer'-knop en vervaging onderaan; zoekknoppen bovenin weg zolang een popup open is */
.leaflet-popup-content-wrapper { position: relative; }
.p4w-more {
    display: none; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2;
    align-items: center; gap: 4px; padding: 5px 12px; border: 0; border-radius: 999px; cursor: pointer;
    background: #166534; color: #fff; font: inherit; font-size: 0.75rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.p4w-more svg { width: 14px; height: 14px; }
.leaflet-popup.has-more .p4w-more { display: inline-flex; }
.leaflet-popup.has-more .leaflet-popup-content-wrapper::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; pointer-events: none;
    border-radius: 0 0 12px 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
}
body.popup-open #p2d-bar { display: none; }

/* Tabs-navigatie: filterknop ook in het paneel op iPad/desktop (de losse filterknoppen op de kaart zijn daar weg) */
body.nav-tabs:not(.is-phone) .ts-subrow .ts-filter {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.08);
    color: #fff; font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer;
}
body.nav-tabs:not(.is-phone) .ts-subrow .ts-filter svg { width: 15px; height: 15px; }
body.nav-tabs:not(.is-phone) .ts-subrow .ts-filter.is-filtered { border-color: var(--p4w-orange, #ea580c); }
body.nav-tabs:not(.is-phone) .ts-subrow .ts-filter[hidden] { display: none; }
body.nav-tabs:not(.is-phone) .ts-filter-count { font-size: 0.7rem; background: var(--p4w-orange, #ea580c); border-radius: 999px; padding: 0 6px; }
body.nav-tabs:not(.is-phone) .ts-filter-count[hidden] { display: none; }

/* Camperplekken: Alles / Met foto en beoordeling */
.p4n-quality { display: flex; background: #f1f5f9; border-radius: 10px; padding: 3px; margin: 0 0 10px; }
.p4n-quality button { flex: 1; border: 0; background: none; font: inherit; font-size: 0.8rem; font-weight: 700; color: #475569; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.p4n-quality button.on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
