:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --accent-live: #10b981;
    --accent-live-glow: rgba(16, 185, 129, 0.4);
    --accent-cyan: #06b6d4;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(75, 85, 99, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px var(--accent-live-glow);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.6s ease-out;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-live) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.header-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Main Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    animation: fadeIn 0.8s ease-out;
}

/* Map Container */
.map-wrapper {
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    height: 600px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Location List */
.location-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover::before {
    opacity: 1;
}

.location-card.active {
    border-color: var(--accent-live);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-tertiary) 100%);
}

.location-card.active::before {
    background: linear-gradient(90deg, transparent, var(--accent-live), transparent);
    opacity: 1;
}

.location-card:hover:not(.disabled) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-cyan);
}

.location-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.location-card.disabled:hover {
    transform: none;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.location-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.location-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-live);
    border: 1px solid var(--accent-live);
}

.status-badge.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-live);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-badge.coming-soon {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.location-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 8px;
}

.location-action {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-live) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--accent-live-glow);
}

.action-button svg {
    width: 18px;
    height: 18px;
}

.coming-soon-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* Leaflet Customization */
.leaflet-container {
    background: #0a1929 !important;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0;
}

.leaflet-popup-tip {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.popup-content {
    padding: 16px;
    text-align: center;
}

.popup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.popup-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.popup-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-live) 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.popup-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--accent-live-glow);
}

/* Custom Markers */
.custom-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-live {
    background: var(--accent-live);
    animation: pulse-marker 2s infinite;
}

.marker-coming-soon {
    background: #6b7280;
}

.custom-marker svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-marker {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .location-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 24px 16px;
    }

    .header-section {
        margin-bottom: 32px;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .header-section p {
        font-size: 1rem;
    }

    .map-wrapper {
        height: 400px;
    }

    .location-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 1.75rem;
    }

    .header-section p {
        font-size: 0.9375rem;
    }

    .map-wrapper {
        height: 350px;
        border-radius: 16px;
    }

    .location-card {
        padding: 20px;
    }

    .location-name {
        font-size: 1.125rem;
    }
}

/* ==================================================================
   BACK TO HOME BUTTON
   ================================================================== */

.back-to-home {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.back-to-home:hover {
    background: rgba(31, 41, 55, 1);
    border-color: var(--accent-cyan);
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
}

.back-to-home svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.back-to-home:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .back-to-home {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .back-to-home svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-home {
        top: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 12px;
        gap: 8px;
    }

    .back-to-home span {
        display: none;
    }

    .back-to-home svg {
        width: 20px;
        height: 20px;
    }
}
