/* City pages /{city}-{st} (SER-595, boards/City.html). Page-only rules on the base.css tokens;
   components (.row-co, .co-logo, .mrow, .chip, .car, .btn) and motion (.hero-bg ken burns, .rise,
   .reveal, .lift, .zoom) come from base.css (body.crl). Gold once per block: the hero's price
   number, the row numbers of the company list. */

/* ---- hero: city photo (or a catalog car photo) under a left/bottom shade */
.ct-hero { position: relative; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; margin-top: 8px; }
.ct-hero.no-img { min-height: 0; padding-top: 40px; }
.ct-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--s1); }
.ct-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.95) 0%, rgba(10,10,11,.55) 55%, rgba(10,10,11,.2) 85%), linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,0) 40%); }
.ct-hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 56px; padding-bottom: 48px; }
.ct-hero h1 { margin: 0; font-size: var(--fs-hero); max-width: 980px; overflow-wrap: anywhere; }
.ct-updated { margin: 12px 0 0; font-size: 14px; color: var(--tx-2); }
.ct-lead { margin: 14px 0 0; max-width: 680px; font-size: var(--fs-lead); color: var(--tx-2); }
.ct-stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 24px; }
.ct-stat-v { font-size: 34px; line-height: 1.1; }
.ct-stat-v.gold { color: var(--accent); }
.ct-stat-l { color: var(--tx-2); font-size: 15px; }

/* ---- sections */
.ct-sec { padding-top: 64px; }
.ct-h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 32px); overflow-wrap: anywhere; }
.ct-h2-sm { font-size: 22px; margin-bottom: 8px; }
.ct-desc { margin: 0 0 16px; font-size: 15px; }
.ct-main { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.ct-list { flex: 999 1 640px; min-width: 0; }
.ct-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.ct-empty { margin: 8px 0 0; }
.ct-nearby { margin-top: 40px; }

/* company rows */
.company-grid { display: flex; flex-direction: column; gap: 12px; }
.row-co { color: var(--tx); padding: 16px 20px; }
.row-n { font-size: 20px; color: var(--accent); }
.row-main { display: flex; align-items: center; gap: 20px; min-width: 0; }
.row-text { min-width: 0; }
.row-text .company-name { color: var(--tx); text-decoration: none; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.row-text .company-name:hover { color: var(--accent); }
.row-meta { font-size: 14px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions .btn { min-height: var(--tap); padding: 0 16px; font-size: 14px; }
.ct-more { margin-top: 12px; }
.ct-more summary { list-style: none; cursor: pointer; }
.ct-more summary::-webkit-details-marker { display: none; }
.ct-more[open] summary { margin-bottom: 12px; }

/* company cards (SER-664, render/company-card.js: the state page's .co card without the photo
   strip). Desktop: name and place on the left, from-price on the right, actions below; phone:
   one stacked column, the primary action (Call, else Request a car) full width, the rest in one
   compact row. */
.ct-co { color: var(--tx); }
.ct-co.no-photo { grid-template-columns: 1fr; }
.ct-co:hover { border-color: var(--ghost-border); }
.ct-co .co-body { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo price" "name price" "meta meta" "brands brands" "actions actions"; column-gap: 24px; row-gap: 6px; align-items: start; min-width: 0; }
.ct-co .co-logo { grid-area: logo; }
.ct-co .co-name { grid-area: name; margin: 0; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.ct-co .co-name a { color: var(--tx); text-decoration: none; }
.ct-co .co-name a:hover { color: var(--accent); }
.ct-co .co-meta { grid-area: meta; font-size: 14px; }
.ct-co .co-brands { grid-area: brands; font-size: 14px; }
.ct-co .co-price { grid-area: price; display: flex; align-items: baseline; gap: 6px; justify-self: end; align-self: center; font-size: 14px; white-space: nowrap; }
.ct-co .co-price .price { font-size: 24px; color: var(--tx); }
.ct-co .co-actions { grid-area: actions; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.ct-co .co-actions .btn { min-height: var(--tap); padding: 0 16px; font-size: 14px; }
/* terms chips (SER-662: published deposit / minimum age only); the row exists only on cards that have them */
.ct-co.has-terms .co-body { grid-template-areas: "logo price" "name price" "meta meta" "brands brands" "terms terms" "actions actions"; }
.ct-co .co-terms { grid-area: terms; display: flex; flex-wrap: wrap; gap: 6px; }
.ct-co .co-chip { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 13px; color: var(--tx-2); }
/* logo slot: a fixed box; an image fits inside it, the name wordmark stops after two lines
   (a long name like "Prestige Luxury Rentals" no longer spills out of the box) */
.ct-list .co-logo { max-width: 100%; }
.ct-list .co-logo img { width: 100%; height: 100%; object-fit: contain; }
.ct-list .co-logo.co-word { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; align-self: flex-start; overflow: hidden; overflow-wrap: anywhere; text-overflow: ellipsis; line-height: 1.5; }
/* sort control */
.ct-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.ct-sort > .muted { font-size: 14px; margin-right: 4px; }
.ct-sort .chip { cursor: pointer; }
.ct-sort .chip[aria-pressed="true"] { background: var(--tx); color: var(--bg); border-color: var(--tx); }

/* featured placements (SER-527, markup unchanged; labelled "Featured") */
.featured-section { margin: 0 0 20px; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.featured-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--s1); border: 1px solid var(--line); }
.featured-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--accent); color: var(--accent); }
.featured-card .company-name { margin: 0; font-size: 18px; }
.featured-card .company-name a { color: var(--tx); text-decoration: none; }
.featured-card .company-name a:hover { color: var(--accent); }
.company-meta, .company-stats { font-size: 14px; color: var(--mu); }
.company-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.company-stat strong { color: var(--tx); }
.company-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.company-actions .btn { min-height: var(--tap); padding: 0 16px; font-size: 14px; }
.btn-primary, .btn-secondary { border-color: var(--ghost-border); color: var(--tx); background: transparent; }
.btn-primary:hover, .btn-secondary:hover { border-color: var(--tx); color: var(--tx); }

/* aside */
.ct-aside .mrow { align-items: center; min-height: var(--tap); padding: 8px 0; gap: 16px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips .chip { gap: 8px; min-height: var(--tap); }
.ct-chips .chip:hover .make-mark { color: var(--accent); }
.chip.chip-static:hover { border-color: var(--line); }

/* vehicles */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.vehicle-card .vehicle-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--s2); }
.vehicle-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.vehicle-name { font-weight: 700; font-size: 16px; }
.vehicle-price { font-size: 14px; color: var(--mu); }
.vehicle-price .price { font-size: 18px; color: var(--tx); }
.vehicle-company { font-size: 13px; }
.vehicle-card:hover { border-color: var(--ghost-border); color: var(--tx); }

/* quick guide */
.ct-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ct-guide-item { background: var(--s1); border: 1px solid var(--line); padding: 24px; }
.ct-guide-item h3 { margin: 0 0 10px; font-size: 18px; }
.ct-guide-item p { margin: 0; color: var(--tx-2); line-height: 1.7; }
.ct-guide-item strong { color: var(--tx); }
.ct-cities { padding-bottom: 96px; }

/* focus */
.ct-sec a:focus-visible, .ct-sec summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
  .row-co .co-logo, .row-actions .hide-sm, .ct-list .row-co .co-logo.co-word, .ct-list .ct-co .co-logo.co-word { display: none; }
  .ct-hero { min-height: 420px; }
}
@media (max-width: 600px) {
  .ct-hero { min-height: 380px; }
  .ct-hero-inner { padding-bottom: 32px; }
  .ct-stats { gap: 24px; }
  .ct-stat-v { font-size: 28px; }
  .ct-sec { padding-top: 48px; }
  .row-co { padding: 14px 16px; gap: 12px; }
  .row-actions .btn { padding: 0 12px; }
  .ct-co .co-body { padding: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "meta" "brands" "price" "actions"; }
  .ct-co.has-terms .co-body { grid-template-areas: "name" "meta" "brands" "price" "terms" "actions"; }
  .ct-co .co-price { justify-self: start; }
  .ct-co .co-actions .btn { flex: 1 1 auto; padding: 0 10px; font-size: 13px; }
  .ct-co .co-actions .btn { box-sizing: border-box; }
  .ct-co .co-actions .co-primary { flex: 1 0 100%; font-size: 15px; }
}
.ct-aside .mrow .muted, .st-mrows .mrow .muted { white-space: nowrap; }
