/* Approved Hola plan cards: photo, location, title, price. */
.cards { max-width: 1248px; width: 100%; margin-inline: auto; padding-inline: 24px; gap: 24px !important; }
.card { border: 0 !important; border-radius: 0 !important; overflow: visible !important; background: transparent !important; box-shadow: none !important; }
.card-visual { position: relative; height: auto !important; aspect-ratio: 4 / 3; overflow: hidden; border: 0 !important; border-radius: 16px !important; box-shadow: 0 4px 24px rgba(0,0,0,.08) !important; }
.card-visual > a, .card-visual picture { position: relative; display: block; width: 100%; height: 100%; }
.card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-date-badge { position: absolute; z-index: 2; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 7px 12px; border-radius: 999px; background: #fff; color: #1d1d1f; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; }
.card-copy { padding: 16px 0 0 !important; display: block !important; }
.card-copy .meta { display: block; margin: 0 0 8px; color: #6e6e73; font-size: 12px !important; font-weight: 400; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.card-copy h3, .card-copy h3 a { margin: 0; color: #1d1d1f; font-size: 20px !important; line-height: 1.25; font-weight: 600 !important; letter-spacing: -.015em; }
.card-copy .card-fact { margin: 8px 0 0 !important; color: #6e6e73; font-size: 15px !important; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere; }
.detail-sources .detail-photo-caption { margin: 16px 0 0; color: #86868b; font-size: 12px; line-height: 1.5; }
@media (max-width: 600px) { .cards { padding-inline: 24px; } }

/* --- Compact plan cards (v3, Dec 1, 2026) ---------------------------------
   Homepage Explore grid only: app.js renderResults() emits .card-compact
   on / and /es/ and nowhere else. Featured rails (Weekend Picks, Holiday
   Edition, weekend strip and B3 rails), Saved and Guide views keep the
   full photo card above. No image: date, title, one line, cost, read link. */
#results { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { #results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { #results { grid-template-columns: 1fr; } }
.cards > .card-compact { background: #fff !important; border: 1px solid #d8e7dd !important; border-radius: 16px !important; box-shadow: 0 2px 12px rgba(23,23,32,.05) !important; overflow: hidden !important; }
.cards > .card-compact .compact-copy { display: flex; flex-direction: column; height: 100%; padding: 14px 16px 16px; }
.cards > .card-compact .meta { display: block; margin: 0; color: #6e6e73; font-size: 12px; font-weight: 400; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.cards > .card-compact h3, .cards > .card-compact h3 a { margin: 6px 0 0; color: #1d1d1f; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.cards > .card-compact .card-description { margin: 6px 0 0 !important; font-size: 14px !important; }
.cards > .card-compact .card-fact { margin: 6px 0 0 !important; color: #6e6e73; font-size: 14px !important; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere; }
.cards > .card-compact .card-read { min-height: 38px; padding-inline: 15px; font-size: 13px; }

/* --- Spacing fix (Dec 1, 2026) ---------------------------------------------
   1) Featured-card sections on the homepage follow each other tightly.
      hola-design-system.css puts margin-block:96px (64px on mobile) on every
      main > section, which stomps the card sections' own rhythm (rails and
      the weekend strip were designed at 36px in city-shell.css) and leaves a
      dead band after every section's last "Read the full plan" link. The
      blanket rule's specificity is stacked with six :not()s, so !important
      is required here (this file already uses !important for card rules).
   2) If the skyline drawing data ever fails to load, skyline.js adds
      .drawing-fallback; style.css collapses the story height for that case
      but its @media (max-width:600px) block later re-imposes the tall
      scroll height, leaving ~1.4 screens of empty section on phones.
      The two-class selector below wins at every width. */
main > section.weekend-strip,
main > section.weekend-edit,
main > section.rail,
main > section.holiday-edition,
main > section#explore { margin-block: 24px !important; }
.skyline-story.drawing-fallback { height: auto; }

/* --- Rail card alignment (Dec 1, 2026) --------------------------------------
   Every rail (weekend strip, Free & easy, This weekend only, Worth the
   drive, After dark) renders the same card markup — meta, .card-when,
   h3, description, fact, read link — but the date line and the title wrap
   to a different number of lines on each card and rail descriptions are
   unclamped, so titles, facts and "Read the full plan" links start at a
   different height on every card in the row. Pin the date to one line,
   reserve exactly two lines for the title, clamp the description to two
   lines with the same reserved height, and let the read link sit at the
   bottom of the copy so all five elements line up across the rail. */
.rail-track > .card .card-copy { display: flex !important; flex-direction: column; flex: 1 1 auto; }
.rail-track > .card .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-track > .card .card-when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-track > .card h3 { min-height: 2.5em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rail-track > .card .card-description { display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; overflow: hidden !important; line-height: 1.5 !important; min-height: 3em; margin: 0 0 12px !important; }
.rail-track > .card .card-read { margin-top: auto; align-self: flex-start; }

/* --- Compact card cursor spotlight (Dec 1, 2026) ----------------------------
   A soft radial light follows the pointer across a compact Explore card.
   app.js feeds --mx/--my (percentages) from pointermove; the highlight
   only exists under :hover, is disabled for reduced-motion users, and
   touch pointers never trigger hover, so nothing shifts or animates
   anywhere else. */
@media (prefers-reduced-motion: no-preference) {
  .cards > .card-compact:hover { background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 184, 169, .16), rgba(22, 117, 72, 0) 70%) !important; }
}
