:root {
    --primary-color: #3b82f6;
    --text-color: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --modal-bg: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #0f172a;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Custom Map Styles (Dark Mode-ish) */
.leaflet-container {
    background: #0f172a;
}

/* Overlay Title */
.overlay-title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    padding: 15px 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.overlay-title h1 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.overlay-title p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.visible .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-button:hover {
    color: var(--text-color);
}

#camera-title {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
    padding-right: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Custom Marker Styles */
.custom-marker {
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid #fff;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.4);
    cursor: pointer;
}
