/* TC Agriturismo — Frontend */

/* ── Palette TC ─────────────────────────────────────────────── */
:root {
    --tc-dark:   #1A1612;
    --tc-terra:  #8B3A1A;
    --tc-gold:   #C9973A;
    --tc-cream:  #F2EDE4;
    --tc-green:  #2D4A2D;
    --tc-sand:   #A89880;
    --tc-yellow: #D4B84A;
    --tc-bg:     #FAF8F5;
    --tc-agri:   #7A2035;
}

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

/* ════════════════════════════════════════════════════════════════
   FICHE PAGE — overrides Blocksy comme tc-fiche
   ════════════════════════════════════════════════════════════════ */

body.tcag-fiche-page .site-content,
body.tcag-fiche-page #content,
body.tcag-fiche-page #primary,
body.tcag-fiche-page .content-area,
body.tcag-fiche-page .site-main,
body.tcag-fiche-page main,
body.tcag-fiche-page article,
body.tcag-fiche-page .entry-content,
body.tcag-fiche-page .container,
body.tcag-fiche-page .wp-site-blocks,
body.tcag-fiche-page .ct-container,
body.tcag-fiche-page .ct-container-full,
body.tcag-fiche-page .blocksy-content-area {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Cache le titre de la page WP (notre H1 est dans le hero) */
body.tcag-fiche-page .entry-header,
body.tcag-fiche-page .entry-title,
body.tcag-fiche-page h1.entry-title,
body.tcag-fiche-page .page-title { display: none !important; }

/* ── Bouton retour ───────────────────────────────────────────── */
.tcag-back-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 32px 0;
}
.tcag-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: var(--tc-sand);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.tcag-back-link:hover {
    color: var(--tc-terra);
    border-bottom-color: var(--tc-gold);
}

/* ── Bandeau de réservation sticky ──────────────────────────── */
.tcag-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: linear-gradient(135deg, var(--tc-agri) 0%, #5a1828 100%);
    box-shadow: 0 -4px 18px rgba(26,22,18,.22);
}
.tcag-sticky-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.tcag-sticky-cta-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}
.tcag-sticky-cta-nom {
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tcag-sticky-cta-note {
    font-size: .82rem;
    color: var(--tc-yellow);
    font-weight: 600;
    white-space: nowrap;
}
.tcag-sticky-cta-prix {
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}
.tcag-sticky-cta-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.tcag-sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: var(--tc-gold);
    color: var(--tc-dark);
    font-weight: 700;
    font-size: .85rem;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.tcag-sticky-cta-btn:hover {
    background: var(--tc-yellow);
    color: var(--tc-dark);
    transform: translateY(-1px);
}

/* Marge de sécurité en bas de fiche pour ne pas passer sous le bandeau */
.tcag-fiche-wrap { padding-bottom: 84px; }

/* ── Wrapper fiche ───────────────────────────────────────────── */
.tcag-fiche-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px 60px;
    color: var(--tc-dark);
    background: var(--tc-bg);
    font-size: 1rem;
    line-height: 1.7;
}
.tcag-fiche-title-fallback {
    margin: 36px 0 24px;
    font-size: 2rem;
    color: var(--tc-terra);
}

/* ── Hero ────────────────────────────────────────────────────── */
.tcag-fiche-hero {
    position: relative;
    width: calc(100% + 64px);
    margin: 0 -32px 36px;
    height: 400px;
    overflow: hidden;
    background: var(--tc-dark);
}
.tcag-fiche-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .9;
}
.tcag-fiche-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,22,18,0) 35%, rgba(26,22,18,.7) 100%);
}
.tcag-fiche-hero-caption {
    position: absolute;
    bottom: 28px;
    left: 36px;
    right: 36px;
}
.tcag-fiche-hero-caption h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
    line-height: 1.2;
}

/* ── Meta badges ─────────────────────────────────────────────── */
.tcag-fiche-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.tcag-fiche-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.tcag-fiche-badge-type { background: var(--tc-agri); color: #fff; }
.tcag-fiche-badge-addr { background: transparent; color: var(--tc-sand); font-weight: 400; font-size: .82rem; }
.tcag-fiche-badge-prix { background: var(--tc-cream); color: var(--tc-terra); border: 1px solid var(--tc-gold); }

.tcag-fiche-score-global {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tcag-fiche-score-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--tc-agri);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(122,32,53,.35);
}
.tcag-fiche-score-lbl {
    font-size: .75rem;
    color: var(--tc-sand);
    line-height: 1.4;
}
.tcag-fiche-score-lbl small { font-size: .7rem; }

/* ── Verdict ─────────────────────────────────────────────────── */
.tcag-fiche-verdict {
    font-style: italic;
    color: var(--tc-terra);
    border-left: 3px solid var(--tc-gold);
    padding: 10px 18px;
    margin: 0 0 8px;
    background: var(--tc-cream);
    border-radius: 0 6px 6px 0;
    font-size: 1rem;
}

/* Bandeau de transparence éditoriale — sous le verdict sur chaque fiche.
   Le "je" du texte généré par IA ne doit jamais être lu comme une preuve
   qu'Agnieszka a personnellement testé les lieux : ce bandeau le précise
   une fois, au niveau du template, plutôt que de retoucher 220 fiches. */
.tcag-fiche-editorial-note {
    font-size: .74rem;
    color: var(--tc-sand);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ── Équipements + Lieux (grille 2 cols comme tc-fiche radar) ── */
.tcag-fiche-specs-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
    align-items: start;
}
.tcag-fiche-points-box {
    background: var(--tc-cream);
    border-radius: 10px;
    padding: 18px 20px;
}
.tcag-fiche-points-box h4 {
    margin: 0 0 12px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--tc-sand);
}
.tcag-fiche-points-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tcag-fiche-points-box ul li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: .9rem;
    margin-bottom: 7px;
    line-height: 1.4;
}
.tcag-fiche-points-box ul li:last-child { margin-bottom: 0; }
.tcag-pf-icon { font-size: .95rem; flex-shrink: 0; }
.tcag-lieu-dist {
    color: var(--tc-sand);
    font-size: .78rem;
    margin-left: 4px;
}

/* ── Carte Google Maps ───────────────────────────────────────── */
.tcag-fiche-map-wrap {
    margin-bottom: 36px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--tc-cream);
    box-shadow: 0 3px 14px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
}
.tcag-fiche-map-wrap h3 {
    margin: 0;
    padding: 12px 18px;
    background: var(--tc-cream);
    font-size: .9rem;
    color: var(--tc-terra);
    border-bottom: 1px solid rgba(201,151,58,.3);
}
.tcag-fiche-gmap {
    display: block;
    width: 100%;
    height: 380px;
    border: none;
}

/* ── Location de voiture (Discover Cars) ──────────────────────── */
.tcag-car-wrap {
    margin-bottom: 36px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--tc-cream);
    box-shadow: 0 3px 14px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
}
.tcag-car-wrap h3 {
    margin: 0;
    padding: 12px 18px;
    background: var(--tc-cream);
    font-size: .9rem;
    color: var(--tc-terra);
    border-bottom: 1px solid rgba(201,151,58,.3);
}
.tcag-car-inner {
    padding: 20px;
    background: #fff;
}

/* ── Description complète ────────────────────────────────────── */
.tcag-fiche-content {
    margin-bottom: 40px;
}
.tcag-fiche-content h2 {
    font-size: 1.35rem;
    color: var(--tc-terra);
    margin: 36px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--tc-cream);
}
.tcag-fiche-content h3 {
    font-size: 1.1rem;
    color: var(--tc-dark);
    margin: 28px 0 8px;
}
.tcag-fiche-content ul {
    background: var(--tc-cream);
    border-left: 3px solid var(--tc-gold);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px 14px 36px;
    margin: 16px 0;
}
.tcag-fiche-content ul li { margin-bottom: 5px; }
.tcag-fiche-content p { margin: 0 0 18px; }
.tcag-fiche-content strong { color: var(--tc-terra); }

/* ── Sections "autres" et "à découvrir" ─────────────────────── */
.tcag-fiche-related {
    margin-bottom: 36px;
}
.tcag-fiche-related > h3 {
    font-size: 1rem;
    color: var(--tc-terra);
    margin: 0 0 16px;
}
.tcag-fiche-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* position:relative obligatoire pour le stretched-link ::after */
.tcag-fiche-related-card {
    position: relative;
    background: var(--tc-cream);
    border-radius: 8px;
    overflow: hidden;
    color: var(--tc-dark);
    transition: transform .18s, box-shadow .18s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(201,151,58,.2);
}
.tcag-fiche-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26,22,18,.1);
}
.tcag-fiche-related-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}
.tcag-fiche-related-card-body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tcag-fiche-related-nom {
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
}
.tcag-fiche-related-score {
    font-size: .75rem;
    color: var(--tc-terra);
    font-weight: 700;
}
.tcag-fiche-related-addr {
    font-size: .75rem;
    color: var(--tc-sand);
}

/* Stretched link — rend toute la card cliquable */
.tcag-fiche-related-stretched {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--tc-terra);
    text-decoration: none;
    margin-top: auto;
    padding-top: 4px;
    z-index: 1;
    position: relative;
}
.tcag-fiche-related-stretched::after {
    content: '';
    position: absolute;
    inset: -200px -12px -10px -12px; /* déborde sur toute la card */
    z-index: 0;
}
.tcag-fiche-related-card:hover .tcag-fiche-related-stretched {
    color: var(--tc-gold);
}

/* ── CTA Réservation ─────────────────────────────────────────── */
.tcag-fiche-cta {
    background: linear-gradient(135deg, var(--tc-agri) 0%, #5a1828 100%);
    border-radius: 12px;
    padding: 28px 40px;
    text-align: center;
    margin-bottom: 36px;
}
.tcag-fiche-cta > p {
    color: rgba(255,255,255,.8);
    margin: 0 0 16px;
    font-size: .9rem;
}
.tcag-fiche-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tc-gold);
    color: var(--tc-dark);
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-size: .95rem;
    letter-spacing: .02em;
    margin: 0 6px 8px;
    transition: background .2s, transform .15s;
}
.tcag-fiche-cta-btn:hover {
    background: var(--tc-yellow);
    transform: translateY(-1px);
    color: var(--tc-dark);
}
.tcag-fiche-cta-btn img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* ════════════════════════════════════════════════════════════════
   CARDS — outil de recherche [tcag_search]
   ════════════════════════════════════════════════════════════════ */

.tcag-search-wrap { font-size: .95rem; color: var(--tc-dark); }

/* ── Filtres ─────────────────────────────────────────────────── */
.tcag-filters {
    background: var(--tc-cream);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
}
.tcag-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}
.tcag-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 140px;
}
.tcag-filter-group label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tc-sand);
}
.tcag-filter-group select {
    padding: 8px 12px;
    border: 1px solid rgba(201,151,58,.4);
    border-radius: 6px;
    background: #fff;
    font-size: .88rem;
    color: var(--tc-dark);
    cursor: pointer;
}
.tcag-filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding-bottom: 1px;
}
.tcag-btn-search, .tcag-btn-reset {
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: background .15s;
}
.tcag-btn-search { background: var(--tc-terra); color: #fff; }
.tcag-btn-search:hover { background: #7a3216; }
.tcag-btn-reset { background: var(--tc-cream); color: var(--tc-terra); border: 1px solid var(--tc-terra); }
.tcag-btn-reset:hover { background: #ecddd0; }

.tcag-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(201,151,58,.25);
}
.tcag-spec-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(201,151,58,.3);
    background: #fff;
    user-select: none;
    transition: background .15s, border-color .15s;
}
.tcag-spec-check:has(input:checked) {
    background: var(--tc-gold);
    border-color: var(--tc-gold);
    color: var(--tc-dark);
    font-weight: 600;
}
.tcag-spec-check input { display: none; }

/* ── Results bar ─────────────────────────────────────────────── */
.tcag-results-bar {
    font-size: .82rem;
    color: var(--tc-sand);
    margin-bottom: 16px;
    min-height: 20px;
}

/* ── Grid ────────────────────────────────────────────────────── */
.tcag-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── No results ──────────────────────────────────────────────── */
#tcag-no-results {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--tc-sand);
    font-size: .9rem;
    line-height: 1.8;
}
#tcag-no-results strong { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ── Card ────────────────────────────────────────────────────── */
/* position:relative obligatoire pour le stretched-link ::after de .tcag-btn-fiche */
.tcag-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(201,151,58,.15);
    box-shadow: 0 2px 8px rgba(26,22,18,.06);
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.tcag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,22,18,.12);
}

.tcag-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.tcag-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.tcag-card:hover .tcag-card-img img { transform: scale(1.03); }
.tcag-card-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--tc-cream);
    color: var(--tc-sand);
}

.tcag-prix-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tc-agri);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .04em;
}
.tcag-note-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(26,22,18,.75);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.tcag-note-avis { opacity: .75; }

.tcag-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.tcag-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tc-dark);
    line-height: 1.3;
}
.tcag-card-ville {
    margin: 0;
    font-size: .8rem;
    color: var(--tc-sand);
}

/* Lieux à proximité dans la card */
.tcag-card-lieux {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .8rem;
    color: var(--tc-dark);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tcag-card-lieux li { line-height: 1.4; }

.tcag-card-specs {
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: var(--tc-terra);
}
.tcag-card-prix {
    margin: 0;
    font-size: .82rem;
    color: var(--tc-sand);
}
.tcag-card-prix strong { color: var(--tc-terra); font-size: .95rem; }

.tcag-card-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.tcag-btn-fiche {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--tc-cream);
    color: var(--tc-terra);
    border: 1px solid var(--tc-terra);
    transition: background .15s;
}
.tcag-btn-fiche:hover { background: #ecddd0; color: var(--tc-terra); }

/* Rend toute la card cliquable (sauf le bouton réservation, remonté au-dessus) */
.tcag-btn-fiche::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.tcag-btn-reserver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--tc-terra);
    color: #fff;
    transition: background .15s;
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.tcag-btn-reserver:hover { background: #7a3216; color: #fff; }
.tcag-btn-reserver img {
    height: 16px;
    width: auto;
    object-fit: contain;
}

.tcag-prix-disclaimer {
    font-size: .75rem;
    color: var(--tc-sand);
    margin-top: 20px;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tcag-fiche-wrap   { max-width: none; padding: 0 20px 60px; }
    .tcag-back-bar     { max-width: none; padding: 14px 20px 0; }
    .tcag-fiche-hero   { width: calc(100% + 40px); margin: 0 -20px 36px; }
    .tcag-fiche-hero-caption { left: 24px; right: 24px; }
    .tcag-fiche-gmap   { height: 300px; }
    .tcag-sticky-cta-inner { padding: 10px 20px; }
}

@media (max-width: 640px) {
    .tcag-fiche-hero              { height: 260px; }
    .tcag-fiche-hero-caption h1   { font-size: 1.4rem; }
    .tcag-fiche-score-global      { margin-left: 0; }
    .tcag-fiche-meta              { gap: 8px; }
    .tcag-fiche-cta               { padding: 20px 18px; }
    .tcag-fiche-related-grid      { grid-template-columns: repeat(2, 1fr); }
    .tcag-fiche-gmap              { height: 250px; }
    .tcag-filter-row              { flex-direction: column; }
    .tcag-filter-group            { min-width: 100%; }
    .tcag-cards-grid              { grid-template-columns: 1fr; }
    .tcag-sticky-cta-inner        { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px; }
    .tcag-sticky-cta-info         { justify-content: center; gap: 8px; }
    .tcag-sticky-cta-btns         { justify-content: stretch; }
    .tcag-sticky-cta-btn          { flex: 1; justify-content: center; }
    .tcag-fiche-wrap              { padding-bottom: 100px; }
}
/* ── Card inline (bloc Gutenberg dans les articles) ───────────────── */

.tcag-card--inline {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: 0 0 24px;
}

.tcag-card--inline .tcag-card-thumb {
    width: 190px;
    min-width: 150px;
    max-width: 190px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--tc-cream);
}

.tcag-card--inline .tcag-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.tcag-card--inline:hover .tcag-card-thumb img {
    transform: scale(1.04);
}

.tcag-card--inline .tcag-card-thumb--empty {
    width: 190px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--tc-sand);
}

/* Body = info (flex:1) + aside (largeur fixe) */
.tcag-card--inline .tcag-card-body {
    flex-direction: row;
    padding: 0;
    gap: 0;
}

.tcag-card-info {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tcag-card-aside {
    width: 130px;
    min-width: 110px;
    flex-shrink: 0;
    border-left: 1px solid rgba(201,151,58,.2);
    background: rgba(242,237,228,.5);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.tcag-aside-note-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1;
}

.tcag-aside-score {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--tc-agri);
    line-height: 1;
}

.tcag-aside-score-lbl {
    font-size: .62rem;
    color: var(--tc-sand);
    line-height: 1.4;
}
.tcag-aside-score-lbl small { font-size: .58rem; display: block; }

.tcag-card-aside .tcag-card-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    font-size: .95rem;
    color: var(--tc-terra);
    letter-spacing: 0;
}

.tcag-aside-prix-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tcag-prix-tag {
    display: inline-flex;
    align-items: center;
    background: var(--tc-agri);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .03em;
}

.tcag-aside-prix-nuit {
    font-size: .67rem;
    color: var(--tc-sand);
    font-style: italic;
}

/* Responsive : stack vertical sous 520px */
@media (max-width: 520px) {
    .tcag-card--inline {
        flex-direction: column;
    }
    .tcag-card--inline .tcag-card-thumb,
    .tcag-card--inline .tcag-card-thumb--empty {
        width: 100%;
        max-width: none;
        min-width: unset;
        height: 160px;
    }
    .tcag-card--inline .tcag-card-body {
        flex-direction: column;
    }
    .tcag-card-aside {
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-top: 1px solid rgba(201,151,58,.2);
        padding: 10px 14px;
        gap: 12px;
        justify-content: flex-start;
        text-align: left;
    }
}

/* ── Tooltips sur les icones specs ────────────────────────────────── */

.tcag-card-specs span {
    position: relative;
    cursor: default;
}

/* Bulle de texte */
.tcag-card-specs span::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--tc-dark);
    color: #fff;
    font-size: .68rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 30;
    line-height: 1.4;
    font-style: normal;
    letter-spacing: .01em;
}

/* Flèche */
.tcag-card-specs span::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 4px solid transparent;
    border-top-color: var(--tc-dark);
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 30;
}

.tcag-card-specs span:hover::after,
.tcag-card-specs span:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Inline card : autoriser le débordement du tooltip hors de la card */
.tcag-card--inline {
    overflow: visible;
}
.tcag-card--inline .tcag-card-thumb {
    border-radius: 9px 0 0 9px;
}

/* ══════════════════════════════════════════════════════════════════════
   HUB v2 — Search + Chips + Filter bar
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero search ─────────────────────────────────────────────────── */

.tcag-hero-search {
    position: relative;
    margin-bottom: 16px;
}

.tcag-search-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid rgba(201,151,58,.35);
    border-radius: 12px;
    padding: 0 14px;
    gap: 10px;
    box-shadow: 0 2px 14px rgba(26,22,18,.07);
    transition: border-color .2s, box-shadow .2s;
}

.tcag-search-input-wrap:focus-within {
    border-color: var(--tc-gold);
    box-shadow: 0 3px 18px rgba(201,151,58,.18);
}

.tcag-search-icon { color: var(--tc-sand); flex-shrink: 0; font-size: 1.05rem; line-height: 1; }

.tcag-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--tc-dark);
    padding: 15px 0;
    min-width: 0;
}
.tcag-search-input::placeholder { color: var(--tc-sand); }

.tcag-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--tc-sand);
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color .15s;
}
.tcag-search-clear:hover { color: var(--tc-terra); }

/* ── Autocomplete dropdown ──────────────────────────────────────── */

.tcag-autocomplete {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(201,151,58,.3);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(26,22,18,.16);
    z-index: 100;
    overflow: hidden;
}

.tcag-ac-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.tcag-ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    transition: background .1s;
}
.tcag-ac-item:hover { background: var(--tc-cream); }

.tcag-ac-nom {
    font-size: .9rem;
    font-weight: 600;
    color: var(--tc-dark);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tcag-ac-meta {
    font-size: .75rem;
    color: var(--tc-sand);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── SEO Chips ──────────────────────────────────────────────────── */

.tcag-seo-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
}

.tcag-chips-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tc-sand);
    flex-shrink: 0;
    margin-right: 2px;
}

.tcag-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(201,151,58,.28);
    background: #fff;
    font-size: .74rem;
    color: var(--tc-dark);
    text-decoration: none;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.tcag-chip:hover {
    background: var(--tc-gold);
    border-color: var(--tc-gold);
    color: var(--tc-dark);
}

/* ── Filter bar ─────────────────────────────────────────────────── */

.tcag-filterbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--tc-cream);
    border-radius: 12px;
    margin-bottom: 22px;
    position: relative;
    flex-wrap: wrap;
}

.tcag-fb-item { position: relative; }

.tcag-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1.5px solid rgba(201,151,58,.3);
    border-radius: 8px;
    background: #fff;
    font-size: .84rem;
    font-weight: 500;
    color: var(--tc-dark);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
    user-select: none;
}
.tcag-fb-btn:hover,
.tcag-fb-item.is-open .tcag-fb-btn { border-color: var(--tc-gold); }

.tcag-fb-btn.is-active {
    background: var(--tc-terra);
    border-color: var(--tc-terra);
    color: #fff;
}

.tcag-fb-chevron { transition: transform .2s; opacity: .55; }
.tcag-fb-item.is-open .tcag-fb-chevron { transform: rotate(180deg); }

.tcag-fb-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid rgba(201,151,58,.28);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(26,22,18,.14);
    padding: 8px 4px;
    z-index: 50;
    animation: tcag-panel-in .15s ease;
}

@keyframes tcag-panel-in {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tcag-fb-panel--grid {
    min-width: 270px;
    grid-template-columns: 1fr 1fr;
}
.tcag-fb-panel--grid:not([hidden]) {
    display: grid;
}

/* ── Panel "Zone" multi-colonnes (2026-09-07, corrigé le même jour) ──────
   53 villages actifs sur ce hub à un moment donné -- en liste simple, le
   dropdown dépasse largement la hauteur d'écran et oblige à scroller la
   PAGE (pas juste le panneau) pour l'atteindre en bas.

   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 : sur tc-restaurant (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. `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. ── */
.tcag-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;
}
.tcag-fb-panel--cols .tcag-fb-option--all {
    grid-column: 1 / -1;
    font-weight: 600;
    border-bottom: 1px solid rgba(201,151,58,.25);
    margin-bottom: 4px;
    padding-bottom: 9px;
}

/* Garantir que [hidden] l'emporte sur tout display déclaré */
.tcag-fb-panel[hidden] { display: none !important; }

.tcag-fb-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: .84rem;
    color: var(--tc-dark);
    transition: background .1s;
    white-space: nowrap;
}
.tcag-fb-option:hover { background: var(--tc-cream); }
.tcag-fb-option input { accent-color: var(--tc-terra); cursor: pointer; flex-shrink: 0; }

.tcag-fb-order { margin-left: auto; }
.tcag-fb-order select {
    padding: 8px 12px;
    border: 1.5px solid rgba(201,151,58,.3);
    border-radius: 8px;
    background: #fff;
    font-size: .84rem;
    color: var(--tc-dark);
    cursor: pointer;
    outline: none;
}
.tcag-fb-order select:focus { border-color: var(--tc-gold); }

.tcag-fb-reset {
    padding: 8px 13px;
    border: 1.5px solid var(--tc-terra);
    border-radius: 8px;
    background: transparent;
    font-size: .8rem;
    font-weight: 600;
    color: var(--tc-terra);
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.tcag-fb-reset:hover { background: var(--tc-terra); color: #fff; }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 700px) {
    .tcag-filterbar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }
    .tcag-fb-order { margin-left: 0; }
    .tcag-fb-panel {
        max-width: calc(100vw - 28px);
    }
    .tcag-fb-panel--grid { grid-template-columns: 1fr; min-width: 0; }
    .tcag-fb-panel--cols { grid-template-columns: repeat(2, 1fr); min-width: 0; }
}

@media (max-width: 420px) {
    .tcag-fb-panel--cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .tcag-search-input { font-size: .92rem; padding: 13px 0; }
    .tcag-seo-chips { gap: 5px; }
}

/* ══════════════════════════════════════════════════════════════════════
   HUB v3 — Split-view (liste horizontale + carte fixe), façon grands
   sites de voyage. Cards horizontales existantes (.tcag-card--inline)
   réutilisées telles quelles — seule la mise en page autour change.
   ══════════════════════════════════════════════════════════════════════ */

.tcag-split-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 40px;
}

/* Note d'aide au survol — placée juste au-dessus de .tcag-split-layout.
   Discrète mais visible : la synchronisation carte ↔ liste bidirectionnelle
   n'est pas un pattern universellement connu, mieux vaut l'expliciter que
   laisser l'utilisateur croire à un bug quand les cards scrollent seules. */
.tcag-split-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    font-size: .78rem;
    font-style: italic;
    color: var(--tc-sand);
}

.tcag-split-list {
    flex: 1 1 56%;
    min-width: 0;
}

/* .tcag-split-cards porte aussi la classe .tcag-cards-grid, qui pose un
   grid auto-fill(300px) — sur la largeur de la colonne liste (~56%), ça
   suffit pour former 2 colonnes. Le hub split veut une seule card par
   ligne (liste façon Booking/Airbnb), donc on force 1 colonne ici. */
.tcag-split-cards {
    grid-template-columns: 1fr;
}

.tcag-split-cards .tcag-card--inline:last-child { margin-bottom: 0; }

.tcag-split-map {
    flex: 1 1 44%;
    min-width: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.tcag-split-map .tc-map-instance {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(201,151,58,.28);
    box-shadow: 0 10px 34px rgba(26,22,18,.16);
}

/* Glow or "luxe" au survol — appliqué aussi bien par :hover natif (survol
   direct de la card) que par la classe .is-hovered posée en JS (survol du
   pin correspondant sur la carte) : les deux directions doivent se voir
   identiques pour que la synchronisation liste ↔ carte soit lisible. */
.tcag-split-list .tcag-card--inline {
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tcag-split-list .tcag-card--inline:hover,
.tcag-split-list .tcag-card--inline.is-hovered {
    transform: translateY(-2px);
    border-color: var(--tc-gold);
    box-shadow: 0 10px 28px rgba(201,151,58,.28);
}
.tcag-split-list .tcag-card--inline:hover .tcag-card-thumb,
.tcag-split-list .tcag-card--inline.is-hovered .tcag-card-thumb {
    box-shadow: inset -1px 0 0 rgba(201,151,58,.3);
}

/* ── Responsive : sous 1024px, la carte quitte le mode sticky/collé et
   redevient un bloc classique de hauteur réduite, au-dessus de la liste
   (repérage géographique avant la liste détaillée, pattern mobile usuel
   des sites de réservation). !important nécessaire pour dépasser le
   style inline height:700px posé par le shortcode [tc_map]. ── */
@media (max-width: 1024px) {
    .tcag-split-layout {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .tcag-split-map {
        position: static;
        width: 100%;
    }
    .tcag-split-map .tc-map-instance {
        height: 360px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   Bouton "sauter au pied de page" — voir initJumpButton() dans frontend.js.
   Le split-view charge tous les résultats d'un coup à côté d'une carte
   sticky : la liste peut faire des dizaines de milliers de pixels de haut,
   donnant l'impression que le footer (cards de conversion) n'arrive jamais.
   Positionné à droite pour ne jamais chevaucher les widgets flottants du
   site (Tosco + tc-chat), tous deux ancrés à gauche.
   ══════════════════════════════════════════════════════════════════════ */

.tcag-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(--tc-terra);
    color: #fff;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(26,22,18,.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.tcag-jump-footer.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.tcag-jump-footer:hover { background: #7a3216; }

@media (max-width: 640px) {
    .tcag-jump-footer { right: 14px; bottom: 14px; padding: 9px 16px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tcag-jump-footer { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Pagination (2026-09-06) — voir renderPagination() dans frontend.js et
   la note dans TCAG_Frontend::ajax_search() (class-tcag-frontend.php).
   ══════════════════════════════════════════════════════════════════════ */

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

.tcag-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1.5px solid rgba(201,151,58,.3);
    border-radius: 8px;
    background: #fff;
    font-size: .84rem;
    font-weight: 600;
    color: var(--tc-dark);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.tcag-pg-btn:hover:not([disabled]) { border-color: var(--tc-gold); background: var(--tc-cream); }
.tcag-pg-btn.is-current {
    background: var(--tc-terra);
    border-color: var(--tc-terra);
    color: #fff;
}
.tcag-pg-btn[disabled] {
    opacity: .35;
    cursor: default;
}
.tcag-pg-pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tcag-pg-ellipsis {
    color: var(--tc-sand);
    font-size: .84rem;
    padding: 0 2px;
}

@media (max-width: 480px) {
    .tcag-pg-btn { min-width: 30px; height: 30px; font-size: .78rem; padding: 0 8px; }
}
