/* Interactive Map Section - minimal custom styles, uses project classes */

.interactive-map-section {
    padding-bottom: 100px;
}

/* Main wrapper */
.interactive-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 300px;
}

@media screen and (min-width: 1024px) {
    .interactive-map-wrapper {
        flex-direction: row;
        gap: 30px;
        min-height: 700px;
    }
}

/* Left Panel */
.interactive-map-left-panel {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
}

@media screen and (min-width: 1024px) {
    .interactive-map-left-panel {
        flex-basis: 40%;
    }
}

/* Search Box */
.map-search-box {
    margin-bottom: 20px;
}

.map-search-box .search-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    transition: color 0.2s;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 0;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #000;
}

.search-input:focus + .search-icon {
    color: #000;
}

.search-input::placeholder {
    color: #999;
}

/* List Header */
.map-list-header {
    display: none;
    margin-bottom: 15px;
}

@media screen and (min-width: 1024px) {
    .map-list-header {
        display: block;
    }
}

.map-list-header .list-title {
    font-weight: 600;
    margin: 0;
}

/* Locations List */
.localization-items-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    max-height: 600px;
}

@media screen and (min-width: 1024px) {
    .localization-items-wrapper {
        padding-right: 15px;
        max-height: 686px;
    }
}

.localization-items-wrapper::-webkit-scrollbar {
    width: 8px;
}

.localization-items-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0;
}

.localization-items-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 0;
}

.localization-items-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Localization Item */
.localization-item {
    margin-bottom: 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: background-color 0.3s ease;
}

.localization-item.localization-visible {
    display: block;
}

.localization-item:not(.localization-visible) {
    display: none;
}

.localization-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.localization-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.localization-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.localization-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    user-select: none;
    flex: 1;
    transition: color 0.2s;
}

.localization-type {
    margin-right: 8px;
    font-weight: 700;
}

.localization-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    transition: transform 0.3s;
}

.localization-item.active-localization .localization-toggle {
    transform: rotate(180deg);
}

.localization-toggle .chevron-icon {
    width: 24px;
    height: 24px;
}

/* Localization Details */
.localization-details {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding-top 0.3s ease, margin-top 0.3s ease;
}

.localization-item.active-localization .localization-details {
    max-height: 1000px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.localization-item.active-localization {
    background-color: #f5f5f5;
}

.localization-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Info Row */
.info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.info-label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.info-value {
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-word;
    line-height: 1.5;
    padding-left: 24px;
}

.info-value:hover {
    color: #e51636;
}

.location-text {
    line-height: 1.6;
}

/* Website Button */
.localization-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 12px 24px;
    border: 2px solid #000;
    background-color: transparent;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s;
}

.localization-btn svg {
    width: 16px;
    height: 16px;
}

.localization-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Right Panel - Map */
.interactive-map-right-panel {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media screen and (min-width: 1024px) {
    .interactive-map-right-panel {
        flex-basis: 58%;
    }
}

.training-map {
    width: 100%;
    height: 500px;
    background-color: #f5f5f5;
    border: 5px solid;
}

@media screen and (min-width: 768px) {
    .training-map {
        height: 600px;
    }
}

@media screen and (min-width: 1024px) {
    .training-map {
        flex: 1;
        min-height: 600px;
    }
}

/* Map Legend */
.map-legend {
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 15px;
}

.legend-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.legend-dot[data-fill-level="no_future_trainings"] {
    background-color: #999999;
}

.legend-dot[data-fill-level="low_occupancy"] {
    background-color: #2196F3;
}

.legend-dot[data-fill-level="medium_occupancy"] {
    background-color: #FFC107;
}

.legend-dot[data-fill-level="high_occupancy"] {
    background-color: #FF9800;
}

.legend-dot[data-fill-level="full_occupancy"] {
    background-color: #F44336;
}

.legend-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Empty State */
.empty-localizations-wrapper {
    margin-top: 20px;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 0;
    text-align: center;
}

.empty-localizations-wrapper.invisible-wrapper {
    display: none !important;
}

.empty-localizations-wrapper p {
    font-weight: 600;
    margin: 0;
}

.localization-items-wrapper.invisible-wrapper {
    display: none !important;
}

/* Leaflet popup customization */
.leaflet-popup-content h4 {
    margin: 0 0 10px 0;
}

.leaflet-popup-content p {
    margin: 5px 0;
}

/* Theme colors for map border - matches newsslider */
.theme-light-green .training-map {
    border-color: #c3dca5;
}

.theme-green .training-map {
    border-color: #7f8845;
}

.theme-gray .training-map {
    border-color: #666666;
}

.theme-aqua .training-map {
    border-color: #00aeef;
}

.theme-modern-military-green .training-map {
    border-color: #4a5f3b;
}

.theme-blue .training-map {
    border-color: #0066cc;
}

.theme-yellow .training-map {
    border-color: #ffd700;
}
