/* ============================================================
   Mission Control — BroTrip Stage-Based Navigation
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
    --card-bg: rgba(255, 255, 255, 0.035);
    --card-border: rgba(119, 141, 169, 0.15);
    --card-hover: rgba(0, 212, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.35);
    --gradient-primary: linear-gradient(135deg, var(--electric-blue), var(--neon-green));
    --gradient-warm: linear-gradient(135deg, var(--orange-blast), var(--deep-red));
    --mc-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Layout Grid ------------------------------------------- */
.mission-control {
    display: none; /* shown by JS after search */
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 80vh;
}
.mission-control.active {
    display: grid;
}

/* --- Sidebar ----------------------------------------------- */
.mc-sidebar {
    position: sticky;
    top: 72px; /* below header */
    height: calc(100vh - 72px);
    overflow-y: auto;
    background: rgba(10, 17, 40, 0.95);
    border-right: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: width var(--mc-transition);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,0.2) transparent;
}
.mc-sidebar::-webkit-scrollbar { width: 4px; }
.mc-sidebar::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 2px; }

/* Sidebar header */
.mc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(119, 141, 169, 0.15);
}
.mc-sidebar-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--electric-blue);
    white-space: nowrap;
}
.mc-collapse-btn {
    background: none;
    border: none;
    color: var(--steel);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s, transform 0.25s;
}
.mc-collapse-btn:hover { color: var(--electric-blue); }

/* Progress bar */
.mc-sidebar-progress {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(119, 141, 169, 0.1);
}
.mc-progress-bar {
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.mc-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.5s ease;
}
.mc-progress-label {
    font-size: 0.65rem;
    color: var(--steel);
    margin-top: 0.4rem;
    text-align: right;
    letter-spacing: 0.5px;
}

/* Collapsed sidebar */
.mc-sidebar.collapsed { width: 64px; }
.mc-sidebar.collapsed .mc-sidebar-title,
.mc-sidebar.collapsed .mc-stage-label,
.mc-sidebar.collapsed .mc-stage-desc,
.mc-sidebar.collapsed .mc-sidebar-footer,
.mc-sidebar.collapsed .mc-sidebar-progress { display: none; }
.mc-sidebar.collapsed .mc-stage-nav { justify-content: center; padding: 0.75rem 0; }
.mc-sidebar.collapsed .mc-stage-icon { margin-right: 0; font-size: 1.3rem; }
.mc-sidebar.collapsed .mc-collapse-btn { transform: rotate(180deg); }
.mc-sidebar.collapsed .mc-badge { position: absolute; top: 4px; right: 4px; font-size: 0.55rem; min-width: 14px; height: 14px; }

/* Stage navigation buttons */
.mc-stage-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
}
.mc-stage-nav {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: none;
    border: none;
    color: var(--steel);
    cursor: pointer;
    text-align: left;
    transition: all var(--mc-transition);
    position: relative;
    font-family: 'Work Sans', sans-serif;
    border-left: 3px solid transparent;
}
.mc-stage-nav:hover {
    background: rgba(0, 212, 255, 0.06);
    color: var(--concrete);
}
.mc-stage-nav.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--white);
    border-left-color: var(--electric-blue);
}
.mc-stage-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-right: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    transition: all var(--mc-transition);
}
.mc-stage-nav.active .mc-stage-icon {
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}
.mc-stage-text {
    flex: 1;
    min-width: 0;
}
.mc-stage-label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    line-height: 1.3;
}
.mc-stage-desc {
    font-size: 0.72rem;
    color: var(--steel);
    display: block;
    margin-top: 1px;
    opacity: 0.8;
}

/* Badges */
.mc-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.mc-badge:empty { display: none; }
.mc-badge-complete {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.3);
}
.mc-badge-partial {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange-blast);
    border: 1px solid rgba(255, 107, 53, 0.3);
}
.mc-badge-count {
    background: rgba(0, 212, 255, 0.12);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

/* Sidebar footer */
.mc-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(119, 141, 169, 0.15);
}
.mc-new-search-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(119, 141, 169, 0.25);
    border-radius: var(--radius-sm);
    color: var(--steel);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mc-transition);
}
.mc-new-search-btn:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

/* --- Main Content ------------------------------------------ */
.mc-main {
    padding: 1.5rem 2rem 4rem;
    min-width: 0; /* prevent grid blowout */
    overflow-x: clip; /* clip instead of hidden to preserve sticky positioning */
}

/* Stage panels — show/hide */
.mc-stage {
    display: none;
    animation: mcFadeIn 0.3s ease;
}
.mc-stage.active {
    display: block;
}
@keyframes mcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Stage headings */
.mc-stage-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mc-stage-heading-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
}

/* --- Dashboard Stage --------------------------------------- */
.mc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.mc-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--mc-transition);
}
.mc-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--mc-transition);
}
.mc-stat-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
}
.mc-stat-card:hover::before {
    opacity: 1;
}
.mc-stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--electric-blue);
    line-height: 1;
}
.mc-stat-value--blue { color: var(--electric-blue); }
.mc-stat-value--green { color: var(--neon-green); }
.mc-stat-value--orange { color: var(--orange-blast); }
.mc-stat-label {
    font-size: 0.72rem;
    color: var(--steel);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Quick Actions ----------------------------------------- */
.mc-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.mc-quick-action {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--mc-transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.mc-quick-action:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.mc-quick-action-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.mc-quick-action-text h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mc-quick-action-text p {
    font-size: 0.75rem;
    color: var(--steel);
    margin-top: 2px;
}

/* --- Section Cards ----------------------------------------- */
.mc-section-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color var(--mc-transition);
}
.mc-section-card:hover {
    border-color: rgba(119, 141, 169, 0.25);
}
.mc-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mc-section-title-count {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--electric-blue);
    font-family: 'Work Sans', sans-serif;
}

/* --- RSVP Card (Decide stage) ------------------------------ */
.mc-rsvp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.mc-rsvp-info {
    flex: 1;
    min-width: 200px;
}
.mc-rsvp-count {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-green);
}
.mc-rsvp-label {
    color: var(--steel);
    font-size: 0.85rem;
}
.mc-action-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--mc-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mc-action-btn--primary {
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-green));
    color: var(--midnight);
}
.mc-action-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}
.mc-action-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(119, 141, 169, 0.3);
    color: var(--concrete);
}
.mc-action-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--electric-blue);
}

/* --- Countdown (Prep stage) -------------------------------- */
.mc-countdown {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.mc-countdown-unit {
    text-align: center;
}
.mc-countdown-value {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--electric-blue);
    line-height: 1;
}
.mc-countdown-label {
    font-size: 0.7rem;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* --- Export Grid (Wrap Up stage) ---------------------------- */
.mc-export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.mc-export-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--mc-transition);
}
.mc-export-card:hover {
    border-color: var(--electric-blue);
    background: var(--card-hover);
    transform: translateY(-2px);
}
.mc-export-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.mc-export-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--concrete);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Settle Up Card ---------------------------------------- */
.mc-settle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.mc-settle-info {
    flex: 1;
    min-width: 200px;
}
.mc-settle-total {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-blast);
}
.mc-settle-label {
    color: var(--steel);
    font-size: 0.85rem;
}
.mc-venmo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #008CFF;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--mc-transition);
    text-decoration: none;
}
.mc-venmo-btn:hover {
    background: #006FCC;
    transform: translateY(-1px);
}

/* --- Empty States ------------------------------------------ */
.mc-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--steel);
}
.mc-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}
.mc-empty-hook {
    font-size: 0.975rem;
    color: var(--white);
    max-width: 340px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}
.mc-empty-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* --- Sticky Bottom Bar update ------------------------------ */
.sticky-bottom-bar .mc-stage-indicator {
    font-size: 0.7rem;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.75rem;
    font-weight: 600;
}

/* --- Mobile Tabs -------------------------------------------
   Critical styles are inlined in <head> for reliability.
   These are supplementary (badges, etc).
   ----------------------------------------------------------- */
.mc-mobile-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    font-size: 0.5rem;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mc-mobile-badge:empty { display: none; }
.mc-mobile-badge.mc-badge-complete {
    background: rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
}
.mc-mobile-badge.mc-badge-partial {
    background: rgba(255, 107, 53, 0.2);
    color: var(--orange-blast);
}
.mc-mobile-badge.mc-badge-count {
    background: rgba(0, 212, 255, 0.2);
    color: var(--electric-blue);
}

/* --- Search form embedded in Discover stage ---------------- */
.mc-search-embedded {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(119, 141, 169, 0.15);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.mc-search-embedded.collapsed {
    display: none;
}
.mc-search-embedded .search-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 1rem;
}

/* --- Search Summary Bar (collapsed search) ----------------- */
.mc-search-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 48px;
    transition: all var(--mc-transition);
}
.mc-search-summary:hover {
    border-color: rgba(0, 212, 255, 0.25);
}
.mc-search-summary__details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.mc-search-summary__pill {
    padding: 0.2rem 0.65rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--concrete);
    white-space: nowrap;
}
.mc-search-summary__tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.mc-search-summary__tag {
    padding: 0.15rem 0.5rem;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neon-green);
    white-space: nowrap;
    text-transform: capitalize;
}
.mc-search-summary__edit-btn {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(119, 141, 169, 0.3);
    border-radius: var(--radius-sm);
    color: var(--electric-blue);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--mc-transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.mc-search-summary__edit-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--electric-blue);
}

/* --- Responsive -------------------------------------------- */

/* Desktop — hide mobile tabs, show sidebar */
@media (min-width: 769px) {
    .mc-mobile-tabs {
        display: none !important;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .mission-control.active {
        grid-template-columns: 240px 1fr;
    }
    .mc-main {
        padding: 1.25rem 1.5rem 4rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mission-control.active {
        display: block; /* single column */
    }
    .mc-sidebar {
        display: none;
    }
    .mc-main {
        padding: 1rem 1rem 5rem;
    }
    .mc-search-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    .mc-search-summary__edit-btn {
        align-self: flex-end;
    }
    .mc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mc-stat-value {
        font-size: 1.8rem;
    }
    .mc-quick-actions {
        grid-template-columns: 1fr;
    }
    .mc-export-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mc-countdown-value {
        font-size: 2rem;
    }
    .mc-stage-heading {
        font-size: 1.25rem;
    }
    /* Hide old mobile nav when MC is active */
    .mission-control.active ~ #mobileBottomNav,
    .mission-control.active ~ .mobile-bottom-nav {
        display: none !important;
    }
}

/* When MC is active, hide old progress wizard and old mobile nav */
.mission-control.active ~ #progressWizard,
.mission-control.active ~ .progress-wizard {
    display: none !important;
}

/* Ensure existing sections work inside MC stages */
.mc-stage .trip-overview-bar,
.mc-stage .day-timeline,
.mc-stage .hotels-section,
.mc-stage .travel-section,
.mc-stage .full-itinerary,
.mc-stage .map-section {
    margin: 0;
    padding: 0;
}

/* Make map fill discover stage */
.mc-stage .map-section {
    margin-bottom: 1.5rem;
}

/* Map marker toggles */
.map-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
    padding: .6rem 0;
}
.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border: 1px solid rgba(143,163,189,.3);
    border-radius: 20px;
    background: transparent;
    color: rgba(143,163,189,.5);
    font-family: 'Work Sans', sans-serif;
    font-size: .72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.map-toggle .map-dot {
    opacity: .4;
    transition: opacity .2s;
}
.map-toggle.active {
    color: var(--concrete, #e0e1dd);
    border-color: rgba(143,163,189,.5);
}
.map-toggle.active .map-dot {
    opacity: 1;
}
.map-toggle:hover {
    border-color: rgba(143,163,189,.6);
    color: var(--concrete, #e0e1dd);
}

/* Hotels and travel within book stage */
.mc-stage .hotels-section,
.mc-stage .travel-section {
    margin-bottom: 1.5rem;
}

/* --- Book Stage: Event / Golf Cards ----------------------- */
.mc-book-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(119, 141, 169, 0.15);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all var(--mc-transition);
}
.mc-book-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.03);
}
.mc-book-card-info {
    flex: 1;
    min-width: 0;
}
.mc-book-card-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--concrete);
    margin: 0 0 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mc-book-meta {
    font-size: 0.85rem;
    color: var(--steel);
    margin-bottom: 0.4rem;
}
.mc-book-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-green);
}
.mc-book-price-label {
    font-size: 0.8rem;
    color: var(--steel);
    font-family: 'Work Sans', sans-serif;
}
.mc-book-pills {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.mc-book-pill {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.mc-book-pill:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.mc-book-pill--tm { background: #026CDF; }
.mc-book-pill--sh { background: #3F1D74; }
.mc-book-pill--sg { background: #F65F3A; }
.mc-book-pill--golf { background: linear-gradient(135deg, var(--orange-blast), var(--deep-red)); }

@media (max-width: 768px) {
    .mc-book-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .mc-book-card-info h4 {
        white-space: normal;
    }
}

/* --- Driving Card: Vehicle Selector & Cost ------------------ */
.mc-drive-stats {
    color: var(--steel);
}
.mc-vehicle-selector {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.mc-vehicle-btn {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(119, 141, 169, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--steel);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Work Sans', sans-serif;
}
.mc-vehicle-btn:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--concrete);
}
.mc-vehicle-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}
.mc-drive-cost {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: var(--neon-green);
    margin-top: 0.45rem;
    margin-bottom: 0;
}

/* --- Rental Car Grid (Travel & Lodging stage) ------------- */
.mc-rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.mc-rental-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid rgba(119, 141, 169, 0.15);
    border-left: 3px solid var(--rental-color, var(--electric-blue));
    border-radius: 12px;
    text-decoration: none;
    color: var(--concrete);
    transition: all var(--mc-transition);
}
.mc-rental-card:hover {
    border-color: var(--rental-color);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.mc-rental-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}
.mc-rental-meta {
    font-size: 0.75rem;
    color: var(--steel);
    margin-top: 0.25rem;
}
/* Rental car cost estimates */
.mc-rental-estimates {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(119, 141, 169, 0.15);
}
.mc-rental-estimates-label {
    font-size: 0.8rem;
    color: var(--steel);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.mc-rental-estimate-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}
.mc-rental-estimate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 10px;
}
.mc-rental-estimate-cat {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--concrete);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}
.mc-rental-estimate-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    line-height: 1.2;
}
.mc-rental-estimate-unit {
    font-size: 0.75rem;
    color: var(--steel);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}
.mc-rental-estimate-detail {
    font-size: 0.7rem;
    color: var(--steel);
    margin-top: 0.2rem;
}
@media (max-width: 768px) {
    .mc-rental-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Cost Rows -------------------------------------------- */
.mc-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(119, 141, 169, 0.08);
}
.mc-cost-row:last-child { border-bottom: none; }
.mc-cost-item {
    font-size: 0.9rem;
    color: var(--concrete);
}
.mc-cost-amount {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: var(--neon-green);
}
.mc-cost-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}
.mc-cost-total-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mc-cost-total-amount {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-green);
}

/* --- Night Picker Modal ----------------------------------- */
.night-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mcFadeIn 0.2s ease;
}
.night-picker-content {
    background: var(--midnight, #0a1128);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.night-picker-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--steel);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.night-picker-close:hover { color: var(--white); }
.night-picker-title {
    color: var(--electric-blue);
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.25rem;
}
.night-picker-subtitle {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.night-picker-cost {
    color: var(--neon-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.night-picker__select-all {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.night-picker__select-all label {
    color: var(--steel);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.night-picker__nights {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.night-picker__night {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--white);
    font-size: 0.9rem;
}
.night-picker__night:hover:not(.night-picker__night--taken) {
    background: rgba(0, 212, 255, 0.08);
}
.night-picker__night--taken {
    opacity: 0.4;
    cursor: not-allowed;
}
.night-picker__date {
    flex: 1;
    font-weight: 500;
}
.night-picker__events {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
    padding-left: 1.6rem;
}
.night-picker__event {
    font-size: 0.7rem;
    color: var(--electric-blue);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.night-picker__assigned {
    color: var(--orange-blast);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}
.night-picker__summary {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}
.night-picker__total {
    color: var(--neon-green);
}
.night-picker__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
.night-picker__cancel {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--steel);
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
}
.night-picker__cancel:hover { background: rgba(255, 255, 255, 0.12); }
.night-picker__confirm {
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-green));
    border: none;
    color: var(--midnight, #0a1128);
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
}
.night-picker__confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Itinerary within prep stage */
.mc-stage .full-itinerary {
    display: block !important; /* always visible in prep stage */
}

/* ============================================================
   Trip Page Overrides — MC always visible, fills viewport
   ============================================================ */

/* MC always visible on trip page (no need for .active toggle) */
body.trip-page .mission-control {
    display: grid;
    min-height: calc(100vh - 72px);
}

/* Hide search container on trip page until MC moves it to Discover */
body.trip-page > main > .search-container {
    display: none;
}

/* Hide results section on trip page (data source only) */
body.trip-page > main > .results-section {
    display: none !important;
}

/* Minimal footer for trip page */
.trip-footer {
    border-top: 1px solid rgba(119, 141, 169, 0.15);
    padding: 1.5rem 2rem;
    text-align: center;
}
.trip-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.trip-footer .footer-links {
    display: flex;
    gap: 1.5rem;
}
.trip-footer .footer-links a {
    color: var(--steel);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.trip-footer .footer-links a:hover {
    color: var(--electric-blue);
}
.trip-footer .footer-bottom {
    font-size: 0.8rem;
    color: rgba(143, 163, 189, 0.6);
}
.trip-footer .logo {
    font-size: 1.5rem;
}
.trip-footer .logo a,
header .logo a {
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Continue trip banner on index.html */
.continue-trip-banner {
    max-width: 800px;
    margin: 1rem auto 2rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.continue-trip-banner-text {
    color: var(--concrete);
    font-size: 0.95rem;
    font-weight: 500;
}
.continue-trip-banner-text strong {
    color: var(--electric-blue);
}
.continue-trip-banner-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--neon-green));
    color: var(--midnight);
    border: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.continue-trip-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Trip page mobile: MC is always block layout */
@media (max-width: 768px) {
    body.trip-page .mission-control {
        display: block;
        min-height: auto;
    }
    body.trip-page {
        padding-bottom: 70px;
    }
}

/* --- Poll Option Builder ---------------------------------- */
.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.poll-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(119, 141, 169, 0.18);
    border-radius: 8px;
    animation: mcFadeIn 0.15s ease;
}
.poll-option-item-text {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--concrete);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poll-option-remove {
    background: none;
    border: none;
    color: var(--steel);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.poll-option-remove:hover {
    color: var(--deep-red, #c1121f);
}
.poll-option-adder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.poll-option-input {
    flex: 1;
    min-width: 0;
}
.poll-date-input {
    flex: 1;
    min-width: 80px;
}
.poll-date-separator {
    color: var(--steel);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.poll-add-option-btn {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--electric-blue);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}
.poll-add-option-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--electric-blue);
}

/* --- Poll Share Buttons ---------------------------------- */
.poll-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.poll-share-channel-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(119, 141, 169, 0.2);
    border-radius: 8px;
    color: var(--concrete);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--mc-transition);
}
.poll-share-channel-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--white);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

/* --- Poll Cards in Decide Stage -------------------------- */
.mc-section-card .trip-polls-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.trip-poll-card {
    position: relative;
}
.trip-poll-card-share {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(119, 141, 169, 0.2);
    border-radius: 6px;
    color: var(--steel);
    font-size: 0.85rem;
    padding: 0.25rem 0.45rem;
    cursor: pointer;
    line-height: 1;
    transition: all var(--mc-transition);
}
.trip-poll-card-share:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--electric-blue);
}

/* --- Poll Card Inline Results ---------------------------- */
.poll-card-results {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.poll-card-result {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    font-size: 0.8rem;
}
.poll-card-result-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 6px;
    transition: width 0.4s ease;
}
.poll-card-result--leader .poll-card-result-bar {
    background: rgba(0, 212, 255, 0.2);
}
.poll-card-result-text {
    position: relative;
    color: var(--concrete);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}
.poll-card-result--leader .poll-card-result-text {
    color: var(--white);
}
.poll-card-result-count {
    position: relative;
    color: var(--steel);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.poll-card-result--leader .poll-card-result-count {
    color: var(--electric-blue);
}
.poll-card-no-votes {
    color: var(--steel);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.25rem 0;
    margin: 0;
}

/* --- Poll Actions Layout --------------------------------- */
.poll-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* --- Poll Delete Button ---------------------------------- */
.poll-delete-btn {
    padding: 0.55rem 1.25rem;
    background: rgba(193, 18, 31, 0.12);
    border: 1px solid rgba(193, 18, 31, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--mc-transition);
}
.poll-delete-btn:hover {
    background: rgba(193, 18, 31, 0.25);
    border-color: #ff6b6b;
}

/* --- RSVP List in Decide Stage --------------------------- */
.mc-rsvp-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
.mc-rsvp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}
.mc-rsvp-name {
    color: var(--concrete);
    font-weight: 500;
    font-size: 0.85rem;
}
.mc-rsvp-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
}
.mc-rsvp-status--yes {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green);
}
.mc-rsvp-status--maybe {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange-blast);
}
.mc-rsvp-status--no {
    background: rgba(193, 18, 31, 0.15);
    color: #ff6b6b;
}
.mc-rsvp-remove {
    background: none;
    border: none;
    color: var(--steel);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.25rem;
    flex-shrink: 0;
    transition: color 0.15s;
}
.mc-rsvp-remove:hover {
    color: #ff6b6b;
}

/* --- RSVP Invite Cards (Decide Stage) ---------------------- */
.rsvp-invite-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(119, 141, 169, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all var(--mc-transition);
}
.rsvp-invite-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.03);
}
.rsvp-invite-card--closed {
    opacity: 0.7;
}
.rsvp-invite-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.rsvp-invite-card-responses {
    margin-top: 0.5rem;
}
.rsvp-card-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.rsvp-bar--going {
    background: rgba(57, 255, 20, 0.2) !important;
}
.rsvp-bar--maybe {
    background: rgba(255, 107, 53, 0.2) !important;
}
.rsvp-bar--cant {
    background: rgba(193, 18, 31, 0.2) !important;
}

/* --- RSVP Invite Modal Response Bars ----------------------- */
.rsvp-invite-response-bars {
    margin-bottom: 1rem;
}
.rsvp-response-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rsvp-response-bar-item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    padding: 0.5rem 0.75rem;
}
.rsvp-response-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 8px;
    transition: width 0.4s ease;
}
.rsvp-response-bar--going {
    background: rgba(57, 255, 20, 0.2);
}
.rsvp-response-bar--maybe {
    background: rgba(255, 107, 53, 0.2);
}
.rsvp-response-bar--cant {
    background: rgba(193, 18, 31, 0.2);
}
.rsvp-response-bar-label {
    position: relative;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--concrete);
}

/* --- RSVP Invite Modal ------------------------------------- */
.rsvp-invite-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mcFadeIn 0.2s ease;
}

/* --- Config Selector Modal --------------------------------- */
.config-selector-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mcFadeIn 0.2s ease;
}
.config-selector-modal-content {
    background: var(--midnight, #0a1128);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.config-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.config-card {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(119, 141, 169, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--mc-transition);
}
.config-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}
.config-card.selected {
    border-color: var(--electric-blue);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}
.config-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
}
.config-card-meta {
    font-size: 0.8rem;
    color: var(--steel);
}

/* --- Save Config Modal ------------------------------------- */
.save-config-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mcFadeIn 0.2s ease;
}
.save-config-modal-content {
    background: var(--midnight, #0a1128);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    position: relative;
}

/* --- Manage Configs Modal ---------------------------------- */
.manage-configs-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mcFadeIn 0.2s ease;
}
.manage-configs-modal-content {
    background: var(--midnight, #0a1128);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.config-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.4rem;
}
.config-manage-info {
    flex: 1;
    min-width: 0;
}
.config-manage-name {
    display: block;
    font-weight: 600;
    color: var(--concrete);
    font-size: 0.9rem;
}
.config-manage-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--steel);
    margin-top: 2px;
}

/* --- RSVP Card Names --------------------------------------- */
.rsvp-card-names {
    display: block;
    font-size: 0.7rem;
    color: var(--steel);
    padding: 0.15rem 0.6rem 0.35rem;
    line-height: 1.4;
}
.rsvp-bar-names {
    font-size: 0.78rem;
    color: var(--steel);
    padding: 0.1rem 0.75rem 0.4rem;
    line-height: 1.4;
}

/* --- RSVP Voter Groups ------------------------------------- */
.rsvp-voter-group {
    margin-bottom: 0.75rem;
}
.rsvp-voter-group-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}
.rsvp-voter-label--going { color: var(--neon-green); }
.rsvp-voter-label--maybe { color: var(--orange-blast); }
.rsvp-voter-label--cant { color: #ff6b6b; }
.rsvp-voter-group-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* --- Sticky Search Summary Bar ----------------------------- */
.mc-search-summary {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 17, 40, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.mc-search-summary::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

/* Search Summary Actions (sort + edit) */
.mc-search-summary__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.mc-search-summary__sort {
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(119, 141, 169, 0.3);
    border-radius: var(--radius-sm);
    color: var(--concrete);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mc-transition);
    -webkit-appearance: none;
    appearance: none;
}
.mc-search-summary__sort:hover,
.mc-search-summary__sort:focus {
    border-color: var(--electric-blue);
    background: rgba(0, 212, 255, 0.08);
    outline: none;
}
.mc-search-summary__sort option {
    background: var(--midnight, #0a1128);
    color: var(--concrete);
}

/* --- Compact Sport Tags Toggle ----------------------------- */
.sport-group--collapsed {
    display: none;
}
.sport-tags__toggle {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--electric-blue);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mc-transition);
}
.sport-tags__toggle:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--electric-blue);
}
.sport-tags__toggle.expanded {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(119, 141, 169, 0.3);
    color: var(--steel);
}

/* --- Compact Empty Day Cards ------------------------------- */
.day-card--empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    min-height: 40px;
    opacity: 0.7;
    transition: opacity var(--mc-transition);
}
.day-card--empty:hover {
    opacity: 1;
}
.day-card--empty__name {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--concrete);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.day-card--empty__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.day-card--empty__label {
    font-size: 0.72rem;
    color: var(--steel);
    font-style: italic;
}

/* --- Show More Days Button --------------------------------- */
.show-more-days-btn {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    margin-top: 0.5rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px dashed rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-md);
    color: var(--electric-blue);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--mc-transition);
    text-align: center;
}
.show-more-days-btn:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--electric-blue);
}
.show-more-days-btn.expanded {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(119, 141, 169, 0.25);
    color: var(--steel);
}

/* --- Discover Stage: Side-by-Side Layout ------------------- */
#stage-discover .discover-layout {
    display: block;
}
@media (min-width: 1025px) {
    #stage-discover #discoverMap,
    #stage-discover #discoverTimeline {
        display: block;
    }
    #stage-discover.active {
        display: block;
    }
    .discover-split {
        display: grid;
        grid-template-columns: 400px 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    .discover-split #discoverMap {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .discover-split #discoverMap .map-section {
        max-width: none;
        margin-bottom: 0;
    }
}
@media (max-width: 1024px) {
    .discover-split {
        display: block;
    }
}

/* --- Golf Summary Section (consolidated) ------------------- */
.golf-summary-section {
    background: var(--card-bg);
    border: 1px solid rgba(57, 255, 20, 0.12);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: border-color var(--mc-transition);
}
.golf-summary-section:hover {
    border-color: rgba(57, 255, 20, 0.25);
}
.golf-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: background var(--mc-transition);
    user-select: none;
}
.golf-summary-header:hover {
    background: rgba(57, 255, 20, 0.04);
}
.golf-summary-header__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}
.golf-summary-header__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.golf-summary-header__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-green);
    white-space: nowrap;
}
.golf-summary-header__count {
    font-size: 0.78rem;
    color: var(--steel);
    white-space: nowrap;
}
.golf-summary-header__selected {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 10px;
    white-space: nowrap;
}
.golf-summary-header__chevron {
    color: var(--steel);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform var(--mc-transition);
}
.golf-summary-body {
    border-top: 1px solid rgba(57, 255, 20, 0.08);
    padding: 1rem 1.25rem;
}
.golf-summary-info {
    font-size: 0.85rem;
    color: var(--steel);
    margin-bottom: 1rem;
}

/* Golf Day Slot */
.golf-day-slot {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(119, 141, 169, 0.08);
}
.golf-day-slot:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.golf-day-slot__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.golf-day-slot__date {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--concrete);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.golf-day-slot__avail {
    padding: 0.15rem 0.5rem;
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}
.golf-day-slot__selected {
    padding: 0.15rem 0.55rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}
.golf-day-slot__courses {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Day Card Golf Badge */
.day-card__header-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.day-card__golf-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.day-card__golf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neon-green);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.day-card__golf-avail {
    padding: 0.15rem 0.5rem;
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(57, 255, 20, 0.6);
    white-space: nowrap;
}

/* Golf summary mobile */
@media (max-width: 768px) {
    .golf-summary-header__left {
        gap: 0.35rem;
    }
    .golf-summary-header__count {
        display: none;
    }
    .golf-day-slot__courses .day-event-card {
        flex-direction: column;
        align-items: stretch;
    }
    .day-card__golf-badge {
        max-width: 160px;
    }
}

/* --- City Autocomplete Dropdown --------------------------- */
.city-ac-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.97);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,0.2) transparent;
}
.city-ac-dropdown::-webkit-scrollbar { width: 4px; }
.city-ac-dropdown::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 2px; }
.city-ac-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: background 0.12s;
}
.city-ac-item:hover,
.city-ac-item--active {
    background: rgba(0, 212, 255, 0.1);
}
.city-ac-item--empty {
    color: var(--steel);
    font-size: 0.85rem;
    cursor: default;
    padding: 0.75rem 0.85rem;
}
.city-ac-item--empty:hover {
    background: none;
}
.city-ac-item__main {
    color: var(--white, #fff);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.city-ac-item__secondary {
    color: var(--steel, #8fa3bd);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Locate Me Button -------------------------------------- */
.input-with-locate {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}
.input-with-locate input {
    flex: 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    min-width: 0;
}
.locate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--electric-blue, #00d4ff);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.locate-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #fff;
}
.locate-btn.locating {
    animation: pulse-locate 1s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse-locate {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Hotel Event Filter Dropdown ------------------------- */
.hotel-event-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}
.hotel-event-filter label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--steel);
    white-space: nowrap;
}
.hotel-event-filter select {
    max-width: 260px;
}

/* --- Starting Price in Discover Cards -------------------- */
.day-event-starting-price {
    color: var(--neon-green) !important;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem !important;
    font-weight: 600;
    margin-top: 2px;
}
.day-event-starting-price a {
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 600;
}
.day-event-starting-price a:hover {
    text-decoration: underline;
}

/* --- Team / Performer Logos ------------------------------ */
.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 2px;
    margin-right: 2px;
}

/* --- Trip Switcher ---------------------------------------- */
.trip-switcher {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 400px;
    margin: 0 1rem;
}
.trip-switcher:empty {
    display: none;
}
.trip-switcher__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm, 8px);
    color: var(--concrete, #e0e1dd);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 100%;
    min-width: 0;
}
.trip-switcher__btn:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--electric-blue, #00d4ff);
}
.trip-switcher__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.trip-switcher__chevron {
    font-size: 0.65rem;
    color: var(--steel, #8fa3bd);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.trip-switcher__btn[aria-expanded="true"] .trip-switcher__chevron {
    transform: rotate(180deg);
}
.trip-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 280px;
    max-width: 360px;
    background: rgba(10, 17, 40, 0.97);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    overflow: hidden;
    animation: mcFadeIn 0.15s ease;
}
.trip-switcher__dropdown.open {
    display: block;
}
.trip-switcher__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}
.trip-switcher__item:hover {
    background: rgba(0, 212, 255, 0.06);
}
.trip-switcher__item--active {
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--electric-blue, #00d4ff);
}
.trip-switcher__item-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 1rem;
    background: none;
    border: none;
    color: var(--concrete, #e0e1dd);
    cursor: pointer;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
}
.trip-switcher__item-city {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trip-switcher__item--active .trip-switcher__item-city {
    color: var(--electric-blue, #00d4ff);
}
.trip-switcher__item-dates {
    font-size: 0.72rem;
    color: var(--steel, #8fa3bd);
}
.trip-switcher__delete {
    background: none;
    border: none;
    color: var(--steel, #8fa3bd);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s;
}
.trip-switcher__delete:hover {
    color: #ff6b6b;
}
.trip-switcher__divider {
    height: 1px;
    background: rgba(119, 141, 169, 0.15);
    margin: 0.25rem 0;
}
.trip-switcher__new {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: none;
    border: none;
    color: var(--electric-blue, #00d4ff);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.trip-switcher__new:hover {
    background: rgba(0, 212, 255, 0.08);
}

/* Trip switcher mobile */
@media (max-width: 768px) {
    .trip-switcher {
        max-width: 200px;
        margin: 0 0.5rem;
    }
    .trip-switcher__btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.65rem;
    }
    .trip-switcher__dropdown {
        min-width: 240px;
        left: -20px;
    }
}

/* --- Continue Trip Banner: Multi-Trip Layout --------------- */
.continue-trip-banner--multi {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.continue-trip-banner-trips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.continue-trip-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    color: var(--concrete, #e0e1dd);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.continue-trip-banner-link:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--electric-blue, #00d4ff);
}
.continue-trip-banner-link strong {
    color: var(--electric-blue, #00d4ff);
}
.continue-trip-banner-dates {
    font-size: 0.75rem;
    color: var(--steel, #8fa3bd);
}

/* --- Trip Delete Modal --------------------------------------- */
.trip-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: tripModalFadeIn 0.2s ease;
}
@keyframes tripModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.trip-delete-modal__content {
    background: linear-gradient(165deg, rgba(15, 25, 55, 0.98), rgba(8, 14, 35, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.08);
    animation: tripModalSlideIn 0.25s ease;
}
@keyframes tripModalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.trip-delete-modal__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.trip-delete-modal__text {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: var(--concrete, #e0e1dd);
    line-height: 1.5;
}
.trip-delete-modal__text strong {
    color: var(--electric-blue, #00d4ff);
}
.trip-delete-modal__warning {
    margin: 0 0 1.5rem;
    font-size: 0.82rem;
    color: var(--deep-red, #ff4757);
    font-weight: 600;
}
.trip-delete-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
.trip-delete-modal__cancel {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(119, 141, 169, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--concrete, #e0e1dd);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.trip-delete-modal__cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(119, 141, 169, 0.5);
}
.trip-delete-modal__confirm {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 71, 87, 0.4);
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.trip-delete-modal__confirm:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: #ff4757;
}

/* ============================================================
   Team Search — By Team Mode
   ============================================================ */

/* --- Mode Toggle ------------------------------------------- */
.search-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    padding: 4px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.search-mode-tab {
    flex: 1;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--steel);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.search-mode-tab.active {
    background: var(--gradient-primary);
    color: var(--midnight);
}
.search-mode-tab:not(.active):hover {
    color: var(--electric-blue);
}

/* --- Team Search Flow Container ---------------------------- */
.team-search-flow {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Breadcrumb -------------------------------------------- */
.team-search-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.team-breadcrumb-link {
    background: none;
    border: none;
    color: var(--electric-blue);
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.team-breadcrumb-link:hover {
    color: var(--neon-green);
}
.team-breadcrumb-sep {
    color: var(--steel);
    opacity: 0.5;
}
.team-breadcrumb-current {
    color: var(--concrete);
    font-weight: 600;
}

/* --- Step Title -------------------------------------------- */
.team-search-step-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--electric-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* --- League Grid ------------------------------------------- */
.team-league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}
.team-league-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--concrete);
}
.team-league-card:hover {
    border-color: var(--electric-blue);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.team-league-card__icon {
    font-size: 2rem;
    line-height: 1;
}
.team-league-card__label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* --- Team Filter Input ------------------------------------- */
.team-search-filter {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(119, 141, 169, 0.3);
    border-radius: var(--radius-sm);
    color: var(--concrete);
    font-size: 0.95rem;
    font-family: 'Work Sans', sans-serif;
    margin-bottom: 0.75rem;
}
.team-search-filter:focus {
    outline: none;
    border-color: var(--electric-blue);
}

/* --- Team List --------------------------------------------- */
.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.2) transparent;
}
.team-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--concrete);
}
.team-list-item:hover {
    border-color: var(--electric-blue);
    background: var(--card-hover);
}
.team-list-item__name {
    font-weight: 600;
    font-size: 0.9rem;
}
.team-list-item__city {
    font-size: 0.75rem;
    color: var(--steel);
}

/* --- Schedule Filters -------------------------------------- */
.team-schedule-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.team-schedule-filter-btn {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--steel);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Work Sans', sans-serif;
}
.team-schedule-filter-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

/* --- Schedule List / Game Cards ----------------------------- */
.team-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.2) transparent;
}
.team-game-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.team-game-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: var(--card-hover);
}
.team-game-card.selected {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.06);
}
.team-game-card__check {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    color: var(--steel);
}
.team-game-card.selected .team-game-card__check {
    color: var(--neon-green);
}
.team-game-card__info {
    flex: 1;
    min-width: 0;
}
.team-game-card__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--concrete);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-game-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    font-size: 0.78rem;
    color: var(--steel);
    margin-top: 0.2rem;
}
.team-game-card__price {
    font-size: 0.78rem;
    color: var(--neon-green);
    margin-top: 0.15rem;
}
.team-game-card__badge {
    flex-shrink: 0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.team-game-card__badge--home {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.3);
}
.team-game-card__badge--away {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange-blast);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* --- Continue Button --------------------------------------- */
.team-search-continue-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--midnight);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.team-search-continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* --- Loading Spinner --------------------------------------- */
.team-schedule-loading {
    text-align: center;
    padding: 2rem 0;
    color: var(--steel);
}
.team-schedule-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--electric-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.75rem;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Empty State ------------------------------------------- */
.team-search-empty {
    text-align: center;
    color: var(--steel);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* --- Locked Sport Tag -------------------------------------- */
.sport-tag--locked {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}
.sport-tag--locked::after {
    content: ' (locked)';
    font-size: 0.65rem;
    opacity: 0.7;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 768px) {
    .team-league-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    .team-league-card {
        padding: 0.8rem 0.5rem;
    }
    .team-league-card__icon {
        font-size: 1.5rem;
    }
    .team-league-card__label {
        font-size: 0.75rem;
    }
    .team-list {
        grid-template-columns: 1fr;
    }
}
