/* Startscherm + zoekbalk "Waar ga je heen met de camper?" */
#place-search {
    position: absolute;
    z-index: 1004;
    color: #1a1a2e;
    font-family: inherit;
}

#place-search.mode-hero {
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 24px));
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 22px 20px 18px;
}

#place-search.mode-compact {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 128px));
}

.ps-intro h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.ps-intro p { font-size: 0.85rem; color: #555; margin-bottom: 14px; }
#place-search.mode-compact .ps-intro,
#place-search.mode-compact .ps-actions,
#place-search.mode-compact .ps-chips { display: none; }

.ps-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 10px 0 12px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s ease;
}
#place-search.mode-compact .ps-field { height: 40px; border-width: 1px; border-radius: 12px; }
#place-search.focused .ps-field { border-color: #16a34a; }
.ps-icon { width: 18px; height: 18px; color: #10b981; flex: 0 0 auto; }
#ps-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #1a1a2e;
}
#ps-input::-webkit-search-cancel-button { display: none; }
.ps-clear { border: none; background: none; font-size: 1.4rem; color: #999; cursor: pointer; padding: 0 4px; }

.ps-list {
    list-style: none;
    margin-top: 6px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 50vh;
    overflow-y: auto;
}
.ps-list li { padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid #f1f1f1; }
.ps-list li:last-child { border-bottom: none; }
.ps-list li[aria-selected="true"], .ps-list li:hover { background: #f0f9ff; }
.ps-opt-name { font-weight: 600; font-size: 0.9rem; }
.ps-opt-meta { font-size: 0.75rem; color: #6b7280; }
.ps-list li.ps-empty { color: #6b7280; font-size: 0.85rem; cursor: default; }

.ps-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ps-locate, .ps-skip {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; border-radius: 12px; padding: 10px 14px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.ps-locate { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #0f0f1a; }
.ps-locate svg { width: 16px; height: 16px; }
.ps-locate.loading { opacity: 0.6; }
.ps-skip { background: #f3f4f6; color: #374151; }

.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.ps-chips-label { width: 100%; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #9ca3af; margin-top: 2px; }
.ps-chips button {
    border: 1px solid #e5e7eb; background: #fff; border-radius: 999px;
    padding: 6px 12px; font-size: 0.8rem; cursor: pointer; color: #1a1a2e;
}
.ps-chips button:hover { border-color: #4facfe; background: #f0f9ff; }

/* Startscherm open: knoppen eronder rustig houden */
body.ps-hero-open #search-controls,
body.ps-hero-open #weather-toggle { opacity: 0.35; pointer-events: none; }

/* Zoekbalk bovenin: zoekknoppen schuiven eronder */
#search-controls { top: 60px; }
@media (min-width: 601px) and (max-width: 768px) {
    #search-controls { top: 60px; }
    #map-container #p4n-filter-panel, #map-container #tourism-filter-panel { top: 106px; }
}
@media (max-width: 600px) {
    #place-search.mode-compact { left: 54px; right: 58px; width: auto; transform: none; }
    #search-controls { top: 84px; }
    #map-container #p4n-filter-panel, #map-container #tourism-filter-panel {
        top: 200px;
        max-height: calc(100% - 230px - var(--map-bottom-ui, 0px));
    }
}

/* Melding onderin */
#p4w-toast {
    position: absolute;
    left: 50%;
    bottom: calc(var(--map-bottom-ui, 0px) + 16px);
    transform: translateX(-50%) translateY(20px);
    z-index: 1005;
    display: flex; align-items: center; gap: 10px;
    max-width: calc(100% - 24px);
    background: rgba(22, 33, 62, 0.97);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 12px 10px 16px;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#p4w-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#p4w-toast button {
    border: none; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 0.8rem; cursor: pointer;
    background: #10b981; color: #fff; white-space: nowrap;
}
