body.booking-open { overflow: hidden; }
#mapModal.booking-screen { padding: 0; z-index: 1100; align-items: stretch; }
#mapModal.booking-screen, #mapModal.booking-screen * { box-sizing: border-box; }
#mapModal .booking-shell, .booking-body, .booking-sheet, .booking-scroll, .booking-footer, .booking-panel, .booking-panel form, .booking-panel form > *, .booking-panel label { min-width: 0; }
#mapModal.booking-screen [hidden], #mapModal .booking-source-hidden { display: none !important; }
#mapModal .booking-shell { width: 100%; max-width: 1200px; height: 100dvh; max-height: 100dvh; margin: auto; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 56px minmax(0,1fr); background: #fff; color: #172554; overflow: hidden; border-radius: 0; color-scheme: light; }
.booking-header { display: flex; align-items: center; gap: 12px; padding: 6px 16px; background: #1d4ed8; color: white; }
.booking-header h2 { font-size: 18px; font-weight: 800; flex: 1; min-width: 0; }
.booking-icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 14px; background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; cursor: pointer; font-size: 18px; }
.booking-header .booking-icon-button { color: white; border-color: #ffffff40; background: #ffffff14; }
.booking-body { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: 'map' 'sheet' 'footer'; grid-template-rows: minmax(0,var(--booking-map-size,26%)) minmax(44px,1fr) auto; }
.booking-map { grid-area: map; min-height: 0; position: relative; overflow: hidden; background: #e2e8f0; }
#mapModal #simulationMap { height: 100% !important; width: 100%; }
#mapModal #mapOverlayText { display: none; }
.booking-location { position: absolute; right: 12px; top: 10px; z-index: 1000; box-shadow: 0 2px 10px #0f172a20; }
.booking-map-credit { position: absolute; bottom: 0; left: 0; z-index: 1000; padding: 2px 6px; font-size: 12px; background: #fffffff0; color: #334155; }
.booking-sheet { grid-area: sheet; overflow: hidden; display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 22px 22px 0 0; position: relative; margin-top: 0; z-index: 1001; box-shadow: 0 -4px 22px #17255412; }
.booking-grip { flex: 0 0 44px; min-height: 44px; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; touch-action: none; user-select: none; cursor: ns-resize; color: #475569; font-size: 12px; background: white; }
.booking-grip::before { content: ''; width: 42px; height: 4px; background: #cbd5e1; border-radius: 6px; }
.booking-scroll { padding: 0 18px 12px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; min-height: 0; flex: 1; overflow-wrap: anywhere; scroll-padding: 16px; }
.booking-city { border: 0; background: transparent; font-size: 14px; font-weight: 700; color: #1d4ed8; min-height: 36px; display: flex; align-items: center; gap: 8px; }
.booking-address { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e2e8f0; min-height: 57px; }
.booking-address-button { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 9px 0; }
.booking-marker { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; background: #dbeafe; color: #1d4ed8; border-radius: 50%; font-size: 13px; font-weight: 800; }
.booking-marker-destination { background: #fde68a; color: #713f12; }
.booking-address-copy { min-width: 0; }
.booking-address-copy small { display: block; font-size: 12px; color: #64748b; }
.booking-address-copy strong { display: block; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-detail { width: 100%; border: 0; border-bottom: 1px solid #e2e8f0; border-radius: 0; padding: 12px 0 12px 36px; font-size: 16px; background: transparent; color: #172554; min-height: 44px; }
.booking-detail::placeholder { color: #64748b; opacity: 1; }
.booking-note { resize: vertical; min-height: 44px; max-height: 120px; }
.booking-service-nav { display: flex; align-items: center; gap: 4px; margin: 12px -4px 10px; }
.booking-services { display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; min-width: 0; padding: 3px 0 7px; flex: 1; overscroll-behavior-x: contain; }
.booking-service { flex: 0 0 100px; min-height: 88px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; padding: 9px 5px; border-radius: 15px; border: 1px solid #e2e8f0; color: #475569; background: #f8fafc; font-size: 14px; line-height: 1.15; scroll-snap-align: start; }
.booking-service i { font-size: 25px; color: #64748b; }
.booking-service[aria-pressed=true] { border: 2px solid #1d4ed8; color: #172554; background: #eff6ff; font-weight: 700; }
.booking-service[aria-pressed=true] i { color: #1d4ed8; }
.booking-service-arrow { display: none; }
.booking-help { font-size: 13px; color: #64748b; margin: 6px 0; }
.booking-any-store { display:block; width:100%; margin:8px 0 12px; padding:12px; border:1px solid #cbd5e1; border-radius:12px; background:#f8fafc; color:#1e3a8a; font:inherit; font-weight:600; cursor:pointer; }
.booking-any-store[aria-pressed="true"] { background:#eff6ff; border-color:#1d4ed8; }
.booking-status { font-size: 14px; line-height: 1.4; color: #475569; margin: 6px 0; overflow-wrap: anywhere; }
.booking-status:empty { display: none; }
.booking-footer { grid-area: footer; position: relative; z-index: 1001; min-width: 0; border-top: 1px solid #e2e8f0; padding: 10px 18px max(12px,env(safe-area-inset-bottom)); background: white; }
.booking-price-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.booking-price { font-size: 21px; line-height: 1.2; font-weight: 900; color: #172554; }
.booking-price-caption { font-size: 12px; color: #64748b; display: block; margin-bottom: 3px; }
.booking-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.booking-submit { min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #eab308; border-radius: 14px; background: #facc15; color: #422006; font-size: 16px; line-height: 1.35; font-weight: 800; width: 100%; white-space: normal; box-shadow: 0 3px 8px #854d0e15; }
.booking-submit:disabled { background: #e2e8f0; border-color: #cbd5e1; color: #475569; cursor: wait; box-shadow: none; }
.booking-screen button:focus-visible, .booking-screen input:focus-visible, .booking-screen textarea:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
#mapModal .booking-panel .form-input-control { min-width: 0; max-width: 100%; font-size: 16px; background: #fff; border: 1px solid #94a3b8; color: #172554; }
#mapModal .booking-panel .form-input-control::placeholder { color: #64748b; opacity: 1; }
#mapModal .booking-panel label { color: #172554 !important; }
.booking-panel form { margin: 0; }
.booking-panel form > * { margin-top: 10px; }
#mapModal .booking-panel .booking-contact { border: 1px solid #bfdbfe !important; padding: 12px; background: #eff6ff; }
.booking-panel .booking-contact > div:first-child p:first-child { color: #172554; font-size: 15px; }
.booking-panel .booking-contact > div:first-child p:last-child { color: #475569; font-size: 14px; line-height: 1.4; }
.booking-panel .booking-contact > div:last-child { grid-template-columns: minmax(0,1fr); gap: 12px; }
.booking-panel .booking-contact label { display: block; font-size: 15px; font-weight: 700; }
.booking-panel .booking-contact input { margin-top: 6px; min-height: 48px; padding: 12px; font-weight: 500; }
#mapModal .booking-passenger-toggle { background: #fff; border: 1px solid #cbd5e1; color: #1e40af; box-shadow: none; white-space: normal; min-height: 44px; font-size: 14px; }
.booking-panel #taxiDateTime { color-scheme: light; }
.booking-collapsed .booking-body { grid-template-rows: minmax(0,1fr) 44px auto; }
.booking-collapsed .booking-scroll { visibility: hidden; padding-top: 0; padding-bottom: 0; pointer-events: none; }
.booking-dragging .booking-scroll { pointer-events: none; }
.booking-picker { position: absolute; inset: 56px 0 0; background: white; z-index: 1200; overflow: auto; padding: 18px; }
.booking-picker-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.booking-picker-heading h3 { font-size: 21px; font-weight: 800; flex: 1; }
.booking-picker label { display: block; font-size: 14px; margin: 12px 0 5px; color: #475569; }
.booking-picker input { width: 100%; border: 1px solid #cbd5e1; padding: 13px; border-radius: 12px; font-size: 16px; }
.booking-search-row { display: flex; gap: 8px; }
.booking-search-row button, .booking-picker-done { background: #1d4ed8; color: white; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.booking-search-row input { min-width: 0; }
.booking-result { width: 100%; display: flex; gap: 12px; text-align: left; align-items: center; border-bottom: 1px solid #e2e8f0; padding: 16px 0; }
.booking-result strong { font-size: 16px; font-weight: 600; display: block; }
.booking-result small { display: block; color: #64748b; font-size: 14px; margin-top: 3px; }
.booking-picker-done { width: 100%; margin-top: 18px; min-height: 48px; }
.booking-pick-confirm { position: absolute; left: 12px; right: 64px; bottom: 25px; z-index: 1000; background: #1d4ed8; color: white; padding: 12px; border-radius: 12px; box-shadow: 0 3px 12px #17255440; font-size: 14px; font-weight: 700; }
.booking-picking .booking-body { grid-template-rows: minmax(0,1fr) 0 auto; }
.booking-picking .booking-sheet { visibility: hidden; }
.booking-pin { background: #1d4ed8; color: white; border: 3px solid white; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; box-shadow: 0 2px 7px #17255450; }
@media (min-width: 768px) {
  #mapModal .booking-shell { max-height: min(900px,96dvh); border-radius: 22px; position: relative; }
  .booking-body, .booking-collapsed .booking-body, .booking-picking .booking-body { grid-template-columns: minmax(0,1fr) 440px; grid-template-areas: 'map sheet' 'map footer'; grid-template-rows: minmax(0,1fr) auto; }
  .booking-sheet { margin: 0; border-radius: 0; }
  .booking-service-arrow { display: inline-grid; min-width: 30px; min-height: 42px; }
  .booking-picker { left: auto; width: 440px; }
  .booking-grip { cursor: default; }
  .booking-grip::before { display: none; }
}
@media (max-width: 360px) {
  .booking-scroll, .booking-footer { padding-left: 12px; padding-right: 12px; }
  .booking-price { font-size: 18px; }
}
@media (max-height: 520px) and (max-width: 767px) {
  .booking-body { grid-template-rows: var(--booking-map-size,64px) minmax(44px,1fr) auto; }
  .booking-footer { padding-top: 6px; padding-bottom: 6px; }
  .booking-submit { min-height: 44px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .booking-screen * { scroll-behavior: auto !important; transition: none !important; } }

/* Compact booking: services and car categories are separate controls. */
#mapModal .booking-scroll { padding:0 12px 12px; }
#mapModal .booking-city { min-height:32px; font-size:13px; }
#mapModal .booking-address { min-height:50px; }
#mapModal .booking-address-button { padding:6px 0; gap:10px; }
#mapModal .booking-address-copy strong { white-space:normal; overflow-wrap:anywhere; line-height:1.3; font-size:15px; }
#mapModal .booking-detail-label { display:block; margin:6px 0 2px; color:#475569; font-size:12px; font-weight:600; }
#mapModal .booking-detail { padding:6px 10px; min-height:38px; border:1px solid #cbd5e1; border-radius:10px; margin-bottom:4px; }
#mapModal .booking-service-groups { margin:10px 0 6px; }
#mapModal .booking-types { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
#mapModal .booking-categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:7px; }
#mapModal .booking-service { min-width:0; width:100%; min-height:44px; padding:7px 3px; gap:5px; border-radius:11px; font-size:13px; line-height:1.3; overflow-wrap:normal; word-break:normal; }
#mapModal .booking-types .booking-service { flex-direction:row; font-size:12px; }
#mapModal .booking-types .booking-service i { display:none; }
#mapModal .booking-categories .booking-service { flex-direction:row; min-height:46px; font-size:12px; }
#mapModal .booking-service i { font-size:17px; }
#mapModal .booking-more-services { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:8px 0; }
#mapModal .booking-more-services .booking-service { flex-direction:row; min-height:48px; }
#mapModal .booking-mode { margin:8px 0 0; font-size:12px; color:#1d4ed8; }
#mapModal .booking-help { font-size:12px; margin:5px 0; line-height:1.35; }
#mapModal .booking-help:empty { display:none; }
#mapModal .booking-status { font-size:12px; margin:6px 0; }
#mapModal .booking-panel .booking-contact { padding:0; background:#fff; border:0 !important; }
#mapModal .booking-panel .booking-contact > div { display:block; }
#mapModal .booking-phone, #mapModal .booking-name, #mapModal .booking-extras { border:1px solid #dbe3ef; border-radius:12px; padding:0 10px; margin-top:8px; background:#fff; color:#172554; }
#mapModal .booking-phone summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; list-style:none; padding:8px 0; min-height:52px; cursor:pointer; }
#mapModal .booking-phone summary > span:first-child { color:#64748b; font-size:11px; }
#mapModal .booking-phone summary strong { grid-column:1; font-size:14px; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }
#mapModal .booking-contact-edit { grid-column:2; grid-row:1 / 3; align-self:center; color:#1d4ed8; font-size:12px; font-weight:700; }
#mapModal .booking-name summary, #mapModal .booking-extras > summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:13px; font-weight:600; }
#mapModal .booking-panel .booking-contact label { font-size:12px; }
#mapModal .booking-panel .booking-contact input { margin:4px 0 8px; padding:10px; min-height:44px; font-size:16px; }
#mapModal .booking-phone:not([open]) > label, #mapModal .booking-name:not([open]) > label { display:none; }
#mapModal .booking-note { min-height:60px; margin-bottom:8px; }
#mapModal .booking-extras #phoneInputContainer { padding-bottom:10px; }
#mapModal .booking-extras label { color:#172554 !important; }
#mapModal .booking-extras input { color:#172554; background:#fff; }
#mapModal .booking-extras .booking-passenger-toggle { font-size:13px; margin:4px 0 10px; }
#mapModal summary:focus-visible { outline:3px solid #60a5fa; outline-offset:2px; }
#mapModal .booking-map-credit { font-size:10px; }
@media (max-width:359px) { #mapModal .booking-categories .booking-service { flex-direction:column; } }
.booking-price-help { display: block; padding: 10px 4px 2px; text-align: center; color: #1d4ed8; font-weight: 700; }
.booking-price-help[hidden] { display: none; }

.booking-price-reason { margin: 2px 0 8px; color: #475569; font-size: 12px; line-height: 1.4; }
.booking-price-reason[hidden] { display: none; }

.booking-price-breakdown { margin: 3px 0 6px; font-size: 12px; line-height: 1.4; color: #475569; }
.booking-price-breakdown[hidden] { display: none; }
.booking-price-breakdown summary { cursor: pointer; color: #1d4ed8; padding: 4px 0; }
.booking-price-breakdown p { margin: 4px 0; }
