/* Luk 24: the one picker (picker.js). Tokens come from site.css. Range: ink ends, pale-yellow band between.
   Why ink for the ends: white on #15161C reads at 17:1 and matches the black-and-white system; yellow stays the one
   "main button" colour (Confirmați) and tints the band, so the range is the firm's colour without a second solid. */
:root { --pkr-tint: #FFEFB8; --pkr-ring: 0 0 0 2px #fff, 0 0 0 5px var(--ink); }

/* native controls stay in the page (values, validation, no-JS), but nobody touches them */
.pkr-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; inset: auto !important; overflow: hidden; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.pkr-gone { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap; }
.pkr-host { position: relative; min-width: 0; }
.pkr-host:has(.pkr-pill) { container-type: inline-size; }
.pkr-host::after { display: none !important; }
.pkr-host:has(.pkr-pill):focus-within, .pkr-host:has(.pkr-loc):focus-within { box-shadow: none; }
html.pkr-lock, html.pkr-lock body { overflow: hidden; }

/* ---------- the date and time pill: two boxes, one divider ---------- */
.pkr-pill { display: flex; align-items: stretch; min-width: 0; margin-top: 3px; border-radius: 12px; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); font-weight: 400; font-size: 13px; color: var(--ink); }
.pkr-pill.bad { box-shadow: inset 0 0 0 2px #C2410C; }
.pkr-div { flex: none; width: 1px; margin: 8px 0; background: #CDD0DE; }
.pkr-seg, .pkr-loc { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 10px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; font-weight: 400; color: var(--ink); white-space: nowrap; min-width: 0; border-radius: 12px; }
.pkr-seg:hover, .pkr-loc:hover { background: rgba(21,22,28,.06); }
.pkr-seg:active, .pkr-loc:active { background: rgba(21,22,28,.1); }
.pkr-seg:focus-visible, .pkr-loc:focus-visible, .pkr-b:focus-visible, .pkr-nav:focus-visible, .pkr-back:focus-visible, .pkr-ok:focus-visible, .pkr-t:focus-visible, .pkr-opt:focus-visible, .pkr-c button:focus-visible { outline: 0; box-shadow: var(--pkr-ring); position: relative; z-index: 1; }
.pkr-sd { flex: 1 1 auto; min-width: 0; }
.pkr-sd > span { overflow: hidden; text-overflow: ellipsis; }
.pkr-st { flex: 0 0 auto; }
.pkr-st span { font-variant-numeric: tabular-nums; }
.pkr-pill.out .pkr-st { color: var(--gold); }
.pkr-nodt .pkr-div { display: none; }
.pkr-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pkr-seg .pkr-i { color: var(--muted); }
.pkr-pill.out .pkr-st .pkr-i { color: var(--gold); }
.pkr-solo { background: var(--band); box-shadow: inset 0 0 0 1px var(--line); width: 100%; justify-content: flex-start; }
.pkr-solo .pkr-i:last-child { margin-left: auto; }

/* the place: a trigger with a pin, then an on-brand list */
.pkr-loc { width: 100%; margin-top: 1px; padding-left: 0; min-height: 34px; background: transparent; border-radius: 10px; font-size: 13px; }
.pkr-loc .pkr-i:first-child { color: var(--ink); }
.pkr-loc .pkr-lv { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.pkr-loc .pkr-i:last-child { width: 16px; height: 16px; color: var(--muted); }
.pkr-host:has(.pkr-loc) { cursor: pointer; }

/* ---------- popover and sheet ---------- */
.pkr-pop { position: absolute; z-index: 90; top: 0; left: 0; background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(21,22,28,.28); font-size: 15px; line-height: 1.3; max-width: calc(100vw - 16px); }
.pkr-pop[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .pkr-pop:not(.pkr-sheet) { animation: pkrin .14s var(--ease); } .pkr-sheet { animation: pkrup .2s var(--ease); } }
@keyframes pkrin { from { opacity: 0; transform: translateY(-4px); } }
@keyframes pkrup { from { opacity: 0; transform: translateY(14px); } }
.m-range { width: 668px; padding: 18px 22px 18px; }
.m-time { padding: 12px; width: 372px; }
.m-loc { padding: 8px; }
.m-loc .pkr-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; background: transparent; border-radius: 14px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.m-loc .pkr-opt + .pkr-opt { margin-top: 2px; }
.m-loc .pkr-opt:hover { background: var(--band); }
.m-loc .pkr-opt[aria-selected="true"] { background: var(--band); }
.m-loc .pkr-opt .pkr-i:first-child { width: 22px; height: 22px; }
.pkr-ot { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pkr-ot b { font-weight: 800; font-size: 15.5px; }
.pkr-ot small { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.m-loc .pkr-opt .pkr-i:last-child { width: 20px; height: 20px; }

/* header: the two rows, each a date box and a time box; the one being chosen has the ink ring */
.pkr-bar { display: none; }
.pkr-back { display: none; }
.pkr-hd { margin-bottom: 14px; }
.pkr-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pkr-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pkr-rk { font-size: 12px; font-weight: 700; color: var(--muted); width: 46px; flex: none; }
.pkr-b { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 12px; background: var(--band); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; white-space: nowrap; min-width: 0; }
.pkr-b span { overflow: hidden; text-overflow: ellipsis; }
.pkr-b .pkr-i { width: 16px; height: 16px; color: var(--muted); }
.pkr-b:hover:not(:disabled) { background: #ECEDF4; }
.pkr-b.on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.pkr-b:disabled { opacity: .45; cursor: default; }
.pkr-bt.out { color: var(--gold); }
.pkr-bt.out .pkr-i { color: var(--gold); }

/* calendar */
.pkr-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pkr-mh { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.pkr-mt { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.pkr-nav { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
.pkr-nav:hover:not(:disabled) { background: var(--band); }
.pkr-nav:disabled { opacity: .25; cursor: default; }
.pkr-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pkr-grid th { height: 30px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 0; }
.pkr-grid td { padding: 0; height: 42px; text-align: center; }
.pkr-c button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; padding: 0; position: relative; font-variant-numeric: tabular-nums; }
.pkr-c button:hover { background: var(--band); }
.pkr-c.today button::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--y-deep); }
.pkr-c.off button { opacity: .32; cursor: not-allowed; text-decoration: none; }
.pkr-c.off button:hover { background: transparent; }
.pkr-c.off.today button::after { opacity: .6; }
/* the range: solid ends, the days between one pale band (the tint sits on the cell so it has no gaps) */
.pkr-c.in { background: var(--pkr-tint); }
.pkr-c.in button:hover { background: rgba(21,22,28,.08); }
.pkr-c.in:first-child, .pkr-c.rs:first-child { border-radius: 12px 0 0 12px; }
.pkr-c.in:last-child, .pkr-c.re:last-child { border-radius: 0 12px 12px 0; }
.pkr-c.rs { background: linear-gradient(90deg, transparent 50%, var(--pkr-tint) 50%); }
.pkr-c.re { background: linear-gradient(90deg, var(--pkr-tint) 50%, transparent 50%); }
.pkr-c.rs.re, .pkr-c.re:first-child, .pkr-c.rs:last-child { background: none; }
.pkr-c.pkr-s button, .pkr-c.pkr-e button, .pkr-c.pe button { background: var(--ink); color: #fff; font-weight: 800; }
.pkr-c.pkr-s button:hover, .pkr-c.pkr-e button:hover { background: var(--ink-2); }
.pkr-c.pe button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pkr-c.pkr-s.today button::after, .pkr-c.pkr-e.today button::after { background: var(--y); }
.pkr-c.pv { background: var(--pkr-tint); }

/* time list: 30-minute slots, in hours first; outside the hours they are choosable and say what they cost */
.pkr-th { margin: 0 0 8px; font-weight: 800; font-size: 15px; }
.m-range .pkr-tscroll { max-height: 322px; overflow-y: auto; position: relative; padding: 4px 4px 4px 2px; margin: 0 -4px; }
.m-time .pkr-tscroll { max-height: 320px; overflow-y: auto; position: relative; padding: 4px; }
.pkr-tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pkr-tg { grid-column: 1 / -1; margin: 10px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pkr-tg:first-child { margin-top: 0; }
.pkr-t { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 4px 6px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.pkr-t small { font-size: 11px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.pkr-t:hover { background: var(--band); }
.pkr-t[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.pkr-t[aria-selected="true"] small { color: var(--y); }
.m-time .pkr-tgrid { grid-template-columns: repeat(3, 1fr); }

/* footer */
.pkr-ft { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pkr-sum { margin: 0; color: var(--muted); font-size: 14px; }
.pkr-sum b { color: var(--ink); font-size: 16px; font-weight: 800; }
.pkr-ok { border: 0; cursor: pointer; background: var(--y); color: var(--ink); font: inherit; font-weight: 800; font-size: 16px; padding: 13px 28px; border-radius: 999px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); transition: background .2s, transform .12s; }
.pkr-ok:hover:not(:disabled) { background: #FFC21A; }
.pkr-ok:active:not(:disabled) { transform: scale(.97); background: var(--y-deep); }
.pkr-ok:disabled { background: var(--band); color: #9A9DB0; box-shadow: none; cursor: not-allowed; }

/* ---------- phone: a full-screen sheet, one month, from/to pinned on top, a big button at the bottom ---------- */
@media (max-width: 720px) {
  .pkr-pop.pkr-sheet { position: fixed; inset: 0; width: 100%; max-width: none; border-radius: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; z-index: 200; }
  .pkr-sheet .pkr-bar { display: flex; align-items: center; gap: 4px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
  .pkr-sheet .pkr-back { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); }
  .pkr-sheet .pkr-back:hover { background: var(--band); }
  .pkr-sheet .pkr-title { margin: 0; font-weight: 800; font-size: 17px; }
  .pkr-sheet .pkr-hd { margin: 0; flex: none; background: #fff; border-bottom: 1px solid var(--line); }
  .pkr-sheet .pkr-rows { grid-template-columns: 1fr; gap: 6px; padding: 10px 14px 12px; }
  .pkr-sheet .pkr-rk { width: 50px; font-size: 13px; }
  .pkr-sheet .pkr-b { min-height: 44px; flex: 1 1 0; font-size: 15px; }
  .pkr-sheet .pkr-bt { flex: 0 0 112px; }
  .pkr-sheet .pkr-body { flex: 1; overflow-y: auto; padding: 8px 14px 16px; -webkit-overflow-scrolling: touch; }
  .pkr-sheet .pkr-months { grid-template-columns: 1fr; }
  .pkr-sheet .pkr-grid td { height: 48px; }
  .pkr-sheet .pkr-c button { width: 100%; max-width: 48px; height: 46px; font-size: 16px; }
  .pkr-sheet .pkr-nav { width: 44px; height: 44px; }
  .pkr-sheet .pkr-tscroll { max-height: none !important; overflow: visible !important; }
  .pkr-sheet .pkr-tgrid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pkr-sheet .pkr-t { min-height: 48px; font-size: 16px; }
  .pkr-sheet .pkr-ft { flex: none; margin: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(21,22,28,.06); }
  .pkr-sheet .pkr-ok { flex: 1; min-height: 52px; font-size: 17px; }
  .pkr-sheet .pkr-sum { flex: none; }
  .m-time { width: min(372px, calc(100vw - 16px)); }
  .pkr-seg, .pkr-loc { min-height: 44px; }
  /* the time list's heading stays pinned under the from/to rows while the list scrolls (at 320 it scrolled out of sight) */
  .pkr-sheet .pkr-th { position: sticky; top: -8px; z-index: 1; margin: -8px -14px 8px; padding: 8px 14px 6px; background: #fff; }
}
@media (max-width: 345px) {
  /* 320px: "23 dec 2026" was cut to "23 dec 2…" */
  .pkr-sheet .pkr-rk { width: 46px; font-size: 12.5px; white-space: nowrap; }
  .pkr-sheet .pkr-b { padding: 6px 7px; gap: 4px; font-size: 14px; }
  .pkr-sheet .pkr-bt { flex: 0 0 90px; }
  .pkr-sheet .pkr-rows { padding: 10px 10px 12px; }
}
@media (min-width: 721px) {
  .pkr-hd .pkr-bar { display: none; }
  .m-range .pkr-back { display: none; }
}
/* a desktop popover still gets a close button for the keyboard-less */
@media (min-width: 721px) { .m-range .pkr-bar { display: none; } }

/* fit the pill into every host */
.f-when .pkr-pill, .fl-qf .pkr-pill, .cp-rf .pkr-pill, .f .pkr-pill { width: 100%; }
@container (max-width: 214px) { .pkr-host:not(.cp-rf) .pkr-pill .pkr-y { display: none; } }
@media (max-width: 480px) {
  .pkr-pill { font-size: 13px; }
  .f-when .pkr-pill, .fl-qf .pkr-pill, label.f .pkr-pill { width: calc(100% + 14px); margin-inline: -7px; }
  .pkr-pill .pkr-seg { padding: 4px 5px; gap: 3px; font-size: 13px; }
  .pkr-pill .pkr-seg .pkr-i { width: 14px; height: 14px; }
  .pkr-pill .pkr-div { margin: 9px 0; }
}
/* 320px: the date and time pills were cut ("21…", "2…"); the icons go, the text keeps the room */
@media (max-width: 345px) {
  .pkr-pill .pkr-seg .pkr-i { display: none; }
  .pkr-pill .pkr-seg { justify-content: center; padding-inline: 3px; }
}

/* booking step 1 keeps its inline calendar (it draws the car's busy days) in the same dress as the popover */
.cal-d span { border-radius: 12px; }
.cal-d.in::before, .cal-d.a::before, .cal-d.b::before { background: var(--pkr-tint); }
.cal-d:focus-visible span { outline: 0; box-shadow: var(--pkr-ring); }
.cal-d:disabled { color: var(--ink); opacity: .32; }
.cal-d.today span { box-shadow: none; }
.cal-d.today span::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--y-deep); }
.cal-d.a span::after, .cal-d.b span::after { background: var(--y); }
.cal-d.short span { color: var(--ink); opacity: .32; }
.cal-nav:focus-visible { outline: 0; box-shadow: var(--pkr-ring); }
.tm-sel::after { display: none; }
.tm-sel { min-width: 128px; }
.tm .pkr-solo { min-height: 44px; font-size: 16px; padding: 4px 12px; }

/* the price card on a car page: the pill stacks, date over time, so both stay readable in a half column */
.cp-rf .pkr-pill { flex-direction: column; }
.cp-rf .pkr-pill .pkr-div { width: auto; height: 1px; margin: 0 10px; }
.cp-rf .pkr-pill .pkr-seg { min-height: 36px; }
[data-book] { max-width: 1040px; }

/* the Mașini bar and the Otopeni bar get room for a date with its year */
.fl-q { max-width: 980px; grid-template-columns: 1.15fr 1fr 1fr auto; }
@media (max-width: 720px) { .fl-q { grid-template-columns: 1fr 1fr; } }
