.contest-log-viewer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contest-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    background: transparent;
    color: #f39c12; 
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}    

.info-card h3 {
    margin: 0 0 10px 0;
    color: #32cd32;
    font-size: 16px;
    font-weight: 600;
}

.info-card p {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.band-filters {
    background: transparent;    
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.band-filters h3 {
    margin: 0 0 15px 0;
    color: #e249c9;
    text-align: center;
}

.band-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.band-btn {
    background: transparent;
    border: 3px solid #007bff;           
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease; 
    outline: none; 
}

.band-btn:hover {
    background: #e3f2fd;
    transform: translateY(-1px); 
}

.band-btn.active {
    background: #007bff;
    color: #fff;
}

.band-btn:active {
    transform: translateY(0);
}

.map-controls {
    background: #f8f9fa;    
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.map-controls h3 {
    margin: 0 0 15px 0;
    color: #495057;
}

.control-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.control-item input[type="checkbox"] {
    margin-right: 8px;
}

.control-item label {
    cursor: pointer;
    color: #40e0d0;
}

#map {
    height: 600px;
    width: 100%;    
    border-radius: 8px;
    margin-bottom: 20px;
}

.legend {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend h3 {
    margin: 0 0 15px 0;
    color: #495057;
}

.legend-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    color: #40e0d0;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
}

#map .leaflet-popup-pane {
    z-index: 9999 !important;
}

#map .leaflet-popup {
    z-index: 9999 !important;
}

#map .leaflet-popup-content-wrapper {
    z-index: 9999 !important;
    background: white !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
}

#map .leaflet-popup-tip {
    z-index: 9999 !important;
    background: white !important;
}

#map .leaflet-popup-close-button {
    z-index: 9999 !important;
}

#map .leaflet-marker-pane {
    z-index: 500 !important;
}

#map .leaflet-overlay-pane svg {
    z-index: 400 !important;
}

.info-message {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mobile-marker {
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .contest-log-viewer {
        padding: 10px;
    }
    
    .contest-info {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 400px;
    }
    
    .map-controls {
        text-align: center;
    }
    
    .control-item {
        display: block;
        margin: 10px 0;
    }
    
    .band-buttons {
        justify-content: center;
    }
    
    .band-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .leaflet-interactive {
        cursor: pointer !important;
    }
    
    .leaflet-popup-content {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .leaflet-popup-close-button {
        font-size: 20px !important;
        width: 30px !important;
        height: 30px !important;
    }
}

/* ODX popisky (nejdelsi spojeni) */
.odx-tooltip {
    background: #ffd700;
    color: #000;
    border: 2px solid #b8860b;
    border-radius: 6px;
    padding: 3px 8px;
    font-weight: bold;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    white-space: nowrap;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.odx-tooltip .odx-call {
    color: #002b5c;
    text-decoration: underline;
    font-weight: bold;
}

.odx-tooltip .odx-call:hover {
    color: #0a66c2;
}

.odx-tooltip.leaflet-tooltip-top::before {
    border-top-color: #ffd700;
}
