/* Search controls share the light FAZICARS palette and keyboard/touch states. */
body.fazicars-reservation .select-custom::after,
body.fazicars-reservation #car-list-results-top .select-custom::after {
  content: ""; display: block; position: absolute; right: 18px; top: 50%;
  width: 7px; height: 7px; margin: 0; border: solid #48483f;
  border-width: 0 1.8px 1.8px 0; transform: translateY(-75%) rotate(45deg);
  color: transparent; font-size: 0; pointer-events: none; z-index: 1;
}
body.fazicars-reservation .select-custom.fc-select-enhanced::after,
body.fazicars-reservation #car-list-results-top .select-custom.fc-select-enhanced::after,
body.fazicars-reservation #car-list-results-top :is(.input-calendar,.input-datepicker)::after { display: none; }
body.fazicars-reservation #car-list-results-top > div {
  padding: 30px !important; border: 1px solid #dce1e5; border-bottom-color: #cfd6dc; border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
body.fazicars-reservation #car-list-results-top .fc-search-header { align-items: center; gap: 24px; padding-bottom: 28px; }
body.fazicars-reservation #car-list-results-top .fc-search-header > .fc-search-intro { min-width: 0; width: 100%; text-align: left; text-transform: none; }
body.fazicars-reservation #car-list-results-top h1 { margin: 0; color: #151515; font-size: clamp(26px,2vw,30px); font-weight: 700; letter-spacing: -.5px; line-height: 1.25; }
body.fazicars-reservation #car-list-results-top h1 mark {
  position: relative; isolation: isolate; display: inline-block;
  padding: 0 .13em .06em; border-radius: 5px; background: var(--fc-yellow); color: #151515; line-height: 1.15;
  /* Clip the sheen without changing the inline baseline, as overflow:hidden would. */
  clip-path: inset(0 round 5px);
}
body.fazicars-reservation #car-list-results-top h1 mark::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 68%; pointer-events: none;
  background: linear-gradient(110deg, transparent 12%, #fff3 35%, #ffffff85 50%, #fff3 65%, transparent 88%);
  transform: translateX(-150%); opacity: 0;
  animation: fc-heading-sheen 6s ease-in-out infinite;
}
@keyframes fc-heading-sheen {
  0%, 8% { transform: translateX(-150%); opacity: 0; }
  14% { opacity: 1; }
  48% { transform: translateX(160%); opacity: 1; }
  54%, 100% { transform: translateX(160%); opacity: 0; }
}
body.fazicars-reservation:has(dialog[open]) #car-list-results-top h1 mark::before { animation-play-state: paused; }
body.fazicars-reservation #car-list-results-top .fc-search-intro p { margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.6; color: #5b626a; text-transform: none; }
body.fazicars-reservation #car-list-results-top .fc-sort { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; }
body.fazicars-reservation #car-list-results-top .fc-sort label { flex: 0 0 auto; color: #6c685d; font-size: 11px; }
body.fazicars-reservation #car-list-results-top .fc-sort .select-custom { width: 220px !important; }
body.fazicars-reservation #car-list-results-top .fc-sort :is(select,.fc-select-trigger) { width: 100%; min-height: 44px; padding: 11px 38px 11px 14px !important; font-size: 12px !important; border-radius: 10px !important; }
body.fazicars-reservation #car-list-results-top .fc-term-groups { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px; }
body.fazicars-reservation #car-list-results-top .fc-term-group {
  padding: 22px; border: 1px solid #ece2c6; border-bottom-color: #e4d8b5; border-radius: 14px;
  background: linear-gradient(145deg, #fffef9, #fffaf0);
  box-shadow: none;
}
body.fazicars-reservation #car-list-results-top .fc-term-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 17px; line-height: 1.4; font-weight: 600; color: #24231d; }
.fazicars-reservation .fc-term-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: #fff0aa; color: #494124; }
.fazicars-reservation .fc-term-badge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.fazicars-reservation #car-list-results-top .fc-term-fields { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 16px 14px; }
body.fazicars-reservation #car-list-results-top .fc-place-field { grid-column: 1 / -1; }
body.fazicars-reservation #car-list-results-top .fc-field-label { position: static; display: block; width: auto; height: auto; margin: 0 0 7px !important; overflow: visible; clip-path: none; white-space: normal; font-size: 11px; font-weight: 500; color: #5b646d; }
body.fazicars-reservation #car-list-results-top :is(select,input[type=text],.fc-picker-trigger,.fc-select-trigger) {
  min-width: 0; width: 100%; min-height: 54px; padding: 14px 42px 14px 14px;
  border: 1px solid #d4dae0; border-radius: 10px !important; background: #fff !important;
  color: #252a30; font-size: 15px; font-weight: 500; line-height: 1.4;
  box-shadow: 0 2px 4px #15151503; transition: border-color .18s ease, box-shadow .18s ease;
}
body.fazicars-reservation #car-list-results-top :is(select,.fc-picker-trigger,.fc-select-trigger):hover { border-color: #9ca6b0; }
body.fazicars-reservation #car-list-results-top :is(select,input[type=text],.fc-picker-trigger,.fc-select-trigger):focus-visible { outline: 2px solid #c8a400; outline-offset: 3px; }
body.fazicars-reservation #car-list-results-top .fc-select-trigger[aria-expanded=true] { border-color: #9ca6b0; }
body.fazicars-reservation #car-list-results-top .with-icon > :is(select,.fc-picker-trigger,.fc-select-trigger) { padding-left: 44px !important; }
body.fazicars-reservation #car-list-results-top .with-icon > svg { left: 15px; width: 18px; height: 18px; color: #606a74; pointer-events: none; }
body.fazicars-reservation #car-list-results-top .fc-select-trigger { position: relative; display: flex; align-items: center; text-align: left; cursor: pointer; }
.fazicars-reservation .fc-select-value { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fazicars-reservation .fc-select-chevron { position: absolute; right: 14px; top: 50%; display: block; width: 18px; height: 18px; fill: none; stroke: #48483f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); transition: transform .18s ease; pointer-events: none; }
.fazicars-reservation .fc-select-trigger[aria-expanded=true] .fc-select-chevron { transform: translateY(-50%) rotate(180deg); }
body.fazicars-reservation #car-list-results-top .fc-picker-trigger { position: relative; }
body.fazicars-reservation #car-list-results-top .fc-picker-trigger::after { content: ""; position: absolute; right: 19px; top: 50%; width: 7px; height: 7px; border: solid #48483f; border-width: 0 1.8px 1.8px 0; transform: translateY(-75%) rotate(45deg); pointer-events: none; }
body.fazicars-reservation #car-list-results-top .fc-search-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 0; padding: 0; }
body.fazicars-reservation #car-list-results-top .fc-search-footer .fc-available-toggle { position: relative; display: flex !important; align-items: center; gap: 12px; min-height: 48px; padding: 0; margin: 0; width: auto; text-align: left; }
body.fazicars-reservation #car-list-results-top .fc-available-toggle input {
  appearance: none; -webkit-appearance: none; position: relative; display: inline-block !important; flex: 0 0 46px;
  width: 46px; min-width: 46px; height: 26px; min-height: 26px; margin: 0; padding: 0;
  border: 1px solid #cdd3d9; border-radius: 20px !important; background: #e5e9ed !important; opacity: 1; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
body.fazicars-reservation #car-list-results-top .fc-available-toggle input::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #312b2333; transition: transform .2s ease, background .2s ease; }
body.fazicars-reservation #car-list-results-top .fc-available-toggle input:checked { border-color: #edc000; background: var(--fc-yellow) !important; }
body.fazicars-reservation #car-list-results-top .fc-available-toggle input:checked::before { transform: translateX(20px); background: #27251a; box-shadow: none; }
body.fazicars-reservation #car-list-results-top .fc-available-toggle > span { display: block; margin: 0; padding: 0; color: #29271f; }
body.fazicars-reservation #car-list-results-top .fc-available-toggle > span::after { display: none !important; }
body.fazicars-reservation #car-list-results-top .fc-available-toggle strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; }
body.fazicars-reservation #car-list-results-top .fc-available-toggle small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; line-height: 1.45; color: #7b7565; }
body.fazicars-reservation #car-list-results-top #change-dates { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; width: auto !important; min-width: 220px; min-height: 54px; padding: 14px 22px; border-radius: 10px; font-size: 14px !important; box-shadow: inset 0 1px 0 #ffffff66, 0 2px 1px #ac89001f, 0 7px 14px -8px #9274004d; }
body.fazicars-reservation #car-list-results-top #change-dates svg { flex: 0 0 20px; }
/* One shared chooser: an anchored list on desktop and a bottom sheet on phones. */
.fazicars-reservation .fc-select-dialog { position: fixed; inset: auto; left: var(--fc-select-left,10px); top: var(--fc-select-top,100px); width: var(--fc-select-width,360px); max-width: calc(100vw - 20px); max-height: var(--fc-select-max-height,420px); margin: 0; padding: 8px; overflow: auto; border: 1px solid #e5dfcd; border-radius: 14px; background: #fff; color: #25231d; box-shadow: 0 16px 56px #221d1526; }
.fazicars-reservation .fc-select-dialog::backdrop { background: #201b100c; }
.fazicars-reservation .fc-select-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 8px 12px; }
.fazicars-reservation .fc-select-header h2 { margin: 0; padding: 0; color: #625b47; font-size: 13px; font-weight: 600; line-height: 1.4; text-transform: none; }
.fazicars-reservation .fc-select-close { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 8px; background: #fff8dc; color: #504932; }
.fazicars-reservation .fc-select-close-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.fazicars-reservation .fc-select-options { display: grid; gap: 4px; max-height: calc(var(--fc-select-max-height,420px) - 86px); margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.fazicars-reservation .fc-select-options > li { margin: 0; padding: 0; list-style: none; }
.fazicars-reservation .fc-select-option { position: relative; display: block; width: 100%; min-height: 48px; margin: 0; padding: 13px 40px 13px 14px; border: 1px solid transparent; border-radius: 9px; background: #fff; color: #343027; font-size: 14px; line-height: 1.5; font-weight: 500; text-align: left; overflow-wrap: anywhere; }
.fazicars-reservation .fc-select-option:hover { background: #fffdf2; }
.fazicars-reservation .fc-select-option.is-selected { border-color: #f2d463; background: #fff6c9; color: #342d15; }
.fazicars-reservation .fc-select-option.is-selected::after { content: ""; position: absolute; top: 50%; right: 18px; width: 6px; height: 11px; border: solid #4d4115; border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }
.fazicars-reservation .fc-select-option:focus-visible { outline: 2px solid #ba9a1a; outline-offset: -3px; }
.fazicars-reservation .fc-select-option:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 1100px) {
  body.fazicars-reservation #car-list-results-top > div { padding: 24px !important; }
  body.fazicars-reservation #car-list-results-top .fc-search-header { flex-wrap: wrap; gap: 18px; }
  body.fazicars-reservation #car-list-results-top .fc-term-group { padding: 18px; }
}
@media (max-width: 800px) {
  body.fazicars-reservation #car-list-results-top .fc-term-groups { grid-template-columns: minmax(0,1fr) !important; gap: 16px; }
}
@media (max-width: 640px) {
  body.fazicars-reservation #car-list-results-top > div { padding: 20px 16px !important; border-radius: 16px; }
  body.fazicars-reservation #car-list-results-top h1 { max-width: 100%; font-size: 24px; line-height: 1.28; letter-spacing: -.4px; }
  body.fazicars-reservation #car-list-results-top h1 mark { margin-top: 2px; }
  body.fazicars-reservation #car-list-results-top .fc-search-intro p { font-size: 12px; margin-top: 12px; }
  body.fazicars-reservation #car-list-results-top .fc-search-header { padding-bottom: 20px; gap: 16px; }
  body.fazicars-reservation #car-list-results-top .fc-sort { flex: 1 1 100%; justify-content: space-between; }
  body.fazicars-reservation #car-list-results-top .fc-sort .select-custom { width: 220px !important; max-width: calc(100% - 50px); }
  body.fazicars-reservation #car-list-results-top .fc-term-group { padding: 16px 14px; border-radius: 12px; }
  body.fazicars-reservation #car-list-results-top .fc-term-group h2 { margin-bottom: 16px; font-size: 16px; }
  body.fazicars-reservation #car-list-results-top .fc-term-fields { gap: 14px 10px; }
  body.fazicars-reservation #car-list-results-top :is(.fc-picker-trigger,.fc-select-trigger) { min-height: 52px; padding-right: 32px; font-size: 14px !important; }
  body.fazicars-reservation #car-list-results-top .with-icon > :is(.fc-picker-trigger,.fc-select-trigger,select) { padding-left: 36px !important; }
  body.fazicars-reservation #car-list-results-top .with-icon > svg { left: 11px; width: 16px; height: 16px; }
  body.fazicars-reservation #car-list-results-top .fc-picker-trigger::after { right: 14px; width: 6px; height: 6px; }
  body.fazicars-reservation #car-list-results-top .fc-search-footer { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 20px; }
  body.fazicars-reservation #car-list-results-top #change-dates { width: 100% !important; min-width: 0; }
  body.fazicars-reservation #car-list-results-top .fc-available-toggle strong { font-size: 12px; }
  body.fazicars-reservation #car-list-results-top .fc-available-toggle small { font-size: 10px; }
  .fazicars-reservation .fc-select-dialog { left: 10px; right: 10px; top: auto; bottom: max(10px,env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: 75dvh; padding: 14px; border-radius: 20px; box-shadow: 0 -10px 60px #221d1533; }
  .fazicars-reservation .fc-select-dialog::backdrop { background: #201b1040; }
  .fazicars-reservation .fc-select-header { padding: 0 0 14px; }
  .fazicars-reservation .fc-select-header h2 { color: #29271f; font-size: 18px; }
  .fazicars-reservation .fc-select-close { flex-basis: 44px; width: 44px; height: 44px; }
  .fazicars-reservation .fc-select-option { min-height: 54px; font-size: 15px; }
  .fazicars-reservation .fc-select-options { max-height: calc(75dvh - 100px); }
}
@media (max-width: 375px) {
  body.fazicars-reservation #car-list-results-top h1 { font-size: 22px; }
  body.fazicars-reservation #car-list-results-top .fc-field:not(.fc-place-field) .with-icon > svg { display: none; }
  body.fazicars-reservation #car-list-results-top .with-icon > .fc-picker-trigger { padding-left: 12px !important; padding-right: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  body.fazicars-reservation #car-list-results-top h1 mark::before { animation: none; opacity: 0; }
  .fazicars-reservation .fc-select-chevron, body.fazicars-reservation #car-list-results-top :is(select,input,.fc-picker-trigger,.fc-select-trigger), body.fazicars-reservation #car-list-results-top .fc-available-toggle input::before { transition: none; }
}
