:root {
  --ink: #050506;
  --paper: #050506;
  --screen: #070709;
  --panel: #100c13;
  --text: #efe5f4;
  --muted: #bcaac7;
  --line: #312338;
  --soft: #17101d;
  --gold: #eadcf1;
  --gold-deep: #9d78ad;
  --green: var(--gold);
  --pink: #c8a6d9;
  --call: #341947;
  --call-deep: #21102e;
  --whatsapp: #128c4a;
  --danger: #b35a5a;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 7rem;
  padding: 0.7rem 5vw;
}

.brand,
.call-link,
.booking-call {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-self: center;
  gap: 0.7rem;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: min(30rem, 72vw);
  height: 6rem;
  object-fit: contain;
  object-position: center;
}

.call-link {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(234, 220, 241, 0.34);
  border-radius: 8px;
  background: var(--call);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(52, 25, 71, 0.35);
  transition:
    transform 160ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.whatsapp-header-link {
  border: 0;
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 140, 74, 0.3);
}

.whatsapp-header-link strong {
  color: #ffffff;
}

.call-link strong {
  font-size: 0.85rem;
}

.page-shell {
  min-height: calc(100vh - 7rem);
  padding: 1rem 5vw 3rem;
}

.booking {
  display: grid;
  grid-template-columns: minmax(20rem, 24rem) minmax(23rem, 34rem);
  gap: 3rem;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
}

.quote-tool,
.ride-preview {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quote-tool {
  display: grid;
  gap: 1.15rem;
  width: 100%;
  min-height: 43rem;
  padding: 1.15rem;
  background: var(--screen);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.phone-status {
  min-height: 1.75rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.phone-status > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
}

.weather-icon {
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.weather-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-pill[data-weather="clear"] .weather-icon {
  color: var(--gold);
}

.weather-pill[data-weather="rain"],
.weather-pill[data-weather="storm"] {
  color: #e9daf2;
}

.weather-pill[data-weather="fog"],
.weather-pill[data-weather="snow"] {
  color: #f1eaf5;
}

.tool-heading p,
.tool-heading h1,
.result-label,
.result-value,
.result-detail,
.car-card p,
.ride-preview p {
  margin: 0;
}

.tool-heading {
  display: grid;
  gap: 0.25rem;
}

.tool-heading p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

h1 {
  font-size: 2.15rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.route-box {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
}

.route-box::before {
  content: "";
  position: absolute;
  top: 2.45rem;
  bottom: 4.2rem;
  left: 0.32rem;
  width: 2px;
  background: #34253e;
}

.field-block {
  position: relative;
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.route-dot {
  position: absolute;
  top: 2.6rem;
  left: -1.16rem;
  z-index: 2;
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.3rem var(--screen);
}

.destination-dot {
  border-radius: 3px;
  background: var(--text);
}

.passenger-dot {
  background: var(--pink);
}

label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.autocomplete {
  position: relative;
  min-width: 0;
}

.pickup-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
}

.pickup-line > .autocomplete {
  grid-column: 1;
  grid-row: 1;
}

.pickup-line > .pickup-schedule {
  grid-column: 2;
  grid-row: 1;
}

.pickup-line > .location-button {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
}

.pickup-schedule {
  position: relative;
  min-width: 0;
  align-self: start;
}

.pickup-schedule[open] {
  z-index: 30;
}

.pickup-schedule-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 8.4rem;
  min-height: 2.35rem;
  padding: 0 0.78rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.pickup-schedule-toggle::-webkit-details-marker {
  display: none;
}

.pickup-schedule-toggle:hover {
  border-color: rgba(200, 166, 217, 0.34);
}

.pickup-schedule[open] .pickup-schedule-toggle,
.pickup-schedule[data-has-value="true"] .pickup-schedule-toggle {
  border-color: rgba(200, 166, 217, 0.42);
  background: #161018;
}

.pickup-schedule[data-schedule-state="scheduled"] .pickup-schedule-toggle {
  border-color: rgba(18, 140, 74, 0.92);
  background: linear-gradient(135deg, #128c4a 0%, #0d6e39 100%);
  color: #f5fff8;
  box-shadow: 0 12px 26px rgba(18, 140, 74, 0.26);
}

.pickup-schedule.schedule-ready-bump .pickup-schedule-toggle {
  animation: schedule-ready-pop 420ms ease;
}

.pickup-schedule-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.pickup-schedule-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(28rem, calc(100vw - 2rem));
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f0a13;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  z-index: 1;
}

@keyframes schedule-ready-pop {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 rgba(18, 140, 74, 0);
  }

  45% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(18, 140, 74, 0.14);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 12px 26px rgba(18, 140, 74, 0.26);
  }
}

.pickup-schedule:not([open]) .pickup-schedule-panel {
  display: none;
}

.pickup-schedule[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.62);
}

.schedule-mobile-sheet[hidden] {
  display: none;
}

.schedule-mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
}

.schedule-mobile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 5, 6, 0.62);
}

.schedule-mobile-dialog {
  position: absolute;
  right: 0.75rem;
  bottom: calc(env(safe-area-inset-bottom) + 0.85rem);
  left: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(234, 220, 241, 0.18);
  border-radius: 8px;
  background: #120d16;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.schedule-mobile-dialog .schedule-field {
  width: 100%;
  min-width: 0;
}

.schedule-mobile-dialog .meta-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

input,
select {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 760;
}

input::placeholder {
  color: #9f8dab;
  font-weight: 650;
}

.meta-input {
  min-width: 0;
  min-height: 3.35rem;
  padding: 0.78rem 0.78rem;
  font-size: 0.84rem;
  color-scheme: dark;
}

.schedule-panel-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.schedule-panel-head p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 850;
}

.schedule-field-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.schedule-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.schedule-close {
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: #050506;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.notes-field input {
  min-height: 2.8rem;
  padding: 0.7rem 0.95rem;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) 1.45rem,
    calc(100% - 0.78rem) 1.45rem;
  background-size:
    0.34rem 0.34rem,
    0.34rem 0.34rem;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(234, 220, 241, 0.9);
  outline-offset: 2px;
}

input:focus,
select:focus {
  border-color: var(--green);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  justify-self: start;
  min-width: 12.2rem;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(234, 220, 241, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 220, 241, 0.12), rgba(52, 25, 71, 0.48));
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 160ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.location-button-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
  transform: rotate(45deg);
}

.location-label-short {
  display: none;
}

.secondary-button:disabled .location-button-icon {
  animation: locate-pulse 0.9s ease-in-out infinite;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.call-link:hover,
.secondary-button:hover,
.primary-button:hover,
.booking-call:hover,
.whatsapp-stat:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.call-link:active,
.secondary-button:active,
.primary-button:active,
.booking-call:active,
.whatsapp-stat:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.22),
    inset 0 2px 8px rgba(0, 0, 0, 0.24);
}

@keyframes locate-pulse {
  50% {
    transform: rotate(45deg) scale(0.84);
    opacity: 0.58;
  }
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  max-height: 13rem;
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  list-style: none;
}

.suggestions.is-open {
  display: grid;
  gap: 0.25rem;
}

.suggestions button,
.suggestion-empty {
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  line-height: 1.35;
}

.suggestions button {
  cursor: pointer;
}

.suggestions button:hover,
.suggestions button:focus-visible {
  background: var(--soft);
}

.suggestion-empty {
  color: var(--muted);
}

.estimate-result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
  padding: 1rem;
  border-radius: 8px;
  background: #030304;
  color: var(--text);
}

.result-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.result-value {
  margin-top: 0.2rem;
  font-size: 1.8rem;
  font-weight: 920;
  line-height: 1;
}

.result-value.is-error {
  color: #ff8aa8;
  font-size: 0.98rem;
  line-height: 1.2;
}

.result-detail {
  max-width: 9rem;
  color: #e6daed;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: right;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.action-row.single-action {
  grid-template-columns: 1fr;
}

.primary-button,
.booking-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: var(--ink);
}

.booking-call {
  gap: 0.45rem;
  min-width: 5rem;
  border: 1px solid rgba(234, 220, 241, 0.34);
  background: var(--call);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(52, 25, 71, 0.35);
}

.phone-icon,
.whatsapp-icon,
.booking-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.ride-preview {
  position: relative;
  display: grid;
  grid-template-rows: 18rem auto;
  gap: 0.85rem;
  overflow: hidden;
  min-height: 43rem;
  padding: 1rem;
  background: var(--screen);
}

.map-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 18rem;
  min-height: 0;
  border: 1px solid #34253e;
  border-radius: 8px;
  background: #eef0eb;
  animation: map-rise 520ms ease both;
}

.map-empty {
  position: absolute;
  inset: 1rem;
  z-index: 600;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 8px;
  background: rgba(245, 246, 242, 0.86);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

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

.map-marker {
  display: block;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #eef0eb;
}

.map-marker-end {
  border-radius: 4px;
  background: var(--pink);
}

.leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  background: #eef0eb;
  font: inherit;
}

.map-preview.leaflet-container {
  height: 18rem;
}

.leaflet-tile-pane {
  filter: saturate(0.85) contrast(1.04);
  opacity: 1;
}

.route-line {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
}

.route-line.is-drawing {
  stroke-dasharray: var(--route-length);
  stroke-dashoffset: var(--route-length);
  animation: route-draw 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.map-marker {
  animation: marker-pop 420ms cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}

@keyframes map-rise {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes marker-pop {
  from {
    transform: scale(0.45);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.leaflet-control-attribution {
  border-radius: 6px 0 0 0;
  font-size: 0.62rem;
}

.ride-sheet {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  background: #030304;
  color: var(--text);
  z-index: 2;
}

.car-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 5.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #110d15;
}

.mobile-car-card {
  display: none;
}

.car-card img {
  display: block;
  width: 6rem;
  height: 4rem;
  border-radius: 8px;
  object-fit: cover;
}

.car-card p,
.car-card strong {
  font-weight: 900;
}

.car-card span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.ride-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.ride-stats > span,
.ride-stats > a {
  display: grid;
  min-height: 3.2rem;
  place-items: center;
  border-radius: 8px;
  background: #17101d;
  color: #d9c9e2;
  font-size: 0.76rem;
  text-align: center;
  text-decoration: none;
}

.ride-stats strong {
  color: var(--text);
  font-size: 0.95rem;
}

.ride-stats > .whatsapp-stat {
  border: 0;
  background: var(--whatsapp);
  color: #ffffff;
}

.ride-stats > .whatsapp-stat strong {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #ffffff;
}

.ride-stats > .whatsapp-stat .whatsapp-icon {
  width: 0.86rem;
  height: 0.86rem;
  color: #ffffff;
}

.ride-stats > .booking-stat {
  border: 1px solid rgba(234, 220, 241, 0.34);
  background: var(--call);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(52, 25, 71, 0.35);
}

.ride-stats > .booking-stat strong {
  color: var(--text);
}

.ride-stats > .booking-stat .booking-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--text);
}

@media (max-width: 900px) {
  .booking {
    grid-template-columns: 1fr;
    max-width: 28rem;
    gap: 1.25rem;
  }

  .quote-tool,
  .ride-preview {
    min-height: auto;
  }

  .ride-preview {
    grid-template-rows: 17rem auto;
    min-height: 34rem;
  }

  .map-preview {
    height: 17rem;
  }

  .map-preview.leaflet-container {
    height: 17rem;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem 1rem 0;
  }

  .call-link {
    justify-content: space-between;
  }

  .page-shell {
    padding: 1rem;
  }

  .booking {
    min-height: auto;
  }

  .quote-tool,
  .ride-preview {
    box-shadow: none;
  }

  .estimate-result,
  .action-row,
  .car-card {
    grid-template-columns: 1fr;
  }

  .estimate-result {
    flex-direction: column;
    align-items: start;
  }

  .result-detail {
    max-width: none;
    text-align: left;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    align-items: center;
    grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem;
    min-height: 5rem;
    padding: 0.45rem 0.75rem;
  }

  .brand {
    grid-column: 2;
    min-width: 0;
    width: 100%;
  }

  .brand-logo {
    width: min(16.5rem, 60vw);
    height: 4.2rem;
    margin: 0 auto;
  }

  .call-link strong,
  .whatsapp-header-link span,
  .tool-heading p,
  label,
  .route-dot,
  .route-box::before,
  .field-note,
  .leaflet-control-attribution {
    display: none;
  }

  .call-link {
    grid-column: 3;
    justify-self: end;
    width: 2.8rem;
    min-width: 2.8rem;
    min-height: 2.8rem;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .whatsapp-header-link .whatsapp-icon {
    width: 1.4rem;
    height: 1.4rem;
  }

  .page-shell {
    position: fixed;
    top: 5rem;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    min-height: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    overflow: hidden;
  }

  .booking {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(7rem, 1fr);
    gap: 0.5rem;
    align-items: stretch;
    max-width: 26rem;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
  }

  .quote-tool {
    gap: 0.55rem;
    min-height: 0;
    padding: 0.7rem;
    box-shadow: none;
    overflow-y: auto;
    overflow-anchor: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .phone-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    font-size: 0.68rem;
  }

  .phone-status > span {
    justify-content: center;
    min-width: 0;
    min-height: 1.75rem;
    padding: 0 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: 1.45rem;
    line-height: 1;
  }

  .route-box {
    gap: 0.45rem;
    padding-left: 0;
  }

  .field-block {
    gap: 0.35rem;
  }

  .route-box .field-block:first-child {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .pickup-line {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.4rem;
    align-items: start;
  }

  .pickup-line > .autocomplete {
    grid-column: 1;
    grid-row: 1;
  }

  .pickup-line > .location-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .pickup-line > .pickup-schedule {
    grid-column: 3;
    grid-row: 1;
  }

  .pickup-schedule-toggle {
    width: auto;
    min-width: 6.15rem;
    min-height: 2.65rem;
    padding: 0 0.7rem;
    font-size: 0.76rem;
    gap: 0.35rem;
  }

  .pickup-schedule-label {
    display: inline;
  }

  .pickup-schedule-toggle .schedule-icon {
    display: block;
    width: 0.82rem;
    height: 0.82rem;
  }

  input,
  select,
  textarea {
    min-height: 2.65rem;
    padding: 0.58rem 0.72rem;
    font-size: 16px;
  }

  .meta-input {
    min-height: 2.25rem;
    padding: 0.42rem 0.58rem;
    font-size: 0.78rem;
  }

  .pickup-schedule-panel {
    position: fixed;
    top: auto;
    right: 0.75rem;
    left: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom) + 0.85rem);
    transform: none;
    grid-template-columns: 1fr;
    width: auto;
    max-width: none;
    min-width: 0;
    max-height: calc(100svh - 7rem);
    overflow: auto;
    padding: 0.7rem;
    gap: 0.65rem;
    border-color: rgba(234, 220, 241, 0.18);
    border-radius: 8px;
    background: #120d16;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
    z-index: 140;
  }

  .pickup-schedule[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 6, 0.62);
    z-index: 130;
  }

  .schedule-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
  }

  .schedule-panel-head p {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 850;
  }

  .schedule-field {
    display: grid;
    gap: 0.3rem;
  }

  .schedule-field-label {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .schedule-close {
    color: #050506;
    -webkit-text-fill-color: #050506;
  }

  .meta-input {
    min-height: 2.75rem;
    padding: 0.58rem 0.68rem;
    font-size: 16px;
  }

  .pickup-schedule[open] {
    margin-bottom: 0;
    z-index: 140;
  }

  .notes-field input {
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 16px;
  }

  .secondary-button {
    align-self: start;
    width: 2.65rem;
    min-width: 2.65rem;
    min-height: 2.65rem;
    padding: 0;
    font-size: 0.72rem;
    gap: 0;
  }

  .location-label-full {
    display: none;
  }

  .location-label-short {
    display: none;
  }

  .location-button-icon {
    width: 1rem;
    height: 1rem;
  }

  .suggestions {
    max-height: 8rem;
    font-size: 0.8rem;
  }

  .estimate-result {
    align-items: center;
    flex-direction: row;
    min-height: 3.35rem;
    padding: 0.65rem 0.75rem;
  }

  .result-label {
    display: none;
  }

  .result-value {
    margin-top: 0;
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .result-value.is-error {
    font-size: 0.92rem;
  }

  .result-detail {
    max-width: 8.2rem;
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: right;
  }

  .action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .primary-button,
  .booking-call {
    width: 100%;
    min-width: 0;
    min-height: 2.65rem;
    padding: 0 0.62rem;
    gap: 0.3rem;
    font-size: 0.74rem;
  }

  .phone-icon,
  .whatsapp-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .ride-preview {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 0.55rem;
    box-shadow: none;
  }

  .map-preview,
  .map-preview.leaflet-container {
    height: 100%;
    min-height: 0;
  }

  .ride-sheet {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    align-self: start;
    align-content: start;
  }

  .ride-sheet .car-card {
    display: none;
  }

  .mobile-car-card {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr) auto;
    gap: 0.55rem;
    min-height: 3.7rem;
    padding: 0.45rem;
  }

  .mobile-car-card img {
    width: 4.2rem;
    height: 2.85rem;
  }

  .mobile-car-card p,
  .mobile-car-card strong {
    font-size: 0.82rem;
  }

  .mobile-car-card span {
    margin-top: 0.12rem;
    font-size: 0.68rem;
  }

  .ride-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 3rem;
    gap: 0.35rem;
    height: 3rem;
    align-self: start;
    justify-content: stretch;
    align-items: start;
  }

  .ride-stats > span,
  .ride-stats > a {
    width: auto;
    height: 3rem !important;
    min-height: 0 !important;
    max-height: 3rem;
    padding: 0.3rem 0.45rem;
    overflow: hidden;
    font-size: 0.68rem;
    align-self: start !important;
  }

  .ride-stats strong {
    font-size: 0.86rem;
  }

  .map-empty {
    inset: 0.5rem;
    font-size: 0.78rem;
  }
}

@media (orientation: portrait) and (max-width: 900px) and (max-height: 740px) {
  .topbar {
    min-height: 4.25rem;
  }

  .brand-logo {
    width: min(14.6rem, 58vw);
    height: 3.35rem;
  }

  .call-link {
    width: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
  }

  .pickup-schedule[open] {
    margin-bottom: 0;
  }

  .pickup-schedule-panel {
    right: 0.6rem;
    left: 0.6rem;
    padding: 0.6rem;
  }

  .page-shell {
    top: 4.25rem;
    padding-top: 0.4rem;
  }

  .quote-tool {
    gap: 0.42rem;
    padding: 0.55rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  input,
  select,
  .secondary-button,
  .primary-button,
  .booking-call {
    min-height: 2.35rem;
  }

  .estimate-result {
    min-height: 3rem;
    padding: 0.5rem 0.65rem;
  }

  .ride-preview {
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0.45rem;
  }

  .map-preview,
  .map-preview.leaflet-container {
    height: 100%;
  }

  .ride-stats > span,
  .ride-stats > a {
    width: auto;
    height: 2.5rem !important;
    min-height: 0 !important;
    max-height: 2.5rem;
  }

  .mobile-car-card {
    min-height: 3.2rem;
    padding: 0.35rem;
  }

  .mobile-car-card img {
    width: 3.7rem;
    height: 2.45rem;
  }

  .mobile-car-card p,
  .mobile-car-card strong {
    font-size: 0.76rem;
  }

  .mobile-car-card span {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
