.hw-mustang-hero {
  --hw-blue: #53a3db;
  --hw-blue-dark: #3c8fce;
  --hw-ink: #202a36;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: calc(100svh - 104px);
  min-height: 0;
  z-index: 10;
  background: #465d6b;
  color: #fff;
  font-family: inherit;
}

.hw-hero-photos,
.hw-hero-wash { position: absolute; inset: 0; pointer-events: none; }
.hw-hero-photos { z-index: -2; }
.hw-hero-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hw-hero-photo.is-active { opacity: 1; }
.hw-hero-wash {
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 32, 46, .15) 0%, rgba(14, 30, 42, .34) 42%, rgba(17, 27, 38, .13) 72%, rgba(10, 20, 30, .22) 100%);
}

.hw-hero-copy {
  width: min(100% - 40px, 1280px);
  margin: clamp(58px, 12vh, 124px) auto 24px;
  text-align: center;
  text-shadow: 0 2px 20px rgba(18, 30, 40, .3);
}
.hw-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5.3vw, 92px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hw-hero-copy p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(17px, 1.6vw, 26px);
  font-weight: 450;
  line-height: 1.35;
}

.hw-photo-switcher {
  position: absolute;
  top: 20px;
  right: max(28px, calc((100vw - 1540px) / 2));
  display: flex;
  gap: 8px;
  z-index: 1;
}
.hw-photo-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hw-photo-dot::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, .25);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .28);
}
.hw-photo-dot.is-active::before { background: #fff; }
.hw-photo-dot:focus-visible,
.hw-search-shell button:focus-visible,
.hw-result-item:focus-visible { outline: 3px solid #123b5b; outline-offset: 2px; }
/* Fields sit in their own bordered cell, so a ring around the input looked like
   a stray box. The cell tints instead — still clear for keyboard users. */
.hw-field:focus-within { background: #f3f8fc; }
.hw-field:focus-within .hw-field-label { color: var(--hw-blue-dark, #3c8fce); }

.hw-search-shell {
  position: relative;
  width: min(calc(100% - 48px), 1392px);
  margin: 0 auto 24px;
  border-radius: 11px;
  background: #fff;
  color: var(--hw-ink);
  box-shadow: 0 14px 48px rgba(12, 28, 39, .22);
  z-index: 2;
}
.hw-search-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 30px;
  border-bottom: 1px solid #d9e1e9;
}
.hw-search-tab {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  padding: 12px 20px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #27333f;
  font-size: 16px;
  font-weight: 540;
  cursor: pointer;
  white-space: nowrap;
}
.hw-search-tab:first-child { padding-left: 10px; }
.hw-search-tab i { font-size: 24px; }
.hw-search-tab.is-active { color: var(--hw-blue-dark); border-bottom-color: var(--hw-blue-dark); font-weight: 650; }
.hw-search-tab small { margin-left: 2px; color: #71808d; font-size: 11px; font-weight: 600; }
.hw-search-tab:hover { color: var(--hw-blue-dark); }

.hw-search-form {
  display: grid;
  grid-template-columns: 1.25fr 1fr .9fr 1.2fr .9fr;
  gap: 0;
  padding: 11px 20px 14px;
}
.hw-field,
.hw-same-location {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  min-height: 67px;
  padding: 9px 18px;
  border-right: 1px solid #dbe3eb;
}
.hw-field:nth-child(-n + 5) { border-bottom: 1px solid #e6ebf0; }
.hw-field:nth-child(4) { border-right: 1px solid #dbe3eb; }
.hw-field:nth-child(9) { border-right: 1px solid #dbe3eb; }
.hw-field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  overflow: hidden;
  color: #263240;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hw-field-label i { flex: none; font-size: 19px; }
.hw-field input,
.hw-field select {
  width: 100%;
  min-width: 0;
  height: 27px;
  padding: 0 0 0 29px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #5e6e7e;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.hw-field select { padding-right: 7px; }
.hw-field select:disabled { color: #9ca6af; cursor: default; }
.hw-field input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .65; }

/* Styled dropdown list where supported (Chrome/Edge 135+); others keep the native one. */
@supports (appearance: base-select) {
  .hw-field select,
  .hw-field ::picker(select) { appearance: base-select; }
  .hw-field select { align-items: center; }
  .hw-field select::picker-icon {
    content: "";
    width: 12px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233c8fce' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat center;
    transition: rotate 200ms ease;
  }
  .hw-field select:disabled::picker-icon { opacity: .4; }
  .hw-field select:open::picker-icon { rotate: 180deg; }
  .hw-field ::picker(select) {
    min-width: max(anchor-size(width), 200px);
    max-height: 320px;
    margin-block: 10px;
    padding: 6px;
    color: var(--hw-ink);
    background: #fff;
    border: 1px solid #dbe3eb;
    border-radius: 14px;
    box-shadow: 0 20px 44px -12px rgba(12, 28, 39, .3);
    opacity: 0;
    translate: 0 -4px;
    transition: opacity 160ms ease, translate 160ms ease, overlay 160ms allow-discrete, display 160ms allow-discrete;
  }
  .hw-field select:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style {
    .hw-field select:open::picker(select) { opacity: 0; translate: 0 -4px; }
  }
  .hw-field option {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 9px;
    font-size: 14px;
    cursor: pointer;
  }
  .hw-field option:hover,
  .hw-field option:focus-visible { outline: 0; background: color-mix(in srgb, var(--hw-blue) 12%, transparent); }
  .hw-field option:checked { color: var(--hw-blue-dark); font-weight: 650; background: color-mix(in srgb, var(--hw-blue) 16%, transparent); }
  .hw-field option::checkmark { order: 1; margin-left: auto; color: var(--hw-blue-dark); }
}
.hw-same-location {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-right: 0;
  border-bottom: 1px solid #e6ebf0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hw-same-location input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hw-switch { position: relative; flex: none; width: 43px; height: 24px; border-radius: 30px; background: #b8c6d2; transition: background .2s; }
.hw-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.hw-same-location input:checked + .hw-switch { background: var(--hw-blue-dark); }
.hw-same-location input:checked + .hw-switch::after { transform: translateX(19px); }
.hw-same-location input:focus-visible + .hw-switch { outline: 3px solid #123b5b; outline-offset: 2px; }
.hw-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  align-self: center;
  min-height: 56px;
  margin: 7px 0 7px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--hw-blue-dark);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hw-search-submit:hover { background: #267cb9; transform: translateY(-1px); }
.hw-search-submit i { font-size: 21px; }


/* Search results dropdown: one card per vehicle, price and Book now on the right. */
.hw-results {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(470px, calc(100svh - 150px));
  overflow: hidden;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: #fff;
  color: var(--hw-ink);
  box-shadow: 0 24px 60px -12px rgba(13, 27, 38, .38);
  animation: hw-results-in .18s ease-out;
}
@keyframes hw-results-in { from { opacity: 0; transform: translateY(-6px); } }
.hw-results[hidden] { display: none; }
.hw-results-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e6ebf0;
}
.hw-results-head strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.hw-results-head p { margin: 3px 0 0; color: #71808e; font-size: 13px; }
.hw-results-head .hw-results-note { margin-top: 2px; font-size: 11px; }
.hw-results-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #edf3f8;
  color: #40515e;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.hw-results-close:hover { background: var(--hw-blue-dark); color: #fff; }
.hw-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f6f9fb;
}
.hw-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #e3eaf0;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.hw-result-row:hover { border-color: color-mix(in srgb, var(--hw-blue) 55%, #fff); box-shadow: 0 6px 18px -8px rgba(38, 124, 185, .35); }
.hw-result-row[hidden] { display: none; }
.hw-result-item { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: var(--hw-ink); text-decoration: none; border-radius: 8px; }
.hw-result-item img,
.hw-result-placeholder { flex: none; width: 84px; height: 64px; border-radius: 8px; object-fit: cover; background: #e8f0f6; }
.hw-result-placeholder { display: grid; place-items: center; color: var(--hw-blue-dark); font-size: 30px; }
.hw-result-text { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.hw-result-text strong { overflow: hidden; font-size: 14px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.hw-result-item:hover strong { color: var(--hw-blue-dark); }
.hw-result-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.hw-result-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4f9;
  color: #50606d;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.hw-result-specs i { color: var(--hw-blue-dark); font-size: 13px; }
.hw-result-side { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 7px; }
.hw-result-price { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.hw-result-price small { color: #7a8894; font-size: 11px; font-weight: 500; }
.hw-result-price b { color: var(--hw-ink); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hw-result-book {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--hw-blue-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.hw-result-book:hover { background: var(--hw-ink); color: #fff; }
.hw-result-book:focus-visible { outline: 3px solid #123b5b; outline-offset: 2px; }
.hw-no-results { margin: 8px 6px; color: #6d7c88; font-size: 14px; }
@media (max-width: 520px) {
  .hw-result-item img, .hw-result-placeholder { width: 64px; height: 52px; }
  .hw-result-row { gap: 8px; padding-right: 8px; }
  .hw-result-price { flex-direction: column; align-items: flex-end; gap: 0; }
  .hw-result-price b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-results { animation: none; }
}

@media (max-width: 1100px) {
  .hw-search-form { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-left: 10px; padding-right: 10px; }
  .hw-field, .hw-same-location { padding-left: 10px; padding-right: 10px; }
  .hw-field-label { gap: 6px; font-size: 12px; }
  .hw-field input, .hw-field select { padding-left: 24px; font-size: 12px; }
  .hw-same-location { font-size: 11px; }
  .hw-search-submit { margin-left: 8px; font-size: 14px; }
}
@media (min-width: 781px) and (max-height: 660px) {
  .hw-hero-copy { margin-top: 40px; }
  .hw-hero-copy h1 { font-size: clamp(45px, 4.8vw, 70px); }
  .hw-hero-copy p { margin-top: 8px; font-size: 17px; }
  .hw-search-shell { margin-bottom: 12px; }
  .hw-search-tab { min-height: 48px; }
  .hw-field, .hw-same-location { min-height: 57px; padding-top: 5px; padding-bottom: 5px; }
  .hw-search-submit { min-height: 47px; }
}
@media (max-width: 780px) {
  .hw-mustang-hero { height: auto; min-height: calc(100svh - 104px); justify-content: flex-start; }
  .hw-hero-copy { margin-top: 90px; margin-bottom: 100px; }
  .hw-hero-copy h1 { font-size: clamp(45px, 8vw, 66px); }
  .hw-hero-photo { object-position: 60% center; }
  .hw-search-shell { margin-bottom: 18px; }
  .hw-search-tabs { margin: 0 15px; overflow-x: auto; }
  .hw-search-tab { padding: 12px; font-size: 13px; }
  .hw-search-tab small { font-size: 10px; }
  .hw-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 14px 15px; }
  .hw-field, .hw-same-location { min-height: 65px; padding: 8px 10px; border-bottom: 1px solid #e6ebf0; }
  .hw-field:nth-child(even), .hw-same-location { border-right: 0; }
  .hw-field:nth-child(9) { border-right: 1px solid #dbe3eb; }
  .hw-field-label { font-size: 12px; }
  .hw-search-submit { min-height: 48px; margin: 7px 0 0 8px; }
      .hw-results { position: fixed; inset: auto 12px 12px; width: auto; max-height: 70svh; z-index: 60; }
  .hw-results-list { overscroll-behavior: contain; }
  /* Results panel open: the page behind it stays put. */
  html:has(.hw-results:not([hidden])), html:has(.hw-results:not([hidden])) body { overflow: hidden; }
}
@media (max-width: 639px) {
  .hw-search-shell { width: calc(100% - 32px); }
}
@media (max-width: 520px) {
  .hw-hero-copy { width: calc(100% - 30px); margin-top: 74px; margin-bottom: 42px; }
  .hw-hero-copy h1 { font-size: clamp(42px, 11vw, 54px); }
  .hw-hero-copy p { font-size: 16px; }
  .hw-search-tab { position: relative; gap: 4px; min-height: 61px; padding: 10px 8px 18px; font-size: 12px; }
  .hw-search-tab:first-child { padding-left: 8px; }
  .hw-search-tab i { font-size: 18px; }
  .hw-search-tab small { display: block; position: absolute; left: 30px; bottom: 4px; margin: 0; font-size: 9px; }
  .hw-field-label { gap: 5px; font-size: 11px; }
  .hw-field input, .hw-field select { padding-left: 0; font-size: 12px; }
  .hw-same-location { font-size: 11px; }
  .hw-search-submit { font-size: 12px; gap: 5px; }
  .hw-results { right: 10px; left: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-hero-photo, .hw-search-submit, .hw-switch, .hw-switch::after { transition: none; }
}

/* Airport transfer tab: 6 fields + a two-cell button in 4 columns. */
.hw-transfer-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hw-transfer-form .hw-field:nth-child(5) { border-bottom: 0; }
.hw-transfer-form .hw-field:nth-child(4) { border-right: 0; }
.hw-transfer-form .hw-search-submit { grid-column: span 2; }
/* Home hero, wide screens: all six fields and the button on one row. */
@media (min-width: 1101px) {
  .hw-mustang-hero .hw-transfer-form { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr) auto; }
  .hw-mustang-hero .hw-transfer-form .hw-field { border-bottom: 0; border-right: 1px solid #dbe3eb; }
  .hw-mustang-hero .hw-transfer-form .hw-search-submit { grid-column: auto; padding: 0 22px; white-space: nowrap; }
}
/* From / To keep their place suggestions but lose Chrome's dropdown arrow. */
.hw-field input[list]::-webkit-calendar-picker-indicator { display: none !important; }
@media (max-width: 780px) {
  .hw-transfer-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-transfer-form .hw-field:nth-child(odd) { border-right: 1px solid #dbe3eb; }
}

/* Rental form, 5 columns: pick-up location/date/time, "Same as pick-up", drop-off
   location on top; drop-off date/time, passengers, transmission, button below. */
@media (min-width: 781px) {
  .hw-rental-form { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .85fr) minmax(0, 1.2fr); }
  .hw-rental-form .hw-field { border-right: 1px solid #dbe3eb; }
  .hw-rental-form .hw-field:nth-child(-n + 5) { border-bottom: 1px solid #e6ebf0; }
  .hw-rental-form .hw-field:nth-child(n + 6) { border-bottom: 0; }
  .hw-rental-form .hw-field:nth-child(5),
  .hw-rental-form .hw-same-box { border-right: 0; }
}

/* "Same as pick-up" gets its own cell: tick box and text, no icon label. */
.hw-same-box {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #263240;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.hw-field.hw-same-box input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--hw-blue-dark);
}
.hw-field input:disabled { cursor: default; }
.hw-field input:disabled::placeholder { color: var(--hw-blue-dark); opacity: 1; }
