/* Trang đặt xe */
.card-block { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; margin-bottom: 1rem; }
.card-block legend { float: none; width: auto; font-size: 1rem; font-weight: 800; margin-bottom: .75rem; padding: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 576px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-opt { position: relative; cursor: pointer; }
.service-opt input { position: absolute; opacity: 0; inset: 0; }
.service-opt span { display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; padding: .6rem .25rem; border: 1.5px solid var(--line); border-radius: 14px; min-height: 76px; justify-content: center; transition: border-color .15s, background .15s; }
.service-opt b { font-size: 1.5rem; font-weight: 400; }
.service-opt i { font-style: normal; font-size: .72rem; font-weight: 600; line-height: 1.2; }
.service-opt input:checked + span { border-color: var(--brand); background: rgba(0,177,79,.1); }
.service-opt input:focus-visible + span { outline: 3px solid rgba(0,177,79,.4); }
.addr-field { position: relative; }
.suggest-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: .25rem; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.suggest-list li { padding: .55rem .7rem; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
.suggest-list li small { color: var(--muted); }
.suggest-list li:hover, .suggest-list li.active { background: rgba(0,177,79,.12); }
.pay-opt { display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: rgba(0,177,79,.08); }
.sticky-panel { position: static; }
@media (min-width: 992px) { .sticky-panel { position: sticky; top: 84px; } }
.map-box { height: 260px; border-radius: 18px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
@media (min-width: 992px) { .map-box { height: 340px; } }
.map-placeholder { height: 100%; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); font-size: .9rem; }
.summary-box { margin-top: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; }
.summary-empty { color: var(--muted); text-align: center; padding: .5rem; }
.summary-head { font-weight: 700; margin-bottom: .6rem; color: var(--brand-dark); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 .6rem; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; border-bottom: 1px dashed var(--line); }
.summary-discount { color: var(--brand-dark); font-weight: 600; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin-top: .4rem; }
.summary-total strong { font-size: 1.6rem; color: var(--brand-dark); }

.ride-mode {grid-template-columns:repeat(2,minmax(0,1fr))}
.service-opt small {display:block;color:var(--brand-dark);font-weight:700;font-size:.8rem}
.service-opt span {overflow-wrap:anywhere}
.extra-service-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
.service-link {display:grid;justify-items:center;align-content:center;text-align:center;min-height:68px;border:1px solid var(--line);border-radius:14px;padding:.4rem;text-decoration:none;font-size:.85rem}
.service-link b {font-size:1.35rem}
@media (max-width:420px) {.extra-service-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}

.home-services {grid-template-columns:repeat(2,minmax(0,1fr))}
.home-services .service-opt span, .home-services .service-link {min-height:84px;height:100%}
.home-services .service-opt i, .home-services .service-link {font-size:.82rem;font-weight:600}
.booking-home #quickBook {scroll-margin-top:90px}
.home-map-panel .map-box {height:clamp(250px,42vh,460px)}
@media (min-width:576px) {.home-services {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1200px) {.home-services {grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:992px) {.home-map-panel {position:sticky;top:85px}}

.service-launcher {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  column-gap:.35rem;
  row-gap:1.25rem;
  padding:1rem .3rem 1.5rem;
}
.service-launch {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:.45rem;
  min-height:92px;
  padding:.2rem;
  border-radius:16px;
  color:var(--ink);
  text-align:center;
  text-decoration:none;
  font-size:.82rem;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.service-launch-icon {
  display:grid;
  place-items:center;
  width:58px;
  height:56px;
  border-radius:17px;
  background:#ebf7ef;
  font-size:2rem;
}
.service-launch:hover .service-launch-icon, .service-launch:focus-visible .service-launch-icon {background:#d8f4e3}
.service-launch:focus-visible {outline:2px solid var(--brand)}
.app-home-promo {
  padding: clamp(.9rem, 3vw, 1.25rem);
  border: 1px solid #f2d58e;
  border-inline-start: 4px solid #ca8509;
  border-radius: 14px;
  background: #fff7e3;
  color: #33230d;
}
.app-home-promo-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  margin-top: .65rem;
}
.app-home-promo h2 { margin: 0 0 .3rem; font-size: .875rem; font-weight: 650; }
.app-home-promo p { margin: 0; font-size: .88rem; }
.app-home-promo .app-home-promo-lead {
  margin-bottom: .35rem;
  font-size: clamp(1.13rem, 3vw, 1.5rem);
  font-weight: 750;
  line-height: 1.23;
}
.app-home-promo .app-home-promo-guide {
  display: inline-block;
  justify-self: start;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.3;
  text-underline-offset: .15em;
}
.app-home-promo .app-home-promo-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .7rem;
  border-radius: 9px;
  font-size: .84rem;
  max-width: 9rem;
  justify-content: center;
  line-height: 1.2;
  background: #087342;
  border-color: #087342;
  color: #fff;
}
.app-home-promo .app-home-promo-action:is(:hover, :focus-visible) {
  background: #065b34;
  border-color: #065b34;
}
[data-bs-theme="dark"] .app-home-promo {
  background: #302616;
  border-color: #a98338;
  border-inline-start-color: #f6bf55;
  color: #ffebbf;
}
.ride-flow [hidden] {display:none!important}
.ride-vehicle-list {display:grid;gap:.55rem}
.ride-vehicle {
  display:grid;
  grid-template-columns:auto 2.4rem minmax(0,1fr) auto;
  gap:.65rem;
  align-items:center;
  padding:.85rem .6rem;
  border:1px solid var(--line);
  border-radius:14px;
  min-height:68px;
  cursor:pointer;
}
.ride-vehicle:has(input:checked) {border-color:var(--brand);background:#ecf8f0}
.ride-vehicle:has(input:disabled) {opacity:.58}
.ride-vehicle input {accent-color:var(--brand-dark)}
.ride-vehicle-icon {font-size:1.6rem}
.ride-vehicle-label {display:grid;gap:.15rem;overflow-wrap:anywhere}
.ride-vehicle-label small {color:var(--muted)}
.ride-vehicle [data-fare-for] {color:var(--brand-dark);font-size:.88rem;text-align:right}
.ride-review {display:grid;grid-template-columns:minmax(92px,1fr) minmax(0,2fr);gap:.45rem .85rem}
.ride-review dd {margin:0;overflow-wrap:anywhere}
@media (min-width:768px) {
  .service-launcher {grid-template-columns:repeat(7,minmax(0,1fr));gap:1.45rem .65rem}
  .booking-home .service-launcher {grid-template-columns:repeat(6,minmax(0,1fr))}
  .service-launch {font-size:.95rem}
  .service-launch-icon {width:72px;height:68px;font-size:2.5rem}
}
@media (max-width:991px) {
  .ride-flow[data-ride-step="fares"] .map-box {height:clamp(220px,36dvh,340px)}
}
@media (max-width:400px) {
  .ride-vehicle {gap:.35rem;grid-template-columns:auto 1.7rem minmax(0,1fr) auto}
  .ride-vehicle [data-fare-for] {font-size:.8rem}
  .service-launch-icon {width:50px;height:51px;font-size:1.8rem}
}

.nearby-search { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; margin-bottom: 1rem; }
.nearby-search button { min-height: 44px; }
.nearby-search small:empty { display: none; }

#locationMapSlot .map-box { height: clamp(260px, 42dvh, 410px); min-height: 260px; }
#locationMapSlot .leaflet-container { cursor: crosshair; }
#locationMapSlot .map-actions { display: none !important; }
#selectedPoint { color: var(--ink); overflow-wrap: anywhere; }
#pickupTime { width: 100%; min-width: 0; }

[data-bs-theme="dark"] .ride-vehicle:has(input:checked) { background: #173626; }
[data-bs-theme="dark"] .ride-vehicle [data-fare-for] { color: #78e6a9; }
[data-bs-theme="dark"] .ride-flow .map-warning { background: #302616; color: #ffdb85; }
[data-bs-theme="dark"] .ride-flow .leaflet-control a:not(.btn) { color: #075c3b; }

.service-launch-icon { position: relative; }
.service-launch-addon {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: .58em;
  line-height: 1;
  background: var(--bg-alt);
  border-radius: 50%;
  padding: 2px;
}

@media (max-width: 767.98px) {
  .site-body:has(.ride-mobile-search:not([hidden])) .site-header .site-menu-toggle { display: none; }
  .ride-flow:has(.ride-mobile-search:not([hidden])) {
    padding: .25rem max(.48rem, env(safe-area-inset-right)) 1.1rem max(.48rem, env(safe-area-inset-left)) !important;
  }
  .ride-flow:has(.ride-mobile-search:not([hidden])) > .row { --bs-gutter-x: 0; }
  .ride-mobile-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .5rem;
    align-items: center;
    margin-bottom: .55rem;
  }
  .ride-mobile-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ride-mobile-search .addr-field { margin-bottom: 0 !important; }
  .ride-mobile-search .form-control {
    min-height: 46px;
    padding-inline: .65rem;
    font-size: 16px;
  }
  .ride-mobile-search .form-control::placeholder { font-size: clamp(.8rem, 3.85vw, .94rem); }
  .ride-menu-toggle {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23616b66' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
    margin: 0;
    min-width: 43px;
    min-height: 44px;
    padding: .34rem;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .ride-flow:has(.ride-mobile-search:not([hidden])) .ride-heading {
    gap: .48rem !important;
    margin-bottom: .55rem !important;
    flex-wrap: wrap;
  }
  .ride-flow:has(.ride-mobile-search:not([hidden])) #rideTitle {
    flex: 1 1 0;
    min-width: 0;
    font-size: clamp(1.12rem, 5vw, 1.4rem);
    overflow-wrap: anywhere;
  }
  .ride-flow:has(.ride-mobile-search:not([hidden])) #rideBack {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 44px;
  }
  #mobileRideGps { max-width: 43%; }
  #mobileRideGps .nearby-search { margin: 0; }
  #mobileRideGps .btn { max-width: 10rem; }
  #mobileRideGps #nearbyStatus { max-width: 10rem; overflow-wrap: anywhere; }
  .ride-flow:has(.ride-mobile-search:not([hidden])) #journeyStep { padding: 0 0 .7rem; border: 0; }
  .ride-flow:has(.ride-mobile-search:not([hidden])) #locationMapSlot .map-box {
    height: clamp(240px, min(56dvh, calc(100dvh - 322px)), 470px);
    min-height: 240px;
    isolation: isolate;
  }
  #locationMapSlot .leaflet-control-attribution { max-width: calc(100vw - 2rem); white-space: normal; }
  .ride-flow:has(.ride-mobile-search:not([hidden])) :is(#chooseDestination, #seeRides) {
    display: block;
    width: calc(100% - 1.5rem) !important;
    min-height: 48px;
    margin: .45rem auto 0 !important;
    padding: .45rem .65rem;
    line-height: 1.25;
  }
  .ride-flow:has(.ride-mobile-search:not([hidden])) :is(#pinHint, #selectedPoint, #scheduleOptions, #hoursWrap, #pickupDetails > .mb-3) {
    margin-inline: .75rem;
  }
}
