/* home-cards-20261129
   Equal-height listing cards; home-page Stay/Eat/Sights alignment;
   verified badge vs rating at the foot; home-only visual polish. */

/* ---- Equal-height listing cards (rails + browse grids; harmless) ---- */
.rail-sec .rail { align-items: stretch; }
.card { height: 100%; min-width: 0; box-sizing: border-box; }
.card .thumb { width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 9; }
.card .info { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.card .card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-top: 2px;
}

/* ---- Home rails: same structure for Top sights / Where to eat / Where to stay ---- */
body.is-home .rail-sec .card .thumb { aspect-ratio: 16 / 9; height: auto; }
body.is-home .rail-sec .card .info { padding: 12px 14px 14px; gap: 6px; }
body.is-home .rail-sec .card .info h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.05rem * 1.3 * 2);
  overflow-wrap: anywhere;
}
body.is-home .rail-sec .card .meta {
  margin: 0;
  font-size: .9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(.9rem * 1.35 * 2);
}
body.is-home .rail-sec .card .card-foot {
  min-height: 2.35em;
  justify-content: flex-end;
}
body.is-home .rail-sec .card .card-foot .ratings,
body.is-home .rail-sec .card .card-foot .tag { margin: 0; }
body.is-home .rail-sec .card .card-foot .tag.ok { max-width: 100%; }

/* ---- Home visual polish (scoped to body.is-home; no content changes) ---- */
body.is-home .wrap > section:not(.sec-tiles) { margin-block: 0 32px; }
body.is-home .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  min-width: 0;
}
body.is-home .sec-head h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 800;
  min-width: 0;
}
body.is-home .sec-head a {
  flex: none;
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}
body.is-home .map-verified-note {
  font-weight: 500;
  font-size: .72em;
  color: var(--muted);
  margin-inline-start: .35em;
  white-space: normal;
}
body.is-home .mapsec .sec-head { align-items: flex-start; }
body.is-home .mapsec .chips { margin: 0 0 12px; }
body.is-home .mapsec .attrib { margin: 8px 0 0; }
body.is-home .plan-cta,
body.is-home .cta,
body.is-home .explore3,
body.is-home .infostrip { margin-block: 0 32px; }
body.is-home .rail-sec .rail { padding: 2px 1px 12px; margin: 0; }
body.is-home .featured .pgrid,
body.is-home .featured .grid { align-items: stretch; }
body.is-home .pgrid .pcard,
body.is-home .pgrid .card { height: 100%; display: flex; flex-direction: column; }
body.is-home .pgrid .pcard .info,
body.is-home .pgrid .card .info { flex: 1 1 auto; display: flex; flex-direction: column; }

/* Keep the desktop offset added when category tiles are hidden */
@media (min-width: 761px) {
  body.is-home .infostrip { margin-top: 36px; }
}
@media (max-width: 760px) {
  body.is-home .wrap { padding-inline: 14px; }
  body.is-home .wrap > section:not(.sec-tiles),
  body.is-home .plan-cta,
  body.is-home .cta,
  body.is-home .explore3,
  body.is-home .infostrip { margin-block: 0 24px; }
  body.is-home .sec-head h2 { font-size: 1.2rem; }
  body.is-home .infostrip { margin-top: 24px; }
}
