* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #0f3460;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #e94560;
}

header p {
    color: #888;
    font-size: 0.95rem;
}

#map {
    height: calc(100vh - 100px);
    width: 100%;
}

/* Custom marker style */
.drone-marker {
    background: #e94560;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.5);
}

/* Locations Panel */
#locations-panel {
    position: absolute;
    top: 110px;
    left: 15px;
    z-index: 1000;
    background: rgba(22, 33, 62, 0.95);
    border-radius: 12px;
    padding: 15px;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 69, 96, 0.3);
}

#locations-panel h3 {
    color: #e94560;
    margin-bottom: 12px;
    font-size: 1rem;
}

#locations-list {
    list-style: none;
    max-height: 350px;
    overflow-y: auto;
}

#locations-list li {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#locations-list li:hover {
    background: rgba(233, 69, 96, 0.15);
    border-left-color: #e94560;
}

#locations-list li .loc-title {
    font-weight: 600;
    color: #eee;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

#locations-list li .loc-date {
    color: #888;
    font-size: 0.75rem;
}

#show-more-btn, #show-less-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid #e94560;
    color: #e94560;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#show-more-btn:hover, #show-less-btn:hover {
    background: #e94560;
    color: #fff;
}

/* Popup styling */
.leaflet-popup-content-wrapper {
    background: #16213e;
    color: #eee;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

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

.leaflet-popup-tip {
    background: #16213e;
}

.popup-content h3 {
    color: #e94560;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.popup-content p {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.popup-content .play-btn {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.popup-content .play-btn:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #16213e;
    margin: 3% auto;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e94560;
}

#modal-title {
    color: #e94560;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#modal-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

#modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

#modal-description {
    margin-top: 15px;
    color: #ccc;
    line-height: 1.6;
}

#modal-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
}

#modal-meta span::before {
    margin-right: 5px;
}

#modal-date::before {
    content: "📅";
}

#modal-location::before {
    content: "📍";
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    #locations-panel {
        top: auto;
        bottom: 15px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    #locations-list {
        max-height: 150px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    #modal-meta {
        flex-direction: column;
        gap: 10px;
    }
}
