/* Map Navigation */

.map-navigation {
    background-color: #f5f4f4;
    height: 76px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 100;
}

.map-navigation-inner {
    width: 100%;
    max-width: 100%; /* Volle Breite */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px; /* 10px Padding - flucht mit Mapbox Controls */
}

.map-logo {
    display: flex;
    align-items: center;
    height: 37px;
}

.map-logo img {
    height: 37px;
    width: auto;
}

.map-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: transparent;
    border: none;
    padding: 0;
}

.map-close:hover {
    background-color: rgba(255, 101, 0, 0.1);
    transform: scale(1.05);
}

.map-close:active {
    transform: scale(0.95);
}

.map-close i {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.map-close:hover i {
    color: #ff6500;
}

.mapboxgl-map {
    border-top: 1px solid #e5e5e5;
}

/* End Map Navigation */

/* Map Controls */

.mapboxgl-ctrl-group {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.mapboxgl-ctrl-geolocate {
    background-color: white !important;
}

.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23133afd' d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle fill='%23133afd' cx='10' cy='10' r='2'/%3E%3C/svg%3E") !important;
}

/* Pulsing Indicator for Geolocate Button */
.mapboxgl-ctrl-geolocate.pulse-indicator {
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(19, 58, 253, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(19, 58, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(19, 58, 253, 0);
    }
}

/* End Map Controls */

/* Custom Markers */

.custom-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

.mapboxgl-marker {
    cursor: pointer;
}

/* End Custom Markers */

/* Popup Styles */

.mapboxgl-popup {
    max-width: 300px !important;
}

.mapboxgl-popup-content {
    text-align: center;
    max-width: 280px;
    border-radius: 12px !important;
    padding: 20px !important;
    font-family: 'Source Sans Pro', sans-serif;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
    overflow: hidden;
}


.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    display: none;
}

.mapboxgl-popup-content img {
    border-radius: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.mapboxgl-popup-content h3 {
    padding: 0;
    margin: 0 0 6px 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.mapboxgl-popup-content h4 {
    padding: 0;
    margin: 0 0 12px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.mapboxgl-popup-content p {
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.mapboxgl-popup-content a.popup-button {
    display: inline-block;
    background: linear-gradient(to right, rgba(19, 58, 253, 0.08), rgba(19, 58, 253, 0.12));
    color: #133afd;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    transition: all 0.2s ease;
    margin-top: 4px;
    outline: none;
}

.mapboxgl-popup-content a.popup-button:hover {
    background: linear-gradient(to right, rgba(19, 58, 253, 0.12), rgba(19, 58, 253, 0.16));
    transform: translateY(-1px);
}

.mapboxgl-popup-content a.popup-button:focus {
    outline: none;
}

.mapboxgl-popup-close-button {
    font-size: 22px !important;
    color: #333 !important;
    padding: 4px 8px !important;
    background-color: white !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.mapboxgl-popup-close-button:hover {
    color: #ff6500 !important;
    background-color: white !important;
    transform: scale(1.1) !important;
}

/* End Popup Styles */

/* Info Callout */

.callout {
    position: fixed;
    top: 85px;
    right: 20px;
    max-width: 280px;
    z-index: 999;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.callout-header {
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #133afd 0%, #1a50ff 100%);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.callout-container {
    font-family: 'Source Sans Pro', sans-serif;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    font-size: 14px;
    background-color: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    line-height: 1.6;
}

.callout-container p {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.callout-container a {
    color: #133afd;
    text-decoration: none;
    font-weight: 600;
}

.callout-container a:hover {
    color: #ff6500;
    text-decoration: underline;
}

.closebtn {
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

.closebtn:hover {
    opacity: 0.7;
}

/* End Info Callout */

/* Category Filter */

.category-filter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f5f4f4;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 12px 10px;
}

.category-filter-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-checkbox {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background-color: white;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.filter-checkbox:hover {
    background-color: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-checkbox input[type="checkbox"]:checked ~ .filter-label {
    font-weight: 600;
}

.filter-label {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.filter-label i {
    margin-right: 8px;
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.filter-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category-specific colors */
.filter-highlights .filter-label i { color: #ff6500; }
.filter-highlights input[type="checkbox"]:checked ~ .filter-label { color: #ff6500; }
.filter-highlights:hover { border-color: rgba(255, 101, 0, 0.2); }

.filter-essen-trinken .filter-label i { color: #108809; }
.filter-essen-trinken input[type="checkbox"]:checked ~ .filter-label { color: #108809; }
.filter-essen-trinken:hover { border-color: rgba(16, 136, 9, 0.2); }

.filter-shopping .filter-label i { color: #f301a0; }
.filter-shopping input[type="checkbox"]:checked ~ .filter-label { color: #f301a0; }
.filter-shopping:hover { border-color: rgba(243, 1, 160, 0.2); }

.filter-unterkuenfte .filter-label i { color: #808080; }
.filter-unterkuenfte input[type="checkbox"]:checked ~ .filter-label { color: #808080; }
.filter-unterkuenfte:hover { border-color: rgba(128, 128, 128, 0.2); }

.filter-sonstiges .filter-label i { color: #002bff; }
.filter-sonstiges input[type="checkbox"]:checked ~ .filter-label { color: #002bff; }
.filter-sonstiges:hover { border-color: rgba(0, 43, 255, 0.2); }

/* Unchecked state - grayed out */
.filter-checkbox input[type="checkbox"]:not(:checked) ~ .filter-label {
    opacity: 0.4;
}

.filter-checkbox input[type="checkbox"]:not(:checked) ~ .filter-label i {
    color: #999;
}

/* Checkmark indicator */
.filter-checkbox input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 50%;
}

/* End Category Filter */

/* Responsive Design */

@media (max-width: 768px) {
    .map-navigation {
        height: 60px;
    }
    
    .map-navigation-inner {
        padding: 0 10px; /* 10px Padding auch mobil */
    }
    
    .map-logo img {
        height: 33px;
    }
    
    .map-close {
        width: 40px;
        height: 40px;
    }
    
    .map-close i {
        font-size: 24px;
    }
    
    .callout {
        top: 70px;
        right: 10px;
        left: auto;
        max-width: 260px;
    }
    
    .callout-header {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .callout-header svg {
        width: 18px;
        height: 18px;
        margin-right: 7px;
    }
    
    .callout-container {
        padding: 18px;
        font-size: 14px;
    }
    
    .callout-container p {
        font-size: 14px;
        margin: 0 0 10px 0;
    }
    
    .mapboxgl-popup {
        max-width: 260px !important;
    }
    
    .mapboxgl-popup-content {
        max-width: 240px;
        padding: 16px !important;
    }
    
    .mapboxgl-popup-content h3 {
        font-size: 18px;
    }
    
    .mapboxgl-popup-content h4,
    .mapboxgl-popup-content p {
        font-size: 13px;
    }
    
    .category-filter {
        padding: 10px;
    }
    
    .category-filter-inner {
        gap: 6px;
    }
    
    .filter-checkbox {
        padding: 10px 12px;
    }
    
    .filter-label {
        font-size: 13px;
    }
    
    .filter-label i {
        font-size: 14px;
        margin-right: 7px;
    }
}

/* Desktop - 3 columns for filters */
@media (min-width: 769px) {
    .category-filter {
        padding: 16px 20px;
    }
    
    .category-filter-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Large Desktop - 6 columns (one row) */
@media (min-width: 1200px) {
    .category-filter-inner {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

/* End Responsive Design */

