/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --off-white: #e8e8e8;
    --gray-light: #111111;
    --gray-medium: #888888;
    --gray-dark: #333333;
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.15);
    --accent-glow: rgba(0, 212, 255, 0.6);
    --live-red: #ff3b3b;
    --live-red-glow: rgba(255, 59, 59, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--off-white);
    background: var(--black);
}

/* Header */
.header {
    background: var(--black);
    border-bottom: 1px solid #1a1a1a;
    padding: 0.75rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.header-left, .header-right {
    width: 180px;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}

.header-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--live-red);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live-red);
    box-shadow: 0 0 6px var(--live-red-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--white);
    text-align: center;
    flex: 1;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--gray-medium);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    color: var(--white);
}

/* Navigation */
.nav {
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    padding: 0.85rem 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-medium);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active {
    color: var(--accent);
}

/* Hero Text */
.hero-text {
    padding: 5rem 2rem 4rem;
    text-align: center;
    background: var(--black);
}

.overline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Map */
.map-section {
    width: 100%;
    background: #050505;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

#airport-map {
    width: 100%;
    height: 480px;
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    color: var(--off-white);
}

.leaflet-popup-tip {
    background: #0d0d0d;
}

.leaflet-popup-content {
    margin: 14px 18px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.popup-code {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    line-height: 1.2;
}

.popup-city {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-top: 2px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.popup-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup-link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #333;
    padding: 5px 10px;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.popup-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Custom map marker */
.airport-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--live-red);
    border: 2px solid rgba(255, 59, 59, 0.4);
    box-shadow: 0 0 8px var(--live-red-glow), 0 0 20px rgba(255, 59, 59, 0.15);
    cursor: pointer;
    animation: map-pulse 2s ease-in-out infinite;
}

@keyframes map-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--live-red-glow), 0 0 20px rgba(255, 59, 59, 0.15); }
    50% { box-shadow: 0 0 14px var(--live-red-glow), 0 0 30px rgba(255, 59, 59, 0.3); }
}

.airport-dot:hover {
    transform: scale(1.4);
}

/* Filter Bar */
.filter-section {
    background: #050505;
    border-bottom: 1px solid #1a1a1a;
    padding: 1.25rem 2rem;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #2a2a2a;
    color: #666;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #444;
    color: var(--off-white);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* Webcam Grid */
.section {
    padding: 5rem 2rem;
}

.grid-section {
    background: #050505;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.webcam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 2px;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.webcam-card {
    background: #0a0a0a;
    overflow: hidden;
    position: relative;
}

.cam-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
}

.cam-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.cam-meta {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #161616;
}

.card-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--live-red);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.card-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--live-red);
    box-shadow: 0 0 5px var(--live-red-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

.card-city {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.card-desc {
    font-size: 0.78rem;
    color: var(--gray-medium);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 1px solid #1a1a1a;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-size: 0.8rem;
    color: var(--gray-medium);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-copy {
    font-size: 0.75rem;
    color: #444;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.4rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .header-left {
        width: auto;
    }

    .nav-list {
        gap: 1.2rem;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    #airport-map {
        height: 360px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .webcam-grid {
        grid-template-columns: 1fr;
    }

    .cam-embed-wrap {
        padding-bottom: 60%;
    }
}
