.bottom-sheet-header {
    display: flex;
    align-items: center;
    padding: 5px;
    background: #2196f3;
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}

/* Кнопка закрытия (фиксированная позиция слева) */
.bottom-sheet-header .icon:first-child {
    flex-shrink: 0;
    margin-right: 8px;
}

/* Контейнер с заголовком и кнопками */
.title-container {
    flex: 1;
    min-width: 0; /* Критически важно для text-overflow */
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Основной заголовок */
.title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0; /* Критически важно */
}

/* Кнопки "откуда" и "куда" */
.from-to-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
}

/* Кнопка "Ближайшие маршруты" (фиксированная позиция справа) */
.bottom-sheet-header .icon:last-child {
    flex-shrink: 0;
    margin-left: 8px;
}

.drag-indicator {
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    margin: 8px auto;
    cursor: ns-resize;
    touch-action: none;
    /* Отключаем стандартное поведение браузера для касаний */
}
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateY(0);
    display: none;
}
.bottom-sheet.hidden {
    transform: translateY(100%);
}
.bottom-sheet-content {
    padding: 16px;
    max-height: calc(100% - 60px);
    overflow-y: auto;
}
.route-header-container {
    margin-bottom: 15px;
}
.route-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.route-params {
    font-size: 14px;
    color: #666;
    flex-grow: 1;
}
.route-back-button {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
}
.route-stops-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.from-stop,
.to-stop {
    display: inline-block;
    max-width: 40%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
}
.arrow {
    display: inline-block;
    margin: 0 8px;
    color: #666;
}
.route-number {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    color: white;
    margin-right: 8px;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}
.departure-time {
    color: #4CAF50;
    font-weight: bold;
}
.arrival-time {
    color: #F44336;
    font-weight: bold;
}
.travel-time {
    color: #666;
}
.time-separator {
    color: #666;
    margin: 0 3px;
}
.route-title {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.4;
}
.route-direction {
    color: #555;
    font-size: 14px;
    margin-top: 2px;
}
.no-routes-container {
    padding: 16px;
}
.no-routes-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.route-between-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.no-routes-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
}
.no-routes-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}
.no-routes-meta {
    margin-bottom: 20px;
    text-align: center;
}
.no-routes-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 20px;
}
.no-routes-button:hover {
    background: #e0e0e0;
}
.from-stop,
.to-stop {
    font-weight: 500;
}
.arrow {
    color: #888;
}
.nearest-time {
    color: #4CAF50;
    /* Зеленый для ближайшего времени */
    font-weight: bold;
}
.arrival-time {
    color: #F44336;
    /* Красный для времени прибытия */
    font-weight: bold;
}
.normal-time {
    color: #333;
    /* Стандартный цвет для остальных времен */
}
.time-day-controls {
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
.time-day-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.day-select,
.time-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.apply-button {
    width: 100%;
    padding: 10px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.apply-button:hover {
    background-color: #0066CC;
}
.from-to-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.from-to-btn:active {
    opacity: 0.7;
}
.from-to-btn {
    background: none;
    border: none;
    color: #007AFF;
    font-weight: bold;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
}
.from-to-btn:active {
    opacity: 0.7;
}
/* Стили для интерфейса "Отсюда-Сюда" */
.route-between-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.route-between-title {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.route-between-title .arrow {
    margin: 0 8px;
    color: #666;
}
.route-between-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.route-between-item:last-child {
    border-bottom: none;
}
.route-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.route-number {
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}
.route-direction {
    font-size: 14px;
    color: #333;
}
.route-schedule {
    font-size: 13px;
    color: #666;
}
.next-trip {
    margin-bottom: 4px;
}
.travel-time {
    color: #888;
    font-size: 12px;
}
.total-trips {
    font-size: 12px;
    color: #888;
}
.toast-notification {
    position: fixed;
    bottom: 20px;
    inset-inline: 10px;
    /* отступы слева и справа */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 1000;
    animation: fade-in 0.3s ease-out;
    margin: 0 auto;
    /* центрирование */
    max-width: 600px;
}
.toast-notification.fade-out {
    animation: fade-out 0.3s ease-in;
}

.route-notification {
    position: fixed;
    top: 50px;
    left: 50%; /* Изменено с inset-inline для лучшей поддержки */
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    z-index: 1000;
    margin: 0 auto;
    width: calc(100% - 20px); /* Ширина с учетом отступов */
    box-sizing: border-box;
    
    /* Изначально скрыт */
    display: none;
    opacity: 0;
    transform: translate(-50%, -10px);
    
    /* Анимация */
    transition: 
        opacity 0.3s ease-out,
        transform 0.3s ease-out;
    
    /* Остальные стили */
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Класс для показа */
.route-notification.visible {
    display: flex;
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Остальные стили остаются без изменений */
.route-point {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.point-icon {
    font-size: 12px;
}

.route-separator {
    opacity: 0.7;
    margin: 0 5px;
}

.clear-route-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: auto;
    padding: 0 5px;
}

.clear-route-btn:hover {
    opacity: 1;
}

/* Убираем keyframes, так как используем transition */

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from {
        opacity: 0;
        bottom: 0;
    }
    to {
        opacity: 1;
        bottom: 20px;
    }
}
@keyframes fade-out {
    from {
        opacity: 1;
        bottom: 20px;
    }
    to {
        opacity: 0;
        bottom: 0;
    }
}
.route-container {
    display: flex;
    margin-bottom: 20px;
}
.routes-list,
.directions-list {
    margin-right: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 200px;
}
.route-item,
.direction-item {
    padding: 8px;
    margin: 5px 0;
    cursor: pointer;
    background-color: #f5f5f5;
    border-radius: 3px;
}
.route-item:hover,
.direction-item:hover {
    background-color: #e0e0e0;
}
.route-item.active,
.direction-item.active {
    background-color: #4CAF50;
    color: white;
}
.show-route-btn {
    margin: 5px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.tgx-direction-block {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}
.tgx-direction-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.tgx-direction-block:active {
    transform: translateY(0);
}
.tgx-direction-header {
    margin-bottom: 10px;
}
.tgx-route-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.tgx-transport-icon {
    margin-right: 8px;
}
.tgx-transport-icon img {
    width: 24px;
    height: 24px;
}
.tgx-route-number {
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}
.tgx-route-meta {
    margin-left: auto;
}
.tgx-direction-stop {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.tgx-stop-marker {
    margin-right: 8px;
}
.tgx-stop-name {
    font-size: 14px;
}
.tgx-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 5px;
    margin-top: 10px;
}
.tgx-time-badge {
    display: inline-block;
    padding: 5px;
    text-align: center;
    border-radius: 4px;
    background-color: #f5f5f5;
    font-size: 13px;
}
.tgx-time-past {
    color: #999;
}
.tgx-time-next-workday {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}
.tgx-time-next-weekend {
    background-color: #2196F3;
    color: white;
    font-weight: bold;
}
.tgx-time-future {
    background-color: #f5f5f5;
}
.tgx-schedule-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.tgx-day-workday {
    background-color: #E8F5E9;
    color: #2E7D32;
}
.tgx-day-weekend {
    background-color: #E3F2FD;
    color: #1565C0;
}
.tgx-schedule-icon {
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
}
.tgx-schedule-icon svg {
    width: 14px;
    height: 14px;
}
/* Стили для модального окна маршрута */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: black;
}
/* Стили для кнопки показа маршрута */
.show-route-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}
.show-route-btn:hover {
    background-color: #45a049;
}
.no-routes-container {
    justify-content: center;
    align-items: center;
}
.no-routes-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #FF6B6B;
}
.no-routes-icon svg {
    width: 100%;
    height: 100%;
}
.no-routes-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
    text-align: center;
}
.no-routes-button {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    height: 100%;
}
.no-routes-button:hover {
    background: #0d8bf2;
}
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
    --primary: #6C5CE7;
    --primary-dark: #5649C0;
    --secondary: #00CEFF;
    --accent: #FF3D71;
    --success: #00E676;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --surface: #FFFFFF;
    --border-radius-sm: 12px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}
.tgx-direction-block {
    background: var(--surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}
.tgx-direction-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}
.tgx-direction-header {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tgx-route-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}
.tgx-transport-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.tgx-transport-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}
.tgx-route-number {
    font-size: 36px;
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-right: auto;
    min-width: 50px;
}
.tgx-route-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tgx-price-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(108, 92, 231, 0.05) 100%);
    border-radius: 20px;
    padding: 6px 12px;
    height: 36px;
}
.tgx-route-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.tgx-price-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tgx-schedule-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--accent);
    color: white;
    height: 36px;
}
.tgx-schedule-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tgx-direction-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tgx-direction-stop {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}
.tgx-stop-marker {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: #ff0000;
}
.tgx-stop-marker svg {
    width: 100%;
    height: 100%;
}
.tgx-stop-name {
    font-size: 16px;
    font-weight: 600;
}
.tgx-stop-start .tgx-stop-name {
    color: #0D2957;
}
.tgx-stop-end .tgx-stop-name {
    color: #0D2957;
}
.tgx-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    justify-items: center;
}
.tgx-time-badge {
    padding: 10px 14px;
    border-radius: 45px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
/* Прошедшее время: серый фон, черный текст */
.tgx-time-past {
    background-color: #e0e0e0;
    color: rgb(0, 0, 0);
    opacity: 1;
}
/* Ближайшее время для рабочего дня: зеленая заливка, белый текст */
.tgx-time-next-workday {
    background-color: #6fb059;
    color: rgb(255, 255, 255);
}
/* Ближайшее время для выходного дня: красная заливка, белый текст */
.tgx-time-next-weekend {
    background-color: #f44336;
    color: rgb(255, 255, 255);
}
/* Будущее время: синяя заливка, цвет из var(--primary) */
.tgx-time-future {
    background-color: #2196f3;
    color: rgb(255, 255, 255);
    font-weight: 800;
}
@media (max-width: 600px) {
    .tgx-transport-icon {
        width: 25px;
        height: 25px;
    }
    .tgx-route-number {
        font-size: 36px;
    }
    .tgx-route-meta {
        flex-direction: column;
        gap: 6px;
    }
    .tgx-price-container,
    .tgx-schedule-badge {
        height: 32px;
        padding: 4px 10px;
    }
    .tgx-time-badge {
        padding: 8px 12px;
        font-size: 13px;
    }
    .tgx-times-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}
@media (max-width: 400px) {
    .tgx-times-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
}
.tgx-day-workday {
    background-color: #4CAF50;
    /* светло-зелёный */
    color: #ffffff;
    /* тёмно-зелёный */
}
.tgx-day-weekend {
    background-color: #f44336;
    /* светло-красный */
    color: #ffffff;
    /* тёмно-красный */
}
/* ОБЩИЕ СТИЛИ ДВУХ СТРАНИЦ */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
#container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
#map {
    width: 100%;
    flex-grow: 1;
}
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
        /* Скрываем все служебные элементы Яндекса */
        .ymaps-2-1-79-gotoymaps,
        .ymaps-2-1-79-gototaxi,
        .ymaps-2-1-79-gototech,
        .ymaps-2-1-79-copyright__wrap,
        .ymaps-2-1-79-float-button_traffic_left,
        .ymaps-2-1-79-controls__control,
        .ymaps-2-1-79-search, 
        .ymaps-2-1-79-search_layout_normal, 
        .ymaps-2-1-79-searchbox__normal-layout,
        .ymaps-2-1-79-float-button, 
        .ymaps-2-1-79-_hidden-text,
        .ymaps-2-1-79-listbox, 
        .ymaps-2-1-79-listbox_opened_no, 
        .ymaps-2-1-79-listbox_align_right {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

/* СТИЛИ INDEX.PHP */
#zoomNotice {
    display: none;
    position: fixed;
    top: 0;
    /* Изменено с bottom: 0 на top: 0 */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    text-align: center;
    z-index: 9999;
}
.bilels,
.AC_2,
.offline-btn,
.map-type-btn,
.geolocate-btn,
.toggle-stops-btn,
.zoombtnplus,
.zoombtnminus {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: bottom 0.3s ease;
}
.close-route-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f44336;
    /* Красный цвет для кнопки закрытия */
    color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    top: 10px;
    /* Позиционируем выше других кнопок */
}
.close-route-btn:hover {
    background-color: #d32f2f;
    /* Темнее при наведении */
    transform: scale(1.05);
}
/* Позиционирование кнопок по умолчанию (нижняя кнопка — 20px от края) */
.offline-btn {
    bottom: 20px;
}
.AC_2 {
    bottom: 80px;
    /* 20 + 50 + 10 */
}
.bilels {
    bottom: 140px;
    /* 80 + 50 + 10 */
}
.geolocate-btn {
    bottom: 200px;
    /* 140 + 50 + 10 */
}
.map-type-btn {
    bottom: 260px;
    /* 200 + 50 + 10 */
}
.zoombtnminus {
    bottom: 320px;
    /* 200 + 50 + 10 */
}
.zoombtnplus {
    bottom: 380px;
    /* 200 + 50 + 10 */
}
.toggle-stops-btn {
    top: 70px;
    /* 200 + 50 + 10 */
}
/* Скрытые кнопки */
.hidden {
    opacity: 0;
    pointer-events: none;
}
/* СТИЛИ MAIN.JS */
/* Стиль для активной кнопки геолокации */
.geolocate-btn.active {
    background-color: #4a7aff !important;
    box-shadow: 0 0 0 2px rgba(74, 122, 255, 0.5);
}
/* Анимация для tooltip */
.my-location-tooltip.animate-in {
    animation: fadeIn 0.3s ease-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.my-location-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transform: translate(-50%, -100%);
    position: relative;
}
.my-location-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}
/* Tooltip */
.my-location-tooltip {
    position: absolute;
    bottom: 100%;
    margin-bottom: 10px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}
.my-location-tooltip.animate-in {
    opacity: 1;
    transform: translateY(0);
}
/* Стрелка */
.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}


.bottom-sheet-header .icon {
    font-size: 18px;
    cursor: pointer;
}
.bottom-sheet-header .title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}
.bottom-sheet-content {
    padding: 12px 16px 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}
.transport-block {
    margin-top: 12px;
}
.transport-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
}
.transport-title img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}
.route-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}
.route-button {
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}
.route-button:hover {
    background: #1976d2;
}
.drag-indicator {
    width: 40px;
    height: 4px;
    background: #cfd8dc;
    border-radius: 2px;
    margin: 6px auto 10px;
}
.day-selector {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    width: 100%;
}
.day-button {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-size: 14px;
    text-align: center;
    min-width: 0;
}
/* Рабочие дни (ПН-ПТ) */
.day-button[data-day="0"],
.day-button[data-day="1"],
.day-button[data-day="2"],
.day-button[data-day="3"],
.day-button[data-day="4"] {
    background: #4CAF50;
    color: #ffffff;
    border-color: #c8e6c9;
}
/* Выходные дни (СБ-ВС) */
.day-button[data-day="5"],
.day-button[data-day="6"] {
    background: #f44336;
    color: #ffffff;
    border-color: #ffcdd2;
}
/* Активный (выбранный) день */
.day-button.active {
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}
/* Текущий день (выделение) */
.day-button.current-day {
    position: relative;
    overflow: hidden;
}
.day-button.active::after,
.day-button.current-day::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0d2957;
}
/* Активный рабочий день */
.day-button[data-day="0"].active,
.day-button[data-day="1"].active,
.day-button[data-day="2"].active,
.day-button[data-day="3"].active,
.day-button[data-day="4"].active {
    background: #4CAF50;
    color: white;
}
/* Активный выходной день */
.day-button[data-day="5"].active,
.day-button[data-day="6"].active {
    background: #f44336;
    color: white;
}
.schedule-container {
    margin-top: 10px;
}
.schedule-title {
    font-weight: bold;
    margin-bottom: 5px;
}
.direction-block {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.direction-header {
    display: flex;
    align-items: stretch;
}
.direction-info {
    flex: 1;
    padding: 10px 15px;
    padding-top: 10px;
    padding-right: 15px;
    padding-bottom: 10px;
    padding-left: 15px;
    background: #f8f9fa;
}
.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
.time-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    padding: 6px 0;
    margin: 0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}
.time-badge.time-next.workday {
    background: #4CAF50;
    color: white;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
.time-badge.time-next.weekend {
    background: #f44336;
    color: white;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.5);
}
.time-badge.time-future.workday {
    background: #bbdefb;
    color: #0d47a1;
}
.time-badge.time-future.weekend {
    background: #e3f2fd;
    color: #1565c0;
}
.time-badge.time-past {
    background: #f5f5f5;
    color: #999;
    opacity: 1;
}
.back-button {
    background: #f5f5f5;
    color: #333;
    margin-bottom: 10px;
}
.back-button:hover {
    background: #e0e0e0;
}
.transport-card {
    display: flex;
    background: #e5e5e5;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 5px 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    position: relative;
}
.transport-type {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 10px 5px;
    flex-shrink: 0;
}
.transport-icon {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}
.workday-badge {
    background: #27CF6D !important;
}
.weekend-badge {
    background: #E31E24 !important;
}
.transport-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.transport-price {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
    opacity: 0.9;
}
.route-info {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.stops {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.stop {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
}
.stop-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}
.start-dot {
    background: #4A7AFF;
    border: 3px solid #E0E9FF;
}
.end-dot {
    background: #27CF6D;
    border: 3px solid #D5F5E4;
}
.route-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.distance-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.distance-badge {
    display: flex;
    align-items: center;
    background: #F0F1F3;
    border-radius: 12px;
    padding: 5px 10px;
    font-size: 13px;
    gap: 5px;
    white-space: nowrap;
}
.distance-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.schedule-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.day-badge {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 500;
    line-height: 1.2;
}
.workday-badge {
    background: #4a7dff;
    color: white;
}
.weekend-badge {
    background: #27CF6D;
    color: white;
}
.current-day-badge {
    background: #ff9800;
    color: white;
}
.time-display {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F5, #FFEAEA);
    border-left: 1px dashed #FFD6D6;
    flex-shrink: 0;
}
.minutes {
    font-size: 42px;
    font-weight: 800;
    color: #E31E24;
    line-height: 1;
    margin-bottom: -5px;
}
.time-label {
    font-size: 13px;
    color: #E31E24;
    font-weight: 500;
    opacity: 0.8;
}
.time-arrival {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
}
.nearest-routes-title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #333;
    text-align: center;
}
.back-button {
    margin-bottom: 15px;
    font-size: 14px;
}
.stop-name {
    word-break: break-word;
    white-space: normal;
}
.nearest-routes {
    margin-top: 10px;
}
.nearest-route {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.nearest-route:last-child {
    border-bottom: none;
}
.route-info {
    font-weight: bold;
}
.route-time {
    color: #4a7aff;
}
.time-soon {
    color: #27cf6d;
}
.time-now {
    color: #ff9800;
    font-weight: bold;
}
.u4v6z9mc {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 5px;
    flex-direction: column;
}
.m0c7r1bw {
    background: #4a7dff;
    color: #fff;
    padding: 5px;
    min-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
/* Цвета для разных типов транспорта */
.fon_tram {
    background: #dc3131 !important;
}
.fon_trolleybus {
    background: #0073ac !important;
}
.fon_bus {
    background: #008000 !important;
}
.fon_minibus {
    background: #ff6600 !important;
}
.fon_train {
    background: #dc3131 !important;
}
.fon_unknown {
    background: #000000 !important;
}
.g3x2p8fn {
    font-size: 12px;
    margin-bottom: 6px;
}
.x1e4v7zk {
    font-size: 24px;
    line-height: 1;
}
.c8n3q0ys {
    font-size: 14px;
    margin-top: 6px;
}
.v9k2a5md {
    flex: 1;
    padding: 10px 15px;
}
.j7t0b6qe {
    font-size: 16px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.e6s3l1pa svg {
    display: block;
}
.z2y8w3hx {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: -4px;
    margin-top: 8px;
}
.z2y8w3hx .q0m9k5tu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 2px;
    flex-shrink: 0;
}
.z2y8w3hx .q0m9k5tu svg {
    width: 28px;
    height: 28px;
    display: block;
    vertical-align: middle;
}
.b4f6n2dr {
    background: #d2d3d6;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #444;
    flex-shrink: 0;
}
.b4f6n2dr svg {
    width: 12px;
    height: 12px;
    display: block;
    vertical-align: middle;
}
.f5h8c2oy {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}
.f5h8c2oy input {
    opacity: 0;
    width: 0;
    height: 0;
}
.d7r2x0ev {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid #888;
    border-radius: 3px;
}
.f5h8c2oy input:checked~.d7r2x0ev {
    background-color: #4a7dff;
    border-color: #4a7dff;
}
.d7r2x0ev:after {
    content: "";
    position: absolute;
    display: none;
}
.f5h8c2oy input:checked~.d7r2x0ev:after {
    display: block;
}
.f5h8c2oy .d7r2x0ev:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}