/* Современный дизайн карты в стиле React приложения */

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

/* Скрываем атрибуцию Leaflet */
.leaflet-control-attribution {
    display: none !important;
}

:root {
    --brand-bg: #1a103c;
    --brand-card: #2a1f50;
    --brand-surface: rgba(42, 31, 80, 0.7);
    --brand-accent: #fbbf24;
    --brand-text: #ffffff;
    --brand-subtext: #9ca3af;
    --brand-success: #4ade80;
    --brand-danger: #f87171;
    --brand-blue: #3b82f6;
    --brand-purple: #6366f1;
    --brand-indigo: #6366f1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--brand-bg);
    color: var(--brand-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.accent-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.accent-purple {
    top: -10%;
    right: -10%;
    width: 384px;
    height: 384px;
    background: #9333ea;
    animation-delay: 0s;
}

.accent-blue {
    bottom: 20%;
    left: -10%;
    width: 288px;
    height: 288px;
    background: #2563eb;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Map Container */
.map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#map {
    width: 100%;
    height: 100%;
    background-color: var(--brand-bg);
}

.leaflet-container {
    background-color: var(--brand-bg);
}

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-text {
    color: var(--brand-subtext);
    font-size: 0.875rem;
}

/* Search Row - содержит строку поиска и кнопку переключения темы */
.search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* Map Theme Toggle */
.map-theme-toggle {
    flex-shrink: 0;
    pointer-events: all;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--brand-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

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

.theme-icon {
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.theme-toggle-btn.night-mode .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle-btn.night-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Top Bar - Floating Search & Controls */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 1rem;
    padding-top: 1.5rem;
    background: linear-gradient(to bottom, var(--brand-bg) 0%, rgba(26, 16, 60, 0.8) 50%, transparent 100%);
    pointer-events: none;
}

.top-bar-content {
    max-width: 800px;
    margin: 0 auto;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* Позволяет уменьшаться в мобильном режиме */
    z-index: 10001; /* Выше чем dropdown */
}

.search-icon-wrapper {
    position: absolute;
    left: 0.75rem;
    color: var(--brand-subtext);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.625rem 0.625rem 0.625rem 2.5rem;
    background: var(--brand-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    color: var(--brand-text);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: var(--brand-subtext);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--brand-subtext);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.clear-search-btn:hover {
    color: var(--brand-text);
    background: rgba(255, 255, 255, 0.1);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: var(--brand-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    pointer-events: all;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: rgba(255, 255, 255, 0.1);
}

.autocomplete-item-icon {
    color: var(--brand-subtext);
    flex-shrink: 0;
}

.autocomplete-item-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-main-text {
    color: var(--brand-text);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.autocomplete-item-secondary-text {
    color: var(--brand-subtext);
    font-size: 0.75rem;
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Selected Place Marker */
.selected-place-marker {
    background: transparent !important;
    border: none !important;
}

/* Скрываем встроенный dropdown Google */
.pac-container {
    display: none !important;
}

.clear-search-btn:hover {
    color: var(--brand-text);
    background: rgba(255, 255, 255, 0.1);
}

/* Filters */
.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filters-wrapper::-webkit-scrollbar {
    display: none;
}

.filters-scroll {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--brand-surface);
    backdrop-filter: blur(8px);
    color: var(--brand-text);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: var(--brand-accent);
    color: var(--brand-bg);
    border-color: var(--brand-accent);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    font-weight: 600;
}

.filter-count {
    font-size: 0.75rem;
    color: var(--brand-subtext);
    white-space: nowrap;
    padding: 0 0.5rem;
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.bottom-sheet.visible {
    transform: translateY(0);
    pointer-events: all;
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0.5rem auto;
}

.bottom-sheet-content {
    background: var(--brand-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Bottom Sheet Content Styles */
.bottom-sheet-parking {
    position: relative;
}

.bottom-sheet-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--brand-subtext);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.bottom-sheet-close:hover {
    color: var(--brand-text);
    background: rgba(255, 255, 255, 0.1);
}

.bottom-sheet-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}

.bottom-sheet-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.125rem;
}

.bottom-sheet-title {
    flex: 1;
    min-width: 0;
}

.bottom-sheet-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-sheet-address {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--brand-subtext);
    font-size: 0.875rem;
}

.bottom-sheet-address svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.bottom-sheet-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bottom-sheet-stat {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-sheet-stat-label {
    font-size: 0.75rem;
    color: var(--brand-subtext);
    margin-bottom: 0.25rem;
}

.bottom-sheet-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-text);
}

.bottom-sheet-stat-value.success {
    color: var(--brand-success);
}

.bottom-sheet-stat-value.danger {
    color: var(--brand-danger);
}

.bottom-sheet-action-btn {
    width: 100%;
    background: var(--brand-accent);
    color: var(--brand-bg);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.bottom-sheet-action-btn:hover {
    background: #fcd34d;
    transform: scale(1.02);
}

.bottom-sheet-action-btn:active {
    transform: scale(0.98);
}

.bottom-sheet-action-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.bottom-sheet-action-btn:hover svg {
    transform: translateX(2px);
}

/* Модальное окно с детальной информацией */
.parking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.2s ease-out;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: var(--brand-bg);
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
    border-radius: 1.5rem 1.5rem 0 0;
}

.modal-header-content {
    flex: 1;
    padding-right: 2rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.modal-status {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.status-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.active {
    background: var(--brand-success);
}

.status-dot.inactive {
    background: var(--brand-danger);
    animation: none;
}

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

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    overflow-y: auto;
    padding: 1.5rem;
    flex: 1;
    background: var(--brand-bg);
    color: white;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-subtext);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .modal-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(42, 31, 80, 0.5);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.modal-info-item:hover {
    background: rgba(42, 31, 80, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-info-item:last-child {
    margin-bottom: 0;
}

.modal-icon-wrapper {
    padding: 0.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-wrapper.map {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.modal-icon-wrapper.train {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.modal-icon-wrapper.phone {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.modal-icon-wrapper.info {
    background: rgba(251, 191, 36, 0.2);
    color: var(--brand-accent);
}

.modal-info-content {
    flex: 1;
}

.modal-info-label {
    font-size: 0.875rem;
    color: var(--brand-subtext);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.modal-info-value {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.modal-info-value a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.modal-info-value a:hover {
    color: #93c5fd;
}

.modal-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.modal-section-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-header svg {
    color: var(--brand-accent);
    flex-shrink: 0;
}

.modal-description {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    line-height: 1.75;
}

.modal-spaces-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .modal-spaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.modal-space-card {
    background: rgba(42, 31, 80, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.modal-space-card:hover {
    transform: translateY(-2px);
}

.modal-space-card.total {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(67, 56, 202, 0.4) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.modal-space-card.common {
    background: rgba(42, 31, 80, 0.8);
}

.modal-space-card.handicapped {
    background: rgba(42, 31, 80, 0.8);
}

.modal-space-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.modal-space-card.total .modal-space-number {
    color: white;
}

.modal-space-card.common .modal-space-number {
    color: var(--brand-success);
}

.modal-space-card.handicapped .modal-space-number {
    color: #60a5fa;
}

.modal-space-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.modal-space-card.total .modal-space-label {
    color: rgba(255, 255, 255, 0.9);
}

.modal-space-card.common .modal-space-label,
.modal-space-card.handicapped .modal-space-label {
    color: var(--brand-subtext);
}

/* Тарифы в поп-апе */
.modal-price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-price-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-price-item:last-child {
    border-bottom: none;
}

.modal-price-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-price-vehicle-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.modal-vehicle-icon {
    flex-shrink: 0;
    color: var(--brand-purple);
    width: 20px;
    height: 20px;
}

.modal-price-vehicle-type {
    font-weight: 500;
    color: #d1d5db;
    font-size: 0.9rem;
}

.modal-price-value {
    color: var(--brand-purple);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;
}

.modal-footer-link {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.parking-page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.parking-page-link:hover {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.1);
    text-decoration: none;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: var(--brand-subtext);
    background: var(--brand-bg);
}

.modal-footer > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-footer-id {
    font-family: monospace;
    color: white;
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--brand-bg);
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.75rem;
        padding-top: 1rem;
    }
    
    .search-row {
        gap: 0.5rem;
    }
    
    .search-wrapper {
        flex: 1;
        min-width: 0;
    }
    
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
    
    .bottom-sheet-content {
        padding: 1rem;
        max-height: 80vh;
    }
    
    .modal-spaces-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .filters-scroll {
        gap: 0.375rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Disclaimer Footer */
.disclaimer-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    text-align: center;
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.3s ease, z-index 0s;
}

.disclaimer-footer.hidden {
    display: none;
}

.disclaimer-footer.behind-modal {
    z-index: 1;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.35;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .disclaimer-footer {
        padding: 0.5rem 0.75rem;
    }
    
    .disclaimer-text {
        font-size: 0.6875rem;
    }
}
