/* Luk 24: the one car card (cards.js). Home, cars page, booking step 2. Colours and radii come from site.css. */
.cc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Victor's reference card (23 Nov): white, no heavy border, a soft shadow, small radius; the photo flush at the top */
.cc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(21,22,28,.06); border-radius: 16px; overflow: hidden; min-width: 0;
  box-shadow: 0 1px 2px rgba(21,22,28,.05), 0 10px 28px rgba(21,22,28,.07);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.cc[hidden] { display: none; }
.cc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(21,22,28,.05), 0 20px 44px rgba(21,22,28,.12); }
.cc:active { transform: translateY(-1px) scale(.995); }
/* the studio panel, as Victor's reference: light-grey wall with a soft gradient, a floor line about two thirds down, the car standing on the floor with a soft shadow under it */
/* every card has the studio photos' shape, so a car without one (two still to come) keeps its row level */
.cc-ph { position: relative; aspect-ratio: 1000 / 455; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 64%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #DFE0E3 0%, #E9EAEC 34%, #F1F1F3 62%, #E7E8EB 68%, #EEEEF0 82%, #F6F6F7 100%); }
.cc-ph::before { content: ""; position: absolute; left: 0; right: 0; top: 67%; height: 1px; background: linear-gradient(90deg, transparent, rgba(21,22,28,.07) 20%, rgba(21,22,28,.07) 80%, transparent); }
.cc-ph::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 17%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(21,22,28,.5), rgba(21,22,28,.18) 62%, transparent); filter: blur(5px); }
.cc-ph img { position: absolute; z-index: 1; left: 7%; top: 7%; width: 86%; height: 73%; object-fit: contain; object-position: 50% 100%; transition: transform .35s var(--ease); }
/* Victor's studio photos (1000x455) fill the panel at their own shape; no drawn floor or shadow over them */
.cc-ph.side { aspect-ratio: 1000 / 455; background: #E8E9EC; }
.cc-ph.side::before, .cc-ph.side::after { display: none; }
.cc-ph.side img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cc:hover .cc-ph.side img { transform: scale(1.03); }
.cc:hover .cc-ph img { transform: translateX(6px); }
.cc-yr { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: 12.5px; font-weight: 800; background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.cc-yr.new { background: var(--ink); color: #fff; border-color: var(--ink); }
.cc-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; container: ccb / inline-size; }
.cc-n { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cc-lnk { text-decoration: none; }
.cc-lnk::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.cc-lnk:focus-visible { outline: 0; }
.cc:has(.cc-lnk:focus-visible) { outline: 3px solid var(--y); outline-offset: 3px; }
.cc-sub { margin: -5px 0 0; font-size: 12.5px; color: var(--muted); text-wrap: balance; }
/* the five chips: grey pills, solid dark icons; persons and the two luggage sizes are numbers only (Victor, 23 Nov) */
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.cc-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border: 0; border-radius: 999px; background: #F0F1F4; font-size: 12.5px; font-weight: 600; color: #24262F; line-height: 1.35; white-space: nowrap; }
.cc-chips .i { width: 15px; height: 15px; color: var(--ink); }
.cc-chips .i-solid { fill: currentColor; stroke: none; }
.cc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* availability: kept from the old cards, compact */
.cc-av { display: grid; gap: 7px; margin-top: 4px; }
.cc-avt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.cc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(30,158,87,.14); flex: none; }
.cc-dot.soon { background: var(--y); box-shadow: 0 0 0 4px rgba(242,178,0,.2); }
.cc-ticks { display: grid; grid-template-columns: repeat(var(--n, 14), 1fr); gap: 3px; }
.cc-ticks i { height: 8px; border-radius: 3px; background: #DDEFE4; }
.cc-ticks i.pick { background: var(--ok); }
.cc-ticks i.busy { background: #E1E2E8; background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(0,0,0,.08) 3px 5px); }
.cc-ticks i.pick.busy { background: #E9C55A; }
.cc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
/* the home card's price, as his reference: "de la 28 €" bold, "(140 lei)" plain, on one line with the button */
.cc-foot:has(.cc-low) { align-items: center; padding-top: 16px; }
.cc-pr.cc-low { font-size: 17px; color: #3D4050; white-space: nowrap; }
.cc-pr.cc-low b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.cc-low .cc-from { font-weight: 800; }
.cc-pr.cc-low .cc-lei { font-size: 17px; font-weight: 500; color: #3D4050; }
.cc-pr { margin: 0; min-width: 0; font-size: 13px; color: var(--muted); line-height: 1.3; }
.cc-pr b { color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.cc-pr small { font-size: 13px; font-weight: 700; }
.cc-from { font-weight: 700; }
.cc-tot { display: block; margin-top: 4px; font-size: 13px; }
.cc-tot b { font-size: 13px; letter-spacing: 0; }
.cc-nw { white-space: nowrap; }
.cc-go { position: relative; z-index: 2; flex: none; text-decoration: none; padding: 11px 18px; font-size: 14.5px; font-weight: 600; border-radius: 10px; }
/* step 2: the card is the choice */
.cc-pick { cursor: pointer; text-align: left; }
/* step 2, the row with the chosen car (two across: the chosen card and the one beside it): the chosen card grows by its details row, the card beside it
   stretches to the same height, and its spare room goes under the button, not between its details and its price. Other rows keep the prices level. */
.cc-pick[aria-checked="true"] .cc-foot,
.cc-pick[aria-checked="true"]:nth-child(odd) + .cc-pick .cc-foot,
.cc-pick:has(+ .cc-pick[aria-checked="true"]:nth-child(even)) .cc-foot { margin-top: 0; }
.cc-pick:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; border-radius: 16px; }
.cc-pick[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.cc-check { position: absolute; top: 12px; right: 12px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #C9CBD6; background: #fff; display: grid; place-items: center; color: transparent; }
.cc-check .i { width: 17px; height: 17px; stroke-width: 3; }
.cc-pick[aria-checked="true"] .cc-check { border-color: var(--ink); background: var(--ink); color: #fff; }
.cc-sel { flex: none; display: inline-flex; align-items: center; padding: 11px 18px; border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 700; font-size: 14.5px; transition: background .2s, color .2s; }
.cc-sel .t-on { display: none; align-items: center; gap: 6px; }
.cc-sel .i { width: 16px; height: 16px; stroke-width: 3; }
.cc-pick:hover .cc-sel { background: var(--ink); color: #fff; }
.cc-pick[aria-checked="true"] .cc-sel { background: var(--ink); color: #fff; }
.cc-pick[aria-checked="true"] .t-off { display: none; }
.cc-pick[aria-checked="true"] .t-on { display: inline-flex; }
.cc-more { display: none; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed #D3D5DF; font-size: 14px; color: #3D4050; }
.cc-pick[aria-checked="true"] .cc-more { display: flex; }
.cc-more > * { text-wrap: balance; }
.cc-more a { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
/* cars page: the 21-day strip with day numbers, in the card */
.cc .fl-days { max-width: none; padding-top: 14px; }
.cc .fl-days i { height: 24px; font-size: 10px; display: grid; place-items: center; }
.cc .fl-days i.m1::before { top: -14px; font-size: 10.5px; }
.cc .fl-brk { top: 10px; bottom: -4px; }
@media (max-width: 1100px) { .cc-grid:not(.two) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  /* phone: no single column of identical cards. Home = a strip you swipe (as 88c9cc3); cars page and step 2 = two across, a compact card */
  .cars.cc-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; gap: 12px; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; }
  .cars.cc-grid::-webkit-scrollbar { display: none; }
  .cars.cc-grid .cc { flex: 0 0 84%; scroll-snap-align: start; }
  /* the home strip on a phone: the five chips stay on one row; the price takes two lines ("de la 78 €", then the lei) beside the button */
  .cars.cc-grid .cc-chips { gap: 4px; }
  .cars.cc-grid .cc-b { padding: 14px 14px 16px; }
  .cars.cc-grid .cc-chips li { padding: 3px 6px 3px 5px; gap: 3px; font-size: 11.5px; }
  .cars.cc-grid .cc-chips .i { width: 13px; height: 13px; }
  .cars.cc-grid .cc-pr.cc-low { white-space: normal; line-height: 1.25; }
  .cars.cc-grid .cc-pr.cc-low b { display: block; white-space: nowrap; font-size: 19px; }
  .cars.cc-grid .cc-pr.cc-low .cc-lei { font-size: 15px; white-space: nowrap; }
  .cars.cc-grid .cc-go { padding: 11px 14px; font-size: 14px; }
  .cc-b { padding: 16px 18px 18px; }
  .cc .fl-days { display: grid; }
  .cc .fl-days i { font-size: 0; height: 12px; }
  .cc .fl-days i.m1::before { font-size: 10.5px; }
  .cc-grid:not(.cars) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-grid:not(.cars) .cc-check { top: 8px; right: 8px; width: 24px; height: 24px; }
  .cc-grid:not(.cars) .cc-check .i { width: 14px; height: 14px; }
  .cc-grid:not(.cars) .cc-b { padding: 10px 10px 12px; gap: 6px; }
  .cc-grid:not(.cars) .cc-n { font-size: 15.5px; }
  .cc-grid:not(.cars) .cc-sub { margin: -2px 0 0; font-size: 12px; }
  .cc-grid:not(.cars) .cc-chips { gap: 4px; margin: 0; }
  .cc-grid:not(.cars) .cc-chips li { padding: 3px 6px 3px 5px; gap: 3px; font-size: 11.5px; }
  .cc-grid:not(.cars) .cc-chips .i { width: 13px; height: 13px; }
  .cc-grid:not(.cars) .cc-av { margin-top: 0; gap: 0; }
  .cc-grid:not(.cars) .cc-avt { font-size: 12px; font-weight: 700; align-items: flex-start; line-height: 1.3; }
  .cc-grid:not(.cars) .cc-dot { width: 8px; height: 8px; margin-top: 4px; box-shadow: 0 0 0 3px rgba(30,158,87,.14); }
  .cc-grid:not(.cars) .cc-ticks, .cc-grid:not(.cars) .fl-days { display: none; }
  .cc-grid:not(.cars) .cc-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .cc-grid:not(.cars) .cc-pr, .cc-grid:not(.cars) .cc-pr small, .cc-grid:not(.cars) .cc-tot, .cc-grid:not(.cars) .cc-tot b { font-size: 12px; }
  .cc-grid:not(.cars) .cc-pr b { font-size: 20px; }
  .cc-grid:not(.cars) .cc-tot b { font-size: 12px; }
  .cc-grid:not(.cars) .cc-go, .cc-grid:not(.cars) .cc-sel { justify-content: center; text-align: center; padding: 10px 8px; font-size: 14.5px; }
  .cc-grid:not(.cars) .cc-more { font-size: 13px; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) { .cc, .cc-ph img { transition: none; } .cc:hover { transform: none; } .cc:hover .cc-ph img { transform: none; } }

/* the chips' line break (cards.js .cc-brk): hidden while the five fit on one row. Full-size chips need about 336px, the phone's small ones about 263px */
.cc-grid .cc .cc-chips li.cc-brk { display: none; flex: 0 0 100%; height: 0; padding: 0; margin: 0 0 -6px; background: none; border: 0; }
@container ccb (max-width: 345px) { .cc-grid .cc .cc-chips li.cc-brk { display: block; } }
@media (max-width: 720px) {
  .cc-grid .cc .cc-chips li.cc-brk { margin-bottom: -4px; }
  @container ccb (min-width: 270px) { .cc-grid .cc .cc-chips li.cc-brk { display: none; } }
}
@media (max-width: 340px) { .cc-grid:not(.cars) .cc-chips li { padding: 2px 5px 2px 4px; font-size: 11px; } .cc-grid:not(.cars) .cc-chips .i { width: 12px; height: 12px; } }
@media (max-width: 345px) { .cars.cc-grid .cc-pr.cc-low b { font-size: 17px; } .cars.cc-grid .cc-pr.cc-low .cc-lei { font-size: 14px; } .cars.cc-grid .cc-go { padding: 10px 11px; font-size: 13.5px; } }
