:root {
    --taxi-ink: #071331;
    --taxi-muted: #667086;
    --taxi-line: #e2e5ec;
    --taxi-yellow: #ffc400;
    --taxi-orange: #ffad00;
    --taxi-blue: #2d7df6;
    --taxi-bg: #f5f7fb;
}

* { box-sizing: border-box; }

html {
    background: var(--taxi-bg);
    color: var(--taxi-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body {
    background: var(--taxi-bg);
    margin: 0 auto;
    max-width: 430px;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
}

body.taxi-page {
    padding-bottom: 0;
}

body.taxi-page .site-header {
    z-index: 1300;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.taxi-app {
    background: var(--taxi-bg);
    min-height: 100vh;
    position: relative;
}

.taxi-top-panel {
    background: rgba(255, 255, 255, .97);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 16px 34px rgba(7, 19, 49, .1);
    left: 50%;
    max-width: 430px;
    padding: 24px 20px 18px;
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    width: min(100%, 430px);
    z-index: 1200;
}

.taxi-top-panel.is-collapsed {
    background: transparent;
    box-shadow: none;
    padding: 0;
    pointer-events: none;
}

.taxi-location-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr) 52px;
    margin-bottom: 18px;
}

.taxi-location-pin {
    color: var(--taxi-yellow);
    display: grid;
    place-items: center;
}

.taxi-location-pin svg {
    fill: currentColor;
    height: 30px;
    width: 30px;
}

.taxi-location-pin circle {
    fill: #fff;
}

.taxi-location-title {
    color: var(--taxi-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.taxi-location-title::after {
    border-bottom: 3px solid currentColor;
    border-right: 3px solid currentColor;
    content: "";
    display: inline-block;
    height: 8px;
    margin-left: 10px;
    transform: rotate(45deg) translateY(-3px);
    width: 8px;
}

.taxi-menu-button,
.taxi-search-actions > button:not(.taxi-district-trigger) {
    align-items: center;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 50%;
    color: var(--taxi-ink);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    width: 48px;
}

.taxi-menu-button svg,
.taxi-search svg,
.taxi-map-control svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.taxi-menu-button svg {
    height: 25px;
    width: 25px;
}

.taxi-search {
    display: grid;
    gap: 10px;
    transition: max-height .2s ease, opacity .2s ease, margin .2s ease, transform .2s ease;
}

.taxi-top-panel.is-collapsed .taxi-search {
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
}

.taxi-top-panel:not(.is-collapsed) .taxi-search {
    max-height: 150px;
    opacity: 1;
    transform: translateY(0);
}

.taxi-panel-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 999px;
    bottom: -15px;
    box-shadow: 0 8px 18px rgba(7, 19, 49, .12);
    color: var(--taxi-ink);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    left: 50%;
    padding: 0;
    position: absolute;
    transform: translateX(-50%);
    width: 54px;
}

.taxi-top-panel.is-collapsed .taxi-panel-toggle {
    bottom: auto;
    pointer-events: auto;
    top: 14px;
}

.taxi-panel-toggle svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    transition: transform .2s ease;
    width: 21px;
}

.taxi-top-panel:not(.is-collapsed) .taxi-panel-toggle svg {
    transform: rotate(180deg);
}

.taxi-search-field {
    align-items: center;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 22px;
    display: grid;
    gap: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 58px;
    padding: 0 16px;
}

.taxi-search-field > span {
    color: #697284;
    display: grid;
    place-items: center;
}

.taxi-search svg {
    height: 24px;
    width: 24px;
}

.taxi-search input {
    background: transparent;
    border: 0;
    color: var(--taxi-ink);
    font-size: 16px;
    min-width: 0;
    outline: 0;
}

.taxi-search-actions {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 48px;
}

.taxi-search select {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.taxi-district-combobox {
    min-width: 0;
    position: relative;
}

.taxi-district-trigger {
    align-items: center;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 16px;
    color: var(--taxi-ink);
    display: grid;
    font-size: 15px;
    font-weight: 850;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 20px;
    min-height: 48px;
    padding: 0 14px 0 16px;
    text-align: left;
    width: 100%;
}

.taxi-district-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taxi-district-trigger svg {
    height: 20px;
    justify-self: end;
    transition: transform .18s ease;
    width: 20px;
}

.taxi-district-combobox.is-open .taxi-district-trigger {
    border-color: rgba(255, 173, 0, .55);
    box-shadow: 0 10px 22px rgba(7, 19, 49, .1);
}

.taxi-district-combobox.is-open .taxi-district-trigger svg {
    transform: rotate(180deg);
}

.taxi-district-options {
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(7, 19, 49, .16);
    display: grid;
    gap: 4px;
    left: 0;
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    z-index: 1250;
}

.taxi-district-options[hidden] {
    display: none;
}

.taxi-district-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--taxi-ink);
    display: flex;
    font-size: 15px;
    font-weight: 800;
    min-height: 42px;
    padding: 0 12px;
    text-align: left;
    width: 100%;
}

.taxi-district-option:hover,
.taxi-district-option:focus-visible {
    background: #f4f6fb;
    outline: 0;
}

.taxi-district-option.is-selected {
    background: rgba(255, 173, 0, .16);
    color: #e95a1c;
}

.taxi-search-actions > button:not(.taxi-district-trigger) {
    border-radius: 16px;
    color: #697284;
    height: 48px;
    width: 48px;
}

.taxi-map-wrap {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.taxi-map {
    background: #18222b;
    height: 100%;
    width: 100%;
}

.taxi-map .leaflet-tile {
    filter: saturate(.92) brightness(.82) contrast(1.1);
}

.taxi-map .leaflet-control-container {
    display: none;
}

.taxi-map .leaflet-marker-icon,
.taxi-map .leaflet-interactive {
    outline: 0;
}

.user-location-icon {
    pointer-events: none;
}

.taxi-map-fallback {
    align-items: center;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--taxi-line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7, 19, 49, .1);
    color: var(--taxi-muted);
    display: grid;
    gap: 6px;
    left: 22px;
    right: 22px;
    justify-items: center;
    padding: 18px 20px;
    position: absolute;
    top: 210px;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.taxi-map-fallback[hidden] {
    display: none;
}

.taxi-map-fallback strong {
    color: var(--taxi-ink);
    font-size: 15px;
    line-height: 1.35;
}

.taxi-map-fallback span {
    font-size: 13px;
}

.taxi-map-control {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(7, 19, 49, .14);
    color: var(--taxi-ink);
    display: inline-flex;
    gap: 10px;
    height: 48px;
    justify-content: center;
    position: absolute;
    right: 18px;
    width: 48px;
    z-index: 900;
}

.taxi-map-control.locate {
    left: 50%;
    min-width: 192px;
    padding: 0 18px;
    right: auto;
    top: 64px;
    transform: translateX(-50%);
    width: auto;
}

.taxi-map-control.locate span {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.taxi-map-control.compass {
    border-radius: 50%;
    bottom: 24px;
    right: 22px;
}

.taxi-map-control svg { height: 25px; width: 25px; }
.taxi-map-control.compass svg { fill: currentColor; stroke: currentColor; }

.taxi-map-marker {
    align-items: center;
    display: inline-flex;
    gap: 9px;
}

.taxi-map-pin {
    align-items: center;
    background: var(--taxi-yellow) url("../images/taksi-ikonu.png") center / 78% auto no-repeat;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .32);
    display: flex;
    height: 46px;
    justify-content: center;
    position: relative;
    width: 46px;
    z-index: 2;
}

.taxi-map-label {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    display: grid;
    gap: 1px;
    justify-items: start;
    line-height: 1.12;
    max-width: 150px;
    min-width: 0;
    padding-top: 6px;
    text-align: left;
    text-shadow:
        0 2px 2px rgba(0, 0, 0, .95),
        0 -1px 1px rgba(0, 0, 0, .8),
        1px 0 1px rgba(0, 0, 0, .8),
        -1px 0 1px rgba(0, 0, 0, .8);
}

.taxi-map-label strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taxi-map-label small {
    color: rgba(255, 255, 255, .85);
    font-size: 11px;
    font-weight: 800;
}

.taxi-map-marker.is-selected .taxi-map-pin {
    border-color: #fff;
    box-shadow:
        0 0 0 4px var(--taxi-blue),
        0 8px 22px rgba(0, 0, 0, .36);
    height: 50px;
    width: 50px;
}

.taxi-map-marker.is-selected .taxi-map-label strong {
    font-size: 17px;
}

.user-pin {
    background: rgba(45, 125, 246, .2);
    border-radius: 50%;
    display: grid;
    height: 250px;
    place-items: center;
    width: 250px;
}

.user-pin::after {
    background: var(--taxi-blue);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(45, 125, 246, .35);
    content: "";
    height: 20px;
    width: 20px;
}

.taxi-distance-badge {
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(7, 19, 49, .14);
    color: var(--taxi-ink);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    white-space: nowrap;
}

.taxi-sheet {
    background: #fff;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -14px 34px rgba(7, 19, 49, .12);
    margin-top: 0;
    min-height: 420px;
    padding: 12px 13px 28px;
    position: relative;
    z-index: 10;
}

.taxi-sheet-handle {
    background: #cfd3dc;
    border-radius: 999px;
    height: 4px;
    margin: 0 auto 22px;
    width: 42px;
}

.taxi-sheet-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 7px;
}

.taxi-sheet h1 {
    font-size: 22px;
    line-height: 1.05;
    margin: 0;
}

.taxi-sheet-head span {
    color: var(--taxi-muted);
    font-size: 13px;
    font-weight: 800;
}

.taxi-location-note {
    color: var(--taxi-muted);
    font-size: 12px;
    line-height: 1.35;
    margin: 8px 7px 14px;
}

.taxi-list {
    display: grid;
    gap: 12px;
}

.taxi-load-more {
    background: #fff;
    border: 1px solid var(--taxi-line);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(7, 19, 49, .06);
    color: var(--taxi-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    min-height: 58px;
}

.taxi-load-more:active {
    transform: translateY(1px);
}

.taxi-nearest-group {
    display: grid;
    gap: 8px;
}

.taxi-nearest-group > h2 {
    color: #1976d2;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
    margin: 0 2px;
    text-transform: uppercase;
}

.taxi-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--taxi-line);
    border-radius: 18px;
    color: var(--taxi-ink);
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr) 70px 50px;
    min-height: 104px;
    overflow: hidden;
    padding: 14px 14px 14px 12px;
    position: relative;
    text-align: left;
    width: 100%;
}

.taxi-card.is-nearest {
    background: linear-gradient(90deg, rgba(45, 125, 246, .12), #fff 42%);
    border-color: #2d7df6;
    box-shadow: inset 6px 0 0 #2d7df6, 0 8px 22px rgba(45, 125, 246, .12);
}

.taxi-card.is-selected {
    border-color: var(--taxi-yellow);
    box-shadow: inset 34px 0 0 rgba(255, 188, 23, .86);
}

.taxi-card.is-nearest.is-selected {
    border-color: #2d7df6;
    box-shadow: inset 6px 0 0 #2d7df6, 0 8px 22px rgba(45, 125, 246, .12);
}

.taxi-rank {
    align-items: center;
    color: var(--taxi-ink);
    display: flex;
    font-size: 17px;
    font-weight: 900;
    justify-content: center;
}

.taxi-card.is-selected .taxi-rank {
    background: var(--taxi-ink);
    border-radius: 50%;
    color: #fff;
    font-size: 0;
    height: 22px;
    justify-self: start;
    margin-left: -2px;
    width: 22px;
}

.taxi-card.is-nearest .taxi-rank {
    color: #1976d2;
}

.taxi-card.is-nearest.is-selected .taxi-rank {
    background: #1976d2;
    color: #fff;
}

.taxi-card.is-selected .taxi-rank::after {
    content: "✓";
    font-size: 14px;
}

.taxi-card-main {
    min-width: 0;
}

.taxi-card-title {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: 48px minmax(0, 1fr);
}

.taxi-card-icon {
    align-items: center;
    background: var(--taxi-yellow) url("../images/taksi-ikonu.png") center / 88% auto no-repeat;
    border-radius: 50%;
    color: var(--taxi-ink);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.taxi-card h2 {
    font-size: 17px;
    line-height: 1.05;
    margin: 0;
}

.taxi-card p {
    color: var(--taxi-muted);
    font-size: 13px;
    line-height: 1.25;
    margin: 7px 0 0;
}

.taxi-card-distance {
    align-self: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
    max-width: 62px;
    text-align: center;
}

.taxi-card-route {
    align-items: center;
    color: #ff5b18;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 4px;
    line-height: 1.05;
    margin-top: 8px;
    white-space: nowrap;
}

.taxi-card-route span {
    display: block;
}

.taxi-card-route svg {
    display: block;
    fill: none;
    height: 14px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    width: 14px;
}

.taxi-card-status {
    background: #f1f3f7;
    border-radius: 999px;
    color: #7b8496;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 7px;
    padding: 5px 7px;
    text-align: center;
}

.taxi-call {
    align-items: center;
    background: var(--taxi-yellow);
    border-radius: 50%;
    color: var(--taxi-ink);
    display: inline-flex;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.taxi-call svg {
    fill: currentColor;
    height: 22px;
    width: 22px;
}

.taxi-empty {
    border: 1px dashed var(--taxi-line);
    border-radius: 16px;
    color: var(--taxi-muted);
    padding: 24px 16px;
    text-align: center;
}

.taxi-seo-page {
    max-width: 920px;
    padding: 24px 16px 42px;
}

.taxi-seo-shell {
    display: grid;
    gap: 18px;
}

.taxi-breadcrumb {
    color: var(--taxi-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.taxi-breadcrumb a:last-child {
    color: var(--taxi-ink);
    font-weight: 800;
}

.taxi-seo-hero,
.taxi-detail-card,
.taxi-nearby-regions,
.taxi-seo-card {
    background: #fff;
    border: 1px solid var(--taxi-line);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(7, 19, 49, .08);
}

.taxi-seo-hero {
    padding: 26px 22px;
}

.taxi-seo-hero p {
    color: var(--taxi-orange);
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.taxi-seo-hero h1 {
    font-size: clamp(30px, 7vw, 48px);
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 12px;
}

.taxi-seo-hero span,
.taxi-detail-card p,
.taxi-seo-card p,
.taxi-nearby-regions p {
    color: var(--taxi-muted);
    line-height: 1.55;
}

.taxi-section-title {
    font-size: 22px;
    margin: 8px 0 0;
}

.taxi-seo-list {
    display: grid;
    gap: 12px;
}

.taxi-seo-card,
.taxi-detail-card,
.taxi-nearby-regions {
    padding: 18px;
}

.taxi-seo-card h2,
.taxi-detail-card h2,
.taxi-nearby-regions h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

.taxi-seo-card span {
    color: var(--taxi-orange);
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-top: 10px;
}

.taxi-seo-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
}

.taxi-seo-actions a {
    background: var(--taxi-ink);
    border-radius: 12px;
    color: #fff;
    display: grid;
    font-weight: 900;
    min-height: 44px;
    place-items: center;
}

.taxi-seo-actions a:last-child {
    background: var(--taxi-yellow);
    color: var(--taxi-ink);
}

.taxi-detail-card dl {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
}

.taxi-detail-card dl div {
    border-top: 1px solid var(--taxi-line);
    display: grid;
    gap: 4px;
    padding-top: 10px;
}

.taxi-detail-card dt {
    color: var(--taxi-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.taxi-detail-card dd {
    margin: 0;
    font-weight: 800;
}

@media (max-width: 374px) {
    .taxi-top-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .taxi-card {
        gap: 8px;
        grid-template-columns: 28px minmax(0, 1fr) 58px 42px;
        padding: 10px;
    }

    .taxi-card h2 {
        font-size: 16px;
    }

    .taxi-card p {
        font-size: 12px;
    }

    .taxi-card-title {
        gap: 9px;
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .taxi-card-icon,
    .taxi-call {
        height: 40px;
        width: 40px;
    }

    .taxi-card-distance {
        font-size: 15px;
        max-width: 58px;
    }
}
