/* Explore Hochatown additions on top of styles.css (same Cabin Mode look). */

/* Header: generic tree mark + Cabin Mode pill (not a link) */
.ex-mark {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; box-shadow: var(--shadow);
}
.ex-mark svg { width: 28px; height: 28px; stroke-width: 1.8; }
span.back-portal { cursor: default; user-select: none; }
.ex-intro { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* Quick buttons */
.x-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 8px; }
.x-qa {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 72px; padding: 10px 4px; border: 0; border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow); text-decoration: none; color: var(--primary); font-size: 13px;
  font-weight: 600; text-align: center; line-height: 1.2; cursor: pointer;
}
.x-qa svg { width: 22px; height: 22px; }
.x-qa:active { transform: scale(.97); }
@media (max-width: 340px) { .x-quick { grid-template-columns: repeat(2, 1fr); } }

/* Book with us */
.ex-book { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-top: 16px; }
.ex-book-url { font-size: 14px; color: var(--accent); font-weight: 600; margin: 2px 0 0; overflow-wrap: anywhere; }

/* Distance-from bar on Things to Do */
.ex-origin {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 8px 8px 12px; margin: 0 0 12px;
}
.ex-origin > svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.ex-origin span { flex: 1; min-width: 0; }
.ex-origin strong { color: var(--ink); font-weight: 600; }
.ex-origin button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; flex: none;
}
.ex-origin button svg { width: 15px; height: 15px; }

/* "You are here" / "Hochatown" label on the map */
.leaflet-tooltip.ex-here {
  background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 3px 9px;
  font: 700 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.leaflet-tooltip.ex-here::before { display: none; }

/* Save-to-phone tip, install sheet, offline pill (same as the guest guidebooks) */
.x-tip { position: relative; margin-top: 8px; }
.x-tip-row { display: flex; gap: 12px; align-items: flex-start; padding-right: 24px; }
.x-tip-close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.x-tip-close svg { width: 18px; height: 18px; }
.x-sheet .sheet-body { padding-top: 22px; }
.x-h3 { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 16px; margin: 18px 0 6px; }
.x-h3 svg { width: 18px; height: 18px; }
.x-steps { margin: 0 0 14px; padding-left: 22px; }
.x-steps li { margin: 0 0 6px; }
.x-steps svg { width: 16px; height: 16px; vertical-align: -3px; }
.x-offline {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #3A3632; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.2);
  white-space: nowrap;
}
.x-offline svg { width: 16px; height: 16px; }
.x-offline[hidden] { display: none; }

/* Cover photo credit */
.ex-hero { margin: 0; }
.ex-hero figcaption { font-size: 11px; color: var(--muted); margin: 6px 2px 0; text-align: right; }

/* Cabin Mode logo as a home tile + page header */
.ex-logo-tile { width: var(--tile); height: auto; flex: none; display: block; }
.ex-mode-logo { width: 150px; height: auto; display: block; margin: 0 auto 10px; }
.ex-round { border-radius: 50%; margin: 0 auto 10px; }

/* Weather */
.ex-wx-now { text-align: center; }
.ex-wx-temp { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 44px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.ex-wx-temp svg { width: 44px; height: 44px; color: var(--accent); }
.ex-wx-label { color: var(--muted); margin: 4px 0 6px; }
.ex-wx-meta { display: flex; justify-content: center; gap: 18px; font-size: 14px; color: var(--muted); margin: 0; }
.ex-wx-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ex-wx-meta svg { width: 15px; height: 15px; }
.ex-wx-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 15px; }
.ex-wx-row:first-of-type { border-top: 0; }
.ex-wx-row > svg { width: 20px; height: 20px; color: var(--accent); }
.ex-wx-day { width: 52px; font-weight: 600; }
.ex-wx-hi { margin-left: auto; font-weight: 700; }
.ex-wx-lo { color: var(--muted); width: 34px; }
.ex-wx-rain { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: #3B7EA1; width: 50px; justify-content: flex-end; }
.ex-wx-rain svg { width: 13px; height: 13px; }
.ex-tips { list-style: none; padding: 0; margin: 0; }
.ex-tips li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; }
.ex-tips svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* Cabin Mode */
.ex-sounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ex-sound {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: var(--radius);
  border: 2px solid var(--primary); background: var(--card); color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer;
}
.ex-sound svg { width: 26px; height: 26px; }
.ex-sound.on { background: var(--primary); color: #fff; }
.ex-prompt { background: var(--bg); border-radius: 10px; padding: 18px 14px; text-align: center; }
.ex-prompt svg { width: 22px; height: 22px; color: var(--accent); }
.ex-prompt p { font-style: italic; font-size: 17px; margin: 6px 0 0; }
.ex-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; border: 0; background: none; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; }
.ex-link svg { width: 16px; height: 16px; }
.ex-detox { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ex-chip-btn { padding: 12px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; color: var(--primary); cursor: pointer; font-size: 14px; }
.ex-acc { border-top: 1px solid var(--line); }
.ex-acc-head { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 2px; border: 0; background: none; font-weight: 600; cursor: pointer; }
.ex-acc-head svg { width: 18px; height: 18px; color: var(--primary); }
.ex-acc-body { display: none; margin: 0 0 12px; padding-left: 22px; }
.ex-acc.open .ex-acc-body { display: block; }
.ex-acc-body li { margin: 4px 0; }
.ex-input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; background: #fff; }
textarea.ex-input { resize: vertical; }
.ex-entry { border-top: 1px solid var(--line); padding: 12px 0; }
.ex-entry h3 { margin: 2px 0; color: var(--primary); font-size: 17px; }
.ex-detox-screen {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(160deg, #2F4F3E, #1D3328); color: #fff; text-align: center;
}
.ex-detox-in { max-width: 360px; }
.ex-detox-in > svg { width: 56px; height: 56px; opacity: .9; }
.ex-detox-in h2 { font-size: 28px; margin: 10px 0 6px; }
.ex-detox-in p { opacity: .9; }
.ex-detox-clock { font-size: 56px; font-weight: 700; margin: 18px 0 0; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.ex-detox-sub { margin: 0; font-size: 14px; }
.ex-detox-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; margin: 18px 0; }
.ex-detox-note svg { width: 16px; height: 16px; }
.ex-detox-in .btn { background: rgba(255,255,255,.15); color: #fff; }

/* Campfire Mode */
.ex-game .ex-game-head { display: flex; width: 100%; align-items: flex-start; gap: 10px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.ex-game-head > svg { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; margin-top: 2px; }
.ex-game.open .ex-game-head > svg { transform: rotate(180deg); }
.ex-players { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); margin: 2px 0 0; }
.ex-players svg { width: 14px; height: 14px; }
.ex-game-sum { font-size: 14.5px; margin: 8px 0 0; color: var(--ink); }
.ex-game-body { display: none; margin-top: 12px; }
.ex-game.open .ex-game-body { display: block; }
.ex-story { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; }
.ex-story .ep-watch { display: flex; align-items: center; gap: 6px; color: #C25E2D; font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.ex-story .ep-watch svg { width: 16px; height: 16px; }
.ex-story-text { margin-top: 14px; }

/* Connect */
.ex-social { width: 100%; justify-content: center; color: #fff; margin: 0 0 10px; }
.ex-tag { background: var(--bg); border-radius: 10px; padding: 14px; margin-top: 6px; }
.ex-tag svg { width: 20px; height: 20px; color: var(--accent); }
.ex-hashtags { color: var(--accent); font-size: 14px; margin: 0; }
