/**
 * Antamar Leaflet Map Styling
 * Ersetzt antamar_axZm.css
 */

/* Container fuer die Weltkarte */
#wegweiserMapContainer {
    margin: 2px auto 15px auto;
    text-align: center;
    min-width: 400px;
    min-height: 400px;
    background-color: #1D1D1A;
    border: 2px solid #2D2D2D;
    border-radius: 5px;
}

#wegweiserMapContainer img {
    margin: 0;
}

/* Leaflet Map Container */
.leaflet-container {
    background-color: #1D1D1A;
    font-family: Tahoma, Arial, sans-serif;
}

/* Popup Styling passend zum Antamar-Design */
.antamar-leaflet-popup .leaflet-popup-content-wrapper {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.5);
}

.antamar-leaflet-popup .leaflet-popup-content {
    margin: 10px;
    font-size: 11px;
    color: #000000;
    text-align: left;
    line-height: 1.4;
    text-shadow: none;
}

.antamar-leaflet-popup .leaflet-popup-tip {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
}

/* Standard Leaflet Popup (ohne custom class) */
.leaflet-popup-content-wrapper {
    background: #FFFFFF url('../bilder/antamar_logo_50x35.png') no-repeat right 3px;
    border-radius: 5px;
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
    margin: 10px;
    padding-right: 55px;
    font-size: 11px;
    min-width: 150px;
    text-shadow: none;
}

/* Popup Inhalt */
.antamar-map-popup {
    min-width: 120px;
}

.antamar-map-popup strong {
    color: #104EDB;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.antamar-map-popup em {
    color: #666666;
    font-style: italic;
}

/* Button im Popup */
.antamar-map-popup .button,
.antamar-map-popup button.button {
    margin-top: 10px;
    padding: 5px 15px;
    cursor: pointer;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%);
    border: 1px solid #999999;
    border-radius: 3px;
    font-size: 11px;
    color: #333333;
}

.antamar-map-popup .button:hover,
.antamar-map-popup button.button:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 100%);
    border-color: #666666;
}

/* Zoom Controls */
.leaflet-control-zoom {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.leaflet-control-zoom a {
    background-color: #FFFFFF;
    color: #333333;
}

.leaflet-control-zoom a:hover {
    background-color: #F4F4F4;
}

/* Marker Icons */
.leaflet-marker-icon {
    cursor: pointer;
}

/* =============================================
   Mittelalterliche Marker
   ============================================= */

/* Basis-Styling fuer mittelalterliche Marker */
.medieval-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8),
                 -1px -1px 2px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.5));
    cursor: pointer;
    transition: transform 0.2s ease;
}

.medieval-marker:hover {
    transform: scale(1.15);
}

.medieval-marker .marker-symbol {
    font-size: 28px;
    line-height: 1;
}

/* Aktueller Standort - Goldene Lilie (Fleur-de-lis) */
.medieval-marker.current-location {
    width: 32px;
    height: 32px;
}

.medieval-marker.current-location .marker-symbol {
    color: #FFD700;
    font-size: 32px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 4px #FFD700) drop-shadow(0 0 8px #FFA500);
    }
    50% {
        filter: drop-shadow(0 0 8px #FFD700) drop-shadow(0 0 15px #FFA500);
    }
}

.antamar-marker-current {
    z-index: 1000 !important;
}

/* Zielorte - Rote Flagge/Banner */
.medieval-marker.destination {
    width: 28px;
    height: 34px;
}

.medieval-marker.destination .marker-symbol {
    color: #CC0000;
    font-size: 32px;
}

.medieval-marker.destination:hover .marker-symbol {
    color: #FF3333;
}

/* Alternative Marker-Farben fuer verschiedene Ortstypen */
.medieval-marker.destination.town .marker-symbol {
    color: #8B4513;
}

.medieval-marker.destination.city .marker-symbol {
    color: #4169E1;
}

.medieval-marker.destination.port .marker-symbol {
    color: #1E90FF;
}

.medieval-marker.destination.castle .marker-symbol {
    color: #808080;
}

/* Schliessen-Button im Popup */
.leaflet-popup-close-button {
    color: #666666;
    font-size: 18px;
}

.leaflet-popup-close-button:hover {
    color: #000000;
}

/* Verhindere dass Leaflet-Elemente andere Styles ueberschreiben */
.leaflet-container a {
    color: #104EDB;
}

.leaflet-container a:hover {
    color: #0033AA;
}
