/* Parkplattegrond: apart van attracties, shows en horeca. */
.tps-map-panel{padding:24px!important;overflow:visible!important}
.tps-map-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.tps-map-intro h2{color:#10263e;font-size:1.55rem;font-weight:850;letter-spacing:-.035em;margin:5px 0}
.tps-map-intro p{color:#65788b;margin:0;max-width:720px}
.tps-map-open{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;white-space:nowrap;text-decoration:none;color:#1c3753;border:1px solid #d9e3ed;border-radius:10px;font-weight:730}
.tps-map-open:hover{background:#f4f7fb;color:#0b243f}
.tps-map-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:18px 0 12px}
.tps-map-filter,.tps-map-reset{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #d8e1eb;border-radius:10px;background:#f5f7fa;color:#213b55;font-weight:770;cursor:pointer;transition:background .16s}
.tps-map-filter.is-on{background:#192f48;color:#fff;border-color:#192f48}
.tps-map-filter:hover,.tps-map-reset:hover{border-color:#a5b6c6}
.tps-map-filter:focus-visible,.tps-map-reset:focus-visible{outline:3px solid #e50731;outline-offset:2px}
.tps-map-filter:not(.is-on){opacity:.75}
.tps-map-total{display:inline-flex;padding:1px 7px;background:#ffffff29;border-radius:6px;font-size:.8rem;font-variant-numeric:tabular-nums}
.tps-map-filter:not(.is-on) .tps-map-total{background:#dce5ed}
.tps-map-reset{margin-left:auto;background:white}
.tps-park-map{position:relative;width:100%;height:520px;border-radius:14px;border:1px solid #dce4ed;overflow:hidden;background:#e2e9ed;z-index:0}
.tps-park-map:focus-visible{outline:3px solid #e50731;outline-offset:3px}
.tps-map-message{margin:12px 0 0;font-size:.9rem;color:#5d7185}
.tps-map-empty{border:1px dashed #cddce8;background:#f7f9fc;border-radius:14px;padding:38px;text-align:center;color:#1b3550}
.tps-map-empty p{color:#65778a;margin:8px 0 0}
.tps-map-poi{background:transparent;border:0;box-shadow:none}
.tps-map-poi-inner{display:grid;place-items:center;width:36px;height:36px;font-size:19px;background:#fff;border:2px solid #153453;border-radius:50%;box-shadow:0 2px 8px #12243a52}
.tps-map-poi.show .tps-map-poi-inner{border-radius:10px}
.tps-map-poi.restaurant .tps-map-poi-inner{border-radius:8px 8px 50% 50%}
.tps-map-popup{min-width:150px}
.tps-map-popup strong{display:block;font-size:1rem;margin-bottom:4px;color:#142a40}
.tps-map-popup small{display:block;color:#52687d;margin:0 0 9px}
.tps-map-popup a{color:#b30829;text-decoration:underline;font-weight:750}
.tps-park-map .leaflet-control-attribution{font-size:11px!important}
@media(max-width:720px){.tps-map-panel{padding:16px!important}.tps-map-intro{flex-direction:column;gap:12px}.tps-map-intro h2{font-size:1.35rem}.tps-map-toolbar{gap:6px}.tps-map-filter,.tps-map-reset{padding:9px 10px;font-size:.83rem}.tps-map-reset{margin-left:0}.tps-park-map{height:min(65vh,440px)}}

/* Schermvullende kaartoverlay op ThemeParkStats zelf; behoudt dezelfde kaart en filters. */
html.tps-map-overlay-open,
body.tps-map-overlay-open{overflow:hidden!important}
.tps-map-open{background:#fff;cursor:pointer;font:inherit;font-weight:730}
.tps-map-open:focus-visible{outline:3px solid #e50731;outline-offset:3px}
.tps-map-overlay[hidden]{display:none!important}
.tps-map-overlay{
    position:fixed;inset:0;z-index:2147483647;display:flex;
    width:100%;height:100vh;height:100dvh;background:#0a1c30;
}
.tps-map-overlay-dialog{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:#fff}
.tps-map-overlay-header{
    display:flex;align-items:center;justify-content:space-between;gap:14px;
    padding:14px 22px;background:#0b1d30;color:#fff;flex:0 0 auto;
}
.tps-map-overlay-header h2{font-size:1.2rem;font-weight:800;color:#fff;margin:0;line-height:1.35}
.tps-map-overlay-close{
    display:grid;place-items:center;min-height:42px;min-width:42px;
    border:1px solid #ffffff52;background:#1b354e;color:#fff;
    border-radius:10px;font-size:1.2rem;font-weight:750;cursor:pointer;
}
.tps-map-overlay-close:hover{background:#e50731;border-color:#e50731}
.tps-map-overlay-close:focus-visible{outline:3px solid #fff;outline-offset:3px}
.tps-map-overlay-slot{display:flex;flex:1;min-width:0;min-height:0}
.tps-map-overlay-slot .tps-map-view{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}
.tps-map-overlay-slot .tps-map-toolbar{
    flex:0 0 auto;margin:0;padding:12px 18px;background:#fff;border-bottom:1px solid #dce4ed;
}
.tps-map-overlay-slot .tps-park-map{
    flex:1 1 0;min-height:0;height:auto!important;border:0;border-radius:0;
}
@media(max-width:720px){
    .tps-map-overlay-header{padding:10px 14px}
    .tps-map-overlay-header h2{font-size:1rem}
    .tps-map-overlay-slot .tps-map-toolbar{padding:10px;gap:6px}
}

/* Volledige attractie-index naast de kaart; ook zonder GPS blijven attracties bereikbaar. */
.tps-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:12px;min-height:0}
.tps-map-layout>.tps-park-map{min-width:0;height:520px}
.tps-map-attraction-index{display:flex;flex-direction:column;min-width:0;max-height:520px;border:1px solid #dce4ed;border-radius:14px;background:#fff;overflow:hidden}
.tps-map-index-header{display:flex;align-items:center;justify-content:space-between;padding:15px 16px 10px;color:#10263e}
.tps-map-index-header strong{font-weight:800}
.tps-map-index-header span{padding:2px 9px;background:#edf2f7;border-radius:8px;font-size:.85rem;font-variant-numeric:tabular-nums}
.tps-map-index-search{width:calc(100% - 24px);margin:0 12px 10px;padding:10px 11px;border:1px solid #dce4ed;border-radius:9px;background:#f8fafc;color:#122c42;font:inherit;outline-offset:2px}
.tps-map-index-items{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:0 8px 10px}
.tps-map-index-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-radius:8px;text-align:left;text-decoration:none;background:transparent;padding:10px;color:#152f49;font:inherit;font-size:.91rem;cursor:pointer}
.tps-map-index-item:hover,.tps-map-index-item.is-selected{background:#edf3f9;color:#0b263e}
.tps-map-index-item:focus-visible{outline:3px solid #e50731;outline-offset:-3px}
.tps-map-index-item[hidden]{display:none!important}
.tps-map-index-arrow{font-size:1.1rem;font-weight:700;color:#b40b2d;flex:0 0 auto}
.tps-map-overlay-slot .tps-map-layout{flex:1;min-height:0;padding:0;gap:0}
.tps-map-overlay-slot .tps-map-layout>.tps-park-map{height:100%!important;border:0;border-radius:0;min-height:0}
.tps-map-overlay-slot .tps-map-attraction-index{border-radius:0;max-height:none;height:100%;border-top:0;border-bottom:0;border-right:0}
@media(max-width:800px){
  .tps-map-layout{grid-template-columns:1fr;gap:10px}
  .tps-map-layout>.tps-park-map{height:min(65vh,440px)}
  .tps-map-attraction-index{max-height:280px}
  .tps-map-overlay-slot .tps-map-layout{display:flex;flex-direction:column}
  .tps-map-overlay-slot .tps-map-layout>.tps-park-map{flex:1;min-height:180px;height:auto!important}
  .tps-map-overlay-slot .tps-map-attraction-index{flex:0 0 min(32vh,240px);min-height:0;max-height:min(32vh,240px);border-left:0;border-top:1px solid #dce4ed}
}

/* Eén kaartlijst met aparte, doorzoekbare onderdelen voor attracties, shows en horeca. */
.tps-map-index-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:9px 9px 12px;background:#fff;border-bottom:1px solid #e5ebf1}
.tps-map-index-tabs button{display:flex;justify-content:center;align-items:center;gap:6px;border:0;border-radius:9px;background:#f0f3f7;color:#334e68;padding:10px 8px;cursor:pointer;font:inherit;font-size:.9rem;font-weight:750}
.tps-map-index-tabs button.is-active{background:#192f48;color:white}
.tps-map-index-tabs button:focus-visible{outline:3px solid #e50731;outline-offset:2px}
.tps-map-index-tabs span{font-size:.8rem;font-weight:700;opacity:.85;font-variant-numeric:tabular-nums}
.tps-map-index-group{display:flex;flex:1;flex-direction:column;min-height:0;padding-top:10px}
.tps-map-index-group[hidden],.tps-map-index-item[hidden]{display:none!important}
.tps-map-index-group .tps-map-index-items{flex:1;min-height:0}

@media(max-width:400px){.tps-map-index-tabs button{font-size:.8rem;padding:9px 4px;gap:4px}}

/* Status direct herkenbaar op de kaart: kleur én symbool, ook bij kleurenblindheid. */
.tps-map-poi{width:44px!important;height:44px!important;--tps-map-pin:#31506e}
.tps-map-poi .tps-map-poi-inner{
    position:absolute;top:2px;left:2px;display:grid;place-items:center;
    width:40px;height:40px;border:3px solid var(--tps-map-pin);border-radius:50%;
    background:#fff;box-shadow:0 3px 8px #0b213c44;font-size:20px;line-height:1;
}
.tps-map-poi .tps-map-poi-flag{
    position:absolute;bottom:-1px;right:-4px;display:grid;place-items:center;
    min-width:19px;height:19px;padding:0 2px;border-radius:9px;background:var(--tps-map-pin);
    color:#fff;border:2px solid #fff;font:800 12px/1 system-ui,sans-serif;
    box-shadow:0 1px 3px #14273a2f;
}
.tps-map-poi.attraction.status-open,.tps-map-poi.restaurant.status-open{--tps-map-pin:#14804a}
.tps-map-poi.attraction.status-down{--tps-map-pin:#cb2442}
.tps-map-poi.attraction.status-maintenance{--tps-map-pin:#aa6700}
.tps-map-poi.attraction.status-closed,.tps-map-poi.restaurant.status-closed{--tps-map-pin:#66768a}
.tps-map-poi.attraction.status-unknown,.tps-map-poi.restaurant.status-unknown{--tps-map-pin:#3a536f}
.tps-map-poi.show{--tps-map-pin:#225d90}
.tps-map-poi.show .tps-map-poi-inner{border-radius:12px}

/* Compacte kaartpopup met kleine lokale thumbnail, status en relevante tijden. */
.tps-map-leaflet-popup .leaflet-popup-content-wrapper{
    padding:0;border-radius:14px;box-shadow:0 10px 32px #0e28483d;overflow:hidden;
}
.tps-map-leaflet-popup .leaflet-popup-content{
    margin:0!important;width:min(290px,calc(100vw - 76px))!important;
    min-width:0!important;
}
.tps-map-leaflet-popup .leaflet-popup-close-button{
    right:7px!important;top:6px!important;width:25px!important;height:25px!important;
    border-radius:50%;background:#f2f5f9;color:#53677e!important;line-height:24px!important;
}
.tps-map-popup{min-width:0;width:100%;font-family:inherit;color:#142a40}
.tps-map-popup-top{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:14px 34px 12px 14px}
.tps-map-popup-thumb{display:grid;place-items:center;width:76px;height:76px;background:#e9eff6;border-radius:10px;overflow:hidden}
.tps-map-popup-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.tps-map-popup-thumb-icon{font-size:29px;line-height:1}
.tps-map-popup-heading{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.tps-map-popup-kicker{color:#65788d;font-size:.67rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.tps-map-popup .tps-map-popup-title{display:block;margin:0;font-weight:850;font-size:.99rem;line-height:1.27;color:#0d2842;overflow-wrap:anywhere}
.tps-map-popup-status{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:3px 7px;font-size:.76rem;font-weight:800;background:#edf3f7;color:#34536e}
.tps-map-popup-status.status-open{background:#e0f5e9;color:#075f37}
.tps-map-popup-status.status-down{background:#ffe5e9;color:#b71b35}
.tps-map-popup-status.status-maintenance{background:#fff0d5;color:#875100}
.tps-map-popup-status.status-closed{background:#e8edf3;color:#4b5a6d}
.tps-map-popup-status.status-unknown{background:#f0f2f5;color:#485c72}
.tps-map-popup-status-symbol{display:inline-grid;place-items:center;width:15px;font-weight:950}
.tps-map-popup-details{padding:11px 14px;background:#f4f7fa;border-top:1px solid #e9eef3}
.tps-map-popup-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.87rem}
.tps-map-popup-row>span{color:#5d7085;font-weight:600}
.tps-map-popup-row>strong{color:#0f2e48;font-size:1rem;font-weight:850;white-space:nowrap}
.tps-map-popup .tps-map-popup-single{white-space:normal;font-size:.9rem}
.tps-map-popup-detail-label{font-size:.8rem;font-weight:720;color:#536b82}
.tps-map-popup-times{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.tps-map-popup-time{display:inline-flex;border:1px solid #d7e2ed;border-radius:7px;padding:4px 7px;background:#fff;color:#173c61;font-size:.82rem;font-weight:800;font-variant-numeric:tabular-nums}
.tps-map-popup .tps-map-popup-empty-times{display:block;margin-top:5px;font-size:.82rem;color:#3f566d;font-weight:690}
.tps-map-popup .tps-map-popup-link{display:block;text-decoration:none;color:#be0830;font-weight:800;font-size:.85rem;padding:11px 14px;border-top:1px solid #e8edf3}
.tps-map-popup-link:hover{background:#faf2f4;text-decoration:underline}
@media(max-width:420px){
  .tps-map-popup-top{grid-template-columns:66px minmax(0,1fr);gap:9px;padding:12px 30px 10px 12px}
  .tps-map-popup-thumb{width:66px;height:66px}
  .tps-map-popup-details{padding:10px 12px}
}

.tps-map-popup strong{margin-bottom:0}

/* Ingelogde gebruikers: looproute binnen dezelfde parkkaart en fullscreenweergave. */
.tps-map-route-toggle{
    display:inline-flex;align-items:center;gap:8px;padding:9px 13px;
    border:1px solid #b80b30;border-radius:10px;background:#fff;color:#b80b30;
    font:inherit;font-weight:800;cursor:pointer;
}
.tps-map-route-toggle.is-on{background:#c40734;color:#fff;border-color:#c40734}
.tps-map-route-toggle:hover{background:#fcebf0}
.tps-map-route-toggle.is-on:hover{background:#a40629}
.tps-map-route-toggle:focus-visible{outline:3px solid #ec708e;outline-offset:2px}
.tps-map-route-planner[hidden]{display:none!important}
.tps-map-route-planner{padding:14px 12px;border-bottom:1px solid #dce4ed;background:#fff}
.tps-map-route-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#10263e}
.tps-map-route-heading strong{font-size:1rem;font-weight:850}
.tps-map-route-heading>span{color:#62778b;font-size:.85rem;font-variant-numeric:tabular-nums}
.tps-map-route-help{margin:5px 0 9px;color:#61758b;font-size:.83rem;line-height:1.3}
.tps-map-route-stops{display:flex;flex-direction:column;gap:4px;margin:0 0 9px;padding:0;list-style:none;max-height:170px;overflow:auto}
.tps-map-route-stop{display:flex;align-items:center;gap:7px;border:1px solid #e4eaf1;border-radius:8px;padding:5px 6px;font-size:.83rem}
.tps-map-route-number{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:#c40734;color:#fff;font-weight:800}
.tps-map-route-name{flex:1;min-width:0;color:#193a53;overflow-wrap:anywhere;font-weight:650}
.tps-map-route-stop-actions{display:flex;gap:3px;flex:0 0 auto}
.tps-map-route-stop-actions button{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:6px;background:#ecf1f7;color:#1a3854;font-size:1rem;cursor:pointer}
.tps-map-route-stop-actions button:hover:not(:disabled){background:#dce5ef}
.tps-map-route-stop-actions button:disabled{opacity:.25;cursor:default}
.tps-map-route-actions{display:flex;gap:7px;flex-wrap:wrap}
.tps-map-route-actions button{padding:8px 10px;border-radius:8px;border:1px solid #d7e1eb;background:#fff;color:#1d3954;font:inherit;font-size:.85rem;font-weight:760;cursor:pointer}
.tps-map-route-actions .tps-map-route-calculate{background:#c40734;color:#fff;border-color:#c40734}
.tps-map-route-actions button:disabled{opacity:.45;cursor:default}
.tps-map-route-result{display:block;color:#263e53;font-size:.83rem;font-weight:650;margin-top:8px;min-height:0}
.tps-map-route-result:empty{display:none}
.tps-map-popup-route{display:block;width:100%;padding:10px 14px;background:#fff;border:0;border-top:1px solid #e8edf3;text-align:left;color:#bd0830;font:inherit;font-weight:800;font-size:.84rem;cursor:pointer}
.tps-map-popup-route:hover{background:#fcebf0}
.tps-map-route-point{border:0;background:transparent}
.tps-map-route-point>span{display:grid;place-items:center;width:26px;height:26px;border:2px solid #fff;border-radius:50%;background:#c40734;color:#fff;box-shadow:0 2px 6px #10263e77;font:800 13px/1 system-ui,sans-serif}
@media(max-width:800px){.tps-map-route-planner{padding:10px}.tps-map-route-stops{max-height:95px}}

/* Looproute: voorkom dat de gekozen haltes de doorzoekbare locatielijst wegdrukken.
   De kaart, de routeplanner en de drie locatietabs blijven afzonderlijk bruikbaar. */
.tps-map-attraction-index > .tps-map-index-tabs {
    flex:0 0 auto;
}
.tps-map-attraction-index > .tps-map-index-group {
    flex:1 1 0;
    min-height:0;
    overflow:hidden;
}
.tps-map-index-group > .tps-map-index-search {
    flex:0 0 auto;
}
.tps-map-index-group > .tps-map-index-items {
    flex:1 1 0;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
}
.tps-map-attraction-index:has(> .tps-map-route-planner:not([hidden])) > .tps-map-route-planner {
    display:flex;
    flex:0 1 auto;
    flex-direction:column;
    min-height:0;
    max-height:39%;
    overflow-y:auto;
    overscroll-behavior:contain;
}
.tps-map-attraction-index:has(> .tps-map-route-planner:not([hidden])) .tps-map-route-stops {
    flex:0 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
}
@media (max-width:800px) {
    /* Normale kaart: houd genoeg ruimte vrij om een tweede stop te kiezen. */
    .tps-map-attraction-index:has(> .tps-map-route-planner:not([hidden])) {
        height:min(72dvh,440px);
        max-height:min(72dvh,440px);
    }
    /* Fullscreen: ruimere locatielijst, zonder kaart of sluitknop te verbergen. */
    .tps-map-overlay-slot .tps-map-attraction-index:has(> .tps-map-route-planner:not([hidden])) {
        flex:0 0 min(48dvh,440px);
        height:min(48dvh,440px);
        max-height:min(48dvh,440px);
    }
}
@media (max-width:800px) and (max-height:700px) {
    /* Op kleine telefoons blijft de lijst bereikbaar binnen het fullscreenvenster. */
    .tps-map-overlay-slot .tps-map-layout > .tps-park-map {
        min-height:125px;
    }
    .tps-map-overlay-slot .tps-map-attraction-index:has(> .tps-map-route-planner:not([hidden])) {
        flex:0 0 min(50dvh,360px);
        height:min(50dvh,360px);
        max-height:min(50dvh,360px);
    }
    .tps-map-overlay-slot .tps-map-route-planner {
        padding:8px;
    }
    .tps-map-overlay-slot .tps-map-route-help {
        display:none;
    }
}

/* GPS-navigatie vanuit de kaartpopup, zichtbaar alleen voor ingelogde bezoekers. */
.tps-map-navigation[hidden]{display:none!important}
.tps-map-navigation{display:flex;align-items:center;gap:11px;border:1px solid #bbd5eb;
    background:#eef6fd;color:#123a58;border-radius:12px;padding:10px 12px;margin:0 0 12px;min-width:0}
.tps-map-navigation-dot{display:block;flex:0 0 15px;width:15px;height:15px;
    border:3px solid #fff;border-radius:50%;background:#1976ba;box-shadow:0 0 0 2px #1976ba}
.tps-map-navigation-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tps-map-navigation-info strong{font-size:.92rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.tps-map-navigation-info span{font-size:.82rem;line-height:1.35;color:#3a586f}
.tps-map-navigation button{flex:0 0 auto;border:1px solid #afc8df;border-radius:8px;
    background:#fff;color:#153c5a;font:inherit;font-size:.8rem;font-weight:800;padding:8px 10px;cursor:pointer}
.tps-map-navigation button:hover{background:#dcecf9}
.tps-map-navigation button:focus-visible{outline:3px solid #ec5079;outline-offset:2px}
.tps-map-popup-navigate{display:block;width:100%;padding:11px 14px;border:0;border-top:1px solid #e6edf4;
    background:#0f619a;color:#fff;text-align:left;font:inherit;font-size:.87rem;font-weight:800;cursor:pointer}
.tps-map-popup-navigate:hover{background:#0b4c79}
.tps-map-popup-navigate:focus-visible{outline:3px solid #e50731;outline-offset:-3px}
.tps-map-gps-location{border:0!important;background:transparent!important}
.tps-map-gps-location span{display:block;width:20px;height:20px;border:4px solid #fff;
    border-radius:50%;background:#1976ba;box-shadow:0 0 0 3px #1976ba,0 2px 9px #112c48aa}
.tps-map-overlay-slot .tps-map-navigation{flex:0 0 auto;margin:0;border-radius:0;border-left:0;border-right:0}
@media(max-width:600px){.tps-map-navigation{gap:8px;padding:9px}.tps-map-navigation button{padding:7px;font-size:.77rem}}
