/* tc-restaurant — frontend.css
   Palette volontairement distincte de tc-agriturismo (bordeaux) et
   tc-activite (vert/or) : terracotta + espresso, identité "trattoria". */

:root {
  --tcrest-terracotta:   #C1440E;
  --tcrest-terracotta-l: #E2703A;
  --tcrest-espresso:     #4A2C1E;
  --tcrest-text:    #1b1b1b;
  --tcrest-muted:   #5a5a5a;
  --tcrest-border:  #e0e0e0;
  --tcrest-radius:  12px;
  --tcrest-shadow:  0 2px 14px rgba(0,0,0,.09);
}

/* ── Icônes SVG trait fine (remplace tout emoji, 08/09/2026) ───── */
.tcrest-icon { flex-shrink: 0; vertical-align: -2px; color: var(--tcrest-terracotta); }

/* ── Grid de cards ────────────────────────────────────────────── */
.tcrest-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* ── Card ──────────────────────────────────────────────────────── */
.tcrest-card {
  background: #fff;
  border-radius: var(--tcrest-radius);
  box-shadow: var(--tcrest-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.tcrest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
}

.tcrest-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tcrest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tcrest-card-img-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #fbf0ea, #f7e3d6);
}

.tcrest-prix-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--tcrest-espresso);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.tcrest-note-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--tcrest-terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px 5px;
  border-radius: 6px;
  line-height: 1.3;
  text-align: right;
}
.tcrest-note-avis { font-weight: 400; opacity: .85; }

.tcrest-type-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.tcrest-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tcrest-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--tcrest-text);
  line-height: 1.3;
}
.tcrest-card-ville {
  font-size: 13px;
  color: var(--tcrest-muted);
  margin: 0 0 8px;
}
.tcrest-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.tcrest-meta-tag {
  font-size: 11px;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--tcrest-muted);
}

/* Boutons */
.tcrest-card-btns {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tcrest-btn-fiche,
.tcrest-btn-reserver {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
  line-height: 1;
}
.tcrest-btn-fiche {
  background: var(--tcrest-terracotta);
  color: #fff !important;
  flex: 1;
  text-align: center;
}
.tcrest-btn-fiche:hover { background: #9a350a; }
.tcrest-btn-reserver {
  background: var(--tcrest-espresso);
  color: #fff !important;
  flex: 1;
  text-align: center;
}
.tcrest-btn-reserver:hover { background: #331e14; }

/* ── Card inline (hub split-view) ────────────────────────────── */
.tcrest-card--inline {
  flex-direction: row;
  width: 100%;
}
.tcrest-card-thumb {
  width: 160px;
  min-height: 140px;
  flex-shrink: 0;
  overflow: hidden;
}
.tcrest-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tcrest-card-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #fbf0ea;
}
.tcrest-card--inline .tcrest-card-body {
  flex-direction: row;
  gap: 12px;
}
.tcrest-card-info { flex: 1; }
.tcrest-card-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 60px;
}
.tcrest-aside-note-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tcrest-aside-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--tcrest-terracotta);
  line-height: 1;
}
.tcrest-aside-score-lbl {
  font-size: 11px;
  color: var(--tcrest-muted);
  text-align: center;
}
.tcrest-prix-tag {
  font-size: 14px;
  font-weight: 700;
  color: var(--tcrest-espresso);
}
.tcrest-card--inline .tcrest-card-type-label {
  font-size: 11px;
  color: var(--tcrest-terracotta);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ── Fiche individuelle ─────────────────────────────────────────── */
.tcrest-fiche-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 90px;
}

.tcrest-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--tcrest-terracotta), var(--tcrest-espresso));
  box-shadow: 0 -4px 18px rgba(0,0,0,.22);
}
.tcrest-sticky-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tcrest-sticky-cta-info { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex-wrap: wrap; }
.tcrest-sticky-cta-nom { font-weight: 700; font-size: .95rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcrest-sticky-cta-note { font-size: .82rem; color: #ffd8a8; font-weight: 600; white-space: nowrap; }
.tcrest-sticky-cta-prix { font-size: .8rem; color: rgba(255,255,255,.75); white-space: nowrap; }
.tcrest-sticky-cta-btns { display: flex; gap: 8px; flex-shrink: 0; }
.tcrest-sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #fff;
  color: var(--tcrest-terracotta) !important;
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.tcrest-sticky-cta-btn:hover { background: #fbe6da; transform: translateY(-1px); }

.tcrest-fiche-hero {
  position: relative;
  height: 400px;
  border-radius: var(--tcrest-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.tcrest-fiche-hero img { width: 100%; height: 100%; object-fit: cover; }
.tcrest-fiche-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
}
.tcrest-fiche-hero-caption { position: absolute; bottom: 24px; left: 24px; right: 24px; color: #fff; }
.tcrest-fiche-hero-caption h1 { font-size: 32px; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.4); color: #fff; }
.tcrest-fiche-title-fallback { font-size: 28px; margin: 0 0 20px; }

.tcrest-fiche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.tcrest-fiche-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.tcrest-fiche-badge-type  { background: #fbe9e0; color: var(--tcrest-terracotta); }
.tcrest-fiche-badge-addr  { background: #f4f4f4; color: var(--tcrest-muted); }
.tcrest-fiche-badge-prix  { background: #f2e7e0; color: var(--tcrest-espresso); }
.tcrest-fiche-badge-chef  { background: #fff3e8; color: #8a5200; }

.tcrest-fiche-score-global {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: var(--tcrest-terracotta);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
}
.tcrest-fiche-score-circle { font-size: 28px; font-weight: 900; line-height: 1; }
.tcrest-fiche-score-lbl { font-size: 12px; opacity: .9; }

/* Bouton "Ajouter à mon carnet" (tc-mon-voyage) — juste sous l'entête,
   même emplacement que sur les fiches lieu/agriturismo/activité. */
.tcrest-fiche-mvbtn-wrap { margin: 0 0 16px; }

.tcrest-fiche-trend {
  font-size: 13px;
  color: var(--tcrest-muted);
  margin: 0 0 16px;
}

/* Sous-notes food / service / ambiance — façon TheFork */
.tcrest-fiche-subscores {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.tcrest-subscore {
  flex: 1;
  background: #faf5f1;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}
.tcrest-subscore-lbl { display: block; font-size: 11px; color: var(--tcrest-muted); text-transform: uppercase; letter-spacing: .04em; }
.tcrest-subscore-val { display: block; font-size: 20px; font-weight: 800; color: var(--tcrest-terracotta); margin-top: 2px; }

/* Où loger à proximité — Agriturismo (grille de cards natives tc-agriturismo,
   voir .tcag-cards-grid) ────────────────────────────────────────────── */
/* .tcag-cards-grid a un minmax(300px) pensé pour le hub agriturismo pleine
   largeur (1100px+). Dans .tcrest-fiche-wrap (max-width 960px), ce minimum
   ne laisse la place qu'à 2 colonnes pour les 3 résultats proposés par
   TCAG_DB::get_near() : la 3e card se retrouve systématiquement seule sur
   une 2e ligne, en décalage avec les sections "Activités"/"Lieux à
   proximité" juste à côté qui tiennent sur une seule ligne (leur propre
   grille, .tcrest-fiche-related-grid, est en minmax(200px)). On resserre
   le même grid ici, localement, pour la même cohérence visuelle — sans
   toucher au fichier tc-agriturismo, partagé avec son propre hub où le
   minmax(300px) reste pertinent (2026-09-05). */
.tcrest-fiche-related > .tcag-cards-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Où loger — Hôtels, villas & appartements (bannière CTA, un seul point GPS)
   — mêmes proportions/comportement que .tcact-fiche-heb-zone /
   .tcfl-heb-zone-card, adapté à la palette terracotta du plugin. */
.tcrest-fiche-heb-zone { margin: 28px 0; }
.tcrest-fiche-heb-zone-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--tcrest-border);
  border-radius: var(--tcrest-radius);
  box-shadow: var(--tcrest-shadow);
  padding: 18px 22px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.tcrest-fiche-heb-zone-card:hover {
  border-color: var(--tcrest-terracotta);
  box-shadow: 0 4px 20px rgba(0,0,0,.13);
}
.tcrest-fiche-heb-zone-icon { font-size: 1.8rem; flex-shrink: 0; }
.tcrest-fiche-heb-zone-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.tcrest-fiche-heb-zone-title { font-size: .95rem; font-weight: 700; color: var(--tcrest-text); }
.tcrest-fiche-heb-zone-sub { font-size: .8rem; color: var(--tcrest-muted); }
.tcrest-fiche-heb-zone-arrow { font-size: 1.2rem; color: var(--tcrest-terracotta); flex-shrink: 0; transition: transform .2s; }
.tcrest-fiche-heb-zone-card:hover .tcrest-fiche-heb-zone-arrow { transform: translateX(4px); }

.tcrest-fiche-content { line-height: 1.7; margin-bottom: 28px; }
.tcrest-fiche-content p { margin: 0 0 14px; }
.tcrest-fiche-content em { color: var(--tcrest-terracotta); font-style: italic; }

/* Menu — façon carte de restaurant, avec pointillés prix */
.tcrest-fiche-menu { margin: 28px 0; }
.tcrest-fiche-menu h3 { font-size: 20px; margin-bottom: 16px; color: var(--tcrest-text); }
.tcrest-menu-section { margin-bottom: 22px; }
.tcrest-menu-cat {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tcrest-terracotta);
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #f0d9cc;
}
.tcrest-menu-items { list-style: none; margin: 0; padding: 0; }
.tcrest-menu-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  font-size: 14.5px;
}
.tcrest-menu-item-nom { color: var(--tcrest-text); }
.tcrest-menu-item-dots {
  flex: 1;
  border-bottom: 1.5px dotted #d8c8bd;
  margin-bottom: 4px;
}
.tcrest-menu-item-prix { font-weight: 700; color: var(--tcrest-espresso); white-space: nowrap; }

/* CTA réservation */
.tcrest-fiche-cta {
  background: linear-gradient(135deg, var(--tcrest-terracotta), var(--tcrest-espresso));
  color: #fff;
  border-radius: var(--tcrest-radius);
  padding: 24px 28px;
  margin: 28px 0;
  text-align: center;
}
.tcrest-fiche-cta p { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.tcrest-fiche-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--tcrest-terracotta) !important;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s;
}
.tcrest-fiche-cta-btn:hover { background: #fbe6da; }

/* Restaurants similaires */
.tcrest-fiche-related { margin-top: 36px; }
.tcrest-fiche-related h3 { font-size: 20px; margin-bottom: 16px; }
.tcrest-fiche-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.tcrest-fiche-related-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--tcrest-shadow);
  overflow: hidden;
  position: relative;
}
.tcrest-fiche-related-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.tcrest-fiche-related-card-body { padding: 10px 12px 12px; }
.tcrest-fiche-related-nom  { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tcrest-fiche-related-addr { font-size: 12px; color: var(--tcrest-muted); margin-bottom: 8px; }
.tcrest-fiche-related-stretched::after { content: ''; position: absolute; inset: 0; }
.tcrest-fiche-related-stretched { font-size: 13px; color: var(--tcrest-terracotta) !important; font-weight: 600; text-decoration: none; }

/* ── Filterbar ──────────────────────────────────────────────────── */
.tcrest-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--tcrest-radius);
  box-shadow: var(--tcrest-shadow);
  margin: 16px 0;
  position: relative;
}
.tcrest-fb-item { position: relative; }
.tcrest-fb-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--tcrest-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--tcrest-text);
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.tcrest-fb-btn:hover,
.tcrest-fb-item--open .tcrest-fb-btn { border-color: var(--tcrest-terracotta); background: #fdf6f2; }
.tcrest-fb-chevron { transition: transform .15s; }
.tcrest-fb-item--open .tcrest-fb-chevron { transform: rotate(180deg); }
.tcrest-fb-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--tcrest-border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  padding: 8px 0;
  min-width: 200px;
  z-index: 100;
}
.tcrest-fb-option { display: flex; align-items: center; gap: 8px; padding: 7px 14px; cursor: pointer; font-size: 13px; transition: background .1s; white-space: nowrap; }
.tcrest-fb-option:hover { background: #f4f4f4; }
.tcrest-fb-option input { cursor: pointer; }

/* ── Panel "Zone" multi-colonnes (2026-09-07, corrigé le même jour) ──────
   82 villes actives à un moment donné sur ce hub -- de loin le plus fourni
   des 3 (contre 53 pour tc-agriturismo, 28 pour tc-activite).

   v1 utilisait `column-count` (colonnes CSS façon presse) pour une lecture
   alphabétique de haut en bas par colonne -- mais combiné à max-height +
   overflow, les colonnes CSS débordent HORIZONTALEMENT (créent de
   nouvelles colonnes) plutôt que de défiler verticalement dans la hauteur
   fixée : avec 82 villes ça donnait ~12 colonnes hors écran, avec un
   défilement horizontal peu visible/intuitif -- repéré par l'utilisateur
   en conditions réelles, précisément sur ce hub (le plus fourni des 3).
   `display:grid` avec un nombre de colonnes FIXE corrige ça : le
   débordement devient vertical (comportement standard d'une grille),
   jamais horizontal, quel que soit le nombre de villes. Contrepartie
   acceptée : lecture ligne par ligne (A,B,C / D,E,F…) plutôt que colonne
   par colonne -- aussi naturel pour une liste à cocher, et sans le piège
   d'overflow ci-dessus. ── */
.tcrest-fb-panel--cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 8px;
  min-width: 480px;
  max-width: calc(100vw - 28px);
  max-height: 360px;
  overflow-y: auto;
}
/* ── Bug corrigé (08/09/2026) : `display:grid` ci-dessus est une règle
   d'AUTEUR avec une propriété `display` — elle bat systématiquement le
   style UA par défaut de `[hidden]` (`display:none`), quelle que soit la
   spécificité comparée : les origines de cascade (UA < auteur) priment sur
   la spécificité pure. Résultat en prod : le panneau "Zone" restait affiché
   en permanence, impossible à fermer (signalé par l'utilisateur), alors que
   les autres panneaux (Cuisine/Budget/Note, qui n'ont pas de `display`
   déclaré sur `.tcrest-fb-panel` de base) se comportaient normalement.
   Cette règle réaffirme `display:none` dès que l'attribut `hidden` est
   présent, avec une spécificité (attribut + classe) supérieure à
   `.tcrest-fb-panel--cols` seule pour gagner de façon fiable. ── */
.tcrest-fb-panel--cols[hidden] {
  display: none;
}
.tcrest-fb-panel--cols .tcrest-fb-option--all {
  grid-column: 1 / -1;
  font-weight: 600;
  border-bottom: 1px solid var(--tcrest-border);
  margin-bottom: 4px;
  padding-bottom: 9px;
}
.tcrest-fb-order select { padding: 8px 10px; border: 1.5px solid var(--tcrest-border); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff; }
.tcrest-fb-reset { padding: 6px 12px; background: #fde8e8; color: #c00; border: none; border-radius: 8px; font-size: 12px; cursor: pointer; font-weight: 600; transition: background .1s; }
.tcrest-fb-reset:hover { background: #f5c6c6; }

.tcrest-results-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--tcrest-muted); margin: 0 2px 4px; }
#tcrest-no-results { text-align: center; padding: 40px 20px; color: var(--tcrest-muted); font-size: 16px; }

/* ── Recherche texte + autocomplétion ─────────────────────────── */
.tcrest-hero-search { position: relative; margin-bottom: 16px; }
.tcrest-search-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--tcrest-border);
  border-radius: var(--tcrest-radius);
  padding: 0 14px;
  gap: 10px;
  box-shadow: var(--tcrest-shadow);
  transition: border-color .2s, box-shadow .2s;
}
.tcrest-search-input-wrap:focus-within { border-color: var(--tcrest-terracotta-l); }
.tcrest-search-icon { color: var(--tcrest-muted); flex-shrink: 0; font-size: 1.05rem; line-height: 1; }
.tcrest-search-input { flex: 1; border: none; outline: none; background: transparent; font-size: 1rem; color: var(--tcrest-text); padding: 15px 0; min-width: 0; }
.tcrest-search-input::placeholder { color: var(--tcrest-muted); }
.tcrest-search-clear { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--tcrest-muted); line-height: 1; padding: 0 2px; flex-shrink: 0; transition: color .15s; }
.tcrest-search-clear:hover { color: var(--tcrest-terracotta); }

.tcrest-autocomplete {
  position: absolute;
  top: calc(100% + 5px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--tcrest-border);
  border-radius: var(--tcrest-radius);
  box-shadow: 0 10px 32px rgba(0,0,0,.16);
  z-index: 100;
  overflow: hidden;
}
.tcrest-ac-list { list-style: none; margin: 0; padding: 6px 0; }
.tcrest-ac-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; cursor: pointer; transition: background .1s; }
.tcrest-ac-item:hover { background: #fdf6f2; }
.tcrest-ac-nom { font-size: .9rem; font-weight: 600; color: var(--tcrest-text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcrest-ac-meta { font-size: .75rem; color: var(--tcrest-muted); white-space: nowrap; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════
   HUB — Split-view (liste horizontale + carte fixe), même pattern que
   tc-agriturismo / tc-activite.
   ══════════════════════════════════════════════════════════════════════ */

.tcrest-split-layout { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 40px; }
.tcrest-split-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: .78rem; font-style: italic; color: var(--tcrest-muted); }
.tcrest-split-list { flex: 1 1 56%; min-width: 0; }
.tcrest-split-cards { grid-template-columns: 1fr; }
.tcrest-split-cards .tcrest-card--inline { margin-bottom: 20px; }
.tcrest-split-cards .tcrest-card--inline:last-child { margin-bottom: 0; }
.tcrest-split-map { flex: 1 1 44%; min-width: 0; position: sticky; top: 20px; align-self: flex-start; }
.tcrest-split-map .tc-map-instance {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tcrest-border);
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
}
.tcrest-split-list .tcrest-card--inline { transition: transform .18s, box-shadow .18s, border-color .18s; border: 1.5px solid transparent; }
.tcrest-split-list .tcrest-card--inline:hover,
.tcrest-split-list .tcrest-card--inline.is-hovered {
  transform: translateY(-2px);
  border-color: var(--tcrest-terracotta-l);
  box-shadow: 0 10px 28px rgba(193,68,14,.28);
}

@media (max-width: 1024px) {
  .tcrest-split-layout { flex-direction: column-reverse; gap: 20px; }
  .tcrest-split-map { position: static; width: 100%; }
  .tcrest-split-map .tc-map-instance { height: 360px !important; }
}

/* ── Chips / header SEO (hub) ──────────────────────────────────── */
.tcrest-seo-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 60px; }
.tcrest-seo-header { margin: 20px 0; }
.tcrest-seo-h1 { font-size: 30px; margin: 0 0 8px; }
.tcrest-seo-intro { color: var(--tcrest-muted); font-size: 15px; }

/* ── « Affiner la recherche » — maillage interne type/zone/budget
   (22/09/2026) — même traitement pastille que .tcag-seo-footer-nav /
   .tcact-seo-footer-nav / .tcha-seo-mesh, adapté à la palette terracotta.
   Rendu par TCREST_SEO_Router::render_page(), voir class-tcrest-seo-router.php. ── */
.tcrest-seo-footer-nav {
  background: #fff;
  border: 1px solid var(--tcrest-border);
  border-radius: 22px;
  box-shadow: var(--tcrest-shadow);
  padding: 26px 28px 30px;
  margin: 40px 0;
}
.tcrest-seo-footer-nav > p {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tcrest-espresso);
}
.tcrest-seo-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}
.tcrest-seo-footer-col-heading {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--tcrest-muted);
  margin-bottom: 10px;
}
.tcrest-seo-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tcrest-seo-footer-col li { display: contents; }
.tcrest-seo-footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fbf0ea;
  color: var(--tcrest-espresso) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.tcrest-seo-footer-col a:hover {
  background: var(--tcrest-terracotta-l);
  color: #fff !important;
}
.tcrest-seo-footer-col a.is-current {
  background: var(--tcrest-terracotta);
  color: #fff !important;
}
.tcrest-fnav-count { opacity: .68; font-weight: 500; }

@media (max-width: 680px) {
  .tcrest-seo-footer-nav { padding: 20px 18px 24px; border-radius: 18px; }
  .tcrest-seo-footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .tcrest-cards-grid { grid-template-columns: 1fr; }
  .tcrest-card--inline { flex-direction: column; }
  .tcrest-card-thumb { width: 100%; height: 180px; min-height: auto; }
  .tcrest-card--inline .tcrest-card-body { flex-direction: column; }
  .tcrest-fiche-hero { height: 260px; }
  .tcrest-fiche-hero-caption h1 { font-size: 22px; }
  .tcrest-filterbar { padding: 8px 10px; }
  .tcrest-fb-panel--cols { grid-template-columns: repeat(2, 1fr); min-width: 0; }
  .tcrest-fiche-heb-zone-card { padding: 14px 16px; gap: 12px; }
  .tcrest-fiche-heb-zone-icon { font-size: 1.4rem; }
  .tcrest-search-input { font-size: .92rem; padding: 13px 0; }
  .tcrest-sticky-cta-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 14px; }
  .tcrest-sticky-cta-info { justify-content: center; gap: 8px; }
  .tcrest-sticky-cta-btns { justify-content: stretch; }
  .tcrest-sticky-cta-btn { flex: 1; justify-content: center; }
  .tcrest-fiche-wrap { padding-bottom: 100px; }
  .tcrest-fiche-subscores { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .tcrest-card, .tcrest-fb-chevron { transition: none; }
}

/* ── Bouton "sauter au pied de page" — voir initJumpButton() dans
   frontend.js. Identique dans l'esprit à tc-activite. ────────────── */
.tcrest-jump-footer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border: none;
  border-radius: 30px;
  background: var(--tcrest-terracotta);
  color: #fff;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.tcrest-jump-footer.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tcrest-jump-footer:hover { background: #9a350a; }

@media (max-width: 640px) {
  .tcrest-jump-footer { right: 14px; bottom: 14px; padding: 9px 16px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tcrest-jump-footer { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Pagination (2026-09-06) — voir renderPagination() dans frontend.js et
   la note dans TCREST_Frontend::ajax_search() (class-tcrest-frontend.php).
   Identique dans l'esprit à tc-agriturismo / tc-activite, classes
   préfixées tcrest-.
   ══════════════════════════════════════════════════════════════════════ */

.tcrest-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}

.tcrest-pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--tcrest-border);
  border-radius: 8px;
  background: #fff;
  font-size: .84rem;
  font-weight: 600;
  color: var(--tcrest-text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.tcrest-pg-btn:hover:not([disabled]) { border-color: var(--tcrest-terracotta); background: #fdf6f2; }
.tcrest-pg-btn.is-current {
  background: var(--tcrest-terracotta);
  border-color: var(--tcrest-terracotta);
  color: #fff;
}
.tcrest-pg-btn[disabled] {
  opacity: .35;
  cursor: default;
}
.tcrest-pg-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tcrest-pg-ellipsis {
  color: var(--tcrest-muted);
  font-size: .84rem;
  padding: 0 2px;
}

@media (max-width: 480px) {
  .tcrest-pg-btn { min-width: 30px; height: 30px; font-size: .78rem; padding: 0 8px; }
  .tcrest-fb-panel--cols { grid-template-columns: 1fr; }
}
