/* ═══════════════════════════════════
   TURISM BLOCKS
   The inline style={{…}} values of app/turism/<page>/page.tsx, as classes.
   pages.css (copied verbatim from the Next.js build) already styles
   .turism-listing, .turism-section-label and .turism-content-card; this file
   only adds what the .tsx files wrote inline. Loaded on the site and, on
   turism pages, inside the block editor (inc/turism-blocks.php).
═══════════════════════════════════ */

/* Section grid — style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', … }} */
.turism-grid--1 { margin-bottom: 0; }
.turism-grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
/* Cazare's featured row used a wider gap and margin than its listings row. */
.turism-grid--2:has(> .turism-listing--featured) {
  gap: 20px;
  margin-bottom: 48px;
}

/* Title + badge (featured) or title + stars (listing) on one line. */
.turism-listing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

/* Featured — style={{ borderLeft: '4px solid var(--blue-600)' }} */
.turism-listing--featured { border-left: 4px solid var(--blue-600); }

.turism-badge {
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Compact listing — style={{ padding: '18px 20px' }} */
.turism-listing--compact { padding: 18px 20px; }
.turism-listing--compact .turism-listing-head { align-items: center; gap: 12px; margin-bottom: 0; }
.turism-listing--compact h3 { font-size: 15px; margin-bottom: 0; }
.turism-listing--compact .turism-listing-meta { margin-top: 8px; }
.turism-listing--compact .turism-listing-link { margin-top: 0; }

.turism-stars { display: flex; gap: 2px; flex-shrink: 0; }

/* The phone number is a tel: link, but should read as the plain tag it was. */
.turism-listing-tag a { color: inherit; text-decoration: none; }
.turism-listing-tag a:hover { color: var(--blue-600); }

/* Pill colours — programe/page.tsx picked them from the tag text
   (Social green, Cultural blue, anything else amber). Blue is the default and
   is also Cazare's featured badge. */
.turism-badge--green { background: var(--success-bg); color: var(--success); }
.turism-badge--amber { background: var(--warning-bg); color: var(--warning); }

/* The last section on a page sits on the page's own bottom padding, as the
   .tsx grids did — Localizare's "Cai de acces" had no margin at all. */
.turism-group:last-child .turism-grid { margin-bottom: 0; }

/* "Cai de acces" — style={{ gap: '16px' }} */
.turism-grid--2:has(> .turism-listing--card) { gap: 16px; }

/* ── Timeline (istoric) ──
   style={{ display: 'grid', gridTemplateColumns: '120px 1fr', gap: '20px',
            padding: '16px 0', borderBottom: … }} */
.turism-grid--1:has(> .turism-timeline-row) { margin-bottom: 40px; }
.turism-timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.turism-timeline-row:last-child,
.turism-timeline-row:has(+ .block-list-appender) { border-bottom: none; }
.turism-timeline-row .turism-fact-value { font-size: 18px; }
.turism-timeline-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  align-self: center;
}

/* ── Facts (localizare) — the .turism-facts grid, as a section ── */
.turism-grid--2:has(> .turism-fact) { gap: 16px; margin-bottom: 32px; }

/* ── Feature card (atractii, imprejurimi guide) ──
   style={{ display: 'grid', gridTemplateColumns: '380px 1fr', overflow: 'hidden' }} */
.turism-feature-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
}
.turism-feature-card--reverse { grid-template-columns: 1fr 380px; }
.turism-feature-card-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.turism-feature-card--reverse .turism-feature-card-img { order: 1; }
.turism-feature-card .turism-content-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.turism-feature-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.turism-feature-stat .turism-fact-value { font-size: 20px; }
.turism-feature-card h3 { margin-bottom: 12px; }

/* Imprejurimi's guide: 320px image, 200px tall, no alternation. */
.turism-feature-card--compact { grid-template-columns: 320px 1fr; }
.turism-feature-card--compact .turism-feature-card-img { min-height: 200px; }
.turism-feature-card--compact .turism-content-card-body { padding: 28px 32px; }
.turism-feature-card--compact .turism-feature-stat { margin-bottom: 10px; }
.turism-feature-card--compact .turism-feature-stat .turism-fact-value { font-size: 18px; }

/* ── Destinations (imprejurimi) — the .turism-dest-grid, as a section ── */
.turism-grid--2:has(> .turism-dest-card) { gap: 20px; margin-bottom: 48px; }
.turism-dest-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.turism-distance {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 2px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Events (programe) — .announcements-grid at two columns ── */
.turism-grid--2:has(> .announcement-card) { gap: 20px; margin-bottom: 40px; }
.turism-event-card p {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ── Map (localizare) — style={{ marginBottom: '32px', overflow: 'hidden' }} ── */
.turism-map { margin-bottom: 32px; overflow: hidden; }

/* The same breakpoints pages.css gives the .tsx grids. */
@media (max-width: 1024px) {
  .turism-grid--2:has(> .turism-dest-card) { grid-template-columns: 1fr; }
  .turism-feature-card,
  .turism-feature-card--reverse,
  .turism-feature-card--compact { grid-template-columns: 1fr; }
  .turism-feature-card .turism-feature-card-img {
    order: 0;
    min-height: 200px;
    height: 200px;
  }
}

/* The inline grids never collapsed on a phone; two 160px columns of guesthouse
   names do not fit, so they stack here. */
@media (max-width: 768px) {
  .turism-grid--2 { grid-template-columns: 1fr; }
}
