/* Pucón a la Carta : portail (maquette A « Volcán ») et carte d'un établissement (maquette B « Lago »).
   Maquettes : canevas Claude Design « Pucón a la Carta · Propuestas de diseño » (12 nov 2026). */
:root {
  --teal: #1F5F5B;
  --teal-dark: #123c39;
  --orange: #B9501F;
  --ink: #1B2124;
  --soft: #3F464B;
  --muted: #5A6166;
  --bg: #FAF7F2;
  --line: #E8E1D6;
  --star: #C98A16;
  --serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--bg); }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: ui-monospace, Consolas, monospace; background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 6px; }
.st { color: var(--star); letter-spacing: 1px; }

/* ================= portail (A) ================= */
.pwrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.ptop { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.ptop-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.pbrand { text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { display: block; width: 46px; height: auto; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--teal); letter-spacing: -.01em; }
.wordmark em { font-style: italic; font-weight: 500; color: var(--orange); }
.pnav { display: flex; gap: 22px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.pnav a { color: var(--soft); text-decoration: none; white-space: nowrap; font-size: .95rem; padding: 6px 0; }
.pnav a:hover { color: var(--teal); }
/* menu de langue : drapeau + code + flèche (comme FuelYourDNA) */
.plang { position: relative; }
.plang summary, .pmenu summary { list-style: none; cursor: pointer; }
.plang summary::-webkit-details-marker, .pmenu summary::-webkit-details-marker { display: none; }
.plang summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 8px; border-radius: 10px; color: var(--soft); font-weight: 600; font-size: .9rem; }
.plang summary:hover, .plang[open] summary { background: var(--bg); color: var(--ink); }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); flex: none; display: block; }
.plang .chev { transition: transform .15s; }
.plang[open] .chev { transform: rotate(180deg); }
.plang-menu { position: absolute; right: 0; top: 50px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.1); padding: 6px; min-width: 180px; }
[dir=rtl] .plang-menu { right: auto; left: 0; }
.plang-menu a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.plang-menu a:hover, .plang-menu a.on { background: var(--bg); font-weight: 600; }

/* menu ☰ (téléphone) */
.pmenu { display: none; }
.pmenu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.pmenu summary:hover, .pmenu[open] summary { background: var(--bg); }
.pmenu .ic-close, .pmenu[open] .ic-open { display: none; }
.pmenu[open] .ic-close { display: block; }
.pmenu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 25; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.08); padding: 6px 16px 16px; display: flex; flex-direction: column; }
.pmenu-panel a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.pmenu-panel a.pmenu-biz { border-bottom: 0; color: var(--orange); font-size: .95rem; }

/* Pucón et le volcan Villarrica (Pexels) : ordinateur = lac, ville et volcan (Matías Macaya) ; téléphone = volcan au-dessus
   du front de lac de Playa Grande (Rodrigo Araya). Recadrés dans wwwroot/img. */
.phero { color: #fff; background-color: var(--teal);
  background-image: linear-gradient(90deg, rgba(8,28,30,.78) 0%, rgba(8,28,30,.45) 48%, rgba(8,28,30,.08) 100%), url('/img/hero-pucon-1920.jpg');
  background-size: cover; background-position: center 58%; }
.phero-in { padding-top: 120px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 22px; }
.peyebrow { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.phero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.3rem, 5.5vw, 3.75rem); line-height: 1.02; margin: 0; max-width: 760px; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.psub { margin: 0; max-width: 580px; font-size: 1.18rem; line-height: 1.5; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.psearch { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.psearch input { flex: 1 1 280px; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); }
.psearch button, .pbtn { min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.psearch button:hover, .pbtn:hover { background: #9c4219; color: #fff; }
.psearch.small { margin: 6px 0 20px; }
.pcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; max-width: 880px; margin-top: 6px; }
.pcat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); color: #fff; text-decoration: none; backdrop-filter: blur(3px); }
.pcat:hover { background: rgba(255,255,255,.22); color: #fff; }
.pcat strong { font-size: 1rem; }
.pcat span { font-size: .82rem; opacity: .92; }
.photo-credit { margin: 30px 0 0; align-self: flex-end; font-size: .72rem; color: rgba(255,255,255,.78); }
.photo-credit a { color: inherit; }

.pmain { padding-top: 44px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 52px; }
.promo-strip { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 16px 20px; border-radius: 14px; background: #FFF4E6; border: 1px solid #F0D9B5; color: var(--ink); text-decoration: none; }
.promo-strip + .promo-strip { margin-top: -40px; }
.promo-strip:hover { color: var(--ink); border-color: #e2bf87; }
.promo-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A4A12; }
.pblock { display: flex; flex-direction: column; gap: 20px; }
.pblock h2, .plist h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.15rem); margin: 0; letter-spacing: -.01em; }
.pblock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pblock-head a { font-weight: 600; font-size: .95rem; text-decoration: none; }
.plist { padding-top: 34px; padding-bottom: 30px; }
.pintro { color: var(--soft); margin: 6px 0 0; max-width: 720px; }

/* fiches d'établissement */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.vcard:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--ink); }
.vcard-img { position: relative; height: 180px; background: var(--accent, var(--teal)); display: flex; align-items: center; justify-content: center; }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.vcard-img img.logo-only { width: 46%; height: 72%; object-fit: contain; background: #fff; border-radius: 14px; padding: 10px; }
.vcard-initial { font-family: var(--serif); font-size: 4rem; color: rgba(255,255,255,.9); }
.badge-feat { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.vcard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard-kind { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vcard-body h3 { margin: 0; font-size: 1.25rem; }
.vcard-body p { margin: 0; color: var(--soft); font-size: .92rem; }
.stars { font-size: .9rem; color: var(--soft); }
.vcard-menu { list-style: none; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: .9rem; }
.vcard-menu li { display: flex; justify-content: space-between; gap: 10px; }
.vcard-menu li span { flex: 1; min-width: 0; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard-menu li b { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.vcard-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--muted); }
.vcard-langs { font-weight: 600; color: var(--teal); }
.yourplace { border: 2px dashed #CFC6B8; border-radius: 18px; padding: 28px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 300px; }
.yourplace:hover { border-color: var(--orange); color: var(--ink); }
.yourplace h3 { margin: 0; font-family: var(--serif); font-size: 1.5rem; }
.yourplace p { margin: 0; color: var(--soft); }
.yourplace span { font-weight: 700; color: var(--orange); }
.rank { padding-left: 1.6em; display: grid; gap: 14px; margin: 0; }
.rank li::marker { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--teal); }
.rank .vcard { flex-direction: row; }
.rank .vcard-img { width: 180px; height: auto; min-height: 150px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 20px; }
.chips a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.chips a.on { background: var(--teal); color: #fff; border-color: var(--teal); }

/* plats (page « Qué comer » et accueil) */
.dishlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: stretch; }
.dish { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish h3 { margin: 0; font-size: 1.06rem; }
.dish .price { font-weight: 700; white-space: nowrap; text-align: end; font-variant-numeric: tabular-nums; }
.dish .price.txt { white-space: normal; max-width: 50%; font-size: .9rem; }
.dish .approx { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.dish .orig { margin: 0; font-size: .85rem; font-style: italic; color: var(--muted); }
.dish .desc { margin: 0; font-size: .9rem; color: var(--soft); line-height: 1.45; }
.dish .where { margin: auto 0 0; padding-top: 4px; font-size: .9rem; }
.dish .where a { font-weight: 600; text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .74rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--soft); background: #fff; }
.tag.star { border-color: var(--teal); color: var(--teal); font-weight: 600; }
.tag.local { border-color: #D7B98A; color: #7A4F10; }
.tag.veg { border-color: #9CC59A; color: #2F6B2C; }
.tag.spicy { border-color: #E7A28F; color: #A63B1F; }

.pbiz { background: var(--teal); color: #fff; border-radius: 22px; padding: 36px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pbiz h2 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 1.9rem); }
.pbiz p { margin: 0; max-width: 640px; opacity: .92; }
.pbtn-light { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: #fff; color: var(--teal); font-weight: 700; text-decoration: none; }
.pbtn-light:hover { color: var(--teal-dark); }
.pfoot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: .9rem; }
.pfoot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.pfoot p { margin: 0 0 6px; }
.pfoot strong { color: var(--ink); }
.pfoot-links a { color: var(--muted); }
.pfoot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.made-by a { color: inherit; font-weight: 600; }
@media (max-width: 700px) { .pfoot-right { align-items: flex-start; } }
.errpage { padding: 60px 16px; }

/* bon (vérification) */
.vpage { padding: 34px 16px 40px; max-width: 560px; }
.vticket { background: #fff; border: 2px dashed var(--accent, var(--teal)); border-radius: 18px; padding: 22px; }
.vticket h1 { font-family: var(--serif); margin: 4px 0; font-size: 1.8rem; }
.vstate { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #e8f3ec; color: #24563a; margin: 0 0 10px; }
.state-usado .vstate, .state-vencido .vstate, .state-anulado .vstate { background: #f8e5e2; color: #8d2b20; }
.state-futuro .vstate { background: #fff3cd; color: #7a5a00; }
.vvenue { margin: 0; text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; color: var(--muted); }
.vvalue { font-size: 1.15rem; color: var(--accent, var(--teal)); font-weight: 650; margin: 0 0 8px; }
.vcode code { font-size: 1.2rem; padding: 3px 8px; }
.vowner { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.msg { background: #e8f3ec; color: #24563a; border-radius: 10px; padding: 8px 12px; margin: 0; }
.msg.err { background: #f8e5e2; color: #8d2b20; }

@media (max-width: 700px) {
  .pwrap { padding: 0 16px; }
  .ptop-in { gap: 6px; min-height: 60px; }
  .pbrand { flex: 1; min-width: 0; gap: 6px; }
  .logo-mark { width: 36px; }
  .wordmark { font-size: 1.05rem; }
  .pnav { display: none; }
  .pmenu { display: block; }
  .phero { background-image: linear-gradient(180deg, rgba(8,28,30,.1) 0%, rgba(8,28,30,.35) 30%, rgba(8,28,30,.82) 100%), url('/img/hero-pucon-900.jpg'); background-position: 62% top; }
  .phero-in { padding-top: 140px; }
  .pcats { grid-template-columns: 1fr 1fr; }
  .rank .vcard { flex-direction: column; }
  .rank .vcard-img { width: 100%; height: 160px; }
  .pbiz { padding: 26px 22px; }
}
