@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f4ef;
  --panel: rgba(255, 255, 255, 0.92);
  --card: #f1f4f2;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-ink: #ecfdf3;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
  --tg-viewport-stable-width: 100vw;
  --tg-map-expanded-width: 100vw;
  --tg-map-expanded-height: 100vh;
  --map-expanded-top-offset: 0px;
  --map-expanded-extra-bottom-offset: 0px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(15, 118, 110, 0.18), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(249, 115, 22, 0.16), transparent 60%),
    #f6f4ef;
  color: var(--text);
}

body.booking-body {
  position: relative;
  overflow-x: hidden;
}

body.booking-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(15, 23, 42, 0.16) 1px, transparent 1px),
    radial-gradient(620px 320px at 12% 10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(520px 280px at 88% 0%, rgba(249, 115, 22, 0.12), transparent 58%);
  background-size: 12px 12px, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  opacity: 0.46;
  pointer-events: none;
  z-index: -1;
}

body.map-expanded {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
}

body.select-sheet-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.select-sheet-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 12980;
  transition: opacity 0.18s ease;
}

body.select-sheet-open .select-sheet-backdrop,
html.select-sheet-open .select-sheet-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.map-expanded .app,
html.map-expanded .app {
  visibility: hidden;
  pointer-events: none;
}

body.map-expanded .map-wrap.is-expanded,
body.map-expanded .map-overlay,
html.map-expanded .map-wrap.is-expanded,
html.map-expanded .map-overlay {
  visibility: visible;
  pointer-events: auto;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}

.booking-app {
  max-width: 1420px;
}

/* Compact layout when the web app is embedded into the public landing page. */
html.is-embedded .app {
  max-width: none;
  margin: 0;
  padding: 18px;
}

html.is-embedded body {
  background: #ffffff;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

html.is-embedded .hero {
  display: none;
}

html.is-tg .hero {
  display: none;
}

.eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
}

html.is-embedded .hero h1 {
  font-size: 30px;
}

html.is-embedded .subhead {
  display: none;
}

.subhead {
  color: var(--muted);
  margin: 8px 0 0;
}

.badge {
  background: #ffffff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.booking-shell {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1280px) {
  body.booking-body:not(.map-expanded) .booking-shell {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
  }

  body.booking-body:not(.map-expanded) .hero--booking-intro {
    position: sticky;
    top: 32px;
    align-self: start;
    margin: 0;
    padding: 28px 0;
  }

  body.booking-body:not(.map-expanded) .panel--wizard {
    min-width: 0;
  }
}

.hero--booking-intro {
  margin: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.booking-hero-copy {
  width: 100%;
}

.booking-hero-chips,
.booking-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-hero-chips {
  margin-top: 18px;
}

.booking-hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.booking-auth-actions {
  margin-top: 20px;
}

.booking-auth-card {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(167, 243, 208, 0.9);
  background: rgba(236, 253, 245, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  color: #065f46;
  font-size: 14px;
  line-height: 1.5;
}

.booking-auth-email {
  font-weight: 700;
}

.booking-auth-card .booking-auth-actions {
  margin-top: 12px;
}

.booking-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.booking-auth-button--primary {
  border-color: rgba(37, 99, 235, 0.18);
  background: #2563eb;
  color: #ffffff;
}

.booking-auth-button--secondary:hover,
.booking-auth-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--panel);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: visible;
}

.panel,
.form,
.field {
  min-width: 0;
}

html.is-embedded .panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html.is-tg .app {
  padding: 16px;
}

html.is-tg .panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 640px) {
  html.is-embedded .app,
  html.is-tg .app {
    padding: 14px;
  }
}

@media (max-width: 360px) {
  html.is-embedded .app,
  html.is-tg .app {
    padding: 8px;
  }
}

@media (min-width: 1024px) {
  html.is-embedded .app {
    padding: 18px;
  }
}

.form {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

html.is-embedded .form {
  gap: 18px;
}

.field {
  border-bottom: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.field-pair {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.field--pickup,
.field--dropoff,
.field-pair--schedule,
.field--referral,
.field--price-match-toggle {
  margin-top: 8px;
}

.field[hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.field.has-results,
.field.is-select-open {
  z-index: 11000;
}

.field.has-results {
  padding-bottom: 0;
}

.field>label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

html.is-embedded .field>label {
  margin-bottom: 4px;
}

.service-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.service-chip.is-active {
  border-color: rgba(15, 118, 110, 0.6);
  background: rgba(15, 118, 110, 0.1);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.bundle-builder {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.optional-sections-grid {
  display: grid;
  gap: 18px;
  align-items: start;
  position: relative;
  overflow: visible;
}

.optional-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  overflow: visible;
  height: fit-content;
}

.optional-section[open] {
  position: relative;
  z-index: 40;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.optional-section.is-guided-open {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12), 0 14px 34px rgba(15, 23, 42, 0.08);
}

.optional-section.has-open-popover {
  position: relative;
  z-index: 12050;
  isolation: isolate;
}

.optional-section-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.optional-section-summary::-webkit-details-marker {
  display: none;
}

.optional-section-summary strong {
  display: block;
  font-size: 15px;
}

.optional-section-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.optional-section-caret {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid rgba(15, 23, 42, 0.55);
  border-bottom: 2px solid rgba(15, 23, 42, 0.55);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.optional-section[open] .optional-section-caret {
  transform: rotate(225deg);
}

.optional-section-body {
  padding: 18px 18px 20px;
  border-top: 1px solid var(--line);
  overflow: visible;
}

.optional-section:not([open]) > .optional-section-body {
  display: none;
}

.optional-section-body .field:first-child {
  margin-top: 0;
}

.optional-section-body .field--bundle-builder {
  margin-top: 12px;
}

.optional-section-body .field--bundle-builder > label {
  display: block;
  margin-bottom: 12px;
}

.optional-section-body .field:last-child {
  margin-bottom: 0;
}

.field--group-optimizer > label,
.field--bundle-builder > label,
.field--referral > label,
#price-match-container > label {
  margin-bottom: 10px;
}

.group-optimizer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.optimizer-results {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.9);
}

.optimizer-results-title {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.optimizer-results-list {
  display: grid;
  gap: 10px;
}

.optimizer-option {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.optimizer-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.optimizer-option-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.optimizer-option-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.optimizer-option.accent-amber .optimizer-option-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.optimizer-option.accent-dark .optimizer-option-dot {
  background: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.optimizer-option-select {
  min-width: 104px;
}

.optimizer-option-combo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.optimizer-option-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.optimizer-option-meta {
  font-size: 13px;
  color: var(--muted);
}

.bundle-builder-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bundle-class-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bundle-class-card.is-selected {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bundle-class-card.accent-green.is-selected {
  border-color: rgba(16, 185, 129, 0.45);
}

.bundle-class-card.accent-amber.is-selected {
  border-color: rgba(245, 158, 11, 0.45);
}

.bundle-class-card.accent-dark.is-selected {
  border-color: rgba(15, 23, 42, 0.35);
}

.bundle-class-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bundle-class-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bundle-class-title-row strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.bundle-class-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.bundle-class-card.accent-amber .bundle-class-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.bundle-class-card.accent-dark .bundle-class-dot {
  background: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.bundle-class-meta,
.bundle-class-price {
  color: var(--muted);
  font-size: 12px;
}

.bundle-class-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
  white-space: nowrap;
}

.bundle-class-meta-separator {
  color: rgba(15, 23, 42, 0.24);
}

.bundle-class-spec {
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.bundle-class-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}

.bundle-qty-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.bundle-qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.field-row>* {
  min-width: 0;
}

.price-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 220px);
  align-items: stretch;
  gap: 10px;
}

.price-match-company-slot,
.price-match-value-slot {
  min-width: 0;
  width: 100%;
}

.price-match-row .select,
.price-match-row select,
.price-match-row input[type='number'] {
  width: 100%;
  min-width: 0;
}

#bundle-section .bundle-builder-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

#bundle-section .bundle-class-card {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  min-height: 0;
  padding: 12px 12px 13px;
  width: 100%;
  min-width: 0;
}

#bundle-section .bundle-class-main {
  gap: 1px;
}

#bundle-section .bundle-class-title-row strong {
  font-size: 12.75px;
}

#bundle-section .bundle-class-meta,
#bundle-section .bundle-class-price {
  font-size: 10.75px;
  white-space: normal;
  line-height: 1.35;
}

#bundle-section .bundle-class-qty {
  justify-self: start;
  gap: 4px;
  padding: 4px;
}

#bundle-section .bundle-qty-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

#bundle-section .bundle-qty-value {
  min-width: 18px;
}

@media (max-width: 380px) {
  #bundle-section .bundle-builder-list {
    gap: 8px;
  }

  #bundle-section .bundle-class-card {
    padding: 10px 10px 11px;
  }

  #bundle-section .bundle-class-title-row strong {
    font-size: 12px;
  }

  #bundle-section .bundle-class-meta,
  #bundle-section .bundle-class-price {
    font-size: 10px;
  }

  #bundle-section .bundle-qty-btn {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  #bundle-section .bundle-builder-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  #bundle-section .bundle-class-card {
    padding: 9px 9px 10px;
    border-radius: 16px;
  }

  #bundle-section .bundle-class-title-row {
    gap: 5px;
  }

  #bundle-section .bundle-class-title-row strong {
    font-size: 11px;
  }

  #bundle-section .bundle-class-meta,
  #bundle-section .bundle-class-price {
    font-size: 9px;
    line-height: 1.25;
  }

  #bundle-section .bundle-class-meta {
    gap: 3px;
  }

  #bundle-section .bundle-qty-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  #bundle-section .bundle-qty-value {
    min-width: 16px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .group-optimizer-grid {
    grid-template-columns: 1fr;
  }

  .price-match-row {
    grid-template-columns: 1fr;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .bundle-result-item {
    grid-template-columns: 1fr;
  }

  .optimizer-option-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .optimizer-option-select {
    width: 100%;
  }
}

@media (min-width: 900px) {
  html:not(.is-tg) #bundle-section .bundle-builder-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  html:not(.is-tg) #bundle-section .bundle-class-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    min-height: 118px;
  }

  html:not(.is-tg) #bundle-section .bundle-class-qty {
    justify-self: end;
  }
}

@media (min-width: 760px) {
  #bundle-section .bundle-builder-list {
    align-items: stretch;
  }

  #bundle-section .bundle-class-card {
    min-height: 112px;
  }

  html.is-tg #bundle-section .bundle-class-qty,
  html.is-embedded #bundle-section .bundle-class-qty,
  #bundle-section .bundle-class-qty {
    justify-self: start;
  }
}

@media (min-width: 981px) {
  .optional-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
  }

  #optimizer-section {
    grid-column: 1;
    grid-row: 1;
  }

  #extras-section {
    grid-column: 2;
    grid-row: 1;
  }

  #bundle-section {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  html.is-embedded .optional-sections-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  html.is-embedded .optional-section-summary {
    min-height: 76px;
    cursor: pointer;
  }

  html.is-embedded #optimizer-section {
    grid-column: auto;
    grid-row: auto;
  }

  html.is-embedded #extras-section {
    grid-column: auto;
    grid-row: auto;
  }

  html.is-embedded #bundle-section {
    grid-column: auto;
    grid-row: auto;
  }
}

.time-row {
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
  gap: 10px;
}

.time-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.time-options.booking-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-pair--schedule .time-options .choice {
  border-radius: 14px;
  min-height: 48px;
}

.time-options.booking-options .choice {
  white-space: normal;
  min-width: 0;
  align-items: center;
  border-radius: 16px;
  min-height: 52px;
  padding: 12px 16px;
}

.time-options.booking-options .choice-label {
  white-space: normal;
  line-height: 1.25;
}

.reservation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  align-items: flex-start;
}

.field .choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: row;
  flex-wrap: nowrap;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  line-height: 1.1;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

@supports selector(.time-row:has(input:checked)) {
  .reservation-row {
    display: none;
  }

  .time-row:has(input[value='reservation']:checked) .reservation-row {
    display: flex;
  }
}

.choice input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
}

.choice-indicator {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.25);
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: center;
}

.choice-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.choice input[type='radio']:checked+.choice-indicator::after {
  transform: scale(1);
}

.choice-label {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
}

#reservation-date,
#reservation-time {
  width: 100%;
  height: 46px;
  flex: 0 0 auto;
  padding: 10px 42px 10px 14px;
  line-height: 1.2;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

#reservation-date {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='3.5' width='11' height='10' rx='2'/><path d='M5 2.5v2M11 2.5v2M2.5 6h11'/></svg>");
}

#reservation-time {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6.5'/><path d='M8 4.5v3.8l2.8 1.6'/></svg>");
}

#reservation-date::-webkit-calendar-picker-indicator,
#reservation-time::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 14px;
  cursor: pointer;
}

#reservation-date::-webkit-inner-spin-button,
#reservation-time::-webkit-inner-spin-button {
  display: none;
}

@media (max-width: 520px) {

  #reservation-date,
  #reservation-time {
    flex-basis: 100%;
  }
}

#reservation-date.is-hidden,
#reservation-time.is-hidden {
  display: none;
}

#reservation-date.is-invalid,
#reservation-time.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.reservation-field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.reservation-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* Removed ghost placeholders for date/time to avoid overlaying real values. */

.time-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.time-suggestions:empty {
  display: none;
}

.time-suggestions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.time-suggestions button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.reservation-field.is-hidden {
  display: none;
}

@supports selector(.choice:has(input:checked)) {
  .choice:has(input:checked) {
    border-color: rgba(15, 118, 110, 0.6);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  }
}

.clear-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

input[type='text'],
input[type='date'],
input[type='time'],
input[type='email'],
input[type='tel'],
input[type='number'] {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  background-image: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type='radio'] {
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

input[type='date'],
input[type='time'] {
  min-height: 40px;
}

input[type='number'] {
  -moz-appearance: textfield;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: #fff;
  display: inline-grid;
  place-items: center;
  margin: 0;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.checkbox-label input[type='checkbox']::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.checkbox-label input[type='checkbox']:checked::after {
  transform: scale(1);
}

.checkbox-label input[type='checkbox']:focus-visible {
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

select {
  flex: 1;
  width: 100%;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  position: relative;
  z-index: 3;
}

.select-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.select {
  position: relative;
  width: 100%;
  display: grid;
  gap: 6px;
  align-items: start;
}

.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.select.is-disabled .select-trigger {
  opacity: 0.6;
  cursor: not-allowed;
}

.select-label {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.select-caret {
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}

.select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  z-index: 12000;
  display: none;
  max-height: 168px;
  overflow: auto;
  padding: 6px 0;
  width: 100%;
  box-sizing: border-box;
}

.select.is-open {
  z-index: 12000;
}

.select.is-open .select-menu {
  display: block;
}

.select.is-sheet {
  z-index: 13000;
}

.select.is-sheet .select-menu {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0px) + 14px);
  right: max(14px, env(safe-area-inset-right, 0px) + 14px);
  top: auto;
  bottom: calc(var(--tg-select-sheet-bottom-offset, 14px) + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-height: min(42vh, calc(var(--tg-viewport-stable-height, 100vh) - var(--tg-select-sheet-bottom-offset, 14px) - 84px));
  border-radius: 22px;
  padding: 12px 0 14px;
  z-index: 13010;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.3);
}

.select.is-sheet .select-menu::before {
  content: '';
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.28);
}

.select.is-open .select-trigger {
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.select-option {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

.select.is-sheet .select-option {
  padding: 13px 18px;
  font-size: 15px;
}

.select-option:hover {
  background: rgba(15, 118, 110, 0.08);
}

.select-option:focus-visible {
  outline: none;
  background: rgba(15, 118, 110, 0.12);
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.18);
}

.select-option.is-selected {
  background: rgba(15, 118, 110, 0.14);
  font-weight: 600;
}

@media (max-width: 768px) {
  .select.is-sheet .select-menu {
    max-height: min(38vh, calc(var(--tg-viewport-stable-height, 100vh) - var(--tg-select-sheet-bottom-offset, 14px) - 88px));
  }
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

input::placeholder {
  color: var(--muted);
}

.results {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  border-radius: 12px;
  overflow: hidden;
  max-height: min(280px, 42vh);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 12000;
}

.results[hidden] {
  display: none;
}

.results:empty {
  display: none;
}

.results li {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background 0.2s ease;
}

.results li:last-child {
  border-bottom: none;
}

.results li:hover {
  background: rgba(15, 118, 110, 0.08);
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: var(--card);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.summary[hidden] {
  display: none !important;
}

.summary > [hidden] {
  display: none !important;
}

.summary.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary span {
  color: var(--muted);
  font-size: 11px;
}

.summary strong {
  font-size: 16px;
}

.fleet-rates {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.fare-breakdown {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.bundle-result {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.fleet-rates-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.fare-breakdown-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.bundle-result-title {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.bundle-result-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
}

.fleet-rates-list {
  display: grid;
  gap: 6px;
}

.fare-breakdown-list {
  display: grid;
  gap: 6px;
}

.bundle-result-list {
  display: grid;
  gap: 8px;
}

.fleet-rate-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.fare-breakdown-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.fare-breakdown-item.total {
  font-weight: 700;
}

.bundle-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(241, 244, 242, 0.7);
}

.bundle-result-item strong {
  display: block;
  font-size: 14px;
}

.bundle-result-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.bundle-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.fleet-rate-meta {
  color: var(--muted);
  font-size: 11px;
}

.fleet-rate-price {
  font-weight: 700;
  color: var(--accent);
}

.breakdown {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.compare {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  min-height: 18px;
}

.breakdown:empty,
.compare:empty,
.status:empty {
  display: none;
}

.primary {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(120deg, var(--accent), #14b8a6);
  color: var(--accent-ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:not(.map-done):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(15, 118, 110, 0.2);
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.pin-btn {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pin-btn.is-active {
  border-color: rgba(15, 118, 110, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.ghost:hover {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.1);
}

.status {
  font-size: 13px;
  color: var(--muted);
}

.recovery-actions {
  display: grid;
  gap: 8px;
}

.recovery-actions[hidden] {
  display: none !important;
}

.recovery-actions .ghost {
  justify-self: start;
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(240, 253, 250, 0.92);
  color: #0f766e;
  font-weight: 700;
}

.handoff {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.handoff-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.handoff-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.handoff-action {
  width: 100%;
}

.handoff-action--local {
  border-style: dashed;
}

.handoff-feedback {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 13px;
  line-height: 1.5;
}

.handoff-feedback[hidden] {
  display: none;
}

.handoff-feedback.is-warning {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
}

.handoff-feedback.is-error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

@media (min-width: 760px) {
  .handoff-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.build-tag {
  margin: 0;
  font-size: 11px;
  color: rgba(100, 116, 139, 0.7);
  text-align: right;
}

.status.is-error {
  color: #dc2626;
  font-weight: 600;
}

.status.is-warning {
  color: #d97706;
  font-weight: 600;
}

#guest-details {
  display: grid;
  gap: 8px;
}

.guest-details-grid {
  display: grid;
  gap: 10px;
}

.map-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.096);
  z-index: 0;
  background: #f6f4ef;
}

.map-wrap.is-loading {
  background: linear-gradient(90deg, #f7f4ee 0%, #eef3f7 48%, #f7f4ee 100%);
  background-size: 220% 100%;
  animation: mapShimmer 1.25s linear infinite;
}

.map-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 9998;
}

body.map-expanded .map-overlay,
html.map-expanded .map-overlay {
  opacity: 1;
  pointer-events: auto;
  z-index: 10005;
}

.map-wrap.inline {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 8.4;
  min-height: 340px;
  margin-block: 20px;
}

html.is-embedded .map-wrap.inline {
  aspect-ratio: 16 / 8.4;
}

@media (min-width: 900px) {
  html.is-embedded .map-wrap.inline {
    aspect-ratio: auto;
    height: clamp(300px, 29vw, 350px);
    min-height: 300px;
    max-height: 350px;
    margin-block: 12px 14px;
  }

  html.is-embedded .map-wrap.inline.is-expanded-inline {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(380px, 39vw, 470px) !important;
    min-height: 380px !important;
    max-height: 470px !important;
    margin-block: 12px 16px !important;
    border-radius: 18px !important;
    z-index: 2 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.096) !important;
    background: #f6f4ef !important;
    overflow: hidden !important;
  }

  html.is-embedded .map-wrap.inline.is-expanded-inline #map {
    height: 100% !important;
    width: 100% !important;
    min-height: 100% !important;
    min-width: 100% !important;
  }

  html.is-embedded .map-wrap.inline .map-expand {
    display: none !important;
  }

  html.is-embedded .map-wrap.inline.is-expanded-inline .map-expand {
    display: none;
  }

  html.is-embedded .map-wrap.inline.is-expanded-inline .map-dismiss {
    display: inline-flex;
  }

  html.is-embedded .map-wrap.inline.is-expanded-inline.is-editing .map-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    z-index: 10042;
    min-width: 132px;
  }

  html.is-embedded .map-wrap.inline.is-expanded-inline .map-hint {
    left: 12px;
    right: 12px;
    bottom: 70px;
    z-index: 10036;
  }

  html.is-embedded .map-wrap.inline.is-expanded-inline .locate-btn {
    right: 14px;
    bottom: 70px;
    z-index: 10041;
  }
}

.map-dismiss {
  display: none;
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10040;
}

.map-dismiss:hover {
  transform: translateY(-1px);
}

.map-dismiss:active {
  transform: translateY(0);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -98%);
  transform-origin: 50% 100%;
  font-size: 28px;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.22));
  opacity: 1;
  transition: opacity 0.15s ease, transform 0.15s ease;
  will-change: transform, opacity;
  z-index: 10020;
}

.map-pin-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  display: inline-block;
}

.map-pin .tn-pin-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.map-wrap.is-pinning .map-pin {
  transform: translate(-50%, -112%) scale(1.02);
}

.map-wrap.is-dragging .map-pin {
  transform: translate(-50%, -126%) scale(1.05);
  pointer-events: none;
}

.map-wrap.is-locked .map-pin {
  opacity: 0.78;
  pointer-events: auto;
  transform: translate(-50%, -104%) scale(0.98);
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.18));
}

.map-wrap.is-editing .map-pin {
  transform: translate(-50%, -142%) scale(1.06);
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.28));
  pointer-events: none;
}

#map {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  transition: opacity 0.18s ease;
}

.map-wrap.is-loading #map {
  opacity: 0.22;
}

.map-loading {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  z-index: 10035;
}

.map-loading::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(15, 118, 110, 0.22);
  border-top-color: #0f766e;
  animation: mapSpinner 0.8s linear infinite;
}

.map-loading[hidden] {
  display: none;
}

body.map-expanded {
  overflow: hidden;
}

.map-wrap.is-expanded {
  position: fixed !important;
  inset: auto !important;
  left: 0 !important;
  top: var(--map-expanded-top-offset, 0px) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: var(--tg-map-expanded-width, var(--tg-viewport-stable-width, 100vw)) !important;
  height: var(--tg-map-expanded-height, var(--tg-viewport-stable-height, 100vh)) !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 10010;
  box-shadow: none !important;
  background: #f6f4ef;
  max-height: var(--tg-map-expanded-height, var(--tg-viewport-stable-height, 100vh)) !important;
  max-width: var(--tg-map-expanded-width, var(--tg-viewport-stable-width, 100vw)) !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
}

html.is-embedded .map-wrap.inline.is-expanded {
  aspect-ratio: auto !important;
  max-height: var(--tg-map-expanded-height, var(--tg-viewport-stable-height, 100vh)) !important;
  max-width: var(--tg-map-expanded-width, var(--tg-viewport-stable-width, 100vw)) !important;
  width: var(--tg-map-expanded-width, var(--tg-viewport-stable-width, 100vw)) !important;
  height: var(--tg-map-expanded-height, var(--tg-viewport-stable-height, 100vh)) !important;
  border-radius: 0 !important;
}

html.is-tg .map-wrap.is-expanded {
  width: var(--tg-map-expanded-width, var(--tg-viewport-stable-width, 100vw)) !important;
  height: var(--tg-map-expanded-height, var(--tg-viewport-stable-height, 100vh)) !important;
  top: var(--map-expanded-top-offset, 0px) !important;
}

.map-wrap.is-expanded #map {
  height: 100% !important;
  width: 100% !important;
  min-height: 100% !important;
  min-width: 100% !important;
  top: 0 !important;
  left: 0 !important;
  margin-top: 0;
}

.map-wrap.is-expanded .map-expand {
  display: none;
}

.map-wrap.is-expanded .map-dismiss {
  display: inline-flex;
}

.map-wrap.is-expanded.is-editing .map-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--map-expanded-extra-bottom-offset, 0px));
  z-index: 10042;
  min-width: 132px;
}

.map-wrap.is-expanded .map-hint {
  left: 12px;
  right: 12px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--map-expanded-extra-bottom-offset, 0px));
  z-index: 10036;
}

.map-wrap.is-expanded .locate-btn {
  right: 14px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px) + var(--map-expanded-extra-bottom-offset, 0px));
  z-index: 10041;
}

@media (max-width: 980px) {
  .map-wrap.is-expanded {
    width: var(--tg-map-expanded-width, 100dvw);
    height: var(--tg-map-expanded-height, 100dvh);
    top: var(--map-expanded-top-offset, 0px) !important;
    border-radius: 0;
    box-shadow: none;
  }

  .map-wrap.is-expanded .map-hint {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + var(--map-expanded-extra-bottom-offset, 0px));
    left: 12px;
    right: 12px;
  }

  .map-wrap.is-expanded .locate-btn {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + var(--map-expanded-extra-bottom-offset, 0px));
  }

  .map-wrap.is-expanded.is-editing .map-done {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--map-expanded-extra-bottom-offset, 0px));
  }

  .map-wrap.is-expanded .map-dismiss {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 10px;
  }
}

#guest-otp-field {
  display: grid;
  grid-template-columns: minmax(108px, 1fr) auto auto;
  align-items: stretch;
  gap: 8px;
}

#guest-otp-code {
  width: 100%;
  min-width: 0;
}

#guest-otp-field .ghost {
  white-space: nowrap;
}

.tn-pin-icon {
  position: relative;
  width: 20px;
  height: 20px;
  background: transparent !important;
  border: none !important;
}

.tn-pin-icon__pin {
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
}

.tn-pin-icon__pin::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: inset 0 0 0 2px #fff;
  top: 6px;
  left: 6px;
  transform: rotate(45deg);
}

.tn-pin-icon--dropoff .tn-pin-icon__pin {
  background: #f97316;
}

.map-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  z-index: 402;
  max-width: calc(100% - 32px);
}

@keyframes mapShimmer {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 220% 50%;
  }
}

@keyframes mapSpinner {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.form-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.map-expand {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 403;
}

.map-done {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  z-index: 10024;
  display: none;
}

.map-wrap.is-editing .map-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-wrap.is-editing .map-hint {
  bottom: 64px;
  max-width: min(calc(100% - 32px), 420px);
  z-index: 10023;
}

.map-done:hover {
  transform: translateX(-50%) translateY(-1px);
}

.map-done:active {
  transform: translateX(-50%);
}

.map-done[disabled],
.map-done.is-busy {
  opacity: 0.82;
  cursor: wait;
  box-shadow: 0 10px 24px rgba(13, 128, 116, 0.18);
}

.map-done.is-busy::before {
  content: '';
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: map-done-spin 0.8s linear infinite;
}

@keyframes map-done-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 980px) {
  .panel {
    gap: 6px;
  }

  .app {
    padding: 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  html.is-embedded .map-wrap.inline {
    max-height: 320px;
  }
}

@media (min-width: 981px) {
  .field-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 16px;
  }

  .guest-details-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 520px) {
  .field-pair--roles .time-options.booking-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-pair--roles .time-options.booking-options .choice {
    padding: 10px 12px;
    min-height: 48px;
  }

  #guest-otp-field {
    grid-template-columns: 1fr;
  }

  #guest-otp-field .ghost {
    width: 100%;
  }

  .map-expand {
    top: 12px;
    right: 12px;
  }

  #bundle-section .bundle-builder-list {
    gap: 8px;
  }

  #bundle-section .bundle-class-card {
    padding: 10px 10px 11px;
  }

  #bundle-section .bundle-class-title-row strong {
    font-size: 12px;
  }

  #bundle-section .bundle-class-meta,
  #bundle-section .bundle-class-price {
    font-size: 10px;
    line-height: 1.3;
  }

  .field .choice {
    gap: 8px;
    padding: 10px 12px;
  }

  .time-options.booking-options .choice {
    min-height: 48px;
    padding: 10px 12px;
  }

  .choice-label {
    font-size: 13px;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  html.is-embedded .app,
  html.is-tg .app {
    padding: 4px;
  }

  .field-row {
    gap: 8px;
  }

  .clear-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .field .choice {
    gap: 6px;
    padding: 8px 8px;
  }

  .choice-indicator {
    width: 16px;
    height: 16px;
  }

  .choice-indicator::after {
    width: 7px;
    height: 7px;
  }

  .choice-label {
    font-size: 12px;
    line-height: 1.2;
  }

  .field-pair--schedule .time-options.booking-options,
  .field-pair--roles .time-options.booking-options,
  #driver-selection-mode .time-options.booking-options {
    grid-template-columns: 1fr;
  }

  .time-options.booking-options .choice {
    min-height: 44px;
    padding: 8px 6px;
  }

  .field-pair--schedule .time-options.booking-options .choice-label,
  .field-pair--roles .time-options.booking-options .choice-label {
    font-size: 11px;
    line-height: 1.15;
  }

  .time-options {
    gap: 8px;
  }
}

.hero--centered {
  text-align: center;
}

.hero--centered .badge {
  margin: 0 auto 18px;
}

@media (min-width: 1180px) {
  .booking-shell {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 28px;
  }

  .hero--booking-intro {
    position: sticky;
    top: 32px;
    text-align: left;
    padding: 28px 0 12px;
  }

  .hero--booking-intro .badge {
    margin: 0 0 18px;
  }

  .hero--booking-intro .subhead {
    max-width: 28ch;
  }
}

@media (max-width: 1179px) {
  .booking-auth-actions,
  .booking-hero-chips {
    justify-content: center;
  }
}

.panel--wizard {
  padding: 28px;
}

.wizard-header {
  margin-bottom: 24px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wizard-step {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #64748b;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wizard-step.is-active {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.form--wizard {
  gap: 22px;
}

.form--wizard,
.form--wizard > * {
  min-width: 0;
}

.wizard-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.wizard-page-header {
  text-align: center;
}

.wizard-page-header h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.field--service-centered {
  align-items: center;
}

.field--service-centered .service-toggle {
  margin: 0 auto;
  width: min(100%, 360px);
}

.field--section-choice > label {
  width: 100%;
  text-align: center;
}

.wizard-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.wizard-grid--step1 {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.wizard-main,
.wizard-side,
.wizard-card,
.wizard-review-card,
.available-drivers {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.wizard-main,
.wizard-card,
.wizard-review-card,
.available-drivers {
  padding: 22px;
}

.wizard-side {
  padding: 16px;
}

.wizard-page > *,
.wizard-grid > *,
.reservation-row--wizard > * {
  min-width: 0;
}

#step1-map-slot {
  min-height: 100%;
}

#step1-map-slot .map-wrap {
  min-height: 520px;
}

.wizard-hidden-action {
  display: none !important;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 6;
}

.wizard-nav > *:first-child:last-child {
  margin-left: auto;
}

.wizard-back,
.wizard-next,
.wizard-reset {
  min-width: 168px;
}

.booking-options--centered {
  justify-content: center;
}

.reservation-row--wizard {
  justify-content: center;
  gap: 18px;
}

.reservation-field--time-group {
  min-width: 320px;
}

.reservation-time-grid {
  display: grid;
  grid-template-columns: minmax(72px, 96px) auto minmax(72px, 96px) minmax(124px, 148px);
  gap: 10px;
  align-items: center;
}

.reservation-time-separator {
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.reservation-meridiem {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reservation-meridiem .ghost.is-active {
  background: #0f172a;
  color: #fff;
}

.wizard-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wizard-card h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field--full {
  grid-column: 1 / -1;
}

.checkbox-label--inline {
  margin-top: 10px;
}

.wizard-review-card .review-map-slot {
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.85), rgba(226, 232, 240, 0.85));
  margin-bottom: 18px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.review-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-item strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.available-drivers-list {
  display: grid;
  gap: 16px;
}

.available-driver-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
}

.available-driver-meta {
  display: grid;
  gap: 8px;
}

.available-driver-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.available-driver-title strong {
  font-size: 22px;
  color: #0f172a;
}

.available-driver-stats,
.available-driver-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #475569;
  font-size: 14px;
}

.available-driver-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.optional-section--always-open > summary {
  cursor: default;
}

.optional-section--always-open > summary::-webkit-details-marker {
  display: none;
}

.optimizer-results-title {
  text-align: center;
  letter-spacing: 0.12em;
}

.optimizer-results-list {
  display: grid;
  gap: 12px;
}

.optimizer-option {
  text-align: center;
}

.optimizer-option-head {
  flex-direction: column;
}

.optimizer-option-theme {
  justify-content: center;
}

.optimizer-option-capacity {
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.optimizer-option-fit {
  justify-content: center;
}

.bundle-builder-list {
  display: grid;
  gap: 14px;
}

.wizard-card .summary,
.wizard-card .fleet-rates,
.wizard-card .fare-breakdown,
.wizard-card .bundle-result {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .wizard-grid--step1 {
    grid-template-columns: 1fr;
  }

  .wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wizard-side {
    order: 2;
  }

  .wizard-main {
    order: 1;
  }
}

@media (max-width: 900px) {
  .panel--wizard {
    padding: 18px;
  }

  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-page-header h2 {
    font-size: 28px;
  }

  .wizard-two-column,
  .field-grid--two,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .reservation-row--wizard {
    flex-direction: column;
    align-items: stretch;
  }

  .reservation-field--time-group {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .wizard-header {
    margin-bottom: 18px;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .panel--wizard {
    padding: 14px;
  }

  .wizard-page-header h2 {
    font-size: 24px;
  }

  .wizard-main,
  .wizard-card,
  .wizard-review-card,
  .available-drivers {
    padding: 18px;
    border-radius: 22px;
  }

  .reservation-time-grid {
    grid-template-columns: 1fr auto 1fr;
  }

  .reservation-meridiem {
    grid-column: 1 / -1;
  }

  .wizard-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-back,
  .wizard-next,
  .wizard-reset {
    width: 100%;
  }

  .available-driver-card {
    grid-template-columns: 1fr;
  }

  .available-driver-actions {
    justify-content: flex-start;
  }

  .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-main,
  .wizard-card,
  .wizard-review-card,
  .available-drivers,
  .wizard-side {
    padding: 14px;
  }
}

@media (max-width: 440px) {
  .optional-section-body {
    padding: 12px 10px 14px;
  }

  .optimizer-results {
    padding: 10px;
  }

  .panel--wizard .optimizer-results-list {
    gap: 8px;
  }

  .panel--wizard .optimizer-option {
    min-height: 156px;
    padding: 10px 6px;
    border-radius: 18px;
  }

  .panel--wizard .optimizer-option-head {
    gap: 6px;
  }

  .panel--wizard .optimizer-option-theme {
    font-size: 12px;
    gap: 5px;
  }

  .panel--wizard .optimizer-option-select {
    min-height: 34px;
    padding: 8px 8px;
    font-size: 12px;
  }

  .panel--wizard .optimizer-option-combo {
    font-size: 12px;
    line-height: 1.1;
  }

  .panel--wizard .optimizer-option-capacity,
  .panel--wizard .optimizer-option-fit span {
    font-size: 10px;
  }
}

@media (max-width: 440px) {
  .optional-section-body {
    padding: 12px 10px 14px;
  }

  .optimizer-results {
    padding: 10px;
  }

  .panel--wizard .optimizer-results-list {
    gap: 8px;
  }

  .panel--wizard .optimizer-option {
    min-height: 156px;
    padding: 10px 6px;
    border-radius: 18px;
  }

  .panel--wizard .optimizer-option-head {
    gap: 6px;
  }

  .panel--wizard .optimizer-option-theme {
    font-size: 12px;
    gap: 5px;
  }

  .panel--wizard .optimizer-option-select {
    min-height: 34px;
    padding: 8px 8px;
    font-size: 12px;
  }

  .panel--wizard .optimizer-option-combo {
    font-size: 12px;
    line-height: 1.1;
  }

  .panel--wizard .optimizer-option-capacity,
  .panel--wizard .optimizer-option-fit span {
    font-size: 10px;
  }
}

.panel--wizard #bundle-section .optional-section-summary,
.panel--wizard #optimizer-section .optional-section-summary,
.panel--wizard #extras-section .optional-section-summary {
  padding: 16px 18px;
}

.panel--wizard #bundle-section .bundle-builder-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.panel--wizard #bundle-section .bundle-class-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 120px;
  padding: 15px 16px;
  border-radius: 22px;
}

.panel--wizard #bundle-section .bundle-class-main {
  gap: 6px;
}

.panel--wizard #bundle-section .bundle-class-title-row {
  gap: 8px;
  justify-content: flex-start;
}

.panel--wizard #bundle-section .bundle-class-title-row strong {
  font-size: 16px;
}

.panel--wizard #bundle-section .bundle-class-meta,
.panel--wizard #bundle-section .bundle-class-price {
  font-size: 13px;
  line-height: 1.28;
}

.panel--wizard #bundle-section .bundle-class-price {
  color: #0f172a;
  font-weight: 700;
}

.panel--wizard #bundle-section .bundle-class-qty {
  justify-self: end;
  gap: 6px;
  padding: 5px;
}

.panel--wizard #bundle-section .bundle-qty-btn {
  width: 34px;
  height: 34px;
}

.panel--wizard #bundle-section .bundle-qty-value {
  min-width: 22px;
  font-size: 14px;
}

.panel--wizard .optimizer-results-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel--wizard .optimizer-option {
  min-height: 212px;
  padding: 20px 18px;
  justify-items: center;
  align-content: center;
  text-align: center;
  border-radius: 24px;
}

.panel--wizard .optimizer-option-head {
  gap: 12px;
}

.panel--wizard .optimizer-option-theme {
  font-size: 15px;
}

.panel--wizard .optimizer-option-select {
  min-width: 124px;
}

.panel--wizard .optimizer-option-combo {
  min-height: 52px;
  font-size: 19px;
  line-height: 1.15;
}

.panel--wizard .optimizer-option-fit {
  gap: 8px;
}

.panel--wizard .optimizer-option-fit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 1024px) {
  .panel--wizard #bundle-section .bundle-builder-list,
  .panel--wizard .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .panel--wizard #bundle-section .optional-section-summary,
  .panel--wizard #optimizer-section .optional-section-summary,
  .panel--wizard #extras-section .optional-section-summary {
    padding: 12px 14px;
  }

  .panel--wizard #bundle-section .optional-section-body,
  .panel--wizard #optimizer-section .optional-section-body,
  .panel--wizard #extras-section .optional-section-body {
    padding: 12px 12px 14px;
  }

  .panel--wizard #bundle-section .bundle-builder-list,
  .panel--wizard .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .panel--wizard #bundle-section .bundle-class-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 0;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 18px;
  }

  .panel--wizard #bundle-section .bundle-class-title-row {
    justify-content: center;
  }

  .panel--wizard #bundle-section .bundle-class-title-row strong {
    font-size: 14px;
  }

  .panel--wizard #bundle-section .bundle-class-meta,
  .panel--wizard #bundle-section .bundle-class-price {
    font-size: 11px;
    line-height: 1.15;
  }

  .panel--wizard #bundle-section .bundle-class-qty {
    justify-self: center;
    gap: 4px;
    padding: 3px;
  }

  .panel--wizard #bundle-section .bundle-qty-btn {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .panel--wizard #bundle-section .bundle-qty-value {
    min-width: 16px;
    font-size: 12px;
  }

  .panel--wizard .optimizer-option {
    min-height: 184px;
    padding: 14px 12px;
  }

  .panel--wizard .optimizer-option-combo {
    font-size: 16px;
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  .panel--wizard #bundle-section .bundle-builder-list,
  .panel--wizard .optimizer-results-list {
    gap: 7px;
  }

  .panel--wizard #bundle-section .bundle-class-card {
    gap: 5px;
    padding: 9px 7px;
    border-radius: 16px;
  }

  .panel--wizard #bundle-section .bundle-class-title-row strong {
    font-size: 12px;
  }

  .panel--wizard #bundle-section .bundle-class-meta,
  .panel--wizard #bundle-section .bundle-class-price {
    font-size: 10px;
  }

  .panel--wizard #bundle-section .bundle-qty-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .panel--wizard #bundle-section .bundle-qty-value {
    min-width: 14px;
    font-size: 11px;
  }
}

.reservation-field input[type='date'],
.reservation-field input[type='time'],
.reservation-field select {
  flex: 0 0 auto;
}

.reservation-field input[type='date'] {
  display: block;
  width: 100%;
  min-height: 52px;
  height: 52px;
  max-height: 52px;
}

.reservation-field input[type='date']::-webkit-date-and-time-value {
  text-align: left;
}

@media (max-width: 640px) {
  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wizard-step {
    min-height: 44px;
    padding: 0 10px;
    font-size: 12px;
  }

  .wizard-step:nth-child(5) {
    grid-column: 1 / -1;
  }

  .panel--wizard .optimizer-results-list > .optimizer-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .panel--wizard .optimizer-option {
    min-height: 172px;
    padding: 12px 10px;
    gap: 8px;
  }

  .panel--wizard .optimizer-option-head {
    gap: 8px;
  }

  .panel--wizard .optimizer-option-select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 10px 12px;
  }

  .panel--wizard .optimizer-option-combo {
    min-height: 36px;
    font-size: 14px;
    line-height: 1.15;
  }

  .panel--wizard .optimizer-option-fit {
    gap: 6px;
  }

  .panel--wizard .optimizer-option-fit span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .reservation-row--wizard {
    gap: 12px;
  }

  .reservation-field {
    gap: 8px;
  }

  .reservation-label {
    margin-bottom: 2px;
  }

  .map-wrap.inline {
    min-height: 300px;
  }

  .map-hint {
    left: 12px;
    right: 12px;
    bottom: 62px;
    max-width: none;
    font-size: 11px;
    line-height: 1.35;
  }

  .map-done {
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .wizard-steps {
    gap: 8px;
  }

  .wizard-step {
    min-height: 42px;
    padding: 0 8px;
    font-size: 11px;
  }

  .panel--wizard .optimizer-option {
    min-height: 164px;
    padding: 10px 8px;
    border-radius: 18px;
  }

  .panel--wizard .optimizer-option-theme {
    font-size: 13px;
    gap: 6px;
  }

  .panel--wizard .optimizer-option-select {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .panel--wizard .optimizer-option-combo {
    min-height: 32px;
    font-size: 13px;
  }

  .panel--wizard .optimizer-option-capacity,
  .panel--wizard .optimizer-option-fit span {
    font-size: 11px;
  }

  .reservation-time-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .reservation-meridiem {
    grid-column: 1 / -1;
  }

  .reservation-field input[type='date'] {
    min-height: 48px;
    height: 48px;
    max-height: 48px;
  }
}

/* Final booking wizard layout pass */
.wizard-step3-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

#payment-card {
  grid-column: 2;
}

#guest-details:not([hidden]) ~ #payment-card {
  grid-column: 1 / -1;
}

.select-native {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: auto !important;
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  height: 52px !important;
  width: 100% !important;
  background-image: none !important;
  padding-right: 14px !important;
}

.select-native-control {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: auto !important;
  background-image: none !important;
  padding-right: 14px !important;
}

#booking-card-expiration {
  max-width: 160px;
}

.panel--wizard .optimizer-results-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel--wizard .optimizer-option {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
}

.panel--wizard .optimizer-option-head {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.panel--wizard .optimizer-option-theme,
.panel--wizard .optimizer-option-combo,
.panel--wizard .optimizer-option-capacity,
.panel--wizard .optimizer-option-fit {
  min-width: 0;
}

.panel--wizard .optimizer-option-combo {
  overflow-wrap: anywhere;
}

.panel--wizard .optimizer-option-select {
  width: 100%;
  max-width: 154px;
  justify-self: center;
}

.reservation-row--wizard {
  align-items: flex-start;
}

.reservation-field {
  min-width: 0;
}

.map-hint {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 880px) {
  .wizard-step3-grid {
    grid-template-columns: 1fr;
  }

  #payment-card,
  #guest-details:not([hidden]) ~ #payment-card {
    grid-column: auto;
  }
}

@media (max-width: 899px) {
  .panel--wizard .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wizard-step:nth-child(5) {
    grid-column: 1 / -1;
  }

  .panel--wizard .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .panel--wizard .optimizer-results-list > .optimizer-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 240px);
    justify-self: center;
  }

  .panel--wizard .optimizer-option {
    min-height: 176px;
    padding: 12px 10px;
    gap: 8px;
  }

  .panel--wizard .optimizer-option-select {
    max-width: none;
    min-height: 38px;
    padding: 10px 12px;
  }

  .panel--wizard .optimizer-option-combo {
    min-height: 34px;
    font-size: 14px;
  }

  .reservation-row--wizard {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reservation-row--wizard .reservation-field {
    flex: none;
    width: 100%;
    height: auto;
  }

  .map-wrap.inline {
    min-height: 280px;
  }

  .map-hint {
    left: 12px;
    right: 12px;
    bottom: 62px;
    max-width: none;
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .optional-section-body {
    padding: 12px 10px 14px;
  }

  .optimizer-results {
    padding: 10px;
  }

  .panel--wizard .optimizer-results-list {
    gap: 8px;
  }

  .panel--wizard .optimizer-option {
    min-height: 156px;
    padding: 10px 6px;
    border-radius: 18px;
  }

  .panel--wizard .optimizer-option-theme {
    font-size: 12px;
    gap: 5px;
  }

  .panel--wizard .optimizer-option-select {
    min-height: 34px;
    padding: 8px 8px;
    font-size: 12px;
  }

  .panel--wizard .optimizer-results-list > .optimizer-option:last-child:nth-child(odd) {
    width: min(100%, 220px);
  }

  .panel--wizard .optimizer-option-combo {
    font-size: 12px;
    line-height: 1.1;
  }

  .panel--wizard .optimizer-option-capacity,
  .panel--wizard .optimizer-option-fit span {
    font-size: 10px;
  }

  .reservation-time-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .reservation-meridiem {
    grid-column: 1 / -1;
  }

  .reservation-row--wizard .reservation-field {
    gap: 6px;
  }
}

/* Reservation date trigger keeps Android/WebView layouts stable */
.reservation-date-shell {
  position: relative;
  width: 100%;
}

.reservation-date-trigger {
  width: 100%;
  min-height: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  box-sizing: border-box;
}

.reservation-date-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='3.5' width='11' height='10' rx='2'/><path d='M5 2.5v2M11 2.5v2M2.5 6h11'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.reservation-date-trigger.is-empty {
  color: var(--muted);
}

.reservation-date-trigger.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.reservation-date-native {
  position: absolute !important;
  inset: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .reservation-date-trigger {
    min-height: 50px;
    height: 50px;
  }
}

@media (max-width: 420px) {
  .reservation-date-trigger {
    min-height: 48px;
    height: 48px;
    font-size: 13px;
  }
}

/* Final mobile booking fit pass */
.reservation-date-trigger {
  position: relative;
}

.reservation-date-trigger span {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.2;
}

.reservation-date-native {
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
}

.reservation-time-grid {
  align-items: center;
}

.reservation-time-grid select,
.reservation-meridiem button {
  min-width: 0;
}

.panel--wizard .optimizer-results-list {
  align-items: stretch;
}

.panel--wizard .optimizer-option {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-rows: auto auto auto 1fr auto;
}

.panel--wizard .optimizer-option-head,
.panel--wizard .optimizer-option-theme,
.panel--wizard .optimizer-option-combo,
.panel--wizard .optimizer-option-capacity,
.panel--wizard .optimizer-option-fit {
  width: 100%;
}

.panel--wizard .optimizer-option-fit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.panel--wizard .optimizer-option-select {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) and (max-width: 1440px) {
  .panel--wizard .optimizer-results-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reservation-row--wizard {
    gap: 14px;
  }

  .reservation-row--wizard .reservation-field {
    display: grid;
    gap: 8px;
  }

  .reservation-date-trigger {
    padding-right: 44px;
  }

  .reservation-time-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    row-gap: 10px;
  }

  .reservation-meridiem {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .panel--wizard .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .panel--wizard .optimizer-option {
    min-height: 188px;
    padding: 12px 10px;
  }

  .panel--wizard .optimizer-option-head {
    gap: 8px;
  }

  .panel--wizard .optimizer-option-theme {
    font-size: 13px;
    gap: 6px;
  }

  .panel--wizard .optimizer-option-select {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .panel--wizard .optimizer-option-combo {
    min-height: 34px;
    font-size: 14px;
    line-height: 1.15;
  }

  .panel--wizard .optimizer-option-fit span,
  .panel--wizard .optimizer-option-capacity {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .reservation-date-trigger {
    font-size: 14px;
  }

  .panel--wizard .optimizer-results-list {
    gap: 8px;
  }

  .panel--wizard .optimizer-option {
    min-height: 180px;
    padding: 12px 8px;
  }

  .panel--wizard .optimizer-option-select {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .panel--wizard .optimizer-option-combo {
    min-height: 32px;
    font-size: 13px;
  }

  .panel--wizard .optimizer-results-list > .optimizer-option:last-child:nth-child(odd) {
    width: min(100%, 212px);
  }
}

/* Booking mobile stabilization pass */
@media (max-width: 640px) {
  .reservation-date-shell {
    min-width: 0;
  }

  .reservation-date-trigger {
    display: none;
  }

  .reservation-date-native {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    margin: 0 !important;
    padding: 0 42px 0 14px !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2.5' y='3.5' width='11' height='10' rx='2'/><path d='M5 2.5v2M11 2.5v2M2.5 6h11'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    color: var(--text) !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  .reservation-field--time-group {
    min-width: 0 !important;
  }

  .reservation-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .reservation-time-separator {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    line-height: 1;
  }

  .reservation-time-grid select:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .reservation-time-grid select:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .reservation-meridiem {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .panel--wizard .optimizer-results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .panel--wizard .optimizer-option {
    min-height: 0 !important;
    padding: 12px 8px !important;
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .panel--wizard .optimizer-option-head {
    width: 100%;
    gap: 6px !important;
  }

  .panel--wizard .optimizer-option-theme {
    width: 100%;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  .panel--wizard .optimizer-option-combo {
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  .panel--wizard .optimizer-option-capacity {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  .panel--wizard .optimizer-option-fit {
    justify-content: center !important;
  }

  .panel--wizard .optimizer-option-fit span {
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  .panel--wizard .optimizer-option-select {
    width: 100% !important;
    max-width: 124px !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 420px) {
  .panel--wizard .optimizer-results-list {
    gap: 8px !important;
  }

  .panel--wizard .optimizer-option {
    padding: 10px 6px !important;
    border-radius: 18px !important;
  }

  .panel--wizard .optimizer-option-theme {
    font-size: 11px !important;
  }

  .panel--wizard .optimizer-option-combo {
    font-size: 12px !important;
  }

  .panel--wizard .optimizer-option-capacity,
  .panel--wizard .optimizer-option-fit span {
    font-size: 10px !important;
  }

  .panel--wizard .optimizer-option-select {
    max-width: 112px !important;
    font-size: 11px !important;
  }

  .panel--wizard .optimizer-results-list > .optimizer-option:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: min(100%, 216px) !important;
    justify-self: center !important;
  }
}
