/* Taxi booking enquiry form, route picker, suggestions, and map dialog. */
.taxi-hero {
  padding: 4.5rem 0 4rem;
  color: #fff;
  background-color: var(--sy-navy);
  background-image:
    linear-gradient(90deg, rgba(10, 37, 64, .9), rgba(10, 37, 64, .48)),
    url("https://images.unsplash.com/photo-1512343879784-a960bf40e7f2?auto=format&fit=crop&w=1400&q=72");
  background-size: cover;
  background-position: center;
}

.taxi-hero-inner { max-width: 760px; }
.taxi-eyebrow { display: inline-block; margin-bottom: .75rem; color: var(--sy-yellow); font-size: .78rem; font-weight: 600; letter-spacing: 2px; }
.taxi-title { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.taxi-intro { max-width: 560px; margin: .9rem 0 0; color: #e1eaf2; }
.taxi-section { background: var(--sy-bg); }
[data-page="taxi"] #syNav .sy-nav-actions > .btn-sy { display: none; }

.taxi-form {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius);
  box-shadow: var(--sy-shadow);
}

.route-picker {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--sy-border);
  border-radius: 12px;
  background: #f7fafc;
}

.route-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.route-picker-kicker { color: var(--sy-blue); font-size: .68rem; font-weight: 700; letter-spacing: 1.5px; }
.route-picker-heading h2 { margin: .2rem 0; color: var(--sy-navy); font-size: 1.15rem; font-weight: 700; }
.route-picker-heading p { margin: 0; color: var(--sy-muted); font-size: .83rem; }

.route-swap {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border: 1px solid var(--sy-border);
  border-radius: 50px;
  background: #fff;
  color: var(--sy-navy);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.route-swap:hover { border-color: var(--sy-blue); color: var(--sy-blue); }

.taxi-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.taxi-field { min-width: 0; }
.taxi-field label { display: block; margin-bottom: .45rem; color: var(--sy-navy); font-size: .9rem; font-weight: 600; }
.taxi-field label i { margin-right: .35rem; }
.pickup-icon { color: #12a36d; }
.destination-icon { color: #e05e4f; }
.taxi-field .form-control { min-height: 50px; border-color: var(--sy-border); border-radius: 8px; font: inherit; }
.taxi-field .form-control:focus { border-color: var(--sy-blue); box-shadow: 0 0 0 .2rem rgba(35, 109, 168, .16); }

.map-pick-button {
  margin-top: .45rem;
  padding: .2rem 0;
  border: 0;
  background: transparent;
  color: var(--sy-blue);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.map-pick-button:hover { color: var(--sy-navy); text-decoration: underline; }

.location-search { position: relative; }
.location-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + .3rem);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--sy-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sy-shadow);
}
.location-suggestions[hidden] { display: none; }
.location-suggestion {
  display: block;
  width: 100%;
  padding: .75rem .9rem;
  border: 0;
  border-bottom: 1px solid var(--sy-border);
  background: #fff;
  color: var(--sy-navy);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.location-suggestion:last-child { border-bottom: 0; }
.location-suggestion:hover, .location-suggestion:focus-visible { background: #edf6fc; }
.location-suggestion-empty { margin: 0; padding: .75rem .9rem; color: var(--sy-muted); font-size: .85rem; }

.taxi-map-dialog {
  width: min(720px, calc(100% - 1.5rem));
  max-width: none;
  padding: 1rem;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .28);
}
.taxi-map-dialog::backdrop { background: rgba(10, 37, 64, .65); }
.taxi-map-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.taxi-map-heading h2 { margin: 0; color: var(--sy-navy); font-size: 1.1rem; }
.taxi-map-heading p { margin: .25rem 0 0; color: var(--sy-muted); font-size: .85rem; }
.taxi-map-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0f4f7; color: var(--sy-navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
#taxiMap { height: min(60vh, 440px); min-height: 280px; border-radius: 8px; background: #e8eef2; }
.taxi-map-status { min-height: 1.25rem; margin: .6rem 0 0; color: var(--sy-muted); font-size: .85rem; }
.taxi-map-status:empty { display: none; }

.taxi-details-heading { margin: 1.35rem 0 .8rem; color: var(--sy-navy); font-size: .88rem; font-weight: 700; }
.taxi-message { min-height: 1.5rem; margin: 1rem 0 .65rem; color: #a12622; font-size: .9rem; }
.taxi-message:empty { min-height: 0; margin: .45rem 0; }
.taxi-submit { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: .65rem; font-size: 1rem; font-weight: 700; }
.taxi-submit:focus-visible { outline: 3px solid var(--sy-yellow); outline-offset: 3px; }

@media (max-width: 767.98px) {
  .taxi-hero { padding: 3rem 0; }
  .taxi-form-fields { grid-template-columns: 1fr; gap: .9rem; }
  .route-picker-heading h2 { font-size: 1.05rem; }
}

@media (max-width: 359.98px) {
  .route-picker-heading { align-items: flex-start; }
  .route-swap { padding: .5rem .6rem; }
}
