/* start-map – aus Start  map [64] (früher Inline-Block), eingebunden über Redd\Portal\Assets */
/* Hintergrund (Meer): REDD+ Settings → Map, gesetzt von world-map.js */
section[data-redd-world-map] { background-color: var(--redd-map-bg, #bde2de); }
#map-card {
    min-height: 400px;
    height: 60vh;
    max-height: 700px;
}
#map-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
}
#countries-list li a, #countries-list-modal li a {
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
}
#countries-list li a:hover, #countries-list-modal li a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
    color: #111;
}
#country-list-scrollable::-webkit-scrollbar,
#country-list-scrollable-modal::-webkit-scrollbar {
    width: 6px;
}
#country-list-scrollable::-webkit-scrollbar-track,
#country-list-scrollable-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
#country-list-scrollable::-webkit-scrollbar-thumb,
#country-list-scrollable-modal::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 3px;
}
#country-list-scrollable {
    overflow-y: auto;
    max-height: calc(60vh - 100px);
    min-height: 200px;
}
@media (max-width: 959px) {
    /* Handy/Tablet: Höhe passend zum Ausschnitt der REDD+-Länder (siehe fitToActiveCountries), Seite bleibt mit einem Finger scrollbar */
    #map-card { height: auto; min-height: 0; max-height: none; }
    #map-container { height: 62vw; min-height: 300px; max-height: 70vh; }
    #map-regions { display: flex; align-items: center; gap: 8px; max-width: 320px; margin-left: auto; margin-right: auto; }
    #map-regions .uk-form-label { margin: 0; color: #666; }
    #map-regions .uk-select { background-color: #fff; border-color: #22a091; }
    #world-map { touch-action: pan-x pan-y; }
    #world-map.is-roaming { touch-action: none; } /* gezoomt: ein Finger verschiebt die Karte */
    #map-container .uk-button-group .uk-button { padding: 0 10px; line-height: 34px; }
    #country-list-card { margin-top: 0; }
    #sidebar-section { width: 100% !important; order: 2; margin-top: 0; max-height: none; }
    #country-list-scrollable { max-height: 250px; }
    #map-section { width: 100% !important; order: 1; }
    #mobile-search-modal .uk-modal-dialog { width: 90%; margin: auto; }
    #mobile-search-modal #country-list-scrollable-modal { max-height: 60vh; overflow-y: auto; }
}
@media (max-width: 639px) {
    /* Länderdialog auf dem Handy über die volle Breite */
    #ajax-modal { padding: 0; }
    #ajax-modal #ajax-dialog { width: 100%; min-height: 100vh; margin: 0 !important; border-radius: 0; }
}

/* Vollbild (Handy/Tablet, Knopf neben den Zoom-Knöpfen) */
#map-container.is-fullscreen { position: fixed !important; inset: 0; z-index: 1005; width: 100vw; height: 100vh !important; height: 100dvh !important; max-height: none !important; background: var(--redd-map-bg, #bde2de); }
#map-container.is-fullscreen #world-map { touch-action: none; }
html.redd-map-fs, html.redd-map-fs body { overflow: hidden; }
.redd-map-fs-close { position: absolute; z-index: 1002; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); font-size: 28px; line-height: 44px; color: #333; cursor: pointer; }
.redd-map-fs-close[hidden] { display: none; }
