/* ============================================================
   La Casa di Lucia · Guida Ospiti
   Palette "villa italiana": terracotta, oliva, crema, oro caldo
   ============================================================ */

:root {
  --terracotta: #b96a4b;
  --terracotta-dark: #9c5439;
  --oliva: #7a8158;
  --crema: #f6f1e7;
  --crema-scura: #ede6d8;
  --oro: #c9a25e;
  --inchiostro: #3d3830;
  --inchiostro-soft: #6b6357;
  --bianco: #fffdf9;
  --ombra: 0 6px 24px rgba(61, 56, 48, 0.09);
  --raggio: 18px;
  --tab-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--crema);
  color: var(--inchiostro);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px);
}

/* ---------- Lingua: mostra solo la lingua attiva ---------- */
body.lang-it .en { display: none !important; }
body.lang-en .it { display: none !important; }

/* ---------- Header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(246, 241, 231, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--terracotta);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 6px;
}
.icon-btn svg { width: 100%; height: 100%; }
.icon-btn.home-btn {
  border-radius: 50%;
  transition: background 0.18s ease, transform 0.15s ease;
}
.icon-btn.home-btn:hover { background: rgba(185, 106, 75, 0.08); }
.icon-btn.home-btn:active { background: rgba(185, 106, 75, 0.14); transform: scale(0.88); }

.lang-switch {
  margin-left: auto;
  display: flex;
  background: var(--crema-scura);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--inchiostro-soft);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lang-btn.active {
  background: var(--terracotta);
  color: var(--bianco);
  box-shadow: 0 2px 8px rgba(185, 106, 75, 0.35);
}

/* ---------- Viste ---------- */
main { padding: 0 20px; }

.view {
  display: none;
  animation: fadeUp 0.35s ease both;
  scroll-margin-top: 76px;
}
.view.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Home / hero ---------- */
.hero {
  text-align: center;
  padding: 18px 0 26px;
}
.hero-kicker {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 8px;
}
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--terracotta-dark);
}
.hero-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--inchiostro-soft);
}

/* ---------- Griglia di icone (stile guide book) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tile {
  background: var(--bianco);
  border: 1px solid rgba(61, 56, 48, 0.06);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 18px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--inchiostro);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:active { transform: scale(0.95); }
.tile svg {
  width: 42px;
  height: 42px;
  color: var(--terracotta);
}

/* ---------- Pulsante CTA (Contattaci) ---------- */
.cta-btn {
  display: block;
  margin: 28px auto 10px;
  padding: 14px 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--bianco);
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(185, 106, 75, 0.4);
  transition: transform 0.18s ease;
}
.cta-btn:active { transform: scale(0.96); }

/* ---------- Titoli sezione ---------- */
.view h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--terracotta-dark);
  text-align: center;
  margin: 10px 0 18px;
}
.view h3 {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--oliva);
  margin: 22px 0 8px;
}
.view p { margin-bottom: 12px; font-size: 15px; }
.view ul { padding-left: 20px; margin-bottom: 14px; }
.view li { margin-bottom: 7px; font-size: 15px; }
.view strong { color: var(--inchiostro); }
.view em { color: var(--inchiostro-soft); }

.view a:not(.action-btn) {
  color: var(--terracotta-dark);
  font-weight: 600;
  text-decoration-color: rgba(185, 106, 75, 0.4);
  text-underline-offset: 3px;
}

/* ---------- Foto dei luoghi ---------- */
.photo {
  margin: 10px 0 16px;
}
.photo img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  background: var(--crema-scura);
}
.photo figcaption {
  font-size: 12px;
  color: var(--inchiostro-soft);
  text-align: center;
  margin-top: 6px;
}

/* ---------- Card dei locali ---------- */
.venue {
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  overflow: hidden;
  margin: 12px 0;
}
.venue img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 190px;
  object-fit: cover;
  object-position: center center;
  background: var(--crema-scura);
}
.venue img.media-portrait {
  aspect-ratio: 4 / 5;
  min-height: 220px;
  object-position: center top;
}
.venue img.media-landscape {
  aspect-ratio: 16 / 10;
  min-height: 190px;
}
.venue-body { padding: 12px 16px 14px; }
.venue-name {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--inchiostro);
  margin: 0 0 2px !important;
}
.venue-note {
  font-size: 13.5px;
  color: var(--inchiostro-soft);
  margin: 0 0 8px !important;
}
.venue-links {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.venue-links a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Sezione spiagge ---------- */
.section-intro {
  margin: -6px 0 18px;
  font-size: 14px;
  color: var(--inchiostro-soft);
  text-align: center;
}

.beach-grid {
  display: grid;
  gap: 14px;
}

.beach-card {
  overflow: hidden;
  background: var(--bianco);
  border-radius: 24px;
  box-shadow: var(--ombra);
  border: 1px solid rgba(61, 56, 48, 0.06);
}

.beach-photo {
  margin: 0;
}

.beach-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  object-fit: cover;
  object-position: center center;
  background: var(--crema-scura);
}
.beach-photo img.media-wide {
  aspect-ratio: 16 / 9;
  min-height: 240px;
}
.beach-photo img.media-landscape {
  aspect-ratio: 16 / 10;
}
.beach-photo img.media-portrait {
  aspect-ratio: 4 / 5;
  min-height: 220px;
  object-position: center top;
}

.beach-body {
  padding: 16px;
}

.beach-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.beach-topline h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  line-height: 1;
  color: var(--terracotta-dark);
}

.beach-topline span {
  flex-shrink: 0;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oliva);
  background: var(--crema);
  border-radius: 999px;
  padding: 6px 10px;
}

.beach-body p {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--inchiostro-soft);
}

.beach-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(185, 106, 75, 0.08);
  color: var(--terracotta-dark);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.beach-link:active { transform: scale(0.98); }
.beach-link:hover { background: rgba(185, 106, 75, 0.12); }

.beach-card-wide .beach-photo img { aspect-ratio: 16 / 9; min-height: 240px; }

/* ---------- Riquadro recensioni ---------- */
.tile-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-size: 15px;
  background: linear-gradient(135deg, #fffdf9, #f8efdc);
  border: 1px solid rgba(201, 162, 94, 0.45);
}
.tile-wide svg {
  width: 30px;
  height: 30px;
  color: var(--oro);
}

.review-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bianco);
  border: 1px solid rgba(201, 162, 94, 0.45);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 18px;
  margin: 16px 0;
}
.review-box p { margin: 0; font-size: 14.5px; }
.review-score {
  font-family: "Cormorant Garamond", serif;
  font-size: 52px !important;
  font-weight: 700;
  line-height: 1;
  color: var(--oro);
  flex-shrink: 0;
}
.action-btn.gold {
  background: linear-gradient(135deg, var(--oro), #b08a45);
  box-shadow: 0 6px 18px rgba(201, 162, 94, 0.4);
}

.fine-print {
  font-size: 12px;
  color: var(--inchiostro-soft);
  margin-top: 22px;
  line-height: 1.6;
}

/* ---------- Card info (check-in/out) ---------- */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.info-card {
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 16px;
  text-align: center;
}
.info-card-label {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 4px;
}
.info-card-value {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--inchiostro);
}

/* ---------- Regole ---------- */
.rules { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.rule {
  display: flex;
  gap: 14px;
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 16px;
}
.rule-icon { font-size: 26px; line-height: 1.2; }
.rule h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--terracotta-dark); }
.rule p { margin: 0; font-size: 14px; color: var(--inchiostro-soft); }

/* ---------- Wi-Fi ---------- */
.wifi-card {
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 20px;
  margin: 6px 0 18px;
}
.wifi-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--crema-scura);
}
.wifi-label {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oliva);
}
.wifi-value {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--inchiostro);
  user-select: all;
  -webkit-user-select: all;
}

/* ---------- Pulsanti azione ---------- */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 14px 0;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--terracotta);
  color: var(--bianco);
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(185, 106, 75, 0.32);
  transition: transform 0.18s ease;
}
.action-btn:active { transform: scale(0.97); }
.action-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.action-btn.whatsapp { background: #4fae52; box-shadow: 0 6px 18px rgba(79, 174, 82, 0.32); }
.action-btn.olive { background: linear-gradient(135deg, var(--oliva), #5c6244); box-shadow: 0 6px 18px rgba(122, 129, 88, 0.35); }

.contact-actions { margin: 6px 0 10px; }

/* ---------- Emergenze ---------- */
.emergency-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.emergency-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.emergency-item h3 { margin: 0 0 2px; font-size: 15.5px; color: var(--terracotta-dark); }
.emergency-item p { margin: 0; font-size: 13px; color: var(--inchiostro-soft); }
.emergency-number {
  font-family: "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--terracotta);
  flex-shrink: 0;
}

/* ---------- Bottom Tab Bar ---------- */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(61, 56, 48, 0.08);
  z-index: 30;
}
.tab {
  flex: 1;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--inchiostro-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--terracotta); font-weight: 600; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--inchiostro);
  color: var(--bianco);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Home extras ---------- */
.moment-card,
.favorites-panel {
  background: var(--bianco);
  border-radius: 24px;
  box-shadow: var(--ombra);
  border: 1px solid rgba(61, 56, 48, 0.06);
  padding: 16px;
  margin-bottom: 14px;
}

.eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 6px;
}

.moment-card {
  display: grid;
  gap: 14px;
}
.moment-card h2 {
  text-align: left;
  font-size: 26px;
  margin: 0 0 8px;
}
.moment-card p {
  margin-bottom: 0;
  color: var(--inchiostro-soft);
}
.moment-cta {
  margin: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(61, 56, 48, 0.08);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 18px rgba(61, 56, 48, 0.06);
}
.quick-action strong,
.quick-action small {
  display: block;
}
.quick-action strong {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--inchiostro);
  margin-bottom: 2px;
}
.quick-action small {
  font-size: 12px;
  color: var(--inchiostro-soft);
}
.quick-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--crema);
  color: var(--terracotta-dark);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  flex-shrink: 0;
}

.nearby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.nearby-card {
  text-align: left;
  border: 1px solid rgba(61, 56, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,241,231,0.92));
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(61, 56, 48, 0.05);
  cursor: pointer;
}
.nearby-kicker {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oliva);
  margin-bottom: 8px;
}
.nearby-card strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  line-height: 1;
  color: var(--terracotta-dark);
  margin-bottom: 6px;
}
.nearby-card small {
  display: block;
  color: var(--inchiostro-soft);
  font-size: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 16px;
}

.service-card {
  position: relative;
  border: 1px solid rgba(61, 56, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,241,231,0.96));
  border-radius: 18px;
  padding: 14px 50px 14px 14px;
  box-shadow: 0 6px 18px rgba(61, 56, 48, 0.05);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  line-height: 1;
  color: var(--terracotta-dark);
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(-8deg);
}

.it > .service-grid:first-of-type .service-card:nth-child(1)::before,
.en > .service-grid:first-of-type .service-card:nth-child(1)::before {
  content: "◌";
}

.it > .service-grid:first-of-type .service-card:nth-child(2)::before,
.en > .service-grid:first-of-type .service-card:nth-child(2)::before {
  content: "◐";
}

.it > .service-grid:first-of-type .service-card:nth-child(3)::before,
.en > .service-grid:first-of-type .service-card:nth-child(3)::before {
  content: "◔";
}

.it > .service-grid:last-of-type .service-card:nth-child(1)::before,
.en > .service-grid:last-of-type .service-card:nth-child(1)::before {
  content: "✉";
}

.it > .service-grid:last-of-type .service-card:nth-child(2)::before,
.en > .service-grid:last-of-type .service-card:nth-child(2)::before {
  content: "◈";
}

.it > .service-grid:last-of-type .service-card:nth-child(3)::before,
.en > .service-grid:last-of-type .service-card:nth-child(3)::before {
  content: "◍";
}

.it > .service-grid:last-of-type .service-card:nth-child(4)::before,
.en > .service-grid:last-of-type .service-card:nth-child(4)::before {
  content: "✚";
}

.service-kicker {
  margin: 0 0 6px;
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oliva);
}

.service-card h4 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  line-height: 1;
  color: var(--terracotta-dark);
}

.service-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--inchiostro-soft);
}

.parking-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.parking-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--crema);
  font-size: 18px;
  line-height: 1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.panel-head h2 {
  text-align: left;
  margin: 0;
  font-size: 26px;
}
.panel-link {
  border: none;
  background: var(--crema);
  color: var(--terracotta-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.favorites-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.favorites-empty {
  color: var(--inchiostro-soft);
  font-size: 14px;
}
.favorite-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(61, 56, 48, 0.08);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.favorite-chip-open,
.favorite-chip-remove {
  border: none;
  background: transparent;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
}
.favorite-chip-open {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--inchiostro);
}
.favorite-chip-remove {
  padding: 0 10px;
  font-size: 16px;
  color: var(--inchiostro-soft);
  border-left: 1px solid rgba(61, 56, 48, 0.08);
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(61, 56, 48, 0.08);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 9px 12px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--inchiostro);
  cursor: pointer;
}
.tool-btn.active {
  background: rgba(185, 106, 75, 0.1);
  border-color: rgba(185, 106, 75, 0.22);
  color: var(--terracotta-dark);
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--inchiostro-soft);
  box-shadow: 0 8px 20px rgba(61, 56, 48, 0.12);
  cursor: pointer;
  z-index: 3;
}
.favorite-toggle.active {
  color: #c04c42;
  background: rgba(255, 244, 242, 0.96);
}

.venue,
.beach-card {
  position: relative;
}

@media (max-width: 420px) {
  .quick-actions,
  .nearby-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .moment-card h2,
  .panel-head h2,
  .nearby-card strong,
  .service-card h4 {
    font-size: 22px;
  }
}

/* ---------- Feedback privato recensioni ---------- */
.review-private-feedback {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--crema-scura);
}

/* ---------- WhatsApp Booking Helper ---------- */
.venue-booking-btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--terracotta);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}
.venue-booking-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.booking-modal.show {
  pointer-events: auto;
  opacity: 1;
}
.booking-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.booking-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--crema);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  box-sizing: border-box;
}
.booking-modal.show .booking-modal-content {
  transform: translateY(0);
}
.booking-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: none;
  font-size: 28px;
  color: var(--inchiostro-soft);
  cursor: pointer;
}
.booking-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--terracotta-dark);
  font-family: "Outfit", sans-serif;
}
.booking-modal-venue {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--oliva);
  font-family: "Outfit", sans-serif;
}
.booking-form-group {
  margin-bottom: 18px;
}
.booking-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--inchiostro-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: "Outfit", sans-serif;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--crema-scura);
  background: var(--bianco);
  font-size: 18px;
  font-weight: 600;
  color: var(--inchiostro);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.stepper-btn:active {
  transform: scale(0.9);
  background: var(--crema-scura);
}
.stepper-val {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--inchiostro);
  min-width: 24px;
  text-align: center;
}
.booking-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--crema-scura);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--bianco);
  color: var(--inchiostro);
  outline: none;
  box-sizing: border-box;
}
.booking-input:focus {
  border-color: var(--oliva);
}
.meal-selector {
  display: flex;
  gap: 12px;
}
.meal-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--crema-scura);
  background: var(--bianco);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--inchiostro-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.meal-btn.active {
  background: var(--oliva);
  color: var(--bianco);
  border-color: var(--oliva);
  box-shadow: 0 4px 10px rgba(122, 129, 88, 0.25);
}
.booking-preview-box {
  background: rgba(122, 129, 88, 0.08);
  border-left: 3px solid var(--oliva);
  padding: 14px 12px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  position: relative;
}
.preview-tag {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oliva);
  opacity: 0.65;
  letter-spacing: 0.5px;
}
.booking-preview-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--inchiostro);
  font-style: italic;
}
.booking-info-note {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--inchiostro-soft);
}


/* ============================================================
   Mappa interattiva
   ============================================================ */
.tile-map {
  background: linear-gradient(135deg, #f0ede2, #e3e8d8);
  border: 1px solid rgba(122, 129, 88, 0.4);
}
.tile-map svg { color: var(--oliva); }

.map-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.map-chips::-webkit-scrollbar { display: none; }
.map-chip {
  flex-shrink: 0;
  border: 1px solid rgba(61, 56, 48, 0.12);
  background: var(--bianco);
  color: var(--inchiostro);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(61, 56, 48, 0.07);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.map-chip.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--bianco);
  box-shadow: 0 4px 12px rgba(185, 106, 75, 0.35);
}

.map-wrap {
  position: relative;
  height: 62vh;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--ombra);
  border: 1px solid rgba(61, 56, 48, 0.1);
  background: var(--crema-scura);
}
#map { position: absolute; inset: 0; }
#map .leaflet-control-attribution {
  font-size: 9px;
  background: rgba(255, 253, 249, 0.7);
}

.map-pin {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 6px;
  background: var(--pin, var(--terracotta));
  border: 2.5px solid #fffdf9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transform: rotate(-6deg);
  transition: transform 0.15s ease;
}
.map-pin:hover { transform: rotate(-6deg) scale(1.12); }
.map-pin-home {
  width: 46px;
  height: 46px;
  font-size: 22px;
  background: linear-gradient(135deg, var(--oro), #b08a45);
  border-radius: 50%;
  transform: none;
  border-width: 3px;
}

.map-user-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3d84ff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(61, 132, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-locate {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--bianco);
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61, 56, 48, 0.25);
}
.map-locate.busy { animation: locatePulse 1s ease infinite; }
@keyframes locatePulse {
  50% { transform: scale(0.88); opacity: 0.6; }
}

.map-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1060;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: cardUp 0.28s ease both;
}
@keyframes cardUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.map-card-img {
  width: 104px;
  min-height: 104px;
  object-fit: cover;
  flex-shrink: 0;
}
.map-card-body {
  padding: 10px 34px 12px 12px;
  min-width: 0;
}
.map-card-cat {
  font-family: "Outfit", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oliva);
  margin: 0 0 2px !important;
}
.map-card-name {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--inchiostro);
  line-height: 1.25;
  margin: 0 0 3px !important;
}
.map-card-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--inchiostro-soft);
  margin: 0 0 6px !important;
}
.map-card-actions a {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--terracotta-dark);
  text-decoration: none;
}
.map-card-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(61, 56, 48, 0.08);
  color: var(--inchiostro-soft);
  font-size: 13px;
  cursor: pointer;
}

.map-hint {
  font-size: 12px;
  color: var(--inchiostro-soft);
  text-align: center;
  margin-top: 12px;
}

/* ---------- SOS / Issue Reporter ---------- */
.sos-fab {
  position: fixed;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px);
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--bianco);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(181, 101, 72, 0.35);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.sos-fab:active {
  transform: scale(0.9);
}
.sos-icon {
  font-size: 26px;
  line-height: 1;
}
.sos-tooltip {
  position: absolute;
  right: 64px;
  background: var(--inchiostro);
  color: var(--bianco);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sos-tooltip.show {
  opacity: 1;
  transform: translateX(0);
}

.sos-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 101;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sos-modal.show {
  pointer-events: auto;
  opacity: 1;
}
.sos-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sos-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--crema);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  box-sizing: border-box;
}
.sos-modal.show .sos-modal-content {
  transform: translateY(0);
}
.sos-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: none;
  font-size: 28px;
  color: var(--inchiostro-soft);
  cursor: pointer;
}
.sos-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--terracotta-dark);
  font-family: "Outfit", sans-serif;
}
.sos-modal-subtitle {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--inchiostro-soft);
}

/* ---------- Instagram Social Modal ---------- */
.social-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 101;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.social-modal.show {
  pointer-events: auto;
  opacity: 1;
}
.social-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.social-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--crema);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  box-sizing: border-box;
}
.social-modal.show .social-modal-content {
  transform: translateY(0);
}
.social-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: none;
  font-size: 28px;
  color: var(--inchiostro-soft);
  cursor: pointer;
}
.social-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--terracotta-dark);
  font-family: "Outfit", sans-serif;
}
.social-modal-subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--inchiostro-soft);
}
.booking-form-group-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--inchiostro-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: "Outfit", sans-serif;
}



/* ============================================================
   Itinerari
   ============================================================ */
#itinerari {
  position: relative;
}

#itinerari h2 {
  position: relative;
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 0.95;
}

#itinerari h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

#itinerari .section-intro {
  position: relative;
  max-width: 38ch;
  margin: 0 auto 24px;
  padding: 14px 16px;
  color: var(--inchiostro);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(237, 230, 216, 0.7)),
    radial-gradient(circle at top left, rgba(201, 162, 94, 0.22), transparent 45%);
  border: 1px solid rgba(201, 162, 94, 0.24);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(61, 56, 48, 0.08);
}

.itin-category {
  margin: 28px 0 34px;
}

.itin-category-head {
  position: sticky;
  top: 62px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 8px 2px;
  background: linear-gradient(180deg, rgba(246, 241, 231, 0.96), rgba(246, 241, 231, 0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.itin-category-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--inchiostro), #5a4f42);
  color: var(--bianco);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(61, 56, 48, 0.16);
}

.itin-category-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 29px;
  line-height: 0.95;
  color: var(--inchiostro);
}

.itin-category-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .itin-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.itin {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: var(--bianco);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(61, 56, 48, 0.12);
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(61, 56, 48, 0.08);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.itin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(201, 162, 94, 0.22), transparent 42%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.itin:active {
  transform: scale(0.985);
}

.itin:active::after {
  opacity: 1;
}

.itin > img {
  display: block;
  width: 100%;
  height: 192px;
  object-fit: cover;
  background: var(--crema-scura);
  filter: saturate(1.05) contrast(0.98);
}

.itin::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 192px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(61, 56, 48, 0.06), rgba(61, 56, 48, 0.48)),
    linear-gradient(45deg, rgba(61, 56, 48, 0.18), transparent 45%);
  z-index: 1;
}

.itin-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: -44px;
  padding: 0 16px 16px;
}

.itin-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.itin-meta span {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--bianco);
  background: rgba(61, 56, 48, 0.56);
  border: 1px solid rgba(255, 253, 249, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 999px;
}

.itin-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 0.98;
  color: var(--inchiostro);
  margin: 0 0 10px !important;
  padding: 14px 14px 0;
  background: linear-gradient(180deg, var(--bianco), rgba(255, 253, 249, 0));
  border-radius: 18px 18px 0 0;
}

.itin-desc {
  min-height: 84px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--inchiostro-soft);
  margin: 0 0 10px !important;
  padding: 0 14px;
}

.itin-steps {
  position: relative;
  min-height: 94px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: var(--terracotta-dark);
  background:
    linear-gradient(135deg, rgba(185, 106, 75, 0.1), rgba(201, 162, 94, 0.08));
  border: 1px solid rgba(185, 106, 75, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 14px 14px !important;
}

.itin-steps::before {
  content: "Tappe";
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oliva);
}

body.lang-en .itin-steps::before {
  content: "Stops";
}

.itin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  width: calc(100% - 28px);
  margin: auto 14px 0;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--bianco);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(185, 106, 75, 0.3);
  transition: transform 0.15s ease;
}
.itin-link:active { transform: scale(0.96); }

@media (max-width: 719px) {
  .itin-desc,
  .itin-steps {
    min-height: 0;
  }
}

/* ---------- Host Referral Footer ---------- */
.host-referral-footer {
  text-align: center;
  margin: 36px 0 24px;
  padding: 16px;
  border-radius: var(--raggio);
  background: rgba(122, 129, 88, 0.05);
  border: 1px dashed var(--oliva);
  box-shadow: 0 4px 12px rgba(122, 129, 88, 0.05);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.host-referral-footer a {
  text-decoration: none;
  display: block;
}
.host-referral-footer:active {
  transform: scale(0.98);
  background: rgba(122, 129, 88, 0.1);
}
.host-referral-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--oliva);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: bounceGentle 2.5s infinite ease-in-out;
}
.host-referral-desc {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--inchiostro-soft);
  line-height: 1.4;
}

@keyframes bounceGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- Modalità itinerario sulla mappa ---------- */
.map-pin-num {
  border-radius: 50%;
  transform: none;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fffdf9;
}
.map-pin-num:hover { transform: scale(1.1); }

.map-itin-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 64px;
  z-index: 1050;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
  animation: cardUp 0.28s ease both;
}
.map-itin-name {
  font-family: "Outfit", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--inchiostro);
  margin: 0 0 2px !important;
  padding-left: 12px;
  border-left: 4px solid var(--pin, var(--terracotta));
}
.map-itin-stops {
  font-size: 11px;
  line-height: 1.5;
  color: var(--inchiostro-soft);
  margin: 0 0 8px !important;
}
.map-itin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.map-itin-start {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--terracotta);
  color: var(--bianco);
  font-family: "Outfit", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(185, 106, 75, 0.35);
}
.map-itin-exit {
  border: none;
  background: rgba(61, 56, 48, 0.08);
  color: var(--inchiostro-soft);
  font-family: "Outfit", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* ============================================================
   Meteo & mare
   ============================================================ */
.meteo-card {
  background: linear-gradient(150deg, #fdfaf3, #f0ead9);
  border: 1px solid rgba(201, 162, 94, 0.28);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.meteo-now {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.meteo-icon { font-size: 38px; line-height: 1; }
.meteo-temp {
  font-family: "Outfit", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--inchiostro);
  line-height: 1.1;
  margin: 0 !important;
}
.meteo-desc {
  font-size: 12.5px;
  color: var(--inchiostro-soft);
  margin: 0 !important;
}
.meteo-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.meteo-chip, .meteo-day {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--inchiostro);
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid rgba(61, 56, 48, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.meteo-day b { color: var(--terracotta-dark); }
.meteo-tip {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  background: rgba(122, 129, 88, 0.13);
  border-left: 3px solid var(--oliva);
  border-radius: 0 12px 12px 0;
  color: var(--inchiostro);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 12px;
}
.meteo-tip b { color: var(--oliva); white-space: nowrap; }

/* ============================================================
   Passaporto della Costa
   ============================================================ */
.pass-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pass-progress-track {
  flex: 1;
  height: 10px;
  background: var(--crema-scura);
  border-radius: 999px;
  overflow: hidden;
}
.pass-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--oliva), var(--oro));
  border-radius: 999px;
  transition: width 0.5s ease;
}
.pass-progress-count {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--terracotta-dark);
}
.pass-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: var(--bianco);
  border: 1px solid rgba(61, 56, 48, 0.07);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(61, 56, 48, 0.06);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
}
.pass-item .pass-check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(61, 56, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: transparent;
  transition: all 0.2s ease;
}
.pass-item.done .pass-check {
  background: var(--oliva);
  border-color: var(--oliva);
  color: #fffdf9;
}
.pass-item.done { background: rgba(122, 129, 88, 0.08); }
.pass-item.done .pass-label {
  text-decoration: line-through;
  text-decoration-color: rgba(61, 56, 48, 0.35);
  color: var(--inchiostro-soft);
}
.pass-emoji { font-size: 20px; flex-shrink: 0; }
.pass-label { flex: 1; font-size: 14px; color: var(--inchiostro); line-height: 1.4; }
.pass-go {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--crema-scura);
  color: var(--terracotta-dark);
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pass-done {
  background: linear-gradient(135deg, #fdf8ec, #f6ecd4);
  border: 1px solid rgba(201, 162, 94, 0.45);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 18px;
  margin-top: 16px;
  text-align: center;
}
.pass-done-title {
  font-family: "Outfit", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin: 0 0 8px !important;
}
.pass-done-actions { margin-top: 6px; }
.pass-confetti {
  position: fixed;
  top: -30px;
  z-index: 2000;
  pointer-events: none;
  animation: confettiFall 2.6s ease-in forwards;
}
@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(360deg); opacity: 0.7; }
}

/* ---------- saluto personalizzato ---------- */
.hero-greet {
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--oliva);
}

/* ---------- Foglio istruzioni installazione ---------- */
.install-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(61, 56, 48, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.install-sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.install-sheet {
  background: var(--bianco);
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(30px);
  transition: transform 0.3s ease;
}
.install-sheet-backdrop.show .install-sheet { transform: translateY(0); }
.install-sheet h3 {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  margin-bottom: 14px;
}
.install-sheet ol {
  padding-left: 20px;
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.install-sheet ol[hidden] { display: none; }
.install-sheet .install-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--crema-scura);
  color: var(--inchiostro);
  font-size: 15px;
  vertical-align: middle;
}
.install-sheet-note {
  font-size: 12.5px;
  color: var(--inchiostro-soft);
  margin-top: 12px;
}
.install-sheet-close {
  margin-top: 16px;
  width: 100%;
  border: none;
  background: var(--crema-scura);
  color: var(--inchiostro);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
}
