/* Basis Stijl */
.map-wrapper {
    --interactive-map-accent-color: #6D7C44;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #263238;
    display: flex;
    flex-direction: column;
    height: 650px;
    width: 100%;
    background-color: #fff;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.map-wrapper *, .map-wrapper *::before, .map-wrapper *::after {
    box-sizing: border-box;
}

.map-header {
    background-color: #fff;
    color: #263238;
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.map-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #263238;
}

.map-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: row;
    position: relative;
}

#map-canvas {
    flex: 2;
    height: 100%;
    min-height: 400px;
    z-index: 1;
    background-color: #e5e5e5;
}

.map-sidebar {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-left: 1px solid #eee;
    max-width: 380px;
    z-index: 2;
}

.map-sidebar h3 {
    color: #263238;
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.map-search {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.95rem;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.map-search:focus {
    outline: none;
    border-color: var(--interactive-map-accent-color);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(109, 124, 68, 0.15);
}

#platform-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

#platform-list::-webkit-scrollbar {
    width: 6px;
}

#platform-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#platform-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#platform-list::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.province-header {
    color: var(--interactive-map-accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.province-header:first-child {
    margin-top: 0;
}

.platform-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.platform-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--interactive-map-accent-color);
}

.platform-title {
    font-weight: 700;
    color: #263238;
    margin-bottom: 4px;
    display: block;
    font-size: 1.05rem;
}

.platform-region {
    font-size: 0.9em;
    color: #546e7a;
    margin-bottom: 12px;
    display: block;
    line-height: 1.4;
}

.map-btn {
    display: inline-block;
    background-color: var(--interactive-map-accent-color);
    color: white !important;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.map-btn:hover {
    filter: brightness(0.9);
    text-decoration: none;
}

/* Custom Marker Style */
.custom-marker {
    background-color: var(--interactive-map-accent-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.5;
}

.leaflet-popup-content h3 {
    margin: 0 0 8px 0;
    color: #263238;
    font-size: 1.2rem;
    font-weight: 700;
}

.leaflet-popup-content p {
    margin: 0 0 10px 0;
    color: #546e7a;
}

.leaflet-popup-content a.map-btn {
    color: white;
    margin-top: 5px;
    display: inline-block;
}

/* Keep the old soft light look while using a single tile source for labels */
.leaflet-tile.interactive-map-tiles--lightized {
    filter: saturate(0.75) brightness(1.05) contrast(0.92);
}

@media (max-width: 768px) {
    .map-wrapper {
        height: auto;
        min-height: 800px;
    }

    .map-container {
        flex-direction: column;
        height: auto;
    }

    .map-sidebar {
        max-width: none;
        height: 500px;
        border-left: none;
        border-top: 1px solid #eee;
    }

    #map-canvas {
        height: 400px;
        min-height: 400px;
    }
}

