/* ==========================================================================
   NYC 2026 - Modern Dark Mode Design System & Glassmorphism Styles
   ========================================================================== */

:root {
    /* Color Tokens (HSL) */
    --bg-dark: hsl(222, 28%, 8%);
    --bg-surface: hsl(222, 24%, 12%);
    --bg-card: hsla(222, 22%, 16%, 0.75);
    --bg-card-hover: hsla(222, 22%, 20%, 0.85);
    --border-color: hsla(220, 20%, 25%, 0.5);
    --border-highlight: hsla(43, 96%, 56%, 0.4);

    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 72%);
    --text-muted: hsl(215, 16%, 55%);

    /* Accents */
    --accent-gold: hsl(43, 96%, 56%);
    --accent-gold-glow: hsla(43, 96%, 56%, 0.25);
    --accent-blue: hsl(204, 100%, 58%);
    --accent-blue-glow: hsla(204, 100%, 58%, 0.25);
    
    /* Category / Pass Badges */
    --color-gocity: hsl(350, 89%, 60%);
    --color-gocity-bg: hsla(350, 89%, 60%, 0.15);
    --color-vip: hsl(265, 89%, 66%);
    --color-vip-bg: hsla(265, 89%, 66%, 0.18);
    --color-food: hsl(152, 69%, 45%);
    --color-food-bg: hsla(152, 69%, 45%, 0.15);
    --color-views: hsl(36, 100%, 50%);
    --color-views-bg: hsla(36, 100%, 50%, 0.15);
    
    /* Elevation & Blur */
    --glass-backdrop: blur(14px);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(245, 166, 35, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 10% 20%, hsla(204, 100%, 58%, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(43, 96%, 56%, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: hsla(220, 20%, 30%, 0.7);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Header Section */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: hsla(222, 28%, 10%, 0.85);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-gold), hsl(36, 100%, 45%));
    color: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brand-text h1 span {
    color: var(--accent-gold);
}

.brand-text .subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Countdown Widget */
.countdown-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: hsla(222, 24%, 16%, 0.8);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count-val {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.count-lbl {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cd-dots {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 8px;
    background: hsla(222, 24%, 14%, 0.6);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: hsla(222, 20%, 25%, 0.5);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent-gold), hsl(36, 100%, 48%));
    color: #0b0f19;
    box-shadow: 0 4px 12px var(--accent-gold-glow);
}

/* Main Content Area */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    flex: 1;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 40px 12px 42px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.btn-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.btn-clear.hidden {
    display: none;
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
}

.chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.chip.active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    font-weight: 700;
}

.chip-gocity.active {
    background: var(--color-gocity);
    color: #fff;
    border-color: var(--color-gocity);
}

.chip-vip.active {
    background: var(--color-vip);
    color: #fff;
    border-color: var(--color-vip);
}

/* View Panels */
.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
}

/* Day Selector */
.day-selector-wrapper {
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-selector {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.day-tab {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.day-tab:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.day-tab.active {
    background: linear-gradient(135deg, hsla(43, 96%, 56%, 0.2), hsla(43, 96%, 56%, 0.05));
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.day-tab .day-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.day-tab.active .day-name {
    color: var(--accent-gold);
}

.day-tab .day-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* Timeline Section */
.timeline-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.day-summary-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.day-summary-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
}

.day-summary-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--border-color));
    z-index: 1;
}

/* Timeline Card */
.activity-card {
    position: relative;
    margin-left: 44px;
    background: hsla(222, 24%, 18%, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.activity-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: hsla(222, 24%, 22%, 0.8);
}

.activity-node {
    position: absolute;
    left: -44px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent-gold);
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

.activity-card.card-gocity .activity-node {
    border-color: var(--color-gocity);
    color: var(--color-gocity);
    box-shadow: 0 0 10px hsla(350, 89%, 60%, 0.4);
}

.activity-card.card-vip .activity-node {
    border-color: var(--color-vip);
    color: var(--color-vip);
    box-shadow: 0 0 10px hsla(265, 89%, 66%, 0.4);
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-gocity {
    background: var(--color-gocity-bg);
    color: var(--color-gocity);
    border: 1px solid hsla(350, 89%, 60%, 0.4);
}

.badge-vip {
    background: var(--color-vip-bg);
    color: var(--color-vip);
    border: 1px solid hsla(265, 89%, 66%, 0.4);
}

.badge-day {
    background: hsla(220, 20%, 30%, 0.5);
    color: var(--text-secondary);
}

.card-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid hsla(220, 20%, 30%, 0.4);
    padding-top: 10px;
}

.btn-card-action {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card-action:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: hsla(43, 96%, 56%, 0.08);
}

.btn-card-action.btn-saved-active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* Map Containers */
.map-container-side {
    position: sticky;
    top: 90px;
    height: calc(100vh - 120px);
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-controls-header {
    padding: 12px 16px;
    background: hsla(222, 28%, 10%, 0.9);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
}

.map-actions {
    display: flex;
    gap: 8px;
}

.btn-map-action {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-map-action:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

#leafletMap, #leafletMapFull {
    width: 100%;
    height: 100%;
    flex: 1;
    z-index: 1;
}

.full-map-wrapper {
    height: calc(100vh - 180px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Reservations View Grid */
.reservations-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.reservations-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.reservations-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--accent-gold);
}

.reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.res-card {
    background: hsla(222, 24%, 18%, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    transition: transform 0.2s ease;
}

.res-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.res-card.res-vip {
    border-color: var(--color-vip);
    box-shadow: 0 0 15px hsla(265, 89%, 66%, 0.15);
}

.res-card.res-gocity {
    border-color: hsla(350, 89%, 60%, 0.5);
}

.res-badge {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.res-vip .res-badge {
    background: var(--color-vip-bg);
    color: var(--color-vip);
}

.res-gocity .res-badge {
    background: var(--color-gocity-bg);
    color: var(--color-gocity);
}

.res-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin-bottom: 6px;
}

.res-time {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

.res-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.res-location {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.app-footer {
    background: hsla(222, 28%, 8%, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
    margin-top: 40px;
    text-align: center;
}

.footer-container p {
    font-size: 13px;
    color: var(--text-secondary);
}

.hotel-ref {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.hotel-ref span {
    color: var(--accent-gold);
}

/* Leaflet Dark Tile Enhancements */
.leaflet-container {
    background: #0b0f19 !important;
}

.leaflet-popup-content-wrapper {
    background: hsla(222, 24%, 14%, 0.95) !important;
    backdrop-filter: blur(10px);
    color: #fff !important;
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

.leaflet-popup-tip {
    background: hsla(222, 24%, 14%, 0.95) !important;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .activity-card {
        margin-left: 30px;
        padding: 12px 14px;
    }

    .activity-node {
        left: -32px;
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .map-container-side {
        height: 380px;
        position: static;
    }
}
