/* Category pages (categorie.html): the header is SitePageHero (page-hero.css), the breadcrumb under it, then either
   the listing (filters, count, horizontal cards) or the information page (centred text, the WhatsApp pill, the phone
   pill, a feature row). Tokens and shared parts come from base.css. */

/* The WhatsApp pill is the site's one WhatsApp button (base.css); the phone pill beside it is an outline. */
.btn-tel { border-color: var(--navy); color: var(--ink); font-variant-numeric: tabular-nums; }
.btn-ghost .icon { width: 20px; height: 20px; }

/* Listing: filter pills, the count and sort row, then one card per row with the photo left. */
.cat-list { padding-bottom: var(--s-8); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.filter { display: inline-flex; align-items: center; gap: var(--s-3); padding: 0.7rem 1.1rem 0.7rem 1.25rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--card); font-weight: 600; font-size: var(--step--1); white-space: nowrap; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.filter .icon { width: 16px; height: 16px; color: var(--ink-3); transition: transform 400ms var(--ease-lift); }
.filter-ico { padding: 0.7rem; }
.filter-ico .icon { width: 20px; height: 20px; color: var(--ink); }
/* A pill with a value is black, as the primary button is; an open pill turns its chevron. */
.filter.on, .facet.open .filter { border-color: var(--ink); }
.filter.on { background: var(--ink); color: var(--paper); }
.filter.on .icon { color: inherit; opacity: 0.7; }
.facet.open .filter:not(.filter-ico) .icon { transform: rotate(180deg); }
.filters-reset { border: 0; background: none; padding: 0.4rem 0.2rem; font-weight: 600; font-size: var(--step--1); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filters-reset:hover { color: var(--ink); }
/* The menu (base.css) hangs under its pill; the full sheet and the sort menu open from the right edge so they stay in the page. */
.facet { position: relative; }
.facet.open > .filter-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.facet-all > .filter-menu, .facet-sort > .filter-menu { left: auto; right: 0; }
.filter-title { display: none; padding: var(--s-2) var(--s-3) var(--s-1); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.filter-sheet { gap: var(--s-3); min-width: min(600px, calc(100vw - 2 * var(--gutter))); padding: var(--s-4) var(--s-4) var(--s-5); }
.filter-sheet .filter-title { display: block; padding-inline: 0; }
.filter-sheet .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2); }
.list-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); font-size: var(--step-0); color: var(--ink-2); }
.list-bar b { color: var(--ink); font-weight: 700; }
.list-bar .count b { font-size: var(--step-1); }
.sort { display: inline-flex; align-items: center; gap: 0.5em; border: 0; background: none; padding: 0.3rem 0; font: inherit; font-size: var(--step--1); color: inherit; cursor: pointer; }
.sort .icon { width: 16px; height: 16px; transition: transform 400ms var(--ease-lift); }
.facet.open .sort .icon { transform: rotate(180deg); }
.car.off { display: none; }
/* No car behind the picked facets: the WhatsApp pill carries the criteria into the conversation. */
.cars-empty { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-6) var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.cars-empty p { max-width: 48ch; font-size: var(--step-0); color: var(--ink-2); text-wrap: pretty; }
.cars-empty[hidden] { display: none; }
.cars { display: grid; gap: var(--s-5); }
.car { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: var(--s-4) var(--s-6); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); transition: transform 600ms var(--ease-lift), box-shadow 600ms var(--ease-lift); }
.car:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.car-media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.car-photo { display: block; height: 100%; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.car-media img.cut { object-fit: contain; padding: var(--s-4); background: #fff; }
.car:hover .car-media img { transform: scale(1.03); }
.car-tools { position: absolute; top: var(--s-3); right: var(--s-3); display: grid; gap: var(--s-2); }
.car-tools a, .car-tools button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid oklch(1 0 0 / 0.5); background: oklch(0.1 0.005 268 / 0.55); color: #fff; backdrop-filter: blur(6px); transition: background var(--t-fast), transform 500ms var(--ease-lift); }
.car-tools a:hover, .car-tools button:hover { background: var(--navy); transform: translateY(-1px); }
.car-tools .icon { width: 18px; height: 18px; }
.car-body { display: grid; gap: var(--s-3); align-content: center; justify-items: start; padding-right: var(--s-3); }
.car-body h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.car-meta { display: flex; gap: var(--s-3); font-size: var(--step-0); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.car-meta span { color: var(--line-strong); }
.car-price { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 10px; background: var(--navy); color: var(--on-navy); font-size: var(--step-2); font-weight: 700; font-stretch: var(--display-stretch); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.car-note { font-size: var(--step--1); color: var(--ink-2); }
.car-cta { margin-top: var(--s-2); }
.car-cta .icon { width: 18px; height: 18px; transition: transform 500ms var(--ease-lift); }
.car-cta:hover .icon { transform: translateX(3px); }
.car-specs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); padding: var(--s-4) var(--s-2) var(--s-2); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.car-specs li { display: inline-flex; align-items: center; gap: 0.5em; }
.car-specs .icon { width: 18px; height: 18px; color: var(--ink-3); }

/* Information page: RMB's paragraph centred, the two pills, then the features as one row with thin dividers.
   The row is the same element on every page: equal columns, a 40px icon, the label at step-0. Only the grid
   adapts to the count (one row on desktop; six fold to 3 x 2 on a tablet; two columns on a phone). */
.cat-info { display: grid; gap: var(--s-7); justify-items: center; padding-block: var(--s-6) var(--s-9); text-align: center; }
.cat-text { max-width: 70ch; font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.cat-text b { color: var(--ink); font-weight: 700; }
/* Both pills keep their own width and the same height, the WhatsApp one identical to every other on the site. */
.cat-cta { display: grid; gap: var(--s-4); justify-items: center; }
.feats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); row-gap: var(--s-4); width: 100%; max-width: 1040px; }
.feats li { display: grid; justify-items: center; align-content: start; gap: var(--s-3); padding: var(--s-4); border-left: 1px solid var(--line); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.feats li:first-child { border-left: 0; }
.feats .icon { width: 40px; height: 40px; color: var(--ink); }
/* Team of a location (SiteTeam.vue): department pills (.chip), then the people as hairline rows in a grid, no boxes. */
.team { display: grid; gap: var(--s-4); }
.team h3 { font-size: var(--step-1); text-wrap: balance; }
.team-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.team-dept { font-size: var(--step--1); font-weight: 600; color: var(--ink-3); }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 var(--s-6); }
.team-list li { display: grid; align-content: start; gap: var(--s-1); padding-block: var(--s-4); border-top: 1px solid var(--line); min-width: 0; }
.team-list b { font-weight: 700; }
.team-role { font-size: var(--step--1); color: var(--ink-2); }
.team-list a { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; min-height: 32px; font-size: var(--step--1); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; text-underline-offset: 3px; }
.team-list a:hover { text-decoration: underline; }
.team-list a:active { color: var(--ink-2); }
.team-list a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.team-list .icon { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.team-more { justify-self: start; border: 0; background: none; padding: var(--s-2) 0; font: inherit; font-weight: 700; cursor: pointer; }
.team-groups { display: grid; gap: var(--s-7); }
#programare { scroll-margin-top: calc(var(--top-h) + var(--s-5)); } /* the lead form, target of the page's booking buttons */
.feats small { font-size: var(--step--1); font-weight: 400; color: var(--ink-2); }

@media (min-width: 641px) and (max-width: 1080px) {
  .feats:has(> li:nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feats:has(> li:nth-child(5)) li:nth-child(3n + 1) { border-left: 0; }
}
@media (max-width: 900px) {
  .car { grid-template-columns: 1fr; gap: var(--s-4); }
  .car-body { padding-right: 0; }
}
@media (max-width: 640px) {
  .cat-info { gap: var(--s-6); padding-bottom: var(--s-8); }
  .feats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .feats li { border-left: 0; padding-inline: var(--s-3); }
  .feats li:nth-child(2n) { border-left: 1px solid var(--line); }
  /* An odd count leaves the last tile alone: it takes the full row (centred, a rule above it) instead of hanging in one column. */
  .feats li:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--s-5); }
  .car-body h3 { font-size: var(--step-1); }
  .car-price { font-size: var(--step-1); }
  /* Phone: the pills are one row that scrolls under the gutters; a menu is a bottom sheet over a scrim,
     titled, since the pill that opened it may be off screen. */
  .filters { flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .facet { position: static; }
  .facet::before { content: ""; position: fixed; inset: 0; z-index: 44; background: oklch(0 0 0 / 0.45); visibility: hidden; opacity: 0; transition: opacity 260ms var(--ease-out), visibility 0s linear 260ms; }
  .facet.open::before { visibility: visible; opacity: 1; transition-delay: 0s; }
  .facet > .filter-menu, .facet-all > .filter-menu, .facet-sort > .filter-menu { position: fixed; inset: auto var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom)); z-index: 45; max-height: 72dvh; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); border-radius: 20px; transform: translateY(24px); transition: opacity 360ms var(--ease-lift), transform 360ms var(--ease-lift), visibility 0s linear 360ms; }
  .filter-title { display: block; }
}
