/* ============================================================
   place.css — modèle "places" (lieux / attractions), composants
   façon cities : hero + chips, verdict pros/cons, cartes que-faire,
   cartes tarifs/horaires, badges de bus, carte, galerie, FAQ.
   ============================================================ */
.main-content.place {
    --pl-max: var(--max-width, 1120px);
    --pl-text: 760px;
    --pl-accent: var(--button-color, #2563eb);
    --pl-accent-hover: var(--button-color-hover, #1e4fd0);
    --pl-ink: #0f172a;
    --pl-muted: #64748b;
    --pl-line: #e6e8ee;
    --pl-bg-soft: #f6f8fc;
    color: var(--pl-ink);
    padding-bottom: 3.5rem;
}
.main-content.place > * { max-width: var(--pl-max); margin-left: auto; margin-right: auto; padding-left: 1.1rem; padding-right: 1.1rem; }

/* ---- Hero (2 colonnes : texte | média) ---- */
.place-hero { display: grid; gap: 1.3rem; margin-top: 1.7rem; align-items: center; }
@media (min-width: 900px) { .place-hero { grid-template-columns: 1fr 1.12fr; gap: 2.2rem; } }
@media (max-width: 899px) { .place-hero-media { order: -1; } }
.place-hero-body { min-width: 0; }
.place-h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.1; margin: 0 0 0.5rem; }
.place-address { color: var(--pl-muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
.place-address::before { content: "\1F4CD"; margin-right: 0.35rem; }
.place-intro { font-size: 1.05rem; line-height: 1.6; color: #334155; }
.place-intro > * + * { margin-top: 0.8rem; }
.place-hero-facts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.place-hero-facts li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.97rem; }
.place-fact-ico { flex: 0 0 auto; width: 21px; height: 21px; color: var(--pl-accent); }
.place-fact-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.place-fact-v { font-weight: 500; }

/* média droite : mosaïque / vidéo / image unique */
.place-hero-media { min-width: 0; }
.place-hero-single img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 16px; }
.place-hero-mosaic { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 3 / 2; }
.place-mosaic-cell { position: relative; overflow: hidden; border-radius: 12px; display: block; }
.place-mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* pas d'effet zoom sur les images */
.place-mosaic-big { grid-row: 1 / 3; border-radius: 14px; }
.place-mosaic-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.48); color: #fff; font-weight: 700; font-size: 1.15rem; }
.place-video-thumb { position: relative; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; }
.place-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.94; }
.place-video-thumb:hover img { opacity: 1; }
.place-video-thumb:focus-visible { outline: 3px solid var(--pl-accent); outline-offset: 3px; }
.place-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; }
.place-play-btn svg { width: 100%; height: 100%; }
.place-video-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; }

/* ---- Sommaire ---- */
.place-toc { margin-top: 1.8rem; background: var(--pl-bg-soft); border: 1px solid var(--pl-line); border-radius: 14px; padding: 1.1rem 1.3rem; }
.place-toc-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pl-muted); margin: 0 0 0.85rem; }
.place-toc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .place-toc-list { grid-template-columns: 1fr 1fr; } }
.place-toc-list a { display: flex; gap: 0.6rem; align-items: baseline; text-decoration: none; color: var(--pl-ink); line-height: 1.35; }
.place-toc-list a:hover, .place-toc-list a.is-active { color: var(--pl-accent); }
.place-toc-num { flex: 0 0 auto; min-width: 1.4rem; font-weight: 700; color: var(--pl-accent); font-variant-numeric: tabular-nums; }

/* ---- Sections ---- */
.place-section { margin-top: 2.6rem; }
.place-section:not(:first-child) { padding-top: 3rem; border-top: 1px solid var(--pl-line); }
.place-section-title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; margin: 0 0 1.1rem; scroll-margin-top: 70px; }
.place-section-h3 { font-size: 1.12rem; margin: 1.8rem 0 0.9rem; }
.place-prose, .place-section-intro { max-width: var(--pl-text); line-height: 1.72; }
.place-prose > * + *, .place-section-intro > * + * { margin-top: 1rem; }
.place-prose ul { list-style: disc; padding-left: 1.4rem; }
.place-prose li + li { margin-top: 0.4rem; }
.place-prose a, .place-section-intro a, .place-card-blurb a, .place-faq-a a { color: var(--pl-accent); text-decoration: underline; text-underline-offset: 3px; }
.place-prose a:hover { color: var(--pl-accent-hover); }

/* ---- Verdict : pros / cons ---- */
.place-pros-cons { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 640px) { .place-pros-cons { grid-template-columns: 1fr 1fr; } }
.place-pros, .place-cons { border-radius: 14px; padding: 1.1rem 1.25rem; }
.place-pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.place-cons { background: #fffbeb; border: 1px solid #fde68a; }
.place-pros h3, .place-cons h3 { font-size: 0.95rem; margin: 0 0 0.7rem; }
.place-pros h3 { color: #15803d; }
.place-cons h3 { color: #b45309; }
.place-pros h3::before { content: "\2713\00a0"; }
.place-cons h3::before { content: "\26A0\00a0"; }
.place-pros ul, .place-cons ul { list-style: none; padding: 0; margin: 0; }
.place-pros li, .place-cons li { position: relative; padding-left: 1.2rem; line-height: 1.5; font-size: 0.94rem; }
.place-pros li + li, .place-cons li + li { margin-top: 0.5rem; }
.place-pros li::before { content: "\2022"; position: absolute; left: 0.2rem; color: #22c55e; font-weight: 700; }
.place-cons li::before { content: "\2022"; position: absolute; left: 0.2rem; color: #f59e0b; font-weight: 700; }

/* ---- Cartes que-faire ---- */
.place-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.place-card { background: #fff; border: 1px solid var(--pl-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.place-card-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #f0f0f0; }
.place-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-card-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; }
.place-card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--pl-ink); margin: 0; }
.place-card-blurb { font-size: 0.92rem; line-height: 1.6; color: #475569; margin: 0; }
.place-card--noimg { border-left: 4px solid var(--pl-accent); border-radius: 12px; }

/* ---- Infos pratiques : tarifs / horaires ---- */
.place-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 1.3rem; }
.place-info-card { background: #fff; border: 1px solid var(--pl-line); border-radius: 16px; padding: 1.15rem 1.3rem; }
.place-info-h { font-size: 0.78rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pl-muted); margin: 0 0 0.7rem; }
.place-kv { width: 100%; border-collapse: collapse; }
.place-kv th, .place-kv td { padding: 0.5rem 0; text-align: left; border-bottom: 1px solid var(--pl-line); vertical-align: top; font-size: 0.94rem; }
.place-kv tr:last-child th, .place-kv tr:last-child td { border-bottom: 0; }
.place-kv th { font-weight: 500; color: #475569; padding-right: 0.8rem; }
.place-kv td { text-align: right; font-weight: 700; color: var(--pl-ink); white-space: nowrap; }
.place-cta { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; margin-top: 1rem; padding: 0.8rem 1.2rem; background: var(--pl-accent); color: #fff; font-weight: 700; text-decoration: none; border-radius: 12px; transition: background .15s; }
.place-cta:hover { background: var(--pl-accent-hover); }
.place-cta-price { font-weight: 500; font-size: 0.88rem; opacity: 0.9; }
.place-hero-cta { display: inline-flex; width: auto; margin-top: 1.35rem; padding: 0.85rem 1.6rem; font-size: 1.02rem; box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25); }
.place-hero-cta:hover { box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32); }
.place-crosssell { margin-top: 2.6rem; }

/* ---- 2e CTA : carte activité compacte (image + note + avis + prix), centrée, <=140px ---- */
.place-ticketcard-wrap { margin: 2.2rem auto 0; max-width: 540px; }
.place-ticketcard { display: flex; gap: 1rem; max-height: 140px; background: #fff; border: 1px solid var(--pl-line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--pl-ink); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); transition: box-shadow .2s; }
.place-ticketcard:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.place-tc-img { flex: 0 0 140px; }
.place-tc-img img { width: 140px; height: 140px; object-fit: cover; display: block; }
.place-tc-body { display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; padding: 0.7rem 1rem 0.7rem 0; min-width: 0; }
.place-tc-title { font-weight: 700; line-height: 1.3; }
.place-tc-rating { font-size: 0.86rem; color: var(--pl-muted); }
.place-tc-stars { color: #f5a623; }
.place-tc-cta { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.15rem; }
.place-tc-price { font-weight: 700; }
.place-tc-btn { background: var(--pl-accent); color: #fff; font-weight: 700; padding: 0.35rem 0.9rem; border-radius: 8px; font-size: 0.9rem; }

/* ---- Comment s'y rendre : bus-cards (format cities/beaches) ---- */
.bus-list { display: flex; flex-direction: column; gap: 0.65rem; max-width: var(--pl-text); margin-top: 1.4rem; }
.bus-card { display: flex; flex-direction: column; gap: 0.65rem; background: #f4f4f5; border: 1px solid #e4e4e7; border-radius: 14px; padding: 0.85rem 1rem; }
.bus-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.bus-badge-sep { flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 1.1rem; }
.bus-badges[data-transfer="1"] .bus-badge-sep { color: #475569; font-size: 1.25rem; }
.bus-badge { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 0.55rem; background: var(--pl-accent); color: #fff; font-weight: 700; font-size: 0.92rem; border-radius: 8px; font-variant-numeric: tabular-nums; }
.bus-body { display: flex; align-items: center; gap: 1rem; }
.bus-info { flex: 1; min-width: 0; }
.bus-route { font-weight: 600; font-size: 0.95rem; color: #18181b; }
.bus-arrow { margin: 0 0.35rem; opacity: 0.45; }
.bus-meta { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.bus-duration { display: flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: #71717a; }
.bus-duration svg { width: 14px; height: 14px; flex-shrink: 0; }
.bus-price-note { font-size: 0.82rem; color: #71717a; margin: 0.7rem 0 0; }
.bus-planner-link { display: flex; align-items: center; gap: 0.45rem; margin: 0.5rem 0 0; font-size: 0.85rem; color: #6b7280; }
.bus-planner-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.bus-planner-link a { color: var(--pl-accent); text-decoration: none; border-bottom: 1px solid rgba(37, 99, 235, 0.3); }
.bus-planner-link a:hover { border-color: var(--pl-accent); }
.place-bus-intro { margin-top: 1.5rem; }
.place-access-note { margin-top: 1.3rem; font-size: 0.97rem; color: #334155; }

/* ---- Carte ---- */
.place-mapwrap { margin-top: 0.5rem; }
.place-map { border-radius: 14px; overflow: hidden; }
.place-map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---- Galerie ---- */
.place-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; margin-top: 1.3rem; }
.place-gallery-item { margin: 0; }
.place-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; cursor: zoom-in; transition: filter .2s ease; }
.place-gallery-item img:hover { filter: brightness(0.92); }

/* ---- Visionneuse plein écran (identique à cities) ---- */
.place-lightbox { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; align-items: center; justify-content: center; padding: 5vmin; }
.place-lightbox[hidden] { display: none; }
.place-lightbox-img { max-width: 90vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.place-lightbox-close,
.place-lightbox-nav { position: fixed; border: none; background: transparent; color: #0f172a; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: color .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.place-lightbox-close[hidden],
.place-lightbox-nav[hidden] { display: none; }
.place-lightbox-close { top: 0.75rem; right: 1rem; width: 3rem; height: 3rem; font-size: 2.6rem; border-radius: 50%; }
.place-lightbox-nav { top: 50%; transform: translateY(-50%); width: 3.5rem; height: 3.5rem; font-size: 3rem; }
.place-lightbox-prev { left: 0.75rem; }
.place-lightbox-next { right: 0.75rem; }
.place-lightbox-close:hover,
.place-lightbox-nav:hover { color: var(--pl-accent); }
.place-lightbox-prev:hover { transform: translateY(-50%) scale(1.12); }
.place-lightbox-next:hover { transform: translateY(-50%) scale(1.12); }

/* ---- FAQ ---- */
.place-faq { max-width: var(--pl-text); margin-top: 0.6rem; }
.place-faq-item { border-bottom: 1px solid var(--pl-line); }
.place-faq-q { list-style: none; cursor: pointer; padding: 0.95rem 1.8rem 0.95rem 0; position: relative; font-weight: 500; font-size: 1.02rem; }
.place-faq-q::-webkit-details-marker { display: none; }
.place-faq-q::after { content: "+"; position: absolute; right: 0.2rem; top: 0.75rem; font-size: 1.5rem; color: var(--pl-accent); line-height: 1; transition: transform .2s; }
.place-faq-item[open] .place-faq-q::after { content: "\2212"; }
.place-faq-a { padding: 0 0 1.1rem; line-height: 1.7; color: #334155; }
.place-faq-a > *:first-child { margin-top: 0; }
