/* =============================================
   CALZADA PLANNER — UI MATCHED TO DESIGN SCREENSHOTS
   ============================================= */

:root {
    --primary: #1a8fff;
    --primary-dark: #0f6fd1;
    --accent: #ff6b35;
    --surface: #ffffff;
    --bg-muted: #f1f5f9;
    --border: rgba(0, 0, 0, 0.08);
    --text: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --mode-jeep: #378ADD;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --sheet-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --sheet-dur: 0.42s;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.planner-body {
    overflow: hidden;
    height: calc(var(--vh, 1vh) * 100);
    font-family: 'Outfit', sans-serif;
    background: #e8edf3;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* =============================================
   MAP & FLOATING UI
   ============================================= */
.planner-map {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.maplibregl-ctrl-attrib {
    font-size: 9px !important;
}

.route-bubble {
    position: absolute;
    background: #0f172a;
    color: white;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 550;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.route-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.custom-mid-bubble {
    width: auto !important;
    height: auto !important;
    background: transparent;
    border: none;
}

/* =============================================
   RE-CENTER BUTTON (44px desktop / 42px mobile, brand-blue crosshair)
   ============================================= */
.recenter-btn {
    position: fixed !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.10) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 0 !important;
    right: 24px !important;
    bottom: 106px !important; /* directly above desktop zoom controls */
}

.recenter-btn:hover {
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.15) !important;
    transform: scale(1.04);
}

.recenter-btn:active {
    transform: scale(0.92) !important;
}

.recenter-crosshair-icon {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 768px) {
    .recenter-btn {
        width: 42px !important;
        height: 42px !important;
        right: 16px !important;
        bottom: 195px !important; /* floating above bottom docked sheet */
    }
    .recenter-crosshair-icon {
        width: 20px;
        height: 20px;
    }
}
.map-top-bar {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
    padding: 0 16px;
    pointer-events: none;
}

.map-top-right {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s;
}

.pill-btn:active {
    transform: scale(0.95);
}

.lang-toggle-btn {
    padding: 0 16px;
    color: var(--primary);
}

.lang-sep {
    margin: 0 6px;
    color: #cbd5e1;
}

.lang-other {
    color: var(--text-muted);
    font-weight: 500;
}

.map-top-pill {
    padding: 0 16px;
    gap: 6px;
    color: var(--text);
}

.map-top-pill ion-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

/* =============================================
   CATEGORY FILTER SEGMENTED CONTROL BAR
   (Single Source of Truth: Boxy 8px container, 6px segment buttons, horizontal scrollable)
   ============================================= */
:root {
    --surface-0: #F1EFE8;
    --surface-2: #FFFFFF;
    --text-secondary: #64748B;
    --radius: 6px;
    --radius-md: 8px;
    --border: #E2E8F0;
    --brand-blue: #378ADD;
}

.map-category-bar-wrapper {
    position: fixed;
    top: 16px;
    left: 400px;
    right: 280px;
    z-index: 500;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: left 0.3s ease, right 0.3s ease;
}

.map-category-container {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    background: #FFFFFF !important;
    padding: 6px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.10) !important;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
}

.category-scroll-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    border-radius: 999px !important;
    overflow: hidden;
}

.category-scroll,
.map-segmented-control,
#mapCategoryBar {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* old Edge/IE, harmless elsewhere */
    gap: 4px;
    scroll-snap-type: x proximity;
    -webkit-scroll-snap-type: x proximity;
}

.chip-highlight {
    display: none !important;
}

.category-scroll::-webkit-scrollbar,
.map-segmented-control::-webkit-scrollbar,
#mapCategoryBar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, new Edge (all Chromium-based) */
}

.category-scroll-fade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    pointer-events: none;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

.category-scroll-fade.visible {
    opacity: 1;
    visibility: visible;
}

.map-segment-btn,
#mapCategoryBar .map-segment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 600 !important;
    color: #667085 !important;
    background: transparent !important;
    border: none;
    box-shadow: none !important;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    -webkit-flex-shrink: 0 !important;
    min-width: max-content;
    scroll-snap-align: start;
    -webkit-scroll-snap-align: start;
    user-select: none;
    position: relative;
    z-index: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.map-segment-btn:hover:not(.active),
#mapCategoryBar .map-segment-btn:hover:not(.active) {
    color: var(--brand-blue, #378ADD) !important;
    background: rgba(55, 138, 221, 0.06) !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
}

.map-segment-btn.active,
#mapCategoryBar .map-segment-btn.active {
    color: var(--brand-blue, #378ADD) !important;
    font-weight: 700 !important;
    background: rgba(55, 138, 221, 0.12) !important;
    border: none;
    box-shadow: none !important;
    border-radius: 999px !important;
}

.map-segment-btn.active:hover,
#mapCategoryBar .map-segment-btn.active:hover {
    color: var(--brand-blue, #378ADD) !important;
    font-weight: 700 !important;
    background: rgba(55, 138, 221, 0.16) !important;
}

.map-cat-clear-btn {
    display: none;
    align-items: center;
    gap: 4px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-blue, #378ADD);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    padding: 6px 10px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.map-cat-clear-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
    stroke: currentColor;
    transition: transform 150ms ease;
}

.map-cat-clear-btn:hover {
    color: var(--brand-blue, #378ADD);
    background: rgba(55, 138, 221, 0.08) !important;
    text-decoration: none;
}

.map-cat-clear-btn:hover svg {
    transform: scale(1.15);
}

.map-cat-clear-btn.visible {
    display: inline-flex;
}

@media (max-width: 1024px) {
    .map-category-bar-wrapper {
        left: 16px;
        right: 16px;
        top: 68px;
        justify-content: flex-start;
        overflow: visible;
        padding-bottom: 4px;
    }
}

/* User Profile Nav inside Floating map-top-right */
.map-top-right .user-profile-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.map-top-right .btn-nav-signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 40px;
    background: var(--primary);
    color: #FFFFFF !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(55, 138, 221, 0.3);
    text-decoration: none;
    border: none;
    transition: transform 0.2s, background 0.2s;
}

.map-top-right .btn-nav-signin:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.map-top-right .user-avatar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(230, 238, 247, 0.9);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

/* =============================================
   ESTABLISHMENT / USER PROFILE DROPDOWN MENU
   ============================================= */
.user-profile-menu,
.establishment-profile-menu,
.map-top-right .user-profile-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 280px !important;
    padding: 14px 16px !important;
    border-radius: 20px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 16px 40px rgba(4, 44, 83, 0.20), 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    display: none;
    flex-direction: column !important;
    z-index: 2000 !important;
    font-family: 'Outfit', sans-serif !important;
    box-sizing: border-box !important;
}

.user-profile-menu.open,
.establishment-profile-menu.open {
    display: flex !important;
    animation: userMenuFade 0.2s ease forwards;
}

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

.profile-header-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

.profile-header-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #378ADD !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(55, 138, 221, 0.25) !important;
}

.profile-header-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.profile-header-details {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.profile-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #042C53 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
}

.profile-email {
    font-size: 0.78rem !important;
    color: #64748B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 2px !important;
}

/* Stats Section */
.exploration-stats-section {
    padding: 10px 0 6px !important;
    background: transparent !important;
}

.stats-section-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #64748B !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

.exploration-stats-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 6px 8px !important;
}

.stat-pill-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    flex: 1 !important;
}

.stat-pill-btn:hover {
    background: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.stat-icon {
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.stat-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.stat-value {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #042C53 !important;
    line-height: 1.1 !important;
    margin-top: 2px !important;
}

.stat-name {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    color: #64748B !important;
}

.stat-divider {
    width: 1px !important;
    height: 28px !important;
    background: #E2E8F0 !important;
}

.anon-profile-banner {
    background: #FEF3C7 !important;
    border: 1px solid #FDE68A !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    font-size: 0.75rem !important;
    color: #92400E !important;
    margin: 8px 0 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.anon-signup-link {
    color: #B45309 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.profile-menu-divider {
    height: 1px !important;
    background: #F1F5F9 !important;
    margin: 8px 0 !important;
    border: none !important;
}

/* Nav Menu Items (Heroicons Outline) */
.profile-nav-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.profile-nav-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 9px 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    color: #1E293B !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-align: left !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.profile-nav-btn:hover {
    background: #F1F5F9 !important;
    color: #378ADD !important;
}

.nav-btn-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748B !important;
    flex-shrink: 0 !important;
    transition: color 0.15s ease !important;
}

.nav-btn-icon svg,
.profile-nav-btn svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.profile-nav-btn:hover .nav-btn-icon {
    color: #378ADD !important;
}

.nav-btn-title {
    flex: 1 !important;
}

.saved-count-pill {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #378ADD !important;
    background: #EFF6FF !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
}

.profile-nav-btn.logout-btn-item,
.profile-nav-btn.logout-btn {
    color: #DC2626 !important;
}

/* Global SVG & Utility Size Caps */
.w-5 {
    width: 20px !important;
    max-width: 20px !important;
}

.h-5 {
    height: 20px !important;
    max-height: 20px !important;
}

.user-profile-menu svg,
.establishment-profile-menu svg {
    max-width: 24px !important;
    max-height: 24px !important;
}

/* MapLibre Custom Bottom Zoom Controls */
.maplibregl-ctrl-bottom-right {
    bottom: 24px !important;
    right: 24px !important;
    z-index: 550 !important;
    margin: 0 !important;
}

.maplibregl-ctrl-group {
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(230, 238, 247, 0.8) !important;
    margin: 0 !important;
}

.maplibregl-ctrl-group button {
    width: 38px !important;
    height: 38px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.maplibregl-ctrl-group button:last-child {
    border-bottom: none !important;
}

.maplibregl-ctrl-group button:hover {
    background: #F1F5F9 !important;
}

@media (max-width: 768px) {
    .map-category-bar-wrapper {
        top: 66px;
        left: 12px;
        right: 12px;
        justify-content: flex-start;
        max-width: calc(100vw - 24px);
        overflow: visible;
    }
    .map-category-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .category-scroll-wrapper {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    .map-segmented-control,
    .category-scroll {
        width: 100%;
        max-width: 100%;
    }
    .maplibregl-ctrl-bottom-right {
        bottom: 80px !important;
        right: 16px !important;
    }
}

.map-top-icon-btn {
    width: 40px;
    padding: 0;
    font-size: 1.4rem;
}

/* =============================================
   GLASSMORPHISM BASE
   ============================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.realtime-pointer-wrapper {
    position: relative;
    width: 44px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.pointer-img {
    width: 44px;
    height: 54px;
    object-fit: contain;
}

.gps-pulse-ring {
    animation: gps-pulse 2s ease-out infinite;
    transform-origin: 22px 44px;
}
@keyframes gps-pulse {
    0%   { r: 6;  opacity: 0.5; }
    70%  { r: 14; opacity: 0; }
    100% { r: 6;  opacity: 0; }
}

/* =============================================
   PLANNER GUI CONTAINER
   ============================================= */
.planner-gui-container {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
}

/* Guarantee all interactive elements inside the GUI container are clickable */
.bottom-sheet,
.bottom-sheet *,
.active-guide-card,
.active-guide-card *,
.bottom-status-pill,
.bottom-status-pill * {
    pointer-events: auto;
}

/* =============================================
   BOTTOM SHEET — DIRECTIONS CARD
   ============================================= */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    transition: transform var(--sheet-dur) var(--sheet-spring);
    max-height: calc(var(--vh, 1vh) * 92);
}

@media (max-width: 767px) {
    .bottom-sheet {
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
        -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.05);
        border: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
        border-radius: 24px;
        margin: 0 12px 12px 12px;
    }
}

/* .bottom-sheet.collapsed — JS handles transform; class used for state tracking only. */

#directionsCard.journey-active-hidden,
.bottom-sheet.journey-active-hidden,
.directions-card.journey-active-hidden,
.journey-active-hidden {
    display: none !important;
}

.drag-handle-bar {
    width: 100%;
    padding: 12px 0 4px;
    display: flex;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    flex-shrink: 0;
}

.drag-pill {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
}

@media (min-width: 768px) {
    .planner-gui-container {
        pointer-events: none;
    }

    .bottom-sheet:not(.journey-active-hidden) {
        position: fixed !important;
        top: 0 !important;
        bottom: 0;
        left: 0;
        right: auto;
        width: 340px;
        background: rgba(255,255,255,0.72) !important;
        backdrop-filter: blur(28px) saturate(200%) brightness(1.05) !important;
        -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.05) !important;
        box-shadow: 4px 0 32px rgba(0,0,0,0.10) !important;
        border-right: 1px solid rgba(255,255,255,0.45) !important;
        border-radius: 0;
        margin: 0;
        transform: none !important;
        max-height: none;
        z-index: 500;
        pointer-events: auto;
        display: flex !important;
        flex-direction: column;
    }

    /* Map stays full width — overlapped by sidebar visually, not in DOM */
    .planner-map {
        position: fixed;
        inset: 0;
        z-index: 1;
    }

    /* Recenter button sits above the bottom zoom controls */
    .recenter-btn {
        right: 24px;
        bottom: 120px;
        left: auto;
    }

    .drag-handle-bar {
        display: none !important;
    }

    .bottom-sheet.collapsed {
        transform: none !important;
    }
}

/* =============================================
   DIRECTIONS CARD INTERNALS
   ============================================= */
.ds-brand-header {
    padding: 16px 20px 2px;
    display: flex;
    align-items: center;
}

.ds-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ds-brand-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ds-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.ds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 14px;
    flex-shrink: 0;
}

.ds-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    flex: 1;
}

.ds-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s;
}

.ds-close-btn:hover {
    background: #e2e8f0;
}

.ds-peek-info {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0;
    margin-right: 16px;
    text-align: right;
}

.ds-body {
    padding: 0 16px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* =============================================
   ORIGIN / DESTINATION INPUT BLOCK
   ============================================= */
.od-input-block {
    background: #f1f5f9;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.od-connector-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.od-input-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.od-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
}

.od-icon {
    width: 22px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot.blue {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2.5px solid white;
    box-shadow: 0 0 0 1.5px var(--primary);
}

.pin.red {
    color: #ef4444;
    font-size: 1.3rem;
}

.od-divider-line {
    height: 1px;
    background: #cbd5e1;
    margin: 4px 0;
}

.od-field {
    flex: 1;
    min-width: 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.od-field.unfilled {
    color: #94a3b8;
    font-weight: 400;
}

.swap-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.25s, box-shadow 0.2s;
}

.swap-btn:active {
    transform: rotate(180deg) scale(0.9);
}

/* =============================================
   SCHEDULE ROW
   ============================================= */
.schedule-row {
    display: flex;
    position: relative;
}

.schedule-pill {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text);
    border: 1px solid transparent;
    transition: background 0.15s;
}

.schedule-pill:hover {
    background: #e2e8f0;
}

.schedule-pill ion-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sakay-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    list-style: none;
    display: none;
    z-index: 10;
    min-width: 150px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.sakay-dropdown-menu.open {
    display: block;
}

.sakay-dropdown-menu li {
    padding: 11px 16px;
    font-size: 0.87rem;
    cursor: pointer;
    color: var(--text);
}

.sakay-dropdown-menu li:hover {
    background: #f8fafc;
}

.sakay-dropdown-menu li.active {
    color: var(--primary);
    font-weight: 600;
    background: #eff6ff;
}

/* =============================================
   TRANSPORT MODE — SEGMENTED CONTROL
   ============================================= */
.mode-segment-control {
    margin: 12px 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}
.walkable-trip-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    animation: fadeIn 0.2s ease-in-out;
}
.walkable-trip-hint ion-icon {
    font-size: 1.05rem;
    color: #16A34A;
    flex-shrink: 0;
}
.mode-segment-control .segment-track {
    display: inline-flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
    width: auto;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
.mode-segment-control .segment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 7px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748B;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    transition: all 0.15s ease;
}
.mode-segment-control .segment-btn:hover:not(.active) {
    color: #0F172A;
    background: rgba(255, 255, 255, 0.6);
}
.mode-segment-control .segment-btn.active {
    background: #FFFFFF;
    color: #378ADD;
    font-weight: 700;
    border-color: rgba(55, 138, 221, 0.35);
    box-shadow: 0 1px 4px rgba(55, 138, 221, 0.18), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mode-segment-control .segment-btn svg {
    flex-shrink: 0;
    fill: currentColor;
    width: 15px;
    height: 15px;
}
.mode-segment-control .segment-btn .segment-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.65);
    transition: filter 0.15s ease;
}
.mode-segment-control .segment-btn.active .segment-icon-img {
    filter: brightness(0) saturate(100%) invert(51%) sepia(48%) saturate(1637%) hue-rotate(183deg) brightness(91%) contrast(90%);
}

/* =============================================
   ROUTE SUMMARY BLOCK & BANNER
   ============================================= */
.route-summary-block {
    margin: 14px 0 18px;
    padding: 0;
}

.route-summary-banner {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(55, 138, 221, 0.09) 0%, rgba(24, 95, 165, 0.04) 100%);
    border: 1px solid rgba(55, 138, 221, 0.22);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(4, 44, 83, 0.04);
}

.summary-large {
    font-family: 'Sora', 'Outfit', sans-serif;
    font-size: 1.35rem; /* ~22px */
    font-weight: 800;
    color: #1A2E4A;
    letter-spacing: -0.02em;
    line-height: 1.25;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.summary-large .sum-primary-val,
.summary-large span#sumTime,
.summary-large span#sumFare {
    color: #378ADD;
    font-weight: 800;
}

.summary-large .sum-dot {
    color: #94A3B8;
    font-weight: 400;
    margin: 0 4px;
}

.summary-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748B;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-sub .sum-dot-sm {
    color: #CBD5E1;
    font-size: 0.8rem;
}

/* =============================================
   START JOURNEY BUTTON
   ============================================= */
.start-journey-btn {
    margin: 18px 16px 6px;
    background: #378ADD;
    color: #FFFFFF;
    border: 1.5px solid transparent;
    border-radius: 12px;
    height: 50px;
    font-family: 'Sora', 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(55, 138, 221, 0.30);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
}

.start-journey-btn .start-journey-lock-icon {
    display: none;
    flex-shrink: 0;
}

.start-journey-btn:hover:not(:disabled) {
    background: #2570BD;
    box-shadow: 0 6px 18px rgba(55, 138, 221, 0.40);
}

.start-journey-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.start-journey-btn:disabled {
    border: 1.5px dashed #c9ced6 !important;
    background: #f3f4f6 !important;
    color: #8a919c !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

.start-journey-btn:disabled .start-journey-lock-icon {
    display: inline-block !important;
}

.start-journey-helper {
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    color: #aeb4bd;
    text-align: center;
    margin: 0 16px 18px;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}

.start-journey-btn:not(:disabled) + .start-journey-helper {
    display: none !important;
}

/* =============================================
   ACTIVE NAVIGATION — UNIFIED PANELS (Screen 3)
   ============================================= */

/* ── 3A. DESKTOP UNIFIED ACTIVE NAVIGATION PANEL ── */
.active-nav-panel {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.14);
    border: 1px solid rgba(226, 232, 240, 0.85);
    z-index: 500;
    overflow: hidden;
    flex-direction: column;
    pointer-events: auto;
    animation: navPanelSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navPanelSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mode Segmented Track (Walk / Jeep) */
.nav-panel-mode-track {
    display: flex;
    background: #F1F5F9;
    border-radius: 999px;
    padding: 4px;
    margin: 18px 20px 12px;
    gap: 4px;
}

.nav-panel-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-panel-mode-btn.active {
    background: #378ADD;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(55, 138, 221, 0.25);
}

.nav-panel-mode-btn svg,
.nav-panel-mode-btn img {
    flex-shrink: 0;
}

/* Stats Row: 3 Equal Columns with Sora Numbers */
.nav-panel-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 10px;
}

.nav-panel-stat-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-panel-stat-col:not(:last-child) {
    border-right: 1px solid rgba(226, 232, 240, 0.85);
}

.nav-panel-stat-val {
    font-family: 'Sora', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #16181D;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.nav-panel-stat-lbl {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 5px;
}

.nav-panel-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 4px 20px 14px;
}

/* Prominent NEXT STEP Block */
.nav-panel-next-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(55, 138, 221, 0.08);
    border: 1px solid rgba(55, 138, 221, 0.16);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 20px 14px;
}

.nav-panel-next-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #378ADD;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(55, 138, 221, 0.25);
}

.nav-panel-next-body {
    flex: 1;
    min-width: 0;
}

.nav-panel-next-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #378ADD;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.nav-panel-next-instruction {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #16181D;
    line-height: 1.35;
    word-break: break-word;
}

.nav-panel-next-dist {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
    margin-top: 3px;
}

/* FULL ROUTE Collapsible Section (Collapsed by default) */
.nav-panel-full-route {
    margin: 0 20px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    background: #FAFAFA;
    transition: all 0.25s ease;
}

.nav-panel-full-route-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.nav-panel-full-route-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475467;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-panel-full-route-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    margin-left: auto;
    margin-right: 8px;
}

.nav-panel-chevron {
    font-size: 1.05rem;
    color: #64748B;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-panel-full-route.expanded .nav-panel-chevron {
    transform: rotate(180deg);
}

.nav-panel-full-route-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
}

.nav-panel-full-route.expanded .nav-panel-full-route-body {
    max-height: 280px;
    opacity: 1;
    overflow-y: auto;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.nav-panel-legs-list {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Secondary muted leg cards inside Full Route */
.nav-leg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #F8FAFC;
}

.nav-leg-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nav-leg-icon-circle img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.nav-leg-info {
    flex: 1;
    min-width: 0;
}

.nav-leg-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-leg-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    color: #64748B;
    margin-top: 1px;
}

.nav-leg-fare {
    font-family: 'Sora', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    color: #378ADD;
    background: rgba(55, 138, 221, 0.10);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* De-escalated Cancel Route Pill Button */
.nav-panel-cancel-wrap {
    padding: 6px 20px 18px;
}

.btn-cancel-route {
    width: 100%;
    padding: 12px 20px;
    background: #FFFFFF !important;
    border: 1.5px solid #F4D3D5 !important;
    color: #E5484D !important;
    border-radius: 999px !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-cancel-route:hover {
    background: #FFF5F5 !important;
    border-color: #FCA5A5 !important;
    color: #DC2626 !important;
}

.btn-cancel-route:active {
    transform: scale(0.98);
}

/* ── 3B. BREAKPOINT ISOLATION & MOBILE STYLING ── */
body:not(.navigation-active) .active-nav-panel,
body:not(.navigation-active) .active-guide-card,
body:not(.navigation-active) .bottom-status-pill {
    display: none !important;
}

@media (min-width: 769px) {
    body.navigation-active .active-nav-panel {
        display: flex !important;
    }
    .active-guide-card,
    .bottom-status-pill {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .active-nav-panel {
        display: none !important;
    }

    body.navigation-active .active-guide-card {
        display: flex !important;
    }

    body.navigation-active .bottom-status-pill {
        display: flex !important;
    }

    /* Mobile Top Guide Card: 76px from top, 16px margins, 18px radius */
    .active-guide-card {
        position: fixed !important;
        top: 76px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        border-radius: 18px !important;
        background: #FFFFFF !important;
        border: 1px solid rgba(226, 232, 240, 0.85) !important;
        box-shadow: 0 8px 28px rgba(16, 24, 40, 0.12) !important;
        padding: 12px 14px !important;
        display: none;
        flex-direction: column;
        gap: 6px;
        z-index: 500;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .mobile-guide-next-block {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: rgba(55, 138, 221, 0.08);
        border: 1px solid rgba(55, 138, 221, 0.16);
        border-radius: 12px;
        padding: 10px 12px;
        width: 100%;
    }

    .mobile-guide-following {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 2px 6px;
        font-family: 'Outfit', sans-serif;
        font-size: 0.8rem;
        font-weight: 500;
        color: #64748B;
    }

    .mobile-guide-following ion-icon {
        font-size: 1.1rem;
        color: #94A3B8;
        flex-shrink: 0;
    }

    /* Mobile Bottom Docked Sheet */
    .bottom-status-pill {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        background: #FFFFFF !important;
        box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.14) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        border-bottom: none !important;
        padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
        display: none;
        flex-direction: column;
        z-index: 500;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .mobile-sheet-drag-handle {
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: #E4E7EC;
        margin: 10px auto 4px;
        flex-shrink: 0;
    }

    .mobile-mode-track {
        margin: 4px 16px 8px !important;
    }

    .mobile-stats-row {
        padding: 2px 16px 8px !important;
    }

    .mobile-cancel-wrap {
        padding: 2px 16px 8px !important;
    }
}

/* =============================================
   CHANGE LOCATION MODAL (Screen 2)
   ============================================= */
.location-modal {
    position: fixed;
    top: 8%;
    left: 5%;
    right: 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: all 0.3s var(--ease);
    max-height: calc(var(--vh, 1vh) * 82);
}

@media (min-width: 768px) {
    .location-modal {
        width: 420px;
        left: 50%;
        right: auto;
        margin-left: -210px;
        top: 10%;
    }
}

.location-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.loc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
}

.loc-header h3 {
    font-family: 'Outfit';
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.loc-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.15s;
}

.loc-close-btn:hover {
    background: #e2e8f0;
}

.loc-search {
    padding: 0 16px 12px;
}

.loc-search input {
    width: 100%;
    padding: 13px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 14px;
    font-family: 'Inter';
    font-size: 0.97rem;
    outline: none;
    color: var(--text);
}

.loc-search input::placeholder {
    color: #94a3b8;
}

.loc-search input:focus {
    background: #e8f0fe;
}

.loc-options {
    flex: 1;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.loc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 0;
}

/* First row: round top corners to match modal */
.loc-options .loc-row:first-child {
    border-radius: 0;
}

/* Last row: round bottom corners to match modal */
.loc-options .loc-row:last-child {
    border-bottom: none;
    border-radius: 0 0 18px 18px;
}

/* ONLY last child gets bottom radius on hover */
.loc-options .loc-row:last-child:hover,
.loc-options .loc-row:last-child:active {
    border-radius: 0 0 18px 18px;
}

/* All hover states use margin+radius trick to stay inset */
.loc-row:hover {
    background: #f1f5f9;
    border-radius: 12px;
    margin: 0 8px;
    padding: 15px 12px;
}

.loc-row:active {
    background: #e8edf3;
    border-radius: 12px;
    margin: 0 8px;
    padding: 15px 12px;
}

/* Gray background wrapper for search results */
.search-results-bubble {
    background: #f1f5f9;
    border-radius: 16px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
}

.search-results-bubble .loc-row {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    gap: 0;
}

.search-results-bubble .loc-row:last-child {
    border-bottom: none;
}

/* Fix: search results bubble rows should NOT get the inset margin 
   since they're already inside a rounded container */
.search-results-bubble .loc-row:hover,
.search-results-bubble .loc-row:active {
    margin: 0;
    padding: 12px 16px;
    border-radius: 0;
    background: #e8edf3;
}
.search-results-bubble .loc-row:first-child:hover {
    border-radius: 16px 16px 0 0;
}
.search-results-bubble .loc-row:last-child:hover {
    border-radius: 0 0 16px 16px;
}
.search-results-bubble .loc-row:only-child:hover {
    border-radius: 16px;
}

.search-results-bubble .loc-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.search-results-bubble .sub-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.loc-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bg-blue {
    background: var(--primary);
}

.pin-blue {
    background: #eff6ff;
    color: var(--primary);
}

.loc-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.search-result .loc-text {
    display: flex;
    flex-direction: column;
}

.search-result .sub-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.loc-attribution {
    padding: 10px 20px;
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: right;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    flex-shrink: 0;
}

/* =============================================
   SIDE DRAWER
   ============================================= */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 44, 83, 0.45) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 10400 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
}

.drawer-overlay.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 295px;
    max-width: 82vw;
    z-index: 10500 !important;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1) !important;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    background-image: 
        radial-gradient(circle, rgba(55, 138, 221, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
    background-size: 20px 20px, 100% 100%;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: -10px 0 36px rgba(4, 44, 83, 0.14), -2px 0 10px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .side-drawer {
        width: 310px;
    }
}

.side-drawer.open {
    transform: translateX(0) !important;
}

.drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 22px 18px 24px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.95);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.drawer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.drawer-logo {
    height: 34px;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: #E2E8F0;
    color: #042C53;
}

.drawer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    overflow-y: auto;
}

.drawer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-links a,
.drawer-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: #042C53;
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: -0.01em;
    border-left: 3.5px solid transparent;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .drawer-links a:hover,
    .drawer-nav-item:hover {
        color: #378ADD;
        background: rgba(55, 138, 221, 0.05);
        border-left-color: #378ADD;
        padding-left: 28px;
    }
}

.drawer-links a:focus:not(.active),
.drawer-nav-item:focus:not(.active) {
    color: #042C53 !important;
    background: transparent !important;
    border-left-color: transparent !important;
    outline: none;
}

.drawer-links a.active,
.drawer-nav-item.active {
    color: #378ADD !important;
    font-weight: 700 !important;
    background: rgba(55, 138, 221, 0.08) !important;
    border-left-color: #378ADD !important;
}

.drawer-separator {
    height: 1px;
    background: rgba(226, 232, 240, 0.85);
    margin: 14px 24px;
}

.mobile-lang-row {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.side-drawer .mobile-lang-row {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-lang-row {
        display: flex;
    }
    #hamburgerBtn {
        display: flex !important;
    }
}

.mobile-lang-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748B;
}

/* Drawer Language Dropdown Toggle */
.mobile-lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #EBF3FB !important;
    border: 1px solid #B5D4F4 !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 700;
    font-size: 0.85rem;
    color: #042C53 !important;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    height: auto !important;
    box-shadow: none !important;
}

.mobile-lang-toggle .lang-flag {
    font-size: 0.95rem;
}

.mobile-lang-toggle .lang-active {
    color: #042C53;
    font-weight: 700;
}

.mobile-lang-toggle .lang-arrow {
    color: #378ADD;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

/* Language Dropdown Container & Menu */
.lang-dropdown-container {
    position: relative;
    display: inline-block;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #FFFFFF !important;
    border: 1px solid rgba(55, 138, 221, 0.25) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(4, 44, 83, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 6px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
    z-index: 1000;
}

.lang-dropdown-container.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-dropdown-container.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none !important;
    background: transparent !important;
    border-radius: 8px;
    color: #042C53;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    box-shadow: none !important;
    outline: none !important;
}

.lang-dropdown-item:hover {
    background: rgba(55, 138, 221, 0.08) !important;
    color: #378ADD !important;
}

.lang-dropdown-item.active {
    background: #378ADD !important;
    color: #FFFFFF !important;
}

.lang-dropdown-item .lang-flag {
    font-size: 1.05rem;
}

.lang-dropdown-item .lang-name {
    flex: 1;
    font-weight: 600;
}

.lang-dropdown-item .lang-code {
    font-size: 0.75rem;
    opacity: 0.75;
    font-weight: 700;
}

.lang-dropdown-item .lang-check {
    font-size: 0.95rem;
    opacity: 0 !important;
    transition: opacity 0.15s ease;
}

.lang-dropdown-item.active .lang-check {
    opacity: 1 !important;
    color: #FFFFFF !important;
}

/* Animated Hamburger-to-X Menu Toggle Icon */
.menu-toggle-icon {
    transition: transform 500ms ease-in-out;
    display: block;
}

.menu-toggle-icon.open {
    transform: rotate(-45deg);
}

.menu-toggle-morph {
    stroke-dasharray: 12 63;
    transition: stroke-dasharray 500ms ease-in-out, stroke-dashoffset 500ms ease-in-out;
}

.menu-toggle-icon.open .menu-toggle-morph {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42px;
}

.drawer-footer-text {
    padding: 18px 24px 24px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: #94A3B8;
    text-align: left;
}

/* =============================================
   MODALS (Reminders, Auth)
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 8000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.reminders-modal,
.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 400px;
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.reminders-modal.visible,
.auth-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-row h3 {
    font-family: 'Outfit';
    font-size: 1.1rem;
    font-weight: 800;
}

.modal-icon-blue {
    font-size: 1.4rem;
    color: var(--primary);
}

.modal-close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
}

.reminders-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reminder-row {
    display: flex;
    gap: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
}

.reminder-row ion-icon {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-body {
    padding: 20px;
}

.auth-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.google-signin-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-or {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
}

.auth-or::before,
.auth-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.auth-or::before {
    left: 0;
}

.auth-or::after {
    right: 0;
}

.auth-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}

.auth-input-group input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.95rem;
    flex: 1;
}

.cta-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Outfit';
    font-size: 1rem;
    cursor: pointer;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast-notification {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10000;
    padding: 12px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.toast-notification.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification ion-icon {
    font-size: 1.2rem;
    color: var(--success);
}

/* =============================================
   CHAT WINDOW (planner page)
   ============================================= */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    height: 510px;
    max-height: 85vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(4, 44, 83, 0.18), 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.3) translateY(20px);
    transform-origin: bottom right;
    transition: 
        opacity 0.2s cubic-bezier(0.4, 0, 1, 1),
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.22s ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    transition: 
        opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear;
}

.chat-header {
    background: #FFFFFF;
    background-image: 
        radial-gradient(circle, rgba(55, 138, 221, 0.07) 1px, transparent 1px),
        linear-gradient(145deg, #FFFFFF 0%, #FAFCFF 55%, #F4F8FC 100%);
    background-size: 24px 24px, 100% 100%;
    color: #042C53;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar,
.chat-header .bot-avatar {
    width: 38px;
    height: 38px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 !important;
    overflow: visible;
}

.chat-avatar img,
.chat-header .bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0 !important;
}

.chat-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.chat-name {
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #042C53 !important;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.chat-status {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: #64748B;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
}

.status-dot {
    display: none;
}

.close-chat-btn {
    background: transparent !important;
    border: none !important;
    color: #64748B !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.close-chat-btn:hover {
    background: #F1F5F9 !important;
    color: #042C53 !important;
}

.chat-input-area textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    font-family: 'Inter';
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

.chat-input-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.chat-input-toolbar button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mic-btn {
    background: #f1f5f9 !important;
    color: var(--text) !important;
}

/* =============================================
   DATETIME PICKER
   ============================================= */
.dt-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 8500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.dt-picker-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.dt-picker-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    z-index: 9500;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

@media (min-width: 768px) {
    .dt-picker-modal {
        width: 400px;
        left: 50%;
        right: auto;
        margin-left: -200px;
    }
}

.dt-picker-modal.visible {
    transform: translateY(0);
}

.dt-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dt-time-display {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit';
    margin-bottom: 20px;
}

.dt-sliders {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.dt-confirm-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Outfit';
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.dt-toggle {
    display: flex;
    gap: 8px;
}

.dt-toggle-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-muted);
}

.dt-toggle-btn.active {
    background: var(--primary);
    color: white;
}

.dt-now-btn,
.dt-back-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text);
    font-size: 0.87rem;
}

.dt-ampm-row {
    display: flex;
    gap: 8px;
}

.dt-ampm-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 600;
    background: white;
    color: var(--text-muted);
}

.dt-ampm-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.dt-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dt-slider-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 32px;
}

.dt-slider {
    flex: 1;
    accent-color: var(--primary);
}

.dt-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dt-cal-monthyear {
    font-weight: 700;
    font-size: 0.95rem;
}

.dt-cal-nav {
    display: flex;
    gap: 8px;
}

.dt-cal-nav-btn {
    background: #f1f5f9;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.dt-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.dt-cal-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 0;
}

.dt-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* =============================================
   ARRIVAL SCREEN (TRIP RECEIPT)
   ============================================= */
.arrival-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 9998; display: none;
}
.arrival-overlay.visible { display: block; }

.trip-receipt {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -60%) scale(0.88);
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh; overflow-y: auto; scrollbar-width: none;
}
.trip-receipt::-webkit-scrollbar { display: none; }
.trip-receipt.visible {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.receipt-paper {
  background: #fffef5; width: 280px; padding: 24px 20px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem; color: #1a1a1a;
  box-shadow: 0 2px 0 #e8e6d9, 0 4px 0 #fffef5, 0 6px 0 #e8e6d9, 0 20px 60px rgba(0,0,0,0.4);
}
.receipt-header { text-align: center; margin-bottom: 10px; }
.receipt-logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 0.25em; color: #0f172a; }
.receipt-tagline { font-size: 0.65rem; letter-spacing: 0.2em; color: #64748b; margin-top: 2px; }
.receipt-dashes { color: #cbd5e1; font-size: 0.72rem; margin: 8px 0; overflow: hidden; white-space: nowrap; }
.receipt-destination {
  text-align: center; font-size: 1rem; font-weight: 800;
  font-family: 'Courier New', monospace; letter-spacing: 0.05em;
  text-transform: uppercase; color: #0f172a; margin: 6px 0;
}
.receipt-meta-row { display: flex; justify-content: space-between; margin: 3px 0; font-size: 0.72rem; }
.receipt-label { color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; }
.receipt-value { font-weight: 700; color: #1e293b; text-align: right; max-width: 160px; }
.receipt-items { margin: 4px 0; }
.receipt-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 5px 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.72rem; gap: 8px;
}
.receipt-item:last-child { border-bottom: none; }
.receipt-item-left { display: flex; flex-direction: column; gap: 1px; }
.receipt-item-name { font-weight: 700; color: #0f172a; font-size: 0.75rem; }
.receipt-item-sub { color: #64748b; font-size: 0.68rem; }
.receipt-item-price { font-weight: 800; color: #1a8fff; white-space: nowrap; font-size: 0.75rem; }
.receipt-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 0.85rem; margin: 5px 0; color: #0f172a; }
.receipt-total-dist, .receipt-total-time { font-weight: 600; font-size: 0.72rem; color: #64748b; }
.receipt-footer { text-align: center; margin-top: 10px; font-size: 0.65rem; color: #94a3b8; letter-spacing: 0.1em; line-height: 2; }
.receipt-barcode { font-size: 1.2rem; letter-spacing: 0.05em; color: #cbd5e1; margin-top: 4px; }
.receipt-tear {
  height: 12px;
  background: repeating-linear-gradient(90deg, #fffef5 0px, #fffef5 8px, transparent 8px, transparent 16px);
  margin: 16px -20px -12px; border-top: 2px dashed #e2e8f0;
}
.receipt-done-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 14px; margin-top: 20px;
  background: #0f172a; color: white; border: none; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: background 0.2s;
}
.receipt-done-btn:active { background: #1e293b; }

/* =============================================
   MAP PICKER UI (Redesigned Pin-Drop Bottom Sheet)
   ============================================= */
.map-picker-ui {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    padding: 14px 28px 24px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.14);
    z-index: 700;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .map-picker-ui {
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        padding: 14px 24px 24px;
    }
}

.picker-drag-handle {
    width: 44px;
    height: 5px;
    background: #e4e7ec;
    border-radius: 999px;
    margin: 0 auto 18px;
    flex-shrink: 0;
}

.picker-location-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.picker-pin-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.picker-pin-badge svg {
    display: block;
}

.picker-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.picker-primary-label {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #16181d;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picker-coords-label {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #98a2b3;
    margin-top: 3px;
    line-height: 1.2;
}

.picker-confirm-btn {
    background: #378ADD;
    color: #FFFFFF;
    border: none;
    padding: 16px 24px;
    border-radius: 999px;
    font-family: 'Sora', 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(55, 138, 221, 0.30);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.picker-confirm-btn:hover {
    background: #2570BD;
    box-shadow: 0 6px 18px rgba(55, 138, 221, 0.40);
}

.picker-confirm-btn:active {
    transform: scale(0.98);
}

.picker-cancel-btn {
    background: none;
    border: none;
    color: #98a2b3;
    padding: 12px 8px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease;
    align-self: center;
}

.picker-cancel-btn:hover {
    color: #64748b;
}

.map-center-pin {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 599;
    font-size: 2.5rem;
    color: var(--danger);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* =============================================
   SPINNER
   ============================================= */
.route-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =============================================
   STEP-BY-STEP SEQUENTIAL ITINERARY LEG CARDS
   ============================================= */
.itinerary-legs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  position: relative;
}

.leg-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E6EEF7;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(4, 44, 83, 0.04);
  cursor: default;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.leg-card:hover {
  border-color: rgba(55, 138, 221, 0.4);
  box-shadow: 0 4px 12px rgba(55, 138, 221, 0.08);
}

/* Connecting route line between sequential leg cards */
.leg-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 33px;
  top: 52px;
  height: calc(100% - 20px);
  width: 2px;
  background: #378ADD;
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

.leg-icon-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.leg-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(55, 138, 221, 0.08);
  border: 1.5px solid rgba(55, 138, 221, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #378ADD;
  box-shadow: 0 1px 4px rgba(55, 138, 221, 0.12);
}

.leg-icon-circle svg {
  width: 18px;
  height: 18px;
  fill: #378ADD;
}

.leg-icon-circle .leg-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(51%) sepia(48%) saturate(1637%) hue-rotate(183deg) brightness(91%) contrast(90%);
}

.leg-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leg-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A2E4A;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.leg-title strong {
  color: #378ADD;
  font-weight: 700;
}

.leg-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748B;
  line-height: 1.4;
}

.leg-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.leg-fare-badge {
  background: rgba(55, 138, 221, 0.09);
  color: #378ADD;
  border: 1px solid rgba(55, 138, 221, 0.25);
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  line-height: 1.2;
}

/* Stop timeline within transit card */
.leg-route-stops {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
}

.leg-stop-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12px;
  padding: 4px 0;
  flex-shrink: 0;
}

.leg-stop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #378ADD;
  background: #FFFFFF;
}

.leg-stop-dot.filled {
  background: #378ADD;
}

.leg-stop-connector {
  width: 2px;
  flex: 1;
  min-height: 22px;
  background: rgba(55, 138, 221, 0.35);
  margin: 2px 0;
}

.leg-stop-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.leg-stop-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leg-stop-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #378ADD;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leg-stop-name {
  font-family: 'Sora', 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1A2E4A;
  line-height: 1.3;
}

.leg-fare-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a8fff;
  margin-left: auto;
  padding-left: 8px;
  white-space: nowrap;
}

.leg-route-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.leg-route-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: #475569;
}

.leg-route-label {
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 46px;
  margin-top: 1px;
}

/* Stop dot line — mimics Sakay.ph vertical connector */
.leg-stop-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}
.leg-stop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  background: white;
  flex-shrink: 0;
}
.leg-stop-dot.filled { background: #94a3b8; }
.leg-stop-connector {
  width: 2px;
  height: 14px;
  background: #cbd5e1;
}

/* =============================================
   NAVIGATION CURSOR ANIMATIONS
   ============================================= */
.nav-cursor-wrapper {
  transform-origin: center center;
  will-change: transform;
}

.nav-pulse-ring {
  animation: nav-pulse 2.4s ease-out infinite;
  transform-origin: 24px 24px;
}

@keyframes nav-pulse {
  0%   { r: 14; opacity: 0.4; }
  70%  { r: 22; opacity: 0; }
  100% { r: 14; opacity: 0; }
}

/* =============================================
   CALZADA PREMIUM CUSTOM MAP MARKERS & POPUPS
   ============================================= */
.calzada-custom-marker {
  background: none !important;
  border: none !important;
}

.calzada-pin-wrapper {
  position: relative;
  width: 32px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.35));
}

.calzada-pin-wrapper:hover {
  transform: scale(1.18) translateY(-3px);
  z-index: 999;
}

.calzada-pin-body {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--pin-color, #2563EB);
  border: 2.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), 0 2px 8px rgba(0,0,0,0.25);
}

.calzada-pin-body ion-icon {
  transform: rotate(45deg);
  font-size: 16px;
  color: #FFFFFF;
}

.maplibregl-popup-content {
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  background: #FFFFFF !important;
}

.maplibregl-popup-close-button {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #042C53;
  font-size: 16px;
  z-index: 10;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.maplibregl-popup-close-button:hover {
  background: #F1F5F9 !important;
  color: #EF4444;
}

.calzada-marker-popup {
  font-family: 'Outfit', sans-serif;
  min-width: 220px;
  max-width: 260px;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
}

.calzada-marker-popup .popup-img-container {
  width: 100%;
  height: 110px;
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
}

.calzada-marker-popup .popup-place-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.calzada-marker-popup .img-placeholder {
  width: 100%;
  height: 100%;
  background: #F1F5F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #94A3B8;
  user-select: none;
}

.calzada-marker-popup .img-placeholder ion-icon {
  font-size: 1.5rem;
  color: #94A3B8;
}

.calzada-marker-popup .img-placeholder span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

.calzada-marker-popup .popup-body-content {
  padding: 12px 14px 14px;
}

.calzada-marker-popup .popup-cat-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: inline-block;
}

.calzada-marker-popup .popup-place-name {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 3px;
  line-height: 1.25;
}

.calzada-marker-popup .popup-place-addr {
  font-size: 11.5px;
  color: #64748B;
  margin-bottom: 10px;
  line-height: 1.35;
}

.calzada-marker-popup .popup-action-btn {
  width: 100%;
  background: linear-gradient(135deg, #1A8FFF 0%, #0F6FD1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(26, 143, 255, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.calzada-marker-popup .popup-action-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

/* ─────────────────────────────────────────────────────────────
   360 PHOTOSPHERE PREVIEW & "VIEW 360°" ACTION (POPUP)
   Compact, elegant design matching the Calzada design system
   ───────────────────────────────────────────────────────────── */
.popup-360-container {
  margin: 6px 0 10px 0;
  padding: 6px 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.popup-360-container:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.popup-360-thumb-wrap {
  position: relative;
  width: 76px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #E2E8F0;
}

.popup-360-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-360-thumb-wrap:hover .popup-360-thumb {
  transform: scale(1.08);
}

.popup-360-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  font-family: 'Sora', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.2;
  backdrop-filter: blur(4px);
  pointer-events: none;
  letter-spacing: 0.02em;
}

.popup-360-action-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* "View 360°" Button: Styled to match "Route" in Saved Establishments (.saved-route-pill-btn) */
.popup-360-btn {
  background: linear-gradient(135deg, #378ADD 0%, #256bb8 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 13px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(55, 138, 221, 0.3);
  cursor: pointer;
  transition: all 150ms ease;
  line-height: 1;
  white-space: nowrap;
}

.popup-360-btn:hover {
  background: linear-gradient(135deg, #256bb8 0%, #1d528f 100%);
  box-shadow: 0 5px 14px rgba(55, 138, 221, 0.42);
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.popup-360-btn:active {
  transform: translateY(0);
}

.popup-360-icon {
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.popup-360-btn:hover .popup-360-icon {
  transform: rotate(20deg);
}

/* ─────────────────────────────────────────────────────────────
   FULL-SCREEN 360 VIEWER MODAL / SHELL
   ───────────────────────────────────────────────────────────── */
.calzada-360-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.calzada-360-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.calzada-360-modal-container {
  width: 100%;
  max-width: 900px;
  height: 80vh;
  max-height: 600px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.calzada-360-modal-header {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calzada-360-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F8FAFC;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
}

.calzada-360-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.calzada-360-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.calzada-360-preview-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
}

.calzada-360-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.calzada-360-status-pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.calzada-360-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}







