/* ------------------------------------------------------------------ *
 * Custom overrides — loaded AFTER luxride.css.
 *
 * The template drove several sections with jQuery plugins (slick, WOW,
 * perfect-scrollbar) that we do not run in the React app; where the CSS was
 * scoped to those plugins' runtime wrappers, the ported markup rendered
 * unstyled/overflowing. These rules restore the intended look on the plain
 * markup. See §11 "Porting gotcha" in the dev docs.
 * ------------------------------------------------------------------ */

/* Keep every image inside its box. */
img {
  max-width: 100%;
  height: auto;
}

/* Swiper galleries need overflow hidden on their container. */
.box-main-slider,
.detail-gallery,
.main-image-slider {
  overflow: hidden;
}

/* WOW.js normally reveals these; without it, make sure nothing stays hidden. */
.wow {
  visibility: visible !important;
}

/* "How It Works" steps: luxride.css only colours/marks these via selectors
   scoped to slick's runtime wrappers (.list-how .slick-list .slick-track li ...).
   We drive the gallery with Swiper instead, so restore the look on the plain
   <li> and key the active state off our own `.active` class. */
.bg-how-it-works .list-how li {
  position: relative;
  padding-left: 50px;
  padding-bottom: 40px;
}
.bg-how-it-works .list-how li::before {
  content: "";
  height: 20px;
  width: 20px;
  border: 1px solid #fff;
  border-radius: 50%;
  opacity: 0.5;
  position: absolute;
  top: 6px;
  left: 0;
}
.bg-how-it-works .list-how li.active::before {
  opacity: 1;
}
.bg-how-it-works .list-how li h4,
.bg-how-it-works .list-how li p {
  color: #fff;
  opacity: 0.55;
}
.bg-how-it-works .list-how li.active h4,
.bg-how-it-works .list-how li.active p {
  opacity: 1;
}
/* the white accent bar shows next to the active step */
.bg-how-it-works .list-how li .line-white {
  display: none;
  height: 56px;
  width: 3px;
  position: absolute;
  top: 36px;
  left: 8px;
  background-color: #fff;
  border-radius: 60px;
}
.bg-how-it-works .list-how li.active .line-white {
  display: block;
}

/* Home hero: the template hardcodes the banner to 800px, which pushes the
   search widget (position:absolute; bottom:50px) below the fold on laptop
   screens. Cap the banner to the viewport height (minus the ~66px header) so
   the form is always fully visible; clamp so it stays reasonable on very
   short/tall screens. */
.banner-home1 .box-cover-image {
  height: calc(100vh - 66px);
  min-height: 520px;
  max-height: 760px;
}

/* ===================================================================== *
 * Home search form + date/time pickers — themed to M&M (black / white)  *
 * ===================================================================== */
.mm-picker { position: relative; width: 100%; }

/* Uppercase brand labels + clearer inputs */
.box-search-ride .search-item .search-inputs label {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: #9aa1ac; font-weight: 600; margin-bottom: 2px; display: block;
}
.box-search-ride .search-input { cursor: pointer; color: #0E0E0E; font-weight: 600; }
.box-search-ride .search-input::placeholder { color: #b6bbc4; font-weight: 500; }
/* subtle dividers between the input fields */
.box-search-ride .search-from,
.box-search-ride .search-to,
.box-search-ride .search-time { border-left: 1px solid #eceef1; }

/* Shared dropdown panel */
.mm-dropdown {
  position: absolute; top: calc(100% + 16px); left: 0; z-index: 130;
  background: #fff; border: 1px solid #ececec; border-radius: 16px;
  box-shadow: 0 20px 55px rgba(0,0,0,.18); padding: 8px;
}
/* Time list */
.mm-time-list { max-height: 260px; overflow-y: auto; min-width: 170px; padding: 6px; }
.mm-time-item { padding: 9px 14px; border-radius: 10px; cursor: pointer; font-size: 14px; color: #181A1F; font-weight: 500; }
.mm-time-item:hover { background: #f4f4f5; }
.mm-time-item.sel { background: #0E0E0E; color: #fff; }
.mm-time-list::-webkit-scrollbar { width: 8px; }
.mm-time-list::-webkit-scrollbar-thumb { background: #e2e2e6; border-radius: 8px; }

/* react-day-picker → M&M black/white theme (was default blue) */
.mm-daypicker { padding: 8px 10px 12px; }
.mm-daypicker .rdp-root {
  --rdp-accent-color: #0E0E0E;
  --rdp-accent-background-color: #f4f4f5;
  --rdp-today-color: #0E0E0E;
  --rdp-day-width: 42px; --rdp-day-height: 42px;
  --rdp-day_button-width: 38px; --rdp-day_button-height: 38px;
  --rdp-day_button-border-radius: 10px;
  margin: 0;
}
.mm-daypicker .rdp-month_caption, .mm-daypicker .rdp-caption_label { font-size: 15px; font-weight: 700; color: #0E0E0E; }
.mm-daypicker .rdp-weekday { color: #9aa1ac; font-size: 11px; text-transform: uppercase; font-weight: 600; }
.mm-daypicker .rdp-chevron { fill: #0E0E0E; }
.mm-daypicker .rdp-button_previous:hover, .mm-daypicker .rdp-button_next:hover { background: #f4f4f5; border-radius: 9px; }
.mm-daypicker .rdp-day_button { border-radius: 10px; color: #181A1F; }
.mm-daypicker .rdp-day_button:hover:not([disabled]) { background: #f4f4f5; }
.mm-daypicker .rdp-selected .rdp-day_button { background: #0E0E0E !important; color: #fff !important; border-color: #0E0E0E !important; }
.mm-daypicker .rdp-today:not(.rdp-selected) .rdp-day_button { font-weight: 800; box-shadow: inset 0 0 0 1.5px #0E0E0E; }
.mm-daypicker .rdp-outside .rdp-day_button, .mm-daypicker .rdp-disabled .rdp-day_button { color: #cfd2d8; }

/* Meet & Greet — themed checkbox */
.mm-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; user-select: none; }
.mm-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.mm-check .mm-check-box {
  width: 20px; height: 20px; border: 1.5px solid #d0d3d9; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; transition: .12s; flex: 0 0 auto;
}
.mm-check input:checked + .mm-check-box { background: #0E0E0E; border-color: #0E0E0E; }
.mm-check input:checked + .mm-check-box::after {
  content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); margin-top: -2px;
}
.mm-check input:focus-visible + .mm-check-box { box-shadow: 0 0 0 3px rgba(14,14,14,.15); }
.mm-check .mm-check-label { font-size: 13px; font-weight: 600; color: #181A1F; }

/* Remove the template's orange curved decoration behind the fleet + services. */
.bg-our-fleet, .bg-our-service { background-image: none !important; }

/* Fleet cards — uniform height no matter how long the description is.
   The column already stretches (flex row); make the card fill it, clamp the
   blurb to a fixed height so images line up, and pin the passenger/luggage
   footer to the bottom. */
.cardFleet { height: 100%; display: flex; flex-direction: column; }
.cardFleet .cardInfo p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 3.9em;
}
/* The image area grows to absorb any height difference and centres the photo,
   so cars line up across cards; the footer then sits flush at the bottom. */
.cardFleet .cardImage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.cardFleet .cardImage img { width: 100%; }
.cardFleet .cardInfoBottom { margin-top: 0; }

/* Address type-ahead suggestion list */
.mm-loc-list { min-width: 280px; max-height: 300px; overflow-y: auto; padding: 6px; }
.mm-loc-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.mm-loc-item:hover { background: #f4f4f5; }
.mm-loc-item img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.mm-loc-text { display: flex; flex-direction: column; min-width: 0; }
.mm-loc-title { font-size: 14px; font-weight: 500; color: #181A1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-loc-sub { font-size: 12px; color: #9aa1ac; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-loc-empty { padding: 10px 12px; font-size: 13px; color: #9aa1ac; }
/* comfortable click targets for the whole field */
.box-search-ride .search-item { cursor: pointer; }
.box-search-ride .search-item .search-inputs { cursor: text; }
.mm-search-error {
  position: absolute; bottom: -34px; left: 24px; color: #fff;
  background: rgba(192,57,43,.96); padding: 5px 14px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
}

/* booking Details step: auth gate + passenger panel */
.mm-auth-gate { border: 1px solid #ececec; border-radius: 14px; overflow: hidden; }
.mm-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #fff; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.mm-auth-row:hover { background: #fafafa; }
.mm-auth-row .btn { flex: 0 0 auto; white-space: nowrap; }
.mm-auth-form { padding: 16px 18px; background: #fafafa; border-bottom: 1px solid #f0f0f0; }
.mm-auth-form .btn { margin-top: 4px; }
.mm-auth-t { font-weight: 700; font-size: 14.5px; }
.mm-auth-s { font-size: 12.5px; color: #9aa1ac; }
.mm-auth-guest { padding: 12px 18px; background: #fafafa; font-size: 13px; color: #6b7280; }
.mm-auth-signedin { background: #e7f4ee; border: 1px solid #bfe0d0; border-radius: 12px; padding: 12px 16px; color: #0e5a43; font-size: 14px; }
.mm-auth-choice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: #fafafa; border: 1px solid #eee; border-radius: 12px; }
.mm-pax-panel { background: #fafafa; border: 1px solid #eee; border-radius: 12px; padding: 16px 16px 2px; margin-bottom: 14px; }
.mb-25 { margin-bottom: 25px; }

/* ===================== client account dashboard ===================== */
.mm-acct { display: grid; grid-template-columns: 260px 1fr; gap: 26px; }
.mm-acct-side { background: #fff; border: 1px solid var(--line, #ececec); border-radius: 16px; padding: 20px; height: fit-content; }
.mm-acct-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #eee; margin-bottom: 14px; }
.mm-acct-avatar { width: 44px; height: 44px; border-radius: 50%; background: #0E0E0E; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex: 0 0 auto; }
.mm-acct-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 14.5px; color: #333; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.mm-acct-nav button:hover { background: #f5f5f5; }
.mm-acct-nav button.on { background: #0E0E0E; color: #fff; }
.mm-acct-nav .signout { color: #c0392b; margin-top: 6px; }
.mm-acct-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.mm-acct-kpi { flex: 1; min-width: 130px; background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 16px 18px; }
.mm-acct-kpi .v { font-size: 26px; font-weight: 800; }
.mm-acct-kpi .l { font-size: 12px; color: #9aa1ac; text-transform: uppercase; letter-spacing: .04em; }
.mm-ride { border: 1px solid #ececec; border-radius: 14px; padding: 18px; margin-bottom: 14px; background: #fff; }
.mm-ride-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mm-ride .route { font-size: 15px; font-weight: 700; }
.mm-ride .meta { font-size: 13px; color: #6b7280; margin-top: 4px; }
.mm-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.mm-badge.confirmed { background: #e7f4ee; color: #0e5a43; }
.mm-badge.pending { background: #fdf3d7; color: #946a00; }
.mm-badge.cancelled { background: #f3d6d2; color: #8a2419; }
.mm-badge.completed { background: #eef0f3; color: #555; }
.mm-ride-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 820px){ .mm-acct { grid-template-columns: 1fr; } }
