.hero-search {
  min-height: calc(100vh - 1px);
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .12), rgba(var(--bs-info-rgb), .08) 55%, var(--bs-body-bg) 100%);
  isolation: isolate;
}

.hero-search__intro {
  max-width: 42rem;
}

.hero-search__form {
  max-width: 48rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-search__form:focus-within {
  border-color: rgba(var(--bs-primary-rgb), .65) !important;
  box-shadow: 0 1rem 3rem rgba(var(--bs-primary-rgb), .18) !important;
  transform: translateY(-2px);
}

.hero-search__form .form-control::-moz-placeholder {
  color: var(--bs-secondary-color);
  opacity: .75;
}

.hero-search__form .form-control::placeholder {
  color: var(--bs-secondary-color);
  opacity: .75;
}

.hero-search__form .btn {
  min-width: 9.5rem;
}

.hero-search__glow {
  z-index: -1;
  width: 24rem;
  height: 24rem;
  background: rgba(var(--bs-primary-rgb), .09);
  filter: blur(2rem);
}

.hero-search__glow--top {
  top: -12rem;
  right: -8rem;
}

.hero-search__glow--bottom {
  bottom: -14rem;
  left: -9rem;
  background: rgba(var(--bs-info-rgb), .09);
}

@media (max-width: 575.98px) {
  .hero-search {
    min-height: 100svh;
  }

  .hero-search__form {
    border-radius: var(--bs-border-radius-xl) !important;
  }

  .hero-search__form .btn {
    min-width: auto;
  }

  .hero-search h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }
}


/* Address search test page */
.address-search__card {
  position: relative;
  z-index: 1;
}

.address-search__eyebrow {
  letter-spacing: .08em;
}

.address-search__map {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 24rem;
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
}

.address-search__map iframe {
  display: block;
  flex: 1 1 24rem;
  width: 100%;
  min-height: 24rem;
  border: 0;
}

.address-search__map-icon {
  font-size: 2.5rem;
}

@media (max-width: 575.98px) {
  .address-search__map {
    min-height: 18rem;
  }
}

/* Destination planner inspired by the Guadeloupe transit prototype */
.transit-page {
  --transit-ink: #092b3a;
  --transit-teal: #38c9c2;
  --transit-yellow: #ffd34e;
  min-height: 100vh;
  color: var(--transit-ink);
  background: #f5f8f8;
  font-family: var(--bs-body-font-family), sans-serif;
}

.prototype-banner {
  min-height: 25px;
  padding: 4px 12px;
  color: #433913;
  background: var(--transit-yellow);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .01em;
}

.transit-header {
  position: relative;
  z-index: 3;
  background: #fff;
  box-shadow: 0 2px 12px rgba(8, 39, 53, .06);
}

.transit-nav {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 34px;
}

.transit-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--transit-ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--transit-yellow);
  background: var(--transit-ink);
  border-radius: 11px;
  box-shadow: 0 2px 6px #092b3a33;
  font-size: 1.2rem;
}

.brand-name {
  position: relative;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-name b {
  margin-left: 5px;
  padding-left: 8px;
  border-left: 1px solid #ccd6d9;
  font-size: .79rem;
}

.brand-name small {
  display: block;
  padding-left: 35px;
  margin-top: -3px;
  color: #74848a;
  font-size: .48rem;
  letter-spacing: .16em;
}

.transit-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(16px, 3vw, 44px);
}

.transit-links a {
  color: #263c46;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.transit-links a:hover,
.transit-brand:hover { color: #138f99; }

.transit-actions { display: flex; align-items: center; gap: 12px; }

.search-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: #73868c;
  background: #fff;
  border: 1px solid #e8eef0;
  border-radius: 50%;
}

.account-link {
  padding: 10px 16px;
  color: #fff;
  background: var(--transit-ink);
  border: 3px solid #a6e7e2;
  border-radius: 30px;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.account-link i { margin-right: 6px; }

.destination-hero {
  position: relative;
  min-height: 540px;
  padding: 58px 0 74px;
  background: #176f7d url('/assets/images/Bus_Kariles_Hero.png') center 56% / cover no-repeat;
  isolation: isolate;
}

.destination-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 28, 38, .77) 0%, rgba(4, 28, 38, .52) 36%, rgba(4, 28, 38, .12) 75%, rgba(4, 28, 38, .06) 100%);
}

.destination-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(460px, 1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 100px);
}

.destination-intro {
  max-width: 490px;
  color: #fff;
}

.destination-eyebrow,
.trip-kicker {
  color: #daf4f0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.destination-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.destination-eyebrow span { width: 24px; height: 3px; background: var(--transit-teal); }

.destination-intro h1 {
  max-width: 470px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .99;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.destination-intro > p { max-width: 390px; margin: 0; color: #e3eeee; font-size: .96rem; line-height: 1.6; }
.transport-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.transport-tags span {
  padding: 8px 13px;
  color: #e8fffc;
  background: rgba(4, 37, 49, .55);
  border: 1px solid rgba(169, 234, 226, .34);
  border-radius: 22px;
  font-size: .74rem;
  font-weight: 700;
}

.transport-tags i { margin-right: 6px; color: #57d8cf; }

.trip-card {
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  justify-self: end;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(5, 35, 46, .22);
}

.trip-tabs { display: flex; padding: 7px; background: #eaf1f2; }
.trip-tab { flex: 1; min-height: 43px; color: #687c83; background: transparent; border: 0; border-radius: 15px; font-size: .75rem; font-weight: 700; }
.trip-tab i { margin-right: 7px; }
.trip-tab.active { color: var(--transit-ink); background: #fff; box-shadow: 0 2px 9px rgba(10, 47, 59, .08); }
.trip-card-body { padding: 25px 25px 28px; }
.trip-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.trip-kicker { color: #387080; font-size: .62rem; letter-spacing: .12em; }
.trip-card-heading h2 { margin: 5px 0 0; color: #183b4a; font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; }
.locate-button { padding: 6px 0 6px 8px; color: #477486; background: transparent; border: 0; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.locate-button i { margin-right: 5px; }
.route-fields { position: relative; }

.route-field {
  position: relative;
  display: flex;
  min-height: 59px;
  align-items: center;
  gap: 13px;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid #dfe8ea;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(11, 46, 58, .035);
}

.route-field + .route-field { margin-top: -1px; }
.route-field > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.route-field small { margin-bottom: 1px; color: #829197; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.route-field input { width: 100%; padding: 0; color: #1d3744; background: transparent; border: 0; outline: 0; font-size: .78rem; font-weight: 700; }
.route-dot { position: relative; z-index: 1; width: 9px; height: 9px; flex: 0 0 9px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #abc0c4; }
.route-dot-start { background: #39a4a8; }
.route-dot-end { background: #f47472; }
.route-connector { position: absolute; z-index: 1; top: 36px; bottom: 25px; left: 19px; border-left: 2px dotted #b8c9cc; }
.swap-route { display: grid; width: 28px; height: 28px; place-items: center; color: #548395; background: #fff; border: 1px solid #e4ecee; border-radius: 50%; box-shadow: 0 2px 7px #0b2d3b18; }
.time-options { display: flex; gap: 4px; margin: 13px 0 14px; padding: 3px; background: #f2f6f6; border-radius: 10px; }
.time-option { flex: 1; padding: 7px 5px; color: #6c7f85; background: transparent; border: 0; border-radius: 8px; font-size: .65rem; font-weight: 700; }
.time-option.selected { color: #234651; background: #fff; box-shadow: 0 1px 4px #0b2d3b12; }
.transport-options { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.modes-label { margin-right: 2px; color: #73848a; font-size: .59rem; font-weight: 800; text-transform: uppercase; }
.mode-chip { padding: 6px 10px; color: #285965; background: #e5f8f5; border: 1px solid #b9ece5; border-radius: 18px; font-size: .65rem; font-weight: 700; }
.mode-chip i { margin-right: 4px; }
.trip-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; }
.accessible-toggle { display: inline-flex; align-items: center; gap: 8px; color: #687c83; font-size: .68rem; font-weight: 600; cursor: pointer; }
.accessible-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-track { position: relative; width: 27px; height: 16px; background: #dce5e6; border-radius: 10px; transition: background .2s ease; }
.toggle-track::after { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; content: ''; background: #fff; border-radius: 50%; transition: transform .2s ease; }
.accessible-toggle input:checked + .toggle-track { background: #45b9ac; }
.accessible-toggle input:checked + .toggle-track::after { transform: translateX(11px); }
.trip-submit { padding: 11px 16px; color: #fff; background: var(--transit-ink); border: 0; border-radius: 12px; box-shadow: 0 5px 14px rgba(9, 43, 58, .16); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.trip-submit i { margin-left: 8px; }

.service-shortcuts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -31px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf1f1;
  border-radius: 17px;
  box-shadow: 0 10px 26px rgba(10, 39, 51, .13);
}

.service-shortcut { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 16px 18px; color: var(--transit-ink); text-decoration: none; }
.service-shortcut + .service-shortcut { border-left: 1px solid #e8eeee; }
.service-shortcut:hover { background: #f8fbfb; }
.service-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; }
.service-icon.navy { color: #fff; background: var(--transit-ink); }
.service-icon.mint { color: #307b7d; background: #dcf8f3; }
.service-icon.yellow { color: #695316; background: #fff3c9; }
.service-icon.coral { color: #d77373; background: #ffe4e3; }
.service-shortcut > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.service-shortcut strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.service-shortcut small { margin-top: 3px; color: #879599; font-size: .62rem; white-space: nowrap; }
.shortcut-arrow { margin-left: auto; color: #9aabad; font-size: .62rem; }

.map-search-label { display: block; margin: 0 0 7px 2px; color: #647a81; font-size: .68rem; font-weight: 700; }
.address-search-row { display: flex; align-items: center; gap: 10px; padding: 6px; background: #f4f8f8; border: 1px solid #dfe8ea; border-radius: 13px; }
.address-search-pin { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: #278f98; background: #e1f7f3; border-radius: 10px; }
.address-search-row input { width: 100%; min-width: 0; padding: 9px 2px; color: #193b47; background: transparent; border: 0; outline: 0; font-size: .79rem; }
.address-search-row input::-moz-placeholder { color: #8a9a9e; }
.address-search-row input::placeholder { color: #8a9a9e; }
.address-search-row .trip-submit { min-height: 40px; }
.address-search-hint { margin: 9px 2px 0; color: #849397; font-size: .65rem; }
.map-section { margin-top: 32px; margin-bottom: 30px; }
.map-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.map-section-heading h2 { margin: 4px 0 0; color: #183b4a; font-size: 1.25rem; font-weight: 800; }
.map-location-label { padding: 7px 11px; color: #386d76; background: #e5f8f5; border-radius: 20px; font-size: .69rem; font-weight: 700; }
.map-location-label i { margin-right: 5px; }
.destination-map { position: relative; display: block; min-height: 360px; overflow: hidden; background-color: #d8efea; background-image: linear-gradient(26deg, transparent 47%, rgba(255,255,255,.75) 48%, rgba(255,255,255,.75) 50%, transparent 51%), linear-gradient(112deg, transparent 32%, rgba(255,255,255,.7) 33%, rgba(255,255,255,.7) 35%, transparent 36%), repeating-linear-gradient(0deg, transparent 0 47px, rgba(71,145,130,.08) 48px 49px), repeating-linear-gradient(90deg, transparent 0 58px, rgba(71,145,130,.08) 59px 60px); border: 1px solid #d0e4df; border-radius: 17px; box-shadow: 0 10px 28px rgba(10,39,51,.09); }
.map-waterway { position: absolute; inset: -40% 37% -40% 53%; transform: rotate(21deg); background: #9dd9db; border-left: 2px solid rgba(255,255,255,.75); border-right: 2px solid rgba(255,255,255,.75); }
.map-road { position: absolute; height: 7px; background: #fff; border: 1px solid #e9bf75; border-radius: 10px; box-shadow: 0 1px 2px #43685c30; }
.map-road-one { top: 48%; left: -4%; width: 76%; transform: rotate(-13deg); }
.map-road-two { top: 70%; left: 30%; width: 83%; transform: rotate(-28deg); }
.map-road-three { top: 24%; left: 12%; width: 60%; transform: rotate(20deg); }
.map-place { position: absolute; padding: 5px 9px; color: #46655e; background: rgba(255,255,255,.8); border: 1px solid rgba(97,143,129,.2); border-radius: 8px; box-shadow: 0 2px 6px #234c4014; font-size: .72rem; font-weight: 700; }
.map-place-one { top: 44%; left: 34%; }
.map-place-two { top: 24%; left: 61%; }
.map-place-three { top: 69%; left: 66%; }
.map-marker { position: absolute; top: 48%; left: 49%; display: grid; width: 43px; height: 43px; place-items: center; color: #fff; background: #0b3443; border: 4px solid #fff; border-radius: 50% 50% 50% 8px; box-shadow: 0 5px 15px #102f3d45; transform: rotate(-45deg); }
.map-marker i { transform: rotate(45deg); }
.map-placeholder-note { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 7px; padding: 8px 11px; color: #385d64; background: rgba(255,255,255,.91); border: 1px solid #dfebe8; border-radius: 10px; font-size: .67rem; }
.map-placeholder-note i { color: #27939a; }

@media (max-width: 991.98px) {
  .transit-nav { gap: 18px; }
  .transit-links { gap: 16px; }
  .transit-links a { font-size: .7rem; }
  .destination-layout { grid-template-columns: minmax(0, .8fr) minmax(400px, 1fr); gap: 30px; }
  .destination-intro h1 { font-size: clamp(2.7rem, 5.5vw, 3.7rem); }
  .service-shortcut { gap: 9px; padding: 14px 12px; }
}

@media (max-width: 767.98px) {
  .transit-nav { min-height: 66px; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .transit-links { order: 3; width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; padding: 6px 0 2px; }
  .transit-links a { font-size: .68rem; }
  .destination-hero { padding: 42px 0 55px; background-position: 54% center; }
  .destination-shade { background: linear-gradient(180deg, rgba(4, 28, 38, .68), rgba(4, 28, 38, .33) 53%, rgba(4, 28, 38, .6)); }
  .destination-layout { grid-template-columns: 1fr; gap: 28px; }
  .destination-intro { max-width: 560px; }
  .destination-intro h1 { max-width: 520px; font-size: clamp(2.7rem, 9vw, 4rem); }
  .trip-card { max-width: none; justify-self: stretch; }
  .service-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .service-shortcut:nth-child(3) { border-left: 0; border-top: 1px solid #e8eeee; }
  .service-shortcut:nth-child(4) { border-top: 1px solid #e8eeee; }
  .destination-map { min-height: 300px; }
  .map-section { margin-top: 26px; }
}

@media (max-width: 420px) {
  .prototype-banner { font-size: .63rem; }
  .brand-mark { width: 33px; height: 33px; }
  .account-link { padding: 8px 10px; font-size: .68rem; }
  .search-icon { width: 33px; height: 33px; }
  .destination-hero { padding-top: 34px; }
  .trip-card-body { padding: 19px 15px 21px; }
  .trip-card-heading h2 { font-size: 1.05rem; }
  .locate-button { font-size: .63rem; }
  .trip-submit-row { align-items: flex-start; flex-direction: column; }
  .trip-submit { width: 100%; }
  .service-shortcut { padding: 13px 10px; }
  .service-icon { width: 33px; height: 33px; flex-basis: 33px; }
  .service-shortcut strong { font-size: .66rem; }
  .service-shortcut small { font-size: .57rem; }
  .address-search-row { flex-wrap: wrap; }
  .address-search-row input { flex: 1; }
  .address-search-row .trip-submit { width: 100%; }
  .destination-map { min-height: 245px; }
}

/* Suggestions Google Places pilotées par App Connect */
#destination { z-index: 3; }
#destination .trip-card { position: relative; overflow: visible; }
#destination .address-search-row { position: relative; }
#destination .address-search-row > .places-panel { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; right: 0; margin-top: 0; }
.places-panel { margin-top: 8px; overflow: hidden; background: #fff; border: 1px solid #d9e9e6; border-radius: 13px; box-shadow: 0 8px 22px #092b3a12; }
.places-list { max-height: 285px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.places-list li + li { border-top: 1px solid #edf3f2; }
.places-option { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 14px; color: #193b47; background: #fff; border: 0; text-align: left; }
.places-option:hover, .places-option:focus-visible { background: #e5f8f5; }
.places-option:focus-visible { outline: 2px solid #278f98; outline-offset: -2px; }
.places-option > i { flex: 0 0 18px; color: #278f98; }
.places-option > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.places-option strong { font-size: .79rem; }
.places-option small { color: #617a80; font-size: .69rem; line-height: 1.4; }
.places-status p { margin: 0; padding: 12px 14px; color: #617a80; font-size: .73rem; }
.places-attribution { padding: 7px 12px; color: #617a80; background: #f5f9f8; border-top: 1px solid #edf3f2; text-align: right; font-size: .63rem; }
.destination-map .map-selection-status, .destination-map .map-selection-error { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 9px 12px; color: #315966; background: rgba(255,255,255,.95); border: 1px solid #dfebe8; border-radius: 10px; box-shadow: 0 2px 8px #102f3d18; font-size: .72rem; }
.destination-map .map-selection-error { color: #842029; background: #fff2f2; border-color: #f0cccc; }
/* Bandeau de destination commun à la recherche et aux suggestions */
.map-address-banner { padding: 18px 22px; background: linear-gradient(120deg, #092b3a, #176f7d); border-bottom: 3px solid #38c9c2; }
.map-address-kicker { display: block; margin-bottom: 6px; color: #9ee9e2; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.map-address-value { margin: 0; color: #fff; font-size: clamp(.95rem, 2.5vw, 1.15rem); font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.destination-map iframe { height: 384px; }
@media (max-width: 767.98px) {
  .map-address-banner { padding: 15px 17px; }
  .destination-map iframe { height: 300px; min-height: 300px; }
}
@media (max-width: 420px) {
  .destination-map iframe { height: 245px; min-height: 245px; }
}