#map {
    background-color: #ffffff;
}

html,
body,
#map {
    overflow: hidden;
}

.col9 {
    height: 100% !important;
}

.col3 {
    height: 100%;
    overflow: auto;
}

.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background-color: #f8f8f8 !important;
    color: #444444 !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info h2 {
    margin: 0 0 5px;
}

.leaflet-container {
    background: #fff;
    padding-right: 10px;
}

.leaflet-popup-scrolled {
    border-bottom: unset !important;
    border-top: unset !important;
}

.leaflet-popup-content {
    max-height: 70vh;
    max-width: 70vw;
}

.leaflet-popup-content.media {
    width: auto !important;
    height: auto !important;
}

.leaflet-popup-content th {
    text-align: left;
    vertical-align: top;
    min-width: 75px;
}

.leaflet-popup-content td {
    min-width: 75px;
}

.leaflet-popup-content td img {
    max-height: 60vh;
    max-width: 60vw;
}

.leaflet-tooltip {
    background: none;
    box-shadow: none;
    border: none;
}

.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
    border: 0px;
}

/* KORREKTUR: Die überflüssige Klammer wurde hier entfernt. */
.fa,
.leaflet-container,
a {
    color: #444444 !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-locate a,
.leaflet-touch .leaflet-control-geocoder-icon,
.leaflet-control-search .search-button,
.leaflet-control-measure {
    background-color: #f8f8f8 !important;
    border-radius: 0px !important;
    color: #444444 !important;
}

.abstract {
    font: bold 18px 'Lucida Console', Monaco, monospace;
    text-indent: 1px;
    background-color: #f8f8f8 !important;
    width: 30px !important;
    color: #444444 !important;
    height: 30px !important;
    text-align: center !important;
    line-height: 30px !important;
}

.abstractUncollapsed {
    padding: 6px 8px;
    font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
    background-color: #f8f8f8 !important;
    color: #444444 !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    max-width: 40%;
}

.leaflet-control {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar,
.leaflet-control-search,
.leaflet-control-measure {
    border: 3px solid rgba(255, 255, 255, .4) !important;
}

.leaflet-control-attribution a {
    color: #0078A8 !important;
}

.leaflet-control-scale-line {
    border: 2px solid #f8f8f8 !important;
    border-top: none !important;
    color: black !important;
}

.leaflet-control-search .search-button,
.leaflet-container .leaflet-control-search,
.leaflet-control-measure {
    box-shadow: none !important;
}

.leaflet-control-search .search-button {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    text-align: center !important;
    line-height: 30px !important;
}

.leaflet-control-measure .leaflet-control {
    width: 30px !important;
    height: 30px !important;
}

.leaflet-container .leaflet-control-search {
    background: none !important;
}

.leaflet-control-search .search-input {
    margin: 0px 0px 0px 0px !important;
    height: 30px !important;
}

.leaflet-control-measure {
    background: none !important;
    border-radius: 4px !important;
}

.leaflet-control-measure .leaflet-control-measure-interaction {
    background-color: #f8f8f8 !important;
}

.leaflet-touch .leaflet-control-measure .leaflet-control-measure-toggle,
.leaflet-touch .leaflet-control-measure .leaflet-control-measure-toggle:hover {
    width: 30px !important;
    height: 30px !important;
    border-radius: 0px !important;
    background-color: #f8f8f8 !important;
    color: #444444 !important;
    font-size: 13px;
    line-height: 30px;
    text-align: center;
    text-indent: 0%;
}

.leaflet-control-layers {
    padding: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background-color: #f8f8f8 !important;
    color: #444444 !important;
}

.leaflet-control-layers-expanded {
    padding-left: 6px;
}

.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
    display: block;
    background-image: none;
    text-decoration: none;
    margin-bottom: 3px;
}

.leaflet-control-layers-expanded .leaflet-control-layers-toggle::after {
    content: '»';
    font-size: x-large;
    color: #444444 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.leaflet-overlay-pane {
    z-index: 550;
}

.leaflet-popup-pane {
    z-index: 700;
}

.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
    display: none;
}

.leaflet-control-layers-toggle {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    background-size: 26px !important;
}

/* Round the container itself when collapsed */
.leaflet-control-layers:not(.leaflet-control-layers-expanded) {
    border-radius: 50% !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
}

/* HINZUGEFÜGT: Stil für perfekt lesbare Kontur-Beschriftungen */
.contour-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 10px !important;
    font-weight: normal !important;
    text-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Entfernt den kleinen Pfeil (Dreieck) des Tooltips */
.contour-label:before,
.contour-label:after {
    display: none !important;
    border: none !important;
    content: none !important;
}

/* --- NEUES MODERNES PIN-DESIGN --- */

.poi-marker {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

.poi-marker:hover {
    transform: scale(1.1) translateY(-2px);
    z-index: 1000 !important;
}

/* Der Pin-Körper (Tropfenform) */
.poi-marker-body {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #6b7280;
    /* Default Gray */
}

/* Das Icon im Pin */
.poi-marker-icon {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 14px;
    transform: translateY(-2px);
    /* Leicht nach oben wegen der Pin-Spitze */
}

/* Farbvarianten basierend auf Kategorien */
.poi-marker.category-general .poi-marker-body {
    background-color: #6b7280;
}

.poi-marker.category-entry .poi-marker-body {
    background-color: #10b981;
}

.poi-marker.category-parking .poi-marker-body {
    background-color: #3b82f6;
}

.poi-marker.category-sight .poi-marker-body {
    background-color: #8b5cf6;
}

.poi-marker.category-hazard .poi-marker-body {
    background-color: #ef4444;
}

.poi-marker.category-infrastructure .poi-marker-body {
    background-color: #f59e0b;
}

.poi-marker.category-fauna .poi-marker-body {
    background-color: #14b8a6;
}

.poi-marker.category-flora .poi-marker-body {
    background-color: #84cc16;
}

/* Status-Indikator (Exakt vs Ungefähr) */
.poi-marker.status-approximate .poi-marker-body {
    border-style: dashed;
    opacity: 0.9;
}

/* Unsichtbare POIs (Admin) */
.poi-marker.status-hidden {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Buoy Specific Overrides */
.poi-marker.category-buoy {
    width: 15px !important;
    height: 15px !important;
}

.poi-marker.category-buoy .poi-marker-body {
    width: 15px !important;
    height: 15px !important;
}

.poi-marker.category-buoy .poi-marker-icon {
    font-size: 8px !important;
    /* Smaller icon for buoy */
    transform: translateY(-1px) !important;
}