/*
 * A car's page: the small facts under the photos, and the price section's drawings (the staircase of
 * prices with its car, the season drawings on the table heads, the length gauges and the lowest prices).
 * Night colours are at the end; the animations stop for visitors who ask for less motion.
 */

/* ---------- Facts under the photos ---------- */
.car-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.car-facts li {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 16px -12px rgba(16, 39, 63, .5);
  font-size: .82rem; font-weight: 600; color: var(--navy); line-height: 1.2;
}
.car-facts .icon { color: var(--blue); }
.car-intro { padding-top: 22px; }
.car-jump { display: none; margin-top: 14px; }
@media (max-width: 880px) { .car-jump { display: block; } }

/* ---------- Price per day: a staircase of prices ---------- */
.price-steps {
  margin: 18px 0 0; padding: 18px 18px 14px; border-radius: 20px;
  background: var(--g); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.ps-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ps-ground { fill: none; stroke: rgba(16, 39, 63, .18); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.ps-block { fill: url(#ps-step); }
.ps-top { fill: rgba(255, 255, 255, .35); }
.ps-step.is-best .ps-top { fill: #DFB589; }
.ps-price { font-family: var(--cond); font-weight: 700; font-size: 30px; fill: #FFFFFF; }
.ps-per { font-size: 13px; fill: rgba(255, 255, 255, .78); }
.ps-len { font-family: var(--cond); font-weight: 600; font-size: 17px; fill: var(--navy); }
.ps-glass { fill: #D9E7F2; }
.ps-save { display: inline-block; margin: 8px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(223, 181, 137, .25); color: #5E4420; font-size: .93rem; }
.ps-save strong { color: #10273F; }
@media (max-width: 560px) {
  .price-steps { padding: 12px 10px 10px; }
  .ps-per, .ps-len { display: none; }
  .ps-price { font-size: 38px; }
}

/* ---------- The table: season drawings, length gauges, lowest prices ---------- */
.col-head { display: inline-flex; align-items: center; gap: 8px; text-align: left; vertical-align: bottom; }
.season-ico { flex: none; width: 26px; height: 26px; fill: none; stroke: #DFB589; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.season-ico .si-fill { fill: #DFB589; stroke: none; }
.season-ico .si-petals circle { fill: rgba(223, 181, 137, .3); }
.len-cell { display: inline-flex; align-items: center; gap: 10px; }
.len-meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.len-meter i { width: 5px; height: 6px; border-radius: 2px; background: rgba(16, 39, 63, .14); }
.len-meter i:nth-child(2) { height: 9px; } .len-meter i:nth-child(3) { height: 12px; } .len-meter i:nth-child(n+4) { height: 16px; }
.len-meter i.on { background: #2E78B5; }
.best-pill { display: inline-block; margin: -4px -10px; padding: 4px 10px; border-radius: 999px; background: rgba(223, 181, 137, .35); box-shadow: inset 0 0 0 1px rgba(223, 181, 137, .7); }
@media (max-width: 560px) { .len-meter { display: none; } .col-head { gap: 5px; } .season-ico { width: 20px; height: 20px; } }

@media (prefers-reduced-motion: no-preference) {
  .si-rays { transform-box: fill-box; transform-origin: center; animation: si-turn 14s linear infinite; }
  .si-big { transform-box: fill-box; transform-origin: center; animation: si-twinkle 2.6s ease-in-out infinite; }
  .si-small, .si-dot { animation: si-blink 2.6s ease-in-out infinite; }
  .si-dot { animation-delay: -1.3s; }
  .si-petals { transform-box: fill-box; transform-origin: center; animation: si-turn 24s linear infinite; }
}
@keyframes si-turn { to { transform: rotate(360deg); } }
@keyframes si-twinkle { 0%, 100% { transform: scale(.82) rotate(0); } 50% { transform: scale(1.08) rotate(18deg); } }
@keyframes si-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- The price box: each rental day, and what makes up the total ---------- */
.cq-strip { display: flex; gap: 3px; margin: 12px 0 0; }
.cq-strip i {
  flex: 1 1 0; min-width: 0; height: 24px; display: grid; place-items: center; border-radius: 6px;
  font-style: normal; font-size: .68rem; font-weight: 700; color: #FFFFFF; font-variant-numeric: tabular-nums;
}
.cq-strip.is-long { gap: 2px; }
.cq-strip.is-long i { height: 18px; border-radius: 4px; font-size: 0; }
.b0 { background: #2E78B5; }
.b1 { background: #DFB589; color: #10273F !important; }
.b2 { background: #3F8F6E; }
.b3 { background: #7D63B8; }
.cq-lines { list-style: none; display: grid; gap: 6px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed rgba(16, 39, 63, .18); font-size: .92rem; }
.cq-lines li { display: flex; align-items: baseline; gap: 8px; }
.cq-l { flex: 1; min-width: 0; color: var(--ink); }
.cq-l small { margin-left: 4px; font-size: .8rem; color: var(--ink-2); }
.cq-lines b { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cq-sw { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.cq-fee .cq-sw { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(16, 39, 63, .3); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .cq-strip i { animation: cq-pop .35s cubic-bezier(.3, 1.4, .6, 1) both; }
}
@keyframes cq-pop { from { opacity: 0; transform: translateY(6px) scale(.6); } to { opacity: 1; transform: none; } }

/* ---------- Cars for your dates: photo and name open the car's page ---------- */
.car-row-photo { display: block; border-radius: 16px; }
.car-row-photo .car-plinth { transition: transform .25s ease; }
.car-row-photo:hover .car-plinth { transform: scale(1.025); }
.car-name-link { color: inherit; text-decoration: none; }
.car-name-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.car-row:has(.car-row-photo:hover) .car-name-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Book page: the car's photos in the summary, one photo high ---------- */
.summary-card > .gallery { margin-inline: 0; }   /* edge to edge, like the single photo */
.summary-compact > .gallery:not(.is-full) { transition: max-height .3s ease, opacity .2s ease; max-height: 240px; }
.summary-compact > .gallery:not(.is-full) .gallery-stage { border-radius: 12px; }
.summary-compact > .gallery:not(.is-full) .gallery-slide .car-plinth { aspect-ratio: 2.35 / 1; }
.summary-compact > .gallery:not(.is-full) .gallery-thumbs { display: none; }
.summary-compact > .gallery:not(.is-full) .gallery-btn { width: 36px; height: 36px; }
.book-summary.is-tight .summary-compact > .gallery:not(.is-full) { max-height: 0; opacity: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .summary-compact > .gallery { transition: none; } }
/* full screen from inside the glass card: the card's blur would trap it, so it's switched off meanwhile */
.gallery-open .summary-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
.gallery-open .book-summary { z-index: 1000; }

/* ---------- Cover: a card per option, with a shield filled as far as the cover goes ---------- */
.cover-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; }
.cover-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; border-radius: 20px;
  background: var(--g); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.cover-card.is-most { border-color: rgba(223, 181, 137, .95); box-shadow: 0 0 0 1px rgba(223, 181, 137, .55), var(--g-shadow); }
.cover-top { display: flex; align-items: center; gap: 14px; }
.shield { flex: none; width: 50px; height: auto; overflow: visible; }
.shield-back { fill: rgba(46, 120, 181, .1); }
.shield-edge { fill: none; stroke: #2E78B5; stroke-width: 2.5; stroke-linejoin: round; }
.shield-wave { fill: #2E78B5; }
.shield-tick { fill: none; stroke: #FFFFFF; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.cover-name { margin: 0; font-family: var(--cond); font-size: 1.5rem; font-weight: 700; line-height: 1.05; color: var(--navy); }
.cover-price { margin: 3px 0 0; font-size: .95rem; color: var(--ink-2); }
.cover-price b { font-size: 1.15rem; color: var(--navy); }
.cover-deposit { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0; padding: 5px 11px; border-radius: 999px; background: rgba(16, 39, 63, .07); font-size: .85rem; font-weight: 600; color: var(--navy); }
.cover-deposit.is-none { background: rgba(63, 143, 110, .14); color: #23704F; }
.cover-desc { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.js [data-reveal] .shield-rise { transform: translateY(80px); transition: transform 1.3s cubic-bezier(.25, .8, .3, 1) var(--d, 0ms); }
.js [data-reveal].is-in .shield-rise { transform: none; }
.js [data-reveal] .shield-tick { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s ease 1.4s; }
.js [data-reveal].is-in .shield-tick { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .shield-wave { animation: shield-ripple 3.4s linear infinite; } }
@keyframes shield-ripple { to { transform: translateX(32px); } }

/* ---------- Extras: a tile each, with its own drawing ---------- */
.extra-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; }
.extra-tile {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 18px;
  background: var(--g); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.extra-art { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: #10273F; background: linear-gradient(180deg, rgba(214, 231, 245, .95), rgba(255, 255, 255, .5)); }
.extra-tile:nth-child(even) .extra-art { background: linear-gradient(180deg, rgba(247, 238, 228, .98), rgba(255, 255, 255, .5)); }
.extra-svg { width: 48px; height: 48px; overflow: visible; }
.ex-fill { fill: #2E78B5; }
.ex-soft { fill: currentColor; opacity: .14; }
.ex-line { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ex-soft-line { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2; stroke-linecap: round; }
.ex-accent { fill: #DFB589; }
.ex-accent-line { fill: none; stroke: #DFB589; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ex-on-accent { stroke: #10273F; stroke-width: 1.8; }
.ex-dash { stroke-dasharray: 3 5; }
.ex-chain rect { fill: none; stroke: #8496A8; stroke-width: 2.6; }
.ex-flake { stroke: #2E78B5; }
.extra-body { min-width: 0; }
.extra-title { margin: 2px 0 0; font-family: var(--cond); font-size: 1.3rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.extra-text { margin: 3px 0 0; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.extra-tag { margin: 8px 0 0; font-size: .88rem; color: var(--ink-2); }
.extra-tag b { font-size: 1.05rem; color: #1F5F96; }
@media (prefers-reduced-motion: no-preference) {
  .ex-move { transform-box: fill-box; transform-origin: center; }
  .extra-tile:hover .ex-move { animation: ex-nudge .7s ease; }
}
@keyframes ex-nudge { 35% { transform: translateY(-3px) rotate(-6deg); } 70% { transform: translateY(1px) rotate(3deg); } }

/* extras in sections: two sections side by side, each with a heading and a hairline out to its edge */
.extra-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; align-items: start; }
.extra-groups .extra-tiles { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .extra-groups { grid-template-columns: minmax(0, 1fr); } }
.extra-group-title, .extras-group-title {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0;
  font-family: var(--cond); font-size: 1.12rem; font-weight: 700; letter-spacing: .01em; color: var(--navy);
}
.extra-group-title::after, .extras-group-title::after { content: ""; flex: 1; height: 1px; background: rgba(16, 39, 63, .14); }
.extra-group .extra-tiles { margin-top: 10px; }
.extras-group-title { margin: 20px 0 4px; }
.extras-group-title:first-of-type { margin-top: 4px; }
.is-dark .extra-group-title::after, .is-dark .extras-group-title::after { background: rgba(255, 255, 255, .14); }

/* ---------- Good to know: a pickup checklist that ticks itself off, and four short cards ---------- */
.know-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.know-bring { grid-column: 1 / -1; padding: 18px 20px 20px; border-radius: 20px; background: rgba(16, 39, 63, .93); color: #E3EAF1; -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
.know-bring h3 { margin: 0 0 12px; font-family: var(--cond); font-size: 1.35rem; font-weight: 700; color: #FFFFFF; }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; line-height: 1.3; }
.check-box { flex: none; width: 26px; height: 26px; }
.check-box rect { fill: rgba(223, 181, 137, .18); stroke: #DFB589; stroke-width: 1.5; }
.check-box path { fill: none; stroke: #DFB589; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .checklist[data-reveal] .check-box rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .3); transition: fill .3s ease var(--d), stroke .3s ease var(--d); }
.js .checklist[data-reveal] .check-box path { stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .45s ease var(--d); }
.js .checklist[data-reveal].is-in .check-box rect { fill: rgba(223, 181, 137, .18); stroke: #DFB589; }
.js .checklist[data-reveal].is-in .check-box path { stroke-dashoffset: 0; }
.know-card {
  padding: 16px 18px 18px; border-radius: 18px;
  background: var(--g); border: 1px solid var(--g-edge); box-shadow: var(--g-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.know-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; background: #10273F; color: #DFB589; }
.know-card h3 { margin: 0; font-family: var(--cond); font-size: 1.25rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.know-card p { margin: 4px 0 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 560px) {
  .know-grid, .checklist { grid-template-columns: 1fr; }
  .cover-cards { grid-template-columns: 1fr; }
  .know-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .know-ico { grid-row: span 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .shield-rise, .js [data-reveal] .shield-tick, .js .checklist[data-reveal] .check-box rect, .js .checklist[data-reveal] .check-box path { transition: none; }
}

/* ---------- Below the booking box: full width and compact, so there's less to scroll ---------- */
.car-page { margin-bottom: 0; }
.car-more { margin-bottom: 88px; }
.car-more .car-section { margin-top: 40px; padding-top: 32px; }
.car-more .cover-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.car-more .cover-card { padding: 16px 18px 18px; gap: 10px; }
/* extras: every section in its own column, tiles slimmer */
.car-more .extra-groups { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 14px; }
.car-more .extra-group-title { margin-top: 14px; }
.car-more .extra-group .extra-tiles { gap: 10px; }
.car-more .extra-tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.car-more .extra-groups .extra-tiles { grid-template-columns: minmax(0, 1fr); }
.car-more .extra-tile { gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; }
.car-more .extra-art { width: 50px; height: 50px; border-radius: 13px; }
.car-more .extra-svg { width: 38px; height: 38px; }
.car-more .extra-title { font-size: 1.15rem; margin-top: 0; }
.car-more .extra-text { font-size: .86rem; line-height: 1.4; }
.car-more .extra-tag { margin-top: 6px; font-size: .84rem; }
.car-more .extra-tag b { font-size: .98rem; }
/* good to know: the checklist on the left, four small cards beside it */
.car-more .know-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.car-more .know-bring { grid-column: 1; grid-row: 1 / span 2; }
.car-more .checklist { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.car-more .know-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; }
.car-more .know-ico { grid-row: span 2; width: 36px; height: 36px; margin: 0; border-radius: 11px; }
.car-more .know-card h3 { font-size: 1.12rem; }
.car-more .know-card p { font-size: .86rem; line-height: 1.4; }
@media (max-width: 1080px) {
  .car-more .know-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-more .know-bring { grid-column: 1 / -1; grid-row: auto; }
  .car-more .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* phones: the cover options swipe sideways like the car tiles, the rest gets tighter */
  .car-more .cover-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 16px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 14px; scroll-padding-left: var(--gutter); scrollbar-width: none; }
  .car-more .cover-cards::-webkit-scrollbar { display: none; }
  .car-more .cover-card { flex: 0 0 82%; scroll-snap-align: start; }
  .car-more .extra-tile { padding: 10px 12px 10px 10px; }
  .car-more .extra-art { width: 44px; height: 44px; }
  .car-more .extra-svg { width: 34px; height: 34px; }
  .car-more .know-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .car-more .know-bring { grid-column: 1 / -1; }
  .car-more .checklist { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .car-more .know-card { display: block; padding: 12px 14px 14px; }
  .car-more .know-ico { margin-bottom: 8px; }
  .car-more .car-section { margin-top: 28px; padding-top: 24px; }
}

/* ---------- Night ---------- */
.is-dark .car-facts li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.is-dark .car-facts .icon { color: #8EC6F2; }
.is-dark .ps-ground { stroke: rgba(255, 255, 255, .18); }
.is-dark .ps-glass { fill: #2C4560; }
.is-dark .ps-save { background: rgba(233, 193, 143, .13); color: var(--amber); }
.is-dark .ps-save strong { color: #F3F6F9; }
.is-dark .season-ico { stroke: var(--amber); }
.is-dark .season-ico .si-fill { fill: var(--amber); }
.is-dark .len-meter i { background: rgba(255, 255, 255, .14); }
.is-dark .len-meter i.on { background: #5BA3DB; }
.is-dark .best-pill { background: rgba(233, 193, 143, .16); box-shadow: inset 0 0 0 1px rgba(233, 193, 143, .45); color: var(--amber); }
.is-dark .cq-lines { border-top-color: rgba(255, 255, 255, .14); }
.is-dark .cq-fee .cq-sw { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.is-dark .b0 { background: #3A88C8; }
.is-dark .shield-back { fill: rgba(91, 163, 219, .14); }
.is-dark .shield-edge { stroke: #5BA3DB; }
.is-dark .shield-wave { fill: #3A88C8; }
.is-dark .cover-card.is-most { border-color: rgba(233, 193, 143, .6); box-shadow: 0 0 0 1px rgba(233, 193, 143, .3), var(--g-shadow); }
.is-dark .cover-deposit { background: rgba(255, 255, 255, .08); color: var(--ink); }
.is-dark .cover-deposit.is-none { background: rgba(95, 199, 154, .15); color: #9BE3C1; }
.is-dark .extra-art, .is-dark .extra-tile:nth-child(even) .extra-art { background: rgba(255, 255, 255, .06); color: #C9D6E2; }
.is-dark .ex-fill { fill: #3A88C8; }
.is-dark .ex-flake { stroke: #8EC6F2; }
.is-dark .extra-tag b { color: #8EC6F2; }
.is-dark .know-bring { background: rgba(3, 9, 16, .55); border: 1px solid rgba(255, 255, 255, .1); }
.is-dark .know-ico { background: rgba(233, 193, 143, .14); color: var(--amber); }
