/* Guida turistica nell'hero della home: stessa interfaccia di /guida-turistica/ (CSS incorporato dalla pagina) + mappa.
   Mobile first: tab Guide | Map; da 1000px chat e mappa affiancate. */

/* l'hero diventa la guida: niente foto/overlay del vecchio hero */
.wrc-hero.wrc-hero--guide { display: block; min-height: 0; padding: 0; background: #0a090e; box-shadow: none; border-radius: 0; overflow: visible; isolation: auto; }
.wrc-hero--guide::before, .wrc-hero--guide::after { content: none; display: none; }
.wrc-guide--hub { min-height: 0; padding: 18px 14px 40px; }

/* tab Guide | Map (solo telefono/tablet) */
.wrc-seg { position: relative; z-index: 2; display: flex; gap: 4px; max-width: 960px; margin: 0 auto 14px; padding: 4px; border-radius: 999px; background: var(--g-glass); border: 1px solid var(--g-line); }
.wrc-seg button { flex: 1; min-height: 46px; border: 0; border-radius: 999px; background: transparent; color: var(--g-mute); font: 700 .95rem var(--wrc-font-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wrc-seg button[aria-selected="true"] { background: var(--g-gold); color: #2a1300; }
.wrc-seg b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d62169; color: #fff; font: 800 .72rem/20px var(--wrc-font-body); text-align: center; }
.wrc-seg b[hidden] { display: none; }

/* mappa */
.wrc-hmap { position: relative; z-index: 1; max-width: 960px; height: min(70vh, 580px); min-height: 380px; margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--g-line); background: #1b1620; }
.wrc-hmap .wrc-map__canvas { position: absolute; inset: 0; }
.wrc-hmap__bar { position: absolute; z-index: 1000; top: 10px; left: 58px; right: 10px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.wrc-hmap__bar button { pointer-events: auto; min-height: 40px; padding: 0 15px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .96); color: #6a0631; font: 800 .82rem/1 var(--wrc-font-body); box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.wrc-hmap__bar button[aria-pressed="true"] { background: #0e8f86; color: #fff; }
.wrc-pin b { position: relative; font: 800 13px/1 var(--wrc-font-body); }
.wrc-guide--hub:not(.is-map) .wrc-hmap { display: none; }
.wrc-guide--hub.is-map #wrc-panel-chat, .wrc-guide--hub.is-map #wrc-panel-walk { display: none; }

/* pulsante "Show on the map" sotto le schede */
.wrc-mapbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(52, 211, 193, .5); background: rgba(52, 211, 193, .12); color: #7ff0e2; font: 700 .9rem var(--wrc-font-body); }
.wrc-mapbtn svg { width: 18px; height: 18px; }

/* desktop: chat e mappa affiancate */
@media (min-width: 1000px) {
  .wrc-guide--hub { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); column-gap: 28px; align-items: start; padding: 36px max(24px, calc((100vw - 1280px) / 2)) 56px; }
  .wrc-seg { display: none; }
  .wrc-guide--hub > .wrc-app { grid-column: 1; grid-row: 1; max-width: none; margin: 0; }
  .wrc-guide--hub:not(.is-map) > .wrc-hmap, .wrc-guide--hub.is-map > .wrc-hmap { display: block; grid-column: 2; grid-row: 1; position: sticky; top: 80px; height: min(78vh, 720px); max-width: none; margin: 0; }
  .wrc-guide--hub.is-map #wrc-panel-chat { display: flex; }
  .wrc-guide--hub.is-map #wrc-panel-walk:not([hidden]) { display: flex; }
}

/* colonna della chat più stretta della pagina intera: tasti su 2 colonne, "adesso" a tutta larghezza */
@media (min-width: 1000px) {
  .wrc-guide--hub .wrc-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .wrc-guide--hub .wrc-now { grid-column: 1 / -1; grid-row: auto; min-height: 170px; padding: 22px; }
  .wrc-guide--hub .wrc-now__t { font-size: clamp(1.5rem, 2.4vw, 2rem); }
  .wrc-guide--hub .wrc-head h1 { font-size: clamp(2.3rem, 3.6vw, 3.4rem); }
}
