
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==========================================
   TAXI GO — MODERN DARK DESIGN
========================================== */

:root {
    --yellow: #ffd633;
    --yellow-hover: #f3c51c;

    --dark: #101114;
    --sidebar: #15171b;
    --panel: #1e2025;
    --field: #272a30;

    --white: #ffffff;
    --muted: #969ba6;

    --border: rgba(255,255,255,0.08);
    --green: #35d69a;
    --red: #ff626c;
}

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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

button,
input {
    font-family: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.app {
    display: flex;
    width: 100%;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    background: var(--dark);
}


/* ==========================================
   ЛЕВАЯ ПАНЕЛЬ
========================================== */

.sidebar {
    position: relative;
    z-index: 20;

    display: flex;
    flex-direction: column;

    width: 410px;
    min-width: 410px;
    height: 100%;

    background: var(--sidebar);
    border-right: 1px solid var(--border);

    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #393c44 transparent;
}

.sidebar-header {
    padding: 26px 27px 0;
}

.sidebar-content {
    padding: 0 27px 25px;
}


/* ==========================================
   ЛОГОТИП
========================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    background: var(--yellow);
    color: #151515;

    border-radius: 15px;

    font-size: 24px;
    font-weight: 900;

    box-shadow: 0 5px 20px rgba(255,214,51,0.12);
}

.logo-text {
    display: flex;
    flex-direction: column;

    color: white;

    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1.3px;
    line-height: 1;
}

.logo-text span {
    color: var(--yellow);
}

.logo-text small {
    margin-top: 6px;

    color: #777e8a;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.7px;
}


/* ==========================================
   ГОРОД
========================================== */

.city {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 25px;
    padding: 12px 13px;

    background: #1d2025;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.city-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 10px;
    background: rgba(255,214,51,0.1);

    color: var(--yellow);
    font-size: 22px;
}

.city div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city small {
    color: var(--muted);
    font-size: 10px;
}

.city strong {
    color: white;
    font-size: 12px;
    font-weight: 700;
}


/* ==========================================
   ПРИВЕТСТВИЕ
========================================== */

.welcome {
    margin-top: 30px;
}

.welcome-label {
    margin-bottom: 11px;

    color: var(--yellow);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.welcome h1 {
    color: white;

    font-size: 37px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.12;
}

.welcome p {
    max-width: 300px;
    margin-top: 12px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}


/* ==========================================
   ЗАГОЛОВКИ СЕКЦИЙ
========================================== */

.section-label {
    margin-top: 28px;
    margin-bottom: 12px;

    color: #858b96;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.address-section-label {
    margin-top: 27px;
}


/* ==========================================
   ВЫБОР УСЛУГИ
========================================== */

.service-tabs {
    display: flex;
    gap: 9px;

    margin-top: 17px;
}

.service-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 1;
    min-width: 0;
    min-height: 69px;

    padding: 11px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--panel);
    color: var(--muted);

    text-align: left;
    cursor: pointer;

    transition: 0.2s ease;
}

.service-btn:hover:not(.active) {
    background: #282b31;
    border-color: rgba(255,255,255,0.16);
    color: white;
}

.service-btn.active {
    background: rgba(255,214,51,0.1);
    border: 1px solid rgba(255,214,51,0.7);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,214,51,0.04);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 37px;
    height: 37px;

    flex-shrink: 0;

    background: #30333a;
    border-radius: 11px;

    font-size: 19px;
}

.service-btn.active .service-icon {
    background: rgba(255,214,51,0.16);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 0;
}

.service-info strong {
    color: inherit;
    font-size: 12px;
    font-weight: 800;
}

.service-info small {
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}


/* ==========================================
   АДРЕСА
========================================== */

.address-box {
    position: relative;

    padding: 17px 15px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.address-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 11px;
}

.address-content {
    position: relative;
    flex: 1;
    min-width: 0;
}

.address-content label {
    display: block;
    margin-bottom: 7px;

    color: #9399a4;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.address-content input {
    display: block;

    width: 100%;
    height: 43px;

    padding: 0 12px;

    background: var(--field);
    border: 1px solid #383c45;
    border-radius: 9px;

    outline: none;

    color: white;
    font-size: 12px;

    transition: 0.2s;
}

.address-content input::placeholder {
    color: #747b87;
}

.address-content input:focus {
    background: #2b2e35;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255,214,51,0.08);
}


/* ==========================================
   ТОЧКИ МАРШРУТА
========================================== */

.dot {
    display: block;

    flex-shrink: 0;

    width: 10px;
    height: 10px;

    border-radius: 50%;
}

.dot.green {
    background: var(--green);
    box-shadow: 0 0 11px rgba(53,214,154,0.5);
}

.dot.red {
    background: var(--red);
    box-shadow: 0 0 11px rgba(255,98,108,0.4);
}

.address-line {
    width: 2px;
    height: 22px;

    margin: 3px 0 3px 4px;

    background: linear-gradient(
        to bottom,
        var(--green),
        #6d737e,
        var(--red)
    );
}


/* ==========================================
   КНОПКА ГЕОЛОКАЦИИ
========================================== */

.location-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    margin-top: 18px;

    background: #30343c;
    border: 1px solid #444955;
    border-radius: 10px;

    color: var(--yellow);
    font-size: 23px;

    cursor: pointer;
    transition: 0.2s;
}

.location-btn:hover {
    background: var(--yellow);
    color: #151515;
    border-color: var(--yellow);
}


/* ==========================================
   ПОДСКАЗКИ ПОИСКА
========================================== */

.suggestions {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    margin-top: 8px;
    padding: 5px;

    background: #22262e !important;
    color: white !important;

    border: 1px solid #414650 !important;
    border-radius: 12px !important;

    box-shadow: 0 14px 35px rgba(0,0,0,0.55) !important;

    z-index: 99999 !important;

    max-height: 240px !important;
    overflow-y: auto !important;

    scrollbar-width: thin;
    scrollbar-color: #555d69 #22262e;
}

.suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;

    width: 100%;
    min-height: 58px;

    margin: 0;
    padding: 10px 12px;

    background: transparent;
    border: none;
    border-bottom: 1px solid #383e48;
    border-radius: 8px;

    color: white;
    text-align: left;

    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item span {
    display: block;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.suggestion-item small {
    display: block;

    color: #a4adbb;

    font-size: 10px;
    line-height: 1.4;
}

.suggestion-item:hover {
    background: #343b47;
}

.suggestion-item:active {
    background: #45402a;
}

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

.suggestion-message {
    padding: 15px 10px;

    color: #c5ccd6;

    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}


/* ==========================================
   ПОДСКАЗКА К КАРТЕ
========================================== */

.map-hint {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 14px;

    color: #969ba6;

    font-size: 10px;
    line-height: 1.6;
}

.map-hint span {
    color: var(--yellow);
    font-size: 15px;
}


/* ==========================================
   КНОПКА РАСЧЁТА
========================================== */

.order-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 55px;

    margin-top: 21px;
    padding: 0 19px;

    background: var(--yellow);
    border: none;
    border-radius: 12px;

    color: #151515;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
    transition: 0.2s ease;
}

.order-btn:hover {
    background: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 9px 25px rgba(255,214,51,0.16);
}

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

.order-arrow {
    font-size: 23px;
    font-weight: 500;
}


/* ==========================================
   РЕЗУЛЬТАТ СТОИМОСТИ
========================================== */

.price-result {
    margin-top: 19px;
    padding: 17px;

    background: linear-gradient(
        145deg,
        #22252b,
        #1c1e23
    );

    border: 1px solid var(--border);
    border-radius: 14px;
}

.price-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.result-label {
    color: #9ba1ad;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.price-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    background: rgba(255,214,51,0.12);
    border-radius: 8px;

    color: var(--yellow);
    font-size: 14px;
    font-weight: 900;
}

.price {
    margin-top: 9px;

    color: var(--yellow);

    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.distance,
.duration {
    margin-top: 8px;

    color: #d0d4dc;

    font-size: 11px;
    line-height: 1.5;
}

.price-note {
    margin-top: 13px;
    padding-top: 11px;

    border-top: 1px solid var(--border);

    color: #777e89;
    font-size: 9px;
    line-height: 1.5;
}


/* ==========================================
   ПРЕИМУЩЕСТВА
========================================== */

.sidebar-benefits {
    display: flex;
    gap: 10px;

    margin-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;

    flex: 1;
    min-width: 0;

    padding: 10px 8px;

    background: #1d2025;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.benefit-item > span {
    font-size: 17px;
}

.benefit-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.benefit-item strong {
    color: #e6e8ec;
    font-size: 9px;
    font-weight: 700;
}

.benefit-item small {
    color: #858b96;
    font-size: 8px;
}


/* ==========================================
   ПОДВАЛ БОКОВОЙ ПАНЕЛИ
========================================== */

.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: auto;
    padding: 18px 27px 20px;

    border-top: 1px solid var(--border);
    background: #121418;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo span {
    color: white;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.footer-logo small {
    color: #858b96;
    font-size: 9px;
}

.copyright {
    color: #737984;
    font-size: 10px;
}


/* ==========================================
   ОСНОВНАЯ ОБЛАСТЬ КАРТЫ
========================================== */

.map-section {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: #e8e8e8;
}


/* ==========================================
   ВЕРХНЯЯ ПАНЕЛЬ КАРТЫ
========================================== */

.map-top {
    position: relative;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-shrink: 0;

    min-height: 78px;
    padding: 12px 25px;

    background: #17191e;
    border-bottom: 1px solid var(--border);
}

.map-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    background: rgba(255,214,51,0.12);
    border-radius: 11px;

    color: var(--yellow);
    font-size: 23px;
}

.map-heading > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-heading strong {
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.map-heading small {
    color: #9197a2;
    font-size: 10px;
}

.map-top-right {
    display: flex;
    align-items: center;
    gap: 17px;
}

.map-status {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    background: rgba(53,214,154,0.08);
    border: 1px solid rgba(53,214,154,0.15);
    border-radius: 9px;

    color: #a8e9d0;
    font-size: 10px;
    font-weight: 700;
}

.online-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--green);

    box-shadow: 0 0 9px rgba(53,214,154,0.6);
}

.map-date {
    color: var(--yellow);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}


/* ==========================================
   КОНТЕЙНЕР КАРТЫ
========================================== */

.map-container {
    position: relative;

    flex: 1;
    min-height: 0;
    width: 100%;

    overflow: hidden;
    background: #e8e8e8;
}

#map {
    position: absolute;
    inset: 0;

    z-index: 1;

    width: 100%;
    height: 100%;
}


/* ==========================================
   ПЛАВАЮЩАЯ КАРТОЧКА НА КАРТЕ
========================================== */

.map-floating-card {
    position: absolute;
    top: 19px;
    left: 19px;

    z-index: 5;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 11px 14px;

    background: rgba(23,25,30,0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.18);

    pointer-events: none;
}

.floating-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    background: rgba(255,214,51,0.12);
    border-radius: 10px;

    font-size: 19px;
}

.map-floating-card > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-floating-card strong {
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.map-floating-card small {
    color: #9ba1ad;
    font-size: 9px;
}

.floating-online-dot {
    width: 7px;
    height: 7px;

    margin-left: 6px;

    border-radius: 50%;
    background: var(--green);
}


/* ==========================================
   ПОДСКАЗКА НА КАРТЕ
========================================== */

.map-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 5;

    display: flex;
    align-items: center;
    gap: 9px;

    width: max-content;
    max-width: calc(100% - 30px);

    padding: 12px 17px;

    background: rgba(23,25,30,0.94);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;

    color: white;
    font-size: 10px;
    font-weight: 600;

    box-shadow: 0 5px 20px rgba(0,0,0,0.18);

    pointer-events: none;
}

.map-instruction span {
    color: var(--yellow);
    font-size: 16px;
}


/* ==========================================
   НИЖНЯЯ ПАНЕЛЬ КАРТЫ
========================================== */

.map-bottom {
    position: relative;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    flex-shrink: 0;

    min-height: 43px;
    padding: 8px 25px;

    background: #17191e;
    border-top: 1px solid var(--border);
}

.map-bottom-left,
.map-bottom-right {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #a1a6b0;
    font-size: 9px;
    font-weight: 600;
}

.map-location-icon {
    color: var(--yellow);
    font-size: 15px;
}

.bottom-divider {
    color: #50555e;
}

.map-online-indicator {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: var(--green);
}


/* ==========================================
   ПРОКРУТКА
========================================== */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #393d46;
    border-radius: 10px;
}

.suggestions::-webkit-scrollbar {
    width: 5px;
}

.suggestions::-webkit-scrollbar-thumb {
    background: #555d69;
    border-radius: 10px;
}


/* ==========================================
   ПЛАНШЕТЫ
========================================== */

@media (max-width: 1050px) {
    .sidebar {
        width: 370px;
        min-width: 370px;
    }

    .sidebar-header {
        padding-left: 21px;
        padding-right: 21px;
    }

    .sidebar-content {
        padding-left: 21px;
        padding-right: 21px;
    }

    .sidebar-footer {
        padding-left: 21px;
        padding-right: 21px;
    }

    .welcome h1 {
        font-size: 33px;
    }

    .map-top {
        padding-left: 17px;
        padding-right: 17px;
    }
}


/* ==========================================
   ТЕЛЕФОНЫ
========================================== */

@media (max-width: 800px) {
    html,
    body {
        height: auto;
        min-height: 100%;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app {
        display: flex;
        flex-direction: column;

        width: 100%;
        height: auto;
        min-height: 100dvh;

        overflow: visible;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        height: auto;

        overflow: visible;
    }

    .sidebar-header {
        padding: 20px 20px 0;
    }

    .sidebar-content {
        padding: 0 20px 23px;
    }

    .sidebar-footer {
        margin-top: 0;
        padding: 16px 20px;
    }

    .welcome {
        margin-top: 24px;
    }

    .welcome h1 {
        font-size: 34px;
    }

    .service-tabs {
        margin-top: 15px;
    }

    .map-section {
        flex: none;

        width: 100%;
        height: 65vh;
        min-height: 390px;
    }

    .map-top {
        min-height: 65px;
        padding: 10px 14px;
    }

    .map-heading-icon {
        width: 34px;
        height: 34px;
    }

    .map-heading strong {
        font-size: 11px;
    }

    .map-heading small {
        font-size: 9px;
    }

    .map-top-right {
        gap: 8px;
    }

    .map-status {
        padding: 8px;
        font-size: 9px;
    }

    .map-date {
        display: none;
    }

    .map-floating-card {
        top: 12px;
        left: 12px;
        padding: 9px;
    }

    .map-instruction {
        bottom: 12px;
        font-size: 9px;
    }

    .map-bottom {
        min-height: 39px;
        padding: 8px 12px;
    }

    .map-bottom-left,
    .map-bottom-right {
        font-size: 8px;
        gap: 6px;
    }
}


/* ==========================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
========================================== */

@media (max-width: 420px) {
    .sidebar-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sidebar-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sidebar-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-text {
        font-size: 23px;
    }

    .welcome h1 {
        font-size: 30px;
    }

    .service-btn {
        min-height: 64px;
        padding: 8px;
        gap: 7px;
    }

    .service-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .service-info strong {
        font-size: 11px;
    }

    .service-info small {
        font-size: 8px;
    }

    .address-box {
        padding: 13px 11px;
    }

    .address-content input {
        font-size: 11px;
    }

    .sidebar-benefits {
        gap: 6px;
    }

    .benefit-item {
        gap: 5px;
        padding: 9px 5px;
    }

    .benefit-item strong {
        font-size: 8px;
    }

    .benefit-item small {
        font-size: 7px;
    }

    .map-section {
        min-height: 360px;
    }

    .map-status {
        font-size: 8px;
    }

    .map-bottom-right {
        gap: 4px;
    }
}


/* ==========================================
   НИЗКАЯ ВЫСОТА ЭКРАНА
========================================== */

@media (min-width: 801px) and (max-height: 720px) {
    .sidebar-header {
        padding-top: 17px;
    }

    .city {
        margin-top: 15px;
    }

    .welcome {
        margin-top: 18px;
    }

    .welcome h1 {
        font-size: 30px;
    }

    .section-label {
        margin-top: 20px;
    }

    .service-btn {
        min-height: 59px;
    }

    .address-box {
        padding: 13px;
    }

    .price-result {
        margin-top: 14px;
        padding: 13px;
    }

    .sidebar-footer {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}
