.taxi-map {
  border: 2px solid #f8fffb;
  box-shadow: 0 10px 24px #31574630;
  background: #d7ebdd;
}
.taxi-map.is-static { pointer-events: none; cursor: default; }
.taxi-map .leaflet-control-zoom.is-disabled { display: none; }
.taxi-map .leaflet-tile-pane {
  filter: saturate(1.27) contrast(1.07) brightness(1.04);
}
.taxi-map .leaflet-control-zoom a {
  color: #285842; background: #f8fffc; border-color: #d0e1d7;
}
.taxi-map .leaflet-control-attribution {
  background: #fffffff0; color: #426354; border-radius: 7px 0 0;
}
.taxi-route-summary {
  margin: 10px 0 12px !important; padding: 10px 16px;
  border: 2px solid #62936b; border-radius: 999px;
  background: #e8f6e8; color: #205a39;
  box-shadow: 0 2px 0 #ffffffb8 inset, 0 4px 12px #31574624;
  text-align: center; font-size: 15px; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.taxi-order-form {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  min-width: 0; max-width: 100%;
  margin: 14px 8px 4px; padding: 34px 15px 15px; border-radius: 18px;
  background: #f9fcf6; border: 1px solid #bad5b9;
  box-shadow: 0 8px 20px #355d3c20;
}
.taxi-order-form input {
  grid-column: 1 / -1; min-width: 0; width: 100%; padding: 13px 14px;
  border: 1px solid #bdceba; border-radius: 12px; background: #fff;
  color: #243b29; font: inherit; font-size: 16px;
}
.taxi-order-form button {
  grid-column: 2; grid-row: 3; min-width: 76px; border: 0;
  border-radius: 12px; background: #315b30; color: #fff; font: inherit; font-weight: 800;
}
.taxi-order-form button:disabled { opacity: .5; }
.taxi-order-form .taxi-order-dismiss {
  position: absolute; grid-area: auto; top: 5px; right: 7px; min-width: 26px; min-height: 26px;
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  background: #e4ebdf; color: #315b30; font-size: 23px; line-height: 1;
}
@media (max-width: 760px) {
  .main-panel.taxi-address-editing .chat-main { overflow-anchor: none; scroll-behavior: auto; }
  .main-panel.taxi-address-editing .composer-area { display: none; }
  .taxi-order-form:not(.taxi-order-preview) { gap: 8px; padding: 34px 10px 10px; }
  .taxi-order-form:not(.taxi-order-preview) input { padding: 10px 12px; }
  .taxi-order-form:not(.taxi-order-preview) button { min-height: 36px; }
  .taxi-order-form:not(.taxi-order-preview) .taxi-order-dismiss { min-height: 26px; }
}
.taxi-order-form p { grid-column: 1; grid-row: 3; min-width: 0; margin: 0; align-self: center; font-size: 12px; overflow-wrap: anywhere; }
.taxi-search-status { color: #285d34; font-weight: 800; }
.taxi-card .taxi-search-status { margin: 14px 0; padding: 11px 13px; border-radius: 12px; background: #e6f3df; }
.taxi-card .taxi-offer-wait { margin: 0 0 12px; padding: 8px 11px; border-radius: 11px; background: #fff0d8; color: #8c431c; font-weight: 900; font-variant-numeric: tabular-nums; }
.taxi-card:has(.taxi-ride-head) { padding: 13px 15px; }
.taxi-card:has(.taxi-ride-head) h3 { margin-bottom: 8px; }
.taxi-ride-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, 34%); gap: 10px; align-items: start; }
.taxi-ride-details { min-width: 0; }
.taxi-ride-details p { margin: 2px 0 5px; line-height: 1.3; overflow-wrap: anywhere; }
.taxi-ride-details .taxi-person-rating { color: #9b6c16; font-weight: 900; }
.profile-rating { margin: 8px 0; color: #9b6c16; font-weight: 900; }
.taxi-ride-details a { margin: 0; overflow-wrap: anywhere; }
.taxi-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.taxi-card .taxi-contact-row button { margin: 0; padding: 6px 9px; background: #e5f2df; border: 1px solid #8db488; color: #285438; font-size: 11px; }
.taxi-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 0; }
.taxi-card .taxi-contact-actions button { width: 100%; min-width: 0; min-height: 42px; padding: 6px 5px; line-height: 1.15; overflow-wrap: anywhere; }
.taxi-card .taxi-ride-chat-toggle.is-active { background: #f4ce4f; border-color: #d9a426; color: #2c321c; box-shadow: 0 0 0 2px #ffe7948c; }
.taxi-card .taxi-map-toggle[aria-pressed="true"] { background: #315c39; border-color: #315c39; color: #fff; }
.taxi-ride-actions { display: grid; gap: 6px; align-content: start; }
.taxi-card .taxi-ride-actions button { width: 100%; margin: 0; padding: 8px 7px; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.taxi-card .taxi-ride-status { margin: 8px 0 0; padding: 7px 10px; border-radius: 10px; background: #e2f3e9; color: #1f634d; font-weight: 800; }
.taxi-card .taxi-reward-hint { margin: 5px 0 0; color: #385d36; font-size: 12px; font-weight: 700; }
.taxi-cancel-form { width: 100%; min-width: 0; max-width: 100%; margin: 10px 0; padding: 12px; border: 1px solid #b8d0b8; border-radius: 14px; background: #f0f7eb; }
.taxi-cancel-form label { display: block; min-width: 0; font-weight: 800; }
.taxi-cancel-form textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 80px; margin-top: 7px; padding: 10px; border: 1px solid #aac4a8; border-radius: 10px; background: #fff; color: #263b29; font: inherit; resize: vertical; }
.taxi-cancel-form div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.taxi-card .taxi-cancel-form button { width: 100%; min-width: 0; margin: 9px 0 0; padding: 8px 11px; overflow-wrap: anywhere; }
.taxi-card .taxi-cancel-form button[type="button"] { background: #e1ebdb; color: #315b30; }
.taxi-cancel-form p { margin: 7px 0 0; color: #a23c30; }
.taxi-rating-form { width: 100%; min-width: 0; max-width: 100%; margin: 10px 0; padding: 12px; border: 1px solid #dccb8f; border-radius: 14px; background: #fff9e8; }
.taxi-rating-form p { margin: 0 0 8px; font-weight: 800; }
.taxi-rating-stars { display: flex; flex-wrap: wrap; gap: 5px; }
.taxi-card .taxi-rating-stars button { margin: 0; padding: 2px 6px; border: 1px solid #d1bd79; border-radius: 10px; background: #fff; color: #b4a984; font-size: 32px; line-height: 1.15; }
.taxi-card .taxi-rating-stars button[aria-pressed="true"] { background: #fff1b0; color: #db9a0d; }
.taxi-card .taxi-rating-form button[type="submit"] { margin: 10px 0 0; }
.taxi-rating-form p[role="status"] { margin-top: 8px; color: #a23c30; }
.taxi-map-stage { position: relative; width: 100%; height: 360px; overflow: hidden; border-radius: 14px; isolation: isolate; }
.taxi-card .taxi-map-stage .taxi-map { width: 100%; height: 100%; margin: 0; }
.taxi-ride-chat {
  position: absolute; z-index: 1200; top: 5%; left: 0; width: 40%; height: 90%; min-width: 0;
  display: flex; flex-direction: column; gap: 5px; overflow: hidden; padding: 6px;
  border: 1px solid #ffffffd9; border-left: 0; border-radius: 0 14px 14px 0;
  background: rgb(248 255 242 / 30%); box-shadow: 8px 0 25px #17362159;
  font-size: 12px; line-height: 1.3; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  animation: taxi-chat-slide-in .32s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes taxi-chat-slide-in { from { transform: translateX(-105%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
.taxi-ride-chat.no-entry-animation { animation: none; }
.taxi-ride-chat-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 2px; }
.taxi-ride-chat h4 { margin: 0; color: #285438; font-size: 12px; line-height: 1.2; }
.taxi-ride-messages { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: stretch; gap: 7px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.taxi-card .taxi-ride-message { display: flex; align-items: flex-end; gap: 3px; min-width: 0; margin: 0; }
.taxi-card .taxi-ride-message.mine { flex-direction: row-reverse; }
.taxi-ride-message-avatar { flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid #9fc596; border-radius: 50%; object-fit: cover; background: #e5efdd; }
.taxi-ride-message-text { min-width: 0; padding: 5px 6px; border-radius: 9px; background: #e6eee1; color: #26372b; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; }
.taxi-ride-message.mine .taxi-ride-message-text { background: #d7ebcd; }
.taxi-card .taxi-ride-chat-empty { margin: 0; color: #61765d; font-size: 11px; }
.taxi-card .taxi-ride-chat-status { flex: none; max-height: 48px; margin: 0; overflow: auto; color: #9b352b; font-size: 10px; }
.taxi-card .taxi-ride-push-enable { flex: none; display: block; width: 100%; margin: 0; padding: 5px 3px; background: #e5f2df; border: 1px solid #8db488; color: #285438; font-size: 10px; line-height: 1.2; }
.taxi-card .taxi-ride-chat-close { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; padding: 0; border: 1px solid #a4c3a0; border-radius: 6px; background: #e3f0dd; color: #2f5938; font-size: 18px; line-height: 18px; }
.send-button.is-ride-chat, .send-button.is-pro.is-ride-chat { background: #f4ce4f; color: #2c321c; box-shadow: 0 0 0 3px #ffe79491; }
.send-button.is-ride-chat:hover, .send-button.is-pro.is-ride-chat:hover { background: #f8db74; }
.taxi-chat[data-driver-ride="true"] .taxi-map-stage { height: 506px; }
.taxi-chat[data-client-ride="true"] { margin-bottom: 6px; }
.taxi-chat, .taxi-card, .taxi-work-panel { min-width: 0; max-width: 100%; }
.ibeza-map-marker { background: none; border: 0; }
.map-marker-stack {
  display: flex; flex-direction: column; align-items: center;
  width: 64px;
  filter: drop-shadow(0 3px 5px #173c3566);
}
.map-marker-avatar {
  display: block; width: 38px; height: 38px; flex: none;
  border: 3px solid white; border-radius: 50%; overflow: hidden;
  background: #dce9d8 center / cover no-repeat;
  box-shadow: 0 0 0 2px #28684e;
}
.map-marker-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-marker-link { display: block; width: 3px; height: 6px; background: #28684e; }
.map-marker-vehicle { display: block; width: var(--vehicle-width); height: var(--vehicle-height); object-fit: contain;
  transform: rotate(var(--vehicle-rotation, 0deg)); transform-origin: 50% 50%; }
@media (max-width: 560px) {
  .taxi-cancel-form div { grid-template-columns: 1fr; }
  .taxi-map-stage { height: 336px; }
  .taxi-chat[data-driver-ride="true"] .taxi-map-stage { height: 460px; }
  .taxi-ride-head { grid-template-columns: minmax(0, 1fr) minmax(108px, 37%); gap: 7px; }
  .taxi-card .taxi-ride-actions button { font-size: 11px; }
  .taxi-route-summary { font-size: 12px; }
}
@media (max-width: 560px) and (max-height: 740px) {
  .taxi-chat[data-driver-ride="true"][data-ride-status="accepted"] .taxi-map-stage {
    height: 36.8dvh;
    min-height: 196px;
  }
}
@media (prefers-reduced-motion: reduce) { .taxi-ride-chat { animation: none; } }

.taxi-order-form.taxi-order-preview { display: flex; flex-direction: column; }
.taxi-order-preview .taxi-map { height: 240px; }
.taxi-preview-actions { display: flex; gap: 10px; }
.taxi-preview-actions button { flex: 1; padding: 12px 8px; }

