:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    overflow: hidden;
}

/* Layout */
.container {
    display: flex;
    height: 100vh;
    position: relative;
}

.sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease, height 0.3s ease;
    position: absolute;
    left: 4px;
    top: 4px;
    max-height: calc(100vh - 8px);
    z-index: 9999;
    min-height: 200px;
}

.sidebar.collapsed {
    transform: translateX(calc(-100% - 8px)); /* Hide fully, including the left margin */
}



.sidebar-toggle {
    display: flex;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10000;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gray-700);
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.sidebar-toggle.active {
    background: rgba(37, 99, 235, 0.9);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.map-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100vh;
}

#map {
    width: 100%;
    height: 100%;
}

/* Logo styles */
.logo-section {
    padding: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.logo-image {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}



/* Sidebar sections */
.sidebar-section {
    padding: 1.5rem;
    padding-top: 0px;
}

.sidebar-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category management */
.category-item {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 0.3s ease;
    align-items: center;
}

.category-item:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
}

.category-item.active {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.category-item.inactive {
    opacity: 0.5;
    background: var(--gray-100);
}

.category-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-900);
}



.category-toggle {
    width: 40px;
    height: 20px;
    background: var(--gray-300);
    border-radius: 10px;
    position: absolute;
    right: 5px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.category-toggle.active {
    background: var(--primary-color);
}

.category-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.category-toggle.active::after {
    transform: translateX(20px);
}

/* Lighting controls */
.lighting-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.lighting-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lighting-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
}

.lighting-status {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.lighting-status.active {
    color: var(--primary-color);
}

.lighting-toggle {
    width: 40px;
    height: 20px;
    background: var(--gray-300);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.lighting-toggle.active {
    background: var(--primary-color);
}

.lighting-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.lighting-toggle.active .lighting-toggle-slider {
    transform: translateX(20px);
}

.lighting-preview {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lighting-preview.active {
    opacity: 1;
}

.time-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.time-indicator i {
    color: var(--primary-color);
}

#currentTime {
    font-weight: 600;
    color: var(--gray-900);
}

#currentPhase {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Dev Mode Styles */
.dev-mode-panel {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff4444;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.dev-mode-panel.active {
    display: block;
}

.dev-mode-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ff4444;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dev-mode-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.dev-mode-btn {
    padding: 0.5rem;
    border: 1px solid #ff4444;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dev-mode-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}

.dev-mode-btn.active {
    background: #ff4444;
    color: white;
}

.dev-mode-info {
    font-size: 0.75rem;
    color: #ff4444;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 68, 68, 0.05);
    border-radius: 0.25rem;
}



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Map controls */
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: var(--gray-50);
}

.map-control-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Marker styles matching index.html with restored functionality */
.marker-wrapper {
    position: relative;
    cursor: pointer;
    /* Prevent shadow growth: only one drop-shadow, with sensible defaults and !important */
    filter: drop-shadow(var(--shadow-x, 2px) var(--shadow-y, 2px) var(--shadow-blur, 4px) var(--shadow-color, rgba(0, 0, 0, 0.3))) !important;
    transition: filter 0.5s ease;
}

.polygon-wrapper {
    position: relative;
    cursor: pointer;
    filter: drop-shadow(var(--shadow-x, 2px) var(--shadow-y, 2px) var(--shadow-blur, 4px) var(--shadow-color, rgba(0, 0, 0, 0.3)));
    transition: filter 0.5s ease;
}

.marker-svg {
    position: absolute;
    top: 0;
    left: 0;
}

.polygon-svg {
    position: absolute;
    top: 0;
    left: 0;
}

/* Custom tooltip for markers */
.custom-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 999999 !important;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    z-index: 999999 !important;
    border-top-color: var(--tooltip-color);
}

/* Smart positioning classes for tooltips */
.custom-tooltip.position-top {
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
}

.custom-tooltip.position-bottom {
    top: 100%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    margin-bottom: 0;
}

.custom-tooltip.position-left {
    right: 100%;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
    margin-bottom: 0;
}

.custom-tooltip.position-right {
    left: 100%;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    margin-bottom: 0;
}

/* Adjust arrow position for different tooltip positions */
.custom-tooltip.position-bottom::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    z-index: 999999 !important;
    border-bottom-color: var(--tooltip-color);
}

.custom-tooltip.position-left::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    z-index: 999999 !important;
    border-left-color: var(--tooltip-color);
}

.custom-tooltip.position-right::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    z-index: 999999 !important;
    border-right-color: var(--tooltip-color);
}

.marker-wrapper:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-1px);
    z-index: 999999 !important;
}

/* Ensure tooltips are always visible when hovered, regardless of position class */
.marker-wrapper:hover .custom-tooltip.position-top,
.marker-wrapper:hover .custom-tooltip.position-bottom,
.marker-wrapper:hover .custom-tooltip.position-left,
.marker-wrapper:hover .custom-tooltip.position-right {
    opacity: 1;
    visibility: visible;
    z-index: 999999 !important;
}

.polygon-wrapper:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-1px);
    z-index: 999999 !important;
}

/* Ensure tooltips are always visible when hovered, regardless of position class */
.polygon-wrapper:hover .custom-tooltip.position-top,
.polygon-wrapper:hover .custom-tooltip.position-bottom,
.polygon-wrapper:hover .custom-tooltip.position-left,
.polygon-wrapper:hover .custom-tooltip.position-right {
    opacity: 1;
    visibility: visible;
    z-index: 999999 !important;
}



/* Image Modal */
#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999 !important;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    cursor: zoom-out;
}

.image-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 1000;
}

.image-modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}



/* Highlighted marker effect */
.marker-wrapper.highlighted {
    z-index: 1000 !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.marker-wrapper.highlighted .marker-svg {
    animation: pulse 2s infinite;
}

/* Highlighted polygon effect */
.polygon-wrapper.highlighted {
    z-index: 1000 !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.polygon-wrapper.highlighted .polygon-svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Accordion styles */
.category-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 0.3rem;
    background: white;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 0.3s ease;
    align-items: center;
}

.category-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-item.expanded {
    grid-template-rows: auto 1fr;
    align-items: start;
}

.category-header {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
    grid-row: 1;
}

.category-item.expanded .category-header {
    border-bottom: 1px solid var(--gray-200);
}

.category-content {
    overflow: hidden;
    background: var(--gray-50);
    min-height: 0;
    margin: 0;
    padding: 0;
    grid-row: 2;
}

.category-content-inner {
    padding: 0;
    margin: 0;
    display: none;
}

.category-item.expanded .category-content-inner {
    padding: 0;
    margin: 0;
    display: block;
}

.marker-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: block;
}

.marker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s;
}

.marker-item:last-child {
    border-bottom: none;
}

.marker-item:hover {
    background: var(--gray-100);
}



.marker-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
}

.polygon-title {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.polygon-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s;
}

.polygon-item:last-child {
    border-bottom: none;
}

.polygon-item:hover {
    background: var(--gray-100);
}



.polygon-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
}

.polygon-title {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-700);
}
/* Toast notifications */
/* Toast Container */
.toast-container {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

/* Toast Notification */
.toast {
    border-radius: 22px;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    background: #111;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18), 0 1px 3px 0 rgba(31,38,135,0.06) inset;
    border: none;
    min-width: 210px;
    max-width: 360px;
    overflow: visible;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes toast-pop-in {
    0% { opacity: 0; transform: translateY(-40px) scale(0.98); }
    60% { opacity: 1; transform: translateY(8px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Toast Icon */
.toast-icon {
    position: relative;
    left: 0;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.13);
    background: #6366f1;
    color: #fff;
    margin-left: 4px;
    margin-right: -14px;
    flex-shrink: 0;
}
.toast.success .toast-icon { background: #22c55e; }
.toast.error .toast-icon { background: #ef4444; }
.toast.warning .toast-icon { background: #f59e0b; }
.toast.info .toast-icon { background: #3b82f6; }

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    background: #111;
    border-radius: 22px;
    padding: 0 12px 0 18px;
    margin-left: 0;
    position: relative;
    z-index: 1;
}

.toast-message {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
    padding: 0;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    min-width: 0;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    transform-origin: left center;
    opacity: 0;
    transform: scaleX(0.7);
    transition: none;
}
.toast.show .toast-message {
    animation: toast-text-grow 0.5s cubic-bezier(0.4,0,0.2,1) 0.12s both;
}
@keyframes toast-text-grow {
    0% {
        opacity: 0;
        transform: scaleX(0.7);
    }
    60% {
        opacity: 1;
        transform: scaleX(1.08);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Toast Close Button */
.toast-close {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    opacity: 0.85;
    z-index: 3;
    pointer-events: auto;
}
.toast:hover .toast-close, .toast-close:focus {
    opacity: 1;
}
.toast-close:hover {
    background: #fff;
    color: #2563eb;
    transform: scale(1.15);
    opacity: 1;
}

/* Toast Type Variations */
.toast.success {
    border-left: none;
}

.toast.error {
    border-left: none;
}

.toast.warning {
    border-left: none;
}

.toast.info {
    border-left: none;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .sidebar {
        left: 4px;
        top: 4px;
        max-height: calc(100vh - 8px); /* Same as desktop - resize based on content */
        border-radius: 12px;
    }
    
    .map-controls {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.25rem;
    }
    
    .map-control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .toast-container {
        top: 8px;
        max-width: 98vw;
        padding: 0 2vw;
    }
    
    .toast {
        border-radius: 14px;
        min-height: 28px;
        min-width: 0;
        max-width: 98vw;
        padding: 0 0 0 0;
    }
    
    .toast-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        margin-left: 2px;
        margin-right: -7px;
    }
    
    .toast-content {
        border-radius: 14px;
        min-height: 28px;
        padding: 0 5px 0 8px;
    }
    
    .toast-message {
        font-size: 0.65rem;
    }
    
    .mapboxgl-popup-content {
        max-width: 250px;
        min-width: 180px;
        padding: 0.75rem;
    }
    
    .popup-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .popup-description {
        font-size: 0.8rem;
        max-height: 100px;
    }
    
    .popup-meta {
        font-size: 0.7rem;
    }
    
    .mapboxgl-popup-close-button {
        width: 24px !important;
        height: 24px !important;
        font-size: 14px !important;
        top: -8px !important;
        right: -8px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .sidebar {
        left: 4px;
        top: 4px;
        max-height: calc(100vh - 8px); /* Same as desktop - resize based on content */
        border-radius: 12px;
    }
    
    .mapboxgl-popup-content {
        max-width: 200px;
        padding: 0.5rem;
    }
    
    .popup-image {
        max-height: 120px;
    }
}

/* Map controls */
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.map-control-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    color: var(--gray-700);
    font-size: 1rem;
}

.map-control-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.map-control-btn.active {
    background: rgba(37, 99, 235, 0.9);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .category-item {
        padding: 0.875rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .category-toggle,
    .lighting-toggle {
        width: 44px;
        height: 24px;
    }
    
    .category-toggle::after,
    .lighting-toggle-slider {
        width: 20px;
        height: 20px;
    }
    
    .category-toggle.active::after,
    .lighting-toggle.active .lighting-toggle-slider {
        transform: translateX(20px);
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        min-height: 36px;
    }
    
    .map-control-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .custom-marker {
        /* Mobile markers slightly larger for better touch targets */
        transform: scale(1.1);
    }
    
    .custom-marker:hover {
        transform: scale(1.15);
    }
    
    .custom-marker:active {
        transform: scale(1.2);
    }
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray-500);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mapbox Popup Modern Design */
.mapboxgl-popup {
    filter: drop-shadow(0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04));
    z-index: 9999999 !important;
}

.mapboxgl-popup-content {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 400px !important;
    min-width: 250px !important;
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    z-index: 9999999 !important;
}

.popup-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0 0 12px 0;
    color: #1f2937;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    padding: 16px 16px 0 16px;
}

.popup-description {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 12px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 120px;
    overflow-y: auto;
    padding: 0 16px;
}

.popup-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 12px;
}

.popup-meta {
    font-size: 0.75rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    margin-top: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: #f9fafb;
}

/* Popup close button */
.mapboxgl-popup-close-button {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #6b7280 !important;
    border: none !important;
    border-radius: 6px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    top: 8px !important;
    right: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mapboxgl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #374151 !important;
    transform: scale(1.1) !important;
}

.mapboxgl-popup-close-button:active {
    transform: scale(0.95) !important;
}

/* Refresh button animation */
.btn-refresh.loading {
    pointer-events: none;
}

.btn-refresh.loading i {
    animation: spin 1s linear infinite;
}

/* Help Button */
.help-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Lighting Drawer */
.lighting-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lighting-drawer.open {
    right: 0;
}

.lighting-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lighting-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lighting-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.lighting-drawer-header h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lighting-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lighting-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

.lighting-drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Mobile responsive drawer */
@media (max-width: 768px) {
    .lighting-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Enhanced drawer animations */
.lighting-drawer {
    transform: translateX(0);
}

.lighting-drawer:not(.open) {
    transform: translateX(100%);
}

/* Smooth transitions for all drawer elements */
.lighting-drawer * {
    transition: all 0.3s ease;
}

/* Bottom Controls Section */
.sidebar-section:last-child {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Lighting Button Styles */
.lighting-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.lighting-btn.active {
    background: rgba(37, 99, 235, 0.9) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}

/* Help Modal */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.help-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.help-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
}

.help-modal-header h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.5rem;
}

.help-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.help-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--gray-700);
}

.help-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.help-section {
    margin-bottom: 2rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h3 {
    color: var(--gray-800);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--gray-600);
}

.help-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.help-section ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.help-section strong {
    color: var(--gray-800);
}

/* Mobile help modal */
@media (max-width: 768px) {
    .help-modal {
        padding: 10px;
    }

    .help-modal-content {
        max-height: 95vh;
    }

    .help-modal-header {
        padding: 1rem 1.5rem;
    }

    .help-modal-header h2 {
        font-size: 1.3rem;
    }

    .help-modal-body {
        padding: 1.5rem;
        max-height: calc(95vh - 80px);
    }

    .help-section h3 {
        font-size: 1.1rem;
    }
}

.user-location-marker {
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-location-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(226, 5, 5, 0.3);
    animation: userPulse 1s infinite;
    z-index: 1;
    transform: translate(-50%, -50%);
}
@keyframes userPulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}
.user-location-icon {
    position: relative;
    z-index: 2;
    font-size: 1.7rem;
    color: rgb(219, 14, 14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.help-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(255,255,255,0.98);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    border-left: 1px solid #eee;
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.help-drawer.open {
    right: 0;
}
.help-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.help-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}
.help-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    flex-shrink: 0;
}
.help-drawer-header h2 {
    margin: 0;
    color: #222;
    font-size: 1.5rem;
}
.help-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.help-close-btn:hover {
    background: rgba(0,0,0,0.07);
    color: #333;
}
.help-drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}
@media (max-width: 600px) {
    .help-drawer {
        width: 100vw;
        right: -100vw;
    }
    .password-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000000;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
    }
    
    .password-modal-content {
        background: white;
        border-radius: 12px;
        padding: 2rem;
        max-width: 400px;
        width: 90%;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        text-align: center;
    }
    
    .password-modal-header h2 {
        color: #2c3e50;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
    
    .password-modal-header p {
        color: #7f8c8d;
        margin-bottom: 1.5rem;
    }
    
    .password-modal-body {
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: #2c3e50;
        font-weight: 500;
    }
    
    .password-input {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #e1e8ed;
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.2s ease;
    }
    
    .password-input:focus {
        outline: none;
        border-color: #3498db;
    }
    
    .password-modal-footer {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .btn-primary {
        background: #3498db;
        color: white;
    }
    
    .btn-primary:hover {
        background: #2980b9;
    }
    
    .btn-secondary {
        background: #95a5a6;
        color: white;
    }
    
    .btn-secondary:hover {
        background: #7f8c8d;
    }
    
    /* Popup actions styling */
    .popup-actions {
        margin-top: 1rem;
        text-align: center;
    }
    
    .popup-actions .btn {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
    }
    
    .popup-actions .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Route info panel styling */
    .route-info-panel {
        position: fixed;
        top: 20px;
        right: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        min-width: 300px;
        max-width: 400px;
        display: none;
    }
    
    /* Waypoint navigation panel */
    .waypoint-nav-panel {
        position: fixed;
        top: 20px;
        left: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        min-width: 280px;
        max-width: 350px;
        display: none;
    }
    
    .waypoint-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
        border-radius: 8px 8px 0 0;
    }
    
    .waypoint-nav-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #374151;
    }
    
    .waypoint-nav-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #6b7280;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .waypoint-nav-close:hover {
        color: #374151;
    }
    
    .waypoint-nav-body {
        padding: 1rem;
    }
    
    .waypoint-status {
        margin-bottom: 1rem;
        padding: 0.75rem;
        border-radius: 6px;
        font-size: 0.875rem;
    }
    
    .waypoint-status.nearby {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #166534;
    }
    
    .waypoint-status.not-nearby {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
    }
    
    .waypoint-info {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background: #f9fafb;
        border-radius: 4px;
        font-size: 0.875rem;
    }
    
    .waypoint-info strong {
        color: #374151;
    }
    
    .waypoint-steps {
        margin-top: 1rem;
    }
    
    .waypoint-step {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        background: #f8fafc;
        border-radius: 4px;
        font-size: 0.875rem;
    }
    
    .waypoint-step-icon {
        margin-right: 0.5rem;
        width: 20px;
        text-align: center;
    }
    
    .waypoint-step-text {
        flex: 1;
    }
    
    .waypoint-step-distance {
        font-size: 0.75rem;
        color: #6b7280;
    }
    
    /* Waypoint markers */
    .waypoint-marker {
        position: relative;
        cursor: pointer;
    }
    
    .waypoint-marker-icon {
        width: 24px;
        height: 24px;
        background: #3498db;
        border: 2px solid white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }
    
    .waypoint-marker:hover .waypoint-marker-icon {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .waypoint-marker-label {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #e74c3c;
        color: white;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: bold;
        border: 1px solid white;
    }
    
    .route-info-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
        border-radius: 8px 8px 0 0;
    }
    
    .route-info-header h3 {
        margin: 0;
        font-size: 1rem;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .btn-close {
        background: none;
        border: none;
        color: #6b7280;
        cursor: pointer;
        padding: 0.25rem;
        border-radius: 4px;
    }
    
    .route-controls {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .btn-play-route {
        background: #3498db;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.875rem;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .btn-play-route:hover {
        background: #2980b9;
        transform: translateY(-1px);
    }
    
    .direction-indicator {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background: #f8fafc;
        border-radius: 6px;
        font-size: 0.875rem;
        color: #374151;
    }
    
    .direction-indicator i {
        color: #c00d0d !important;
        font-size: 1rem;
    }
    
    .direction-indicator-large {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        min-height: 80px;
    }
    
    .direction-indicator-large i {
        color: #c00d0d !important;
        font-size: 3rem !important;
        animation: pulse 2s infinite !important;
        transform-origin: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    /* Route Overlay Styles */
    .route-overlay {
        position: fixed;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2000;
        display: none;
        background: rgba(255, 255, 255, 0);
        border-radius: 10px;
    }
    
    .route-overlay-content {
        background: transparent;
        border-radius: 20px;
        padding: 2rem;
        min-width: 300px;
        text-align: center;
    }
    
    .direction-arrow-3d {
        margin-bottom: 1.5rem;
    }
    
    .direction-arrow-3d svg {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 120/212;
        display: block;
        margin: 0 auto;
        background: transparent;
        pointer-events: none;
        user-select: none;
        transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
    }
    
    @keyframes arrowGlow {
        0% { 
            text-shadow: 
                0 0 10px rgba(52, 152, 219, 0.5),
                0 0 20px rgba(52, 152, 219, 0.3),
                0 0 30px rgba(52, 152, 219, 0.1);
        }
        100% { 
            text-shadow: 
                0 0 15px rgba(52, 152, 219, 0.7),
                0 0 25px rgba(52, 152, 219, 0.5),
                0 0 35px rgba(52, 152, 219, 0.3);
        }
    }
    
    .route-stats {
        margin-bottom: 1.5rem;
    }
    
    .distance-display {
        font-size: 1.5rem;
        font-weight: 600;
        color: white;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .distance-display i {
        color: #3498db;
    }
    
    .route-features {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .feature {
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .feature.stairs {
        background: transparent;
        color: #e74c3c;
        border: 2px solid #e74c3c;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .feature.lift {
        background: transparent;
        color: #3498db;
        border: 2px solid #3498db;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    .btn-close-overlay {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .btn-close-overlay:hover {
        background: rgba(231, 76, 60, 0.2);
        transform: scale(1.1);
    }
    
    .btn-play-overlay {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        background: rgba(52, 152, 219, 0.1);
        color: #3498db;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.2s ease;
    }
    
    .btn-play-overlay:hover {
        background: rgba(52, 152, 219, 0.2);
        transform: scale(1.1);
    }
    
    .btn-close:hover {
        color: #374151;
    }
    
    .route-info-content {
        padding: 1rem;
    }
    
    /* Development controls panel */
    .dev-controls-panel {
        position: fixed;
        top: 20px;
        right: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        min-width: 280px;
        max-width: 350px;
        display: none;
    }
    
    .dev-controls-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
        border-radius: 8px 8px 0 0;
    }
    
    .dev-controls-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #374151;
    }
    
    .dev-controls-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #6b7280;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .dev-controls-close:hover {
        color: #374151;
    }
    
    .dev-controls-body {
        padding: 1rem;
    }
    
    .dev-control-group {
        margin-bottom: 1rem;
    }
    
    .dev-control-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #374151;
        font-size: 0.875rem;
    }
    
    .dev-btn {
        display: block;
        width: 100%;
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        background: #f9fafb;
        color: #374151;
        cursor: pointer;
        font-size: 0.875rem;
        transition: all 0.2s ease;
    }
    
    .dev-btn:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }
    
    .dev-status {
        font-size: 0.875rem;
        color: #6b7280;
    }
    
    .dev-status div {
        margin-bottom: 0.25rem;
    }
    
    /* User location marker styling */
    .user-location-marker {
        position: relative;
        cursor: grab;
    }
    
    .user-location-marker:active {
        cursor: grabbing;
    }
    
    .user-location-pulse {
        position: absolute;
        top: 4px;
        left: 4px;
        width: 32px;
        height: 32px;
        background: rgba(192, 13, 13, 0.3);
        border-radius: 50%;
        animation: pulse 2s infinite;
    }
    
    .user-location-icon {
        width: 24px;
        height: 24px;
        background: #c00d0d;
        border: 3px solid white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 1;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        100% {
            transform: scale(2);
            opacity: 0;
        }
    }
    
    .route-info-content p {
        margin: 0.5rem 0;
        color: #374151;
        font-size: 0.875rem;
    }
    
    .route-info-content strong {
        color: #111827;
    }
}