/* Rent-car category experience: trip-load planner + shared approved-vendor browser. */
:root {
  --rc-ink: #0b1728;
  --rc-muted: #5f6d7e;
  --rc-line: #dfe6ed;
  --rc-teal: #0e7490;
  --rc-deep: #0c4a5e;
  --rc-sand: #f2e8da;
  --rc-sky: #e8f4f7;
  --category-accent: var(--rc-teal);
}

.rentcar-fit-hero {
  overflow: clip;
  padding: 34px 0 28px;
  background:
    radial-gradient(circle at 8% 12%, rgba(34, 211, 238, .12), transparent 31%),
    radial-gradient(circle at 92% 18%, rgba(215, 154, 114, .14), transparent 32%),
    linear-gradient(180deg, #fff, #f8fbfc);
  color: var(--rc-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.rcf-container {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.rcf-layout {
  display: grid;
  grid-template-columns: minmax(330px, .76fr) minmax(660px, 1.24fr);
  gap: 34px;
  align-items: center;
}

.rcf-copy {
  max-width: 530px;
  padding: 18px 4px 18px 18px;
}

.rcf-eyebrow {
  margin: 0 0 12px;
  color: var(--rc-teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rcf-copy h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.057em;
}

.rcf-lead {
  max-width: 510px;
  margin: 18px 0 0;
  color: var(--rc-muted);
  font-size: 15px;
  line-height: 1.7;
}

.rcf-primary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rc-teal), var(--rc-deep));
  box-shadow: 0 12px 25px rgba(14, 116, 144, .2);
  padding: 13px 21px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.rcf-primary:hover { filter: brightness(.96); }
.rcf-primary:focus-visible,
.rcf-stepper button:focus-visible,
.rcf-route:focus-visible {
  outline: 3px solid rgba(14, 116, 144, .28);
  outline-offset: 3px;
}

.rcf-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.rcf-trust span {
  border: 1px solid #dce6ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  padding: 7px 10px;
  color: #455466;
  font-size: 11px;
  font-weight: 750;
}

.rcf-planner {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 74, 94, .18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(11, 23, 40, .12);
}

.rcf-scene {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #dfe9ed;
}

.rcf-scene::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 38, .72), rgba(8, 24, 38, .2) 53%, rgba(8, 24, 38, .08)),
    url("/static/generated/category-pages/rentcar/hero-desktop.82a46f1b4a44092a.3d3eb54876ae4645.q82.webp?v=3d3eb54876ae4645") center / cover no-repeat;
  content: "";
  transform: scale(1.01);
}

.rcf-scene-top {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 17px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rcf-live-label,
.rcf-route-label {
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  background: rgba(8, 24, 38, .66);
  backdrop-filter: blur(8px);
  padding: 7px 11px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.rcf-live-label::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .16);
  content: "";
}

.rcf-car-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  width: min(390px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 18px;
  background: rgba(8, 24, 38, .78);
  backdrop-filter: blur(13px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
  padding: 15px;
  color: #fff;
}

.rcf-car-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.rcf-car-visual {
  display: grid;
  min-height: 70px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05));
}

.rcf-car-visual svg {
  width: 94px;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: #e6fbff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  transition: width .25s ease, transform .25s ease;
}

.rcf-planner[data-vehicle="compact"] .rcf-car-visual svg { width: 78px; }
.rcf-planner[data-vehicle="suv"] .rcf-car-visual svg { width: 101px; transform: scaleY(1.06); }
.rcf-planner[data-vehicle="van"] .rcf-car-visual svg { width: 108px; transform: scaleY(1.12); }

.rcf-result-kicker {
  display: block;
  color: #9ddce8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rcf-result-name {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.rcf-result-desc {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
  line-height: 1.4;
}

.rcf-load-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.rcf-load-track {
  height: 5px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.rcf-load-fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #4ade80);
  transition: width .25s ease, background .25s ease;
}

.rcf-load-row small {
  min-width: 61px;
  color: rgba(255, 255, 255, .8);
  font-size: 9px;
  font-weight: 750;
  text-align: right;
}

.rcf-console {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  gap: 12px;
  padding: 15px;
  background: #fff;
}

.rcf-control {
  min-width: 0;
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  background: #fbfcfd;
  padding: 11px;
}

.rcf-control-label {
  display: block;
  margin-bottom: 8px;
  color: #546274;
  font-size: 10px;
  font-weight: 800;
}

.rcf-stepper {
  display: grid;
  grid-template-columns: 32px minmax(38px, 1fr) 32px;
  align-items: center;
  gap: 5px;
}

.rcf-stepper button {
  width: 32px;
  height: 32px;
  border: 1px solid #d5dfe7;
  border-radius: 9px;
  background: #fff;
  color: var(--rc-deep);
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
}

.rcf-stepper button:disabled { cursor: default; opacity: .36; }
.rcf-stepper output {
  color: var(--rc-ink);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.rcf-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.rcf-route {
  min-width: 0;
  min-height: 32px;
  border: 1px solid #d5dfe7;
  border-radius: 9px;
  background: #fff;
  padding: 5px;
  color: #526173;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.rcf-route[aria-pressed="true"] {
  border-color: var(--rc-teal);
  background: var(--rc-sky);
  color: var(--rc-deep);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, .15);
}

.rcf-disclaimer {
  margin: 0;
  padding: 0 16px 14px;
  color: #788697;
  font-size: 9px;
  line-height: 1.5;
}

/* The live discovery block now follows the same five-card contract as color/optician. */
#find.category-vendor-explorer {
  width: 100%;
  max-width: 1440px;
  padding-top: 20px;
  background: #fff;
}

#find .category-vendor-intro { margin-bottom: 18px; }
#find .category-map-shell { background: var(--rc-sky); }
#find .category-vendor-eyebrow,
#find .category-map-count em { color: var(--rc-teal); }
#find .pc-studio-fx-price {
  display: block;
  margin-top: 1px;
  color: var(--rc-teal);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
#find .pc-studio-name {
  overflow-wrap: anywhere;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#find .live-mapfilter {
  display: grid;
  grid-template-columns: minmax(390px, 1.35fr) minmax(230px, .85fr) auto;
  gap: 9px;
  align-items: start;
  margin-top: 22px;
}

.rcf-pickup-locator {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  min-width: 0;
}

.rcf-pickup-locator input,
#find .live-search {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--rc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rc-ink);
  font-size: 12px;
}

.rcf-pickup-locator input {
  padding: 0 14px;
  outline: 0;
}

.rcf-pickup-locator input:focus {
  border-color: var(--rc-teal);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .1);
}

.rcf-pickup-locator button {
  min-width: 112px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--rc-teal);
  padding: 0 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.rcf-pickup-locator button:disabled { cursor: wait; opacity: .64; }
.rcf-pickup-locator p {
  position: absolute;
  left: 12px;
  top: calc(100% + 4px);
  z-index: 7;
  max-width: calc(100% - 24px);
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 23, 40, .1);
  padding: 6px 8px;
  color: #526173;
  font-size: 9px;
  font-weight: 700;
}
.rcf-pickup-locator p[hidden] { display: none; }
.rcf-pickup-locator p.is-error { color: #b42318; }
.rcf-pickup-locator p.is-success { color: #146c43; }

#find .mf-chip { height: 42px; }
#find .live-mapwrap {
  display: grid;
  grid-template-columns: minmax(410px, .92fr) minmax(620px, 1.08fr);
  gap: 22px;
  align-items: start;
  margin-top: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#find .live-map {
  position: sticky;
  top: 92px;
  min-height: 620px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 16px;
  background: var(--rc-sky);
  box-shadow: 0 10px 28px rgba(24, 39, 75, .06);
}

#find .live-mapbadge {
  border-color: var(--rc-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  color: var(--rc-ink);
}

#find .live-mapbadge em { color: var(--rc-teal); font-style: normal; }
#find .live-list {
  min-width: 0;
  border: 0;
  background: transparent;
}

#find .live-listhead {
  min-height: 32px;
  align-items: center;
  margin-bottom: 8px;
  border: 0;
  padding: 0 2px;
  color: #536176;
}

#find .live-list-sort { min-height: 28px; color: var(--rc-ink); }
#find .pc-map-pagination { margin-top: 10px; }

@media (max-width: 1180px) {
  .rcf-container { width: min(100% - 28px, 1000px); }
  .rcf-layout { grid-template-columns: minmax(280px, .82fr) minmax(520px, 1.18fr); gap: 22px; }
  .rcf-copy { padding-left: 6px; }
  .rcf-copy h1 { font-size: 42px; }
  .rcf-scene { min-height: 305px; }
  #find.category-vendor-explorer { width: min(100% - 28px, 1000px); padding-inline: 0; }
  #find .live-mapwrap { grid-template-columns: 1fr; }
  #find .live-map { position: relative; top: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .rentcar-fit-hero { padding: 24px 0 22px; }
  .rcf-layout { grid-template-columns: 1fr; }
  .rcf-copy { max-width: 720px; margin-inline: auto; padding: 8px 10px 2px; text-align: center; }
  .rcf-copy h1, .rcf-lead { margin-inline: auto; }
  .rcf-trust { justify-content: center; }
  .rcf-planner { width: min(100%, 760px); margin-inline: auto; }
}

@media (max-width: 760px) {
  .rentcar-fit-hero { padding: 20px 0 16px; }
  .rcf-container { width: calc(100% - 24px); }
  .rcf-layout { gap: 17px; }
  .rcf-copy { display: flex; flex-direction: column; align-items: center; }
  .rcf-eyebrow { margin-bottom: 9px; font-size: 10px; }
  .rcf-copy h1 { max-width: 360px; font-size: 36px; line-height: 1.06; }
  .rcf-lead { margin-top: 13px; font-size: 12px; line-height: 1.62; }
  .rcf-primary { min-height: 46px; margin-top: 17px; padding: 11px 18px; font-size: 12px; }
  .rcf-trust { gap: 6px; margin-top: 14px; }
  .rcf-trust span { padding: 6px 8px; font-size: 9px; }
  .rcf-planner { border-radius: 18px; }
  .rcf-scene { min-height: 285px; }
  .rcf-scene::before {
    background:
      linear-gradient(180deg, rgba(8, 24, 38, .09), rgba(8, 24, 38, .68)),
      url("/static/generated/category-pages/rentcar/hero-mobile.c695ec1555d00ccf.992ebae1cd3e29ec.q82.webp?v=992ebae1cd3e29ec") center 63% / cover no-repeat;
  }
  .rcf-scene-top { left: 12px; right: 12px; top: 12px; }
  .rcf-live-label, .rcf-route-label { padding: 6px 9px; font-size: 8px; }
  .rcf-car-card { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 11px; }
  .rcf-car-row { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .rcf-car-visual { min-height: 60px; }
  .rcf-car-visual svg { width: 78px; }
  .rcf-result-name { font-size: 18px; }
  .rcf-console { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .rcf-control { padding: 9px; }
  .rcf-control--route { grid-column: 1 / -1; }
  .rcf-disclaimer { padding: 0 11px 11px; font-size: 8px; }
  #find.category-vendor-explorer { padding-top: 14px; }
  #find .title {
    max-width: 355px;
    font-size: clamp(29px, 7.8vw, 32px);
    line-height: 1.1;
    letter-spacing: -.045em;
  }
  #find .live-mapfilter { grid-template-columns: 1fr auto; gap: 8px; }
  #find .rcf-pickup-locator { grid-column: 1 / -1; }
  #find .live-search { min-width: 0; }
  #find .live-mapwrap { gap: 14px; }
  #find .live-map { aspect-ratio: 16 / 9; border-radius: 15px; }
  #find .live-mapbadge { left: 10px; top: 10px; padding: 8px 10px; font-size: 10px; }
}

@media (max-width: 380px) {
  .rcf-copy h1 { font-size: 32px; }
  .rcf-scene { min-height: 270px; }
  .rcf-car-row { grid-template-columns: 80px minmax(0, 1fr); }
  .rcf-car-visual svg { width: 70px; }
  .rcf-route { font-size: 8px; }
  .rcf-pickup-locator { grid-template-columns: 1fr; }
  .rcf-pickup-locator button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rcf-car-visual svg, .rcf-load-fill { transition: none; }
}
