:root {
  --ink: #16302E;
  --ink-soft: #45605C;
  --paper: #F5FAF9;
  --paper-raised: #FFFFFF;
  --line: #D8E6E3;
  --teal: #0B5D5D;
  --teal-deep: #073F3F;
  --teal-tint: #E1F1EE;
  --alert: #E4572E;
  --alert-deep: #B33D1A;
  --alert-tint: #FDE7DF;
  --gold: #D9A441;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(22,48,46,0.06), 0 4px 12px rgba(22,48,46,0.06);
  --shadow-press: inset 0 2px 6px rgba(0,0,0,0.25);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header (AI HUNTER TOILET SOS brand) ---------- */
.ths-header {
  padding: calc(10px + var(--safe-top)) 12px 10px;
  background: linear-gradient(135deg, #FF3B2E 0%, #E60012 55%, #B8000E 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 3px 10px rgba(180,0,10,0.35);
}
.ths-icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.ths-icon-btn:active { background: rgba(255,255,255,0.18); }
.ths-icon-btn--menu { font-size: 22px; }
.ths-icon-btn--loc {
  width: auto;
  flex-direction: column;
  gap: 0;
  font-size: 17px;
  padding: 2px 6px;
}
.ths-icon-btn__label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; }
.ths-header__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.ths-logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ths-logo__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: 0 0 auto;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  background: #0B0B0B;
}
.ths-logo__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ths-logo__title {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.ths-logo__tagline {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-toggle {
  background: var(--teal-tint);
  color: var(--teal-deep);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}
.lang-toggle:active { background: #cfe9e3; }

/* ---------- Side menu (hamburger) ---------- */
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
}
.side-menu.hidden { display: none; }
.side-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9,10,10,0.5);
}
.side-menu__panel {
  position: relative;
  background: var(--paper-raised);
  width: 82%;
  max-width: 320px;
  height: 100%;
  padding: calc(20px + var(--safe-top)) 20px 20px;
  overflow-y: auto;
  box-shadow: 6px 0 20px rgba(0,0,0,0.2);
}
.side-menu__close {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: 14px;
  border: none;
  background: var(--teal-tint);
  color: var(--teal-deep);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}
.side-menu__heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 22px 0 10px;
}
.side-menu__heading:first-of-type { margin-top: 6px; }
.side-menu__footnote {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 26px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.search-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}
.search-input:focus { outline: 2px solid var(--teal); }

.area-select {
  flex: 0 0 auto;
  max-width: 40%;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius-s);
  padding: 10px 10px;
  font-size: 13px;
  color: var(--ink);
}
.area-select--full { max-width: 100%; width: 100%; margin: 0 0 10px; }

.browse-zone { padding: 10px 16px calc(76px + var(--safe-bottom)); }

.city-bar--vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: none;
  padding: 0;
  position: static;
}
.city-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--teal-tint);
  color: var(--teal-deep);
  cursor: pointer;
  white-space: nowrap;
}
.city-btn .count {
  font-weight: 500;
  opacity: 0.7;
  margin-left: 4px;
  font-size: 11.5px;
}
.city-bar--vertical .city-btn {
  background: var(--teal-tint);
  color: var(--teal-deep);
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  display: flex;
  justify-content: space-between;
}
.city-bar--vertical .city-btn[data-active="true"] {
  background: var(--teal);
  color: #fff;
}


.city-bar--horizontal {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 16px 6px;
  background: var(--paper);
}
.city-bar--horizontal::-webkit-scrollbar { display: none; }
.city-bar--horizontal .city-btn {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
}
.city-bar--horizontal .city-btn[data-active="true"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
@media (max-width: 600px) {
  .city-bar--horizontal { padding-left: 10px; padding-right: 10px; }
  .city-bar--horizontal .city-btn { padding: 8px 11px; font-size: 12.5px; }
}

/* ---------- God-toilet banner (round button, primary position) ---------- */
.god-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: linear-gradient(180deg, #FFF8E6 0%, #FFFDF6 100%);
  border-bottom: 1px solid #EAD9A0;
}
.god-banner__left { min-width: 0; overflow: hidden; }
.god-banner__title {
  font-size: clamp(18px, 6.2vw, 24px);
  font-weight: 900;
  color: #8A6116;
  line-height: 1.1;
  white-space: nowrap;
}
.god-banner__sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 4px;
}
.god-banner__right { min-width: 0; text-align: right; }
.god-banner__push { font-size: 14px; font-weight: 800; color: var(--ink); }
.god-banner__desc { font-size: 10.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; }

.god-circle-wrap { flex: 0 0 auto; }
.god-circle {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #E8C765;
  background: radial-gradient(circle at 50% 32%, #3A3A3A 0%, #141414 65%, #000 100%);
  color: #F0CD6B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 #5A4712, 0 10px 18px rgba(138,97,22,0.35);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease;
}
.god-circle:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #5A4712, 0 4px 10px rgba(138,97,22,0.35);
}
.god-circle__label {
  font-size: 34px;
  line-height: 1;
}
.god-circle.is-pressed {
  animation: godPress 0.3s ease;
}
@keyframes godPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.god-results { padding: 14px 16px 6px; background: var(--paper); }
.god-results.hidden { display: none; }

.god-status {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 20px 10px;
  line-height: 1.6;
}

.god-close-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  cursor: pointer;
}

/* ---------- One-tap quick report ---------- */
.quick-report {
  background: var(--teal-tint);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  margin-top: 10px;
}
.quick-report__title { font-weight: 800; font-size: 13px; color: var(--teal-deep); }
.quick-report__note { font-size: 10.5px; color: var(--ink-soft); margin: 4px 0 10px; line-height: 1.5; }
.quick-report__buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-report__btn {
  border: 1px solid var(--teal);
  background: var(--paper-raised);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.quick-report__btn--done { background: var(--teal); color: #fff; }
.quick-report__count { font-size: 10.5px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Premium sponsor card ---------- */
.card--premium {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 2px solid #C9A227;
  box-shadow: 0 4px 16px rgba(201,162,39,0.4), var(--shadow-card);
}
.premium-card__header {
  background: linear-gradient(90deg, #141414, #2B2B2B 55%, #141414);
  color: #F0CD6B;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
}
.premium-card__photo { width: 100%; height: 160px; object-fit: cover; display: block; }
.premium-card__photo--placeholder {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.premium-card__body { padding: 14px; }
.premium-card__name { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.premium-card__intro { font-size: 13px; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
.premium-card__pr { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.5; }
.premium-card__product { font-size: 12.5px; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.premium-card__links { display: flex; gap: 10px; margin-top: 8px; }
.premium-card__links a { font-size: 12px; color: var(--teal); font-weight: 700; text-decoration: none; }

/* ---------- Sponsor info sheet ---------- */
.sponsor-info__lead { font-size: 13px; color: var(--ink); line-height: 1.6; margin-bottom: 16px; }
.sponsor-plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.sponsor-plan--partner { border-color: #1A73E8; }
.sponsor-plan--premium { border-color: #C9A227; background: linear-gradient(180deg, #FFFDF6, #fff); }
.sponsor-plan__name { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.sponsor-plan--partner .sponsor-plan__name { color: #1A73E8; }
.sponsor-plan--premium .sponsor-plan__name { color: #8A6116; }
.sponsor-plan__list { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.sponsor-info__pricing {
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--teal-tint);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  margin: 6px 0 18px;
  line-height: 1.6;
}
.sponsor-info__disclaimer {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.type-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
  margin: 2px 0 2px;
}
.type-badge--dept { background: #FCE8CC; color: #8A5A0F; }
.type-badge--station { background: #D9E8FB; color: #1D4E89; }
.type-badge--park { background: #DCF3E1; color: #1E6B37; }
.type-badge--gov { background: #E7E1F5; color: #4B3A85; }
.type-badge--other { background: var(--teal-tint); color: var(--teal-deep); }

/* ---------- Filter bar (near/24h/wheelchair/settings pills) ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.filter-pill[data-active="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.filter-pill--ghost { margin-left: auto; }
.filter-pill__icon { font-size: 13px; }

/* ---------- Map ---------- */
.map-section {
  position: relative;
  height: 46vh;
  min-height: 320px;
  border-bottom: 1px solid var(--line);
}
.leaflet-map { width: 100%; height: 100%; }
.map-section.map-section--expanded { height: calc(100vh - 260px); min-height: 380px; }
.pin-marker {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
  position: relative;
}
.pin-marker--normal {
  background: var(--paper-raised);
  border: 2px solid var(--alert);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.pin-marker--normal::before { content: ""; transform: rotate(45deg); }
.pin-marker__badge {
  position: absolute;
  transform: rotate(45deg);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  border-radius: 4px;
  padding: 1px 2px;
  bottom: -4px;
}
.pin-marker__badge--24h { left: -6px; background: var(--teal); color: #fff; }
.pin-marker__badge--wheel { right: -6px; background: #1A73E8; color: #fff; }
.pin-marker--god {
  width: 42px;
  height: 42px;
  font-size: 24px;
  background: radial-gradient(circle at 50% 32%, #3A3A3A 0%, #141414 65%, #000 100%);
  border: 3px solid #E8C765;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232,199,101,0.3), 0 2px 6px rgba(0,0,0,0.4);
}
.pin-marker--me {
  background: #1A73E8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(26,115,232,0.25);
}
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
  background-color: rgba(11, 93, 93, 0.25) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background-color: var(--teal) !important;
  color: #fff !important;
  font-weight: 700;
}

.show-more-btn {
  display: block;
  width: 100%;
  margin: 6px 0 4px;
  padding: 12px;
  border: none;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.show-more-btn.hidden { display: none; }

/* ---------- Bottom tab bar ---------- */
.bottom-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + var(--safe-bottom));
  z-index: 25;
}
.bottom-tab {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 0;
}
.bottom-tab__icon { font-size: 20px; }
.bottom-tab[data-active="true"] { color: var(--alert); }

/* ---------- Favorite star on cards ---------- */
.card__fav {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  flex: 0 0 auto;
  line-height: 1;
  padding: 2px;
}

#rankChips .chip[data-rank="S"][data-active="true"] { background: #C0392B; border-color: #C0392B; }
#rankChips .chip[data-rank="A"][data-active="true"] { background: var(--gold); border-color: var(--gold); }
#rankChips .chip[data-rank="B"][data-active="true"] { background: var(--ink-soft); border-color: var(--ink-soft); }

.photo-placeholder {
  width: 100%;
  height: 160px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-m);
  font-size: 13px;
  margin-bottom: 12px;
}
.photo-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-m);
  margin-bottom: 12px;
  display: block;
}

.chip {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.chip[data-active="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.result-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 4px 2px 10px;
}

.list-container { display: flex; flex-direction: column; gap: 10px; }

.area-heading {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 2px 2px;
}
.area-heading:first-child { margin-top: 0; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 13px 15px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  flex-wrap: wrap;
}
.card__badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--alert);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.card__area {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.card__go {
  flex: 0 0 100%;
  margin-top: 8px;
  text-align: center;
  background: #1A73E8;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 999px;
  text-decoration: none;
}
.card__go:active { background: #1558B0; }

/* ---------- God-toilet certification (black x gold) ---------- */
.card.godcard {
  border: 2px solid #C9A227;
  box-shadow: 0 3px 12px rgba(201,162,39,0.35), var(--shadow-card);
  padding-top: 34px;
}
.card.godcard .card__badge { top: 26px; }
.god-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #141414, #2B2B2B 55%, #141414);
  color: #F0CD6B;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: calc(var(--radius-m) - 1px) calc(var(--radius-m) - 1px) 0 0;
  border-bottom: 1px solid #C9A227;
}
.god-badge--detail {
  position: static;
  display: inline-block;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- God-toilet premium hero (detail sheet) ---------- */
.god-hero {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 4px;
}
.god-hero__img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}
.god-hero__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
  border: 1.5px solid #E8C765;
  color: #F0CD6B;
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.god-hero__badge-ja { font-weight: 800; font-size: 13px; }
.god-hero__badge-en { font-weight: 700; font-size: 8.5px; letter-spacing: 0.06em; opacity: 0.9; }
.god-hero__disclaimer {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin: 4px 0 10px;
}

.god-amenity-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
}
.god-amenity {
  flex: 0 0 auto;
  min-width: 64px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 8px 6px;
  text-align: center;
}
.god-amenity__icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}
.god-amenity__icon--teal { background: var(--teal); }
.god-amenity__icon--blue { background: #1A73E8; }
.god-amenity__icon--gray { background: var(--ink-soft); }
.god-amenity__label { font-size: 10px; color: var(--ink-soft); font-weight: 600; }

.god-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.god-extra__item {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.god-extra--emphasize {
  background: linear-gradient(90deg, #FFF8E6, #FFFDF6);
  border-top: none;
  border-radius: var(--radius-s);
  padding: 8px 10px;
  margin-top: 8px;
}
.god-extra--emphasize .god-extra__item { color: #8A6116; font-weight: 700; }

/* ---------- Sponsor tiers (future use; no current data sets these) ---------- */
.sponsor-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 1;
}
.sponsor-badge--partner { background: #1A73E8; color: #fff; }
.sponsor-badge--premium { background: linear-gradient(90deg, #C9A227, #F0CD6B); color: #141414; }
.card--partner { border: 1px solid #1A73E8; }
.partner-extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.partner-extra__intro { font-size: 12.5px; color: var(--ink); margin-bottom: 4px; line-height: 1.5; }
.partner-extra__pr { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; line-height: 1.5; }
.partner-extra__product { font-size: 12px; color: var(--gold); font-weight: 700; }
/* .card--premium's actual layout is defined near the premium-card__* rules below,
   since PREMIUM cards use a dedicated markup structure rather than the standard .card. */

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.card__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card__icon { font-size: 16px; flex: 0 0 auto; }
.card__meta {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}
.tag--24h { background: var(--teal-tint); color: var(--teal-deep); }
.tag--rank { background: #FCEFD1; color: #8A6116; }
.tag--unusable { background: #F0E1E1; color: #8A3A3A; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Detail sheet ---------- */
.detail-sheet {
  position: fixed;
  inset: 0;
  background: rgba(9,26,25,0.45);
  z-index: 50;
  display: flex;
  align-items: flex-end;
}
.detail-sheet.hidden { display: none; }
.detail-sheet__panel {
  background: var(--paper-raised);
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 20px 20px calc(24px + var(--safe-bottom));
  position: relative;
}
.detail-sheet__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: var(--teal-tint);
  color: var(--teal-deep);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}
.detail-name { font-size: 19px; font-weight: 800; margin: 4px 32px 4px 0; }
.detail-name-en { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.detail-row { font-size: 13.5px; margin-bottom: 8px; display: flex; gap: 8px; }
.detail-row__label { flex: 0 0 88px; color: var(--ink-soft); }
.detail-memo {
  background: var(--teal-tint);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.55;
}
.detail-memo--user {
  background: #FBF6E8;
}
.detail-go {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: var(--teal);
  color: #fff;
  padding: 13px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.detail-go--disabled {
  background: var(--line);
  color: var(--ink-soft);
  pointer-events: none;
}

/* ---------- Banners ---------- */
.offline-banner, .install-banner {
  padding: 9px 16px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.offline-banner {
  background: #4A4A4A;
  color: #fff;
  justify-content: center;
}
.offline-banner.hidden, .install-banner.hidden { display: none; }
.install-banner {
  background: var(--gold);
  color: #3A2A05;
  justify-content: space-between;
}
.install-btn {
  border: none;
  background: var(--teal-deep);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  flex: 0 0 auto;
}
.install-dismiss {
  border: none;
  background: transparent;
  color: #3A2A05;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}

/* ---------- Card photo ---------- */
.card__photo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-s);
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--teal-tint);
}
.card__photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-s);
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.card__body { flex: 1; min-width: 0; }

.tag--hidden-gem { background: #EFE7F7; color: #5C3D96; }
.tag--night-safe { background: #E6EEFB; color: #26497C; }

/* ---------- Ranking view ---------- */
.ranking-note {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--teal-tint);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.rank-medal {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.rank-medal--1 { background: #F6D77A; color: #6B4E00; }
.rank-medal--2 { background: #D9D9D9; color: #4A4A4A; }
.rank-medal--3 { background: #E3B48B; color: #5A3418; }
.rank-card__name { font-weight: 700; font-size: 14.5px; }
.rank-card__meta { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.rank-card--god { border: 2px solid #C9A227; box-shadow: 0 3px 12px rgba(201,162,39,0.3), var(--shadow-card); }
.rank-testimonial {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
}
.app-footer {
  display: none; /* replaced by .side-menu__footnote */
}

main { flex: 1; padding-bottom: 8px; }

@media (min-width: 640px) {
  main, .ths-header, .filter-bar, .map-section, .bottom-tabs { max-width: 560px; margin-left: auto; margin-right: auto; }
  body { align-items: center; }
}

/* v16: God Toilet is a true full-screen feature page on mobile */
.detail-sheet--god { background:#0d0d0d; align-items:stretch; }
.detail-sheet--god .detail-sheet__panel {
  max-height:100dvh; height:100dvh; border-radius:0; padding:0 0 calc(28px + var(--safe-bottom));
  background:linear-gradient(180deg,#111 0,#17130a 34%,#fffaf0 58%,#fff 100%);
}
.detail-sheet--god .detail-sheet__close { position:fixed; z-index:60; top:calc(12px + env(safe-area-inset-top)); right:14px; background:rgba(0,0,0,.78); color:#f0cd6b; border:1px solid #c9a227; }
.detail-sheet--god #detailContent { padding:calc(18px + env(safe-area-inset-top)) 14px 24px; }
.detail-sheet--god .god-detail-kicker { color:#f0cd6b; font-size:13px; font-weight:900; letter-spacing:.08em; margin:4px 44px 8px 2px; }
.detail-sheet--god .detail-name { color:#fff; font-size:25px; margin:0 44px 12px 2px; text-shadow:0 1px 8px rgba(0,0,0,.5); }
.detail-sheet--god .detail-name-en { color:#eadcae; }
.detail-sheet--god .god-hero { border:1px solid #c9a227; border-radius:18px; box-shadow:0 10px 30px rgba(0,0,0,.38); }
.detail-sheet--god .god-hero__img { max-height:none; aspect-ratio:16/10; object-fit:cover; }
.detail-sheet--god .god-hero__disclaimer { color:#d8cda9; margin:6px 4px 12px; }
.detail-sheet--god .god-amenity-strip { margin:0 0 14px; }
.detail-sheet--god .god-amenity { background:#fff; border-color:#e5d49a; }
.detail-sheet--god .detail-row, .detail-sheet--god .detail-memo, .detail-sheet--god .god-extra { background:rgba(255,255,255,.96); border-radius:12px; padding:10px 12px; margin-bottom:8px; }
.detail-sheet--god .detail-row__label { color:#8a6116; font-weight:800; }
.detail-sheet--god .detail-memo { border:1px solid #ead9a2; }
.detail-sheet--god .detail-go--god { background:linear-gradient(135deg,#d8a91e,#f0cd6b); color:#17120a; font-weight:900; box-shadow:0 6px 18px rgba(201,162,39,.3); }
@media (min-width:700px){ .detail-sheet--god .detail-sheet__panel{max-width:560px;margin:0 auto;} }


/* ===== v18: map-first cleanup ===== */
/* Home screen: no city/category/filter chrome. The map is the product. */
.city-bar--horizontal,
.filter-bar,
#openSponsorInfo,
#sponsorInfoSheet { display: none !important; }

/* No long one-by-one result feed on the home/map screen. Pins open details directly. */
.browse-zone { display: none; }
body[data-active-tab="favorites"] .browse-zone,
body[data-active-tab="ranking"] .browse-zone { display: block; }

.map-section,
.map-section.map-section--expanded {
  height: calc(100dvh - 72px - 64px - var(--safe-top) - var(--safe-bottom));
  min-height: 520px;
  border-bottom: 0;
}

@supports not (height: 100dvh) {
  .map-section, .map-section.map-section--expanded {
    height: calc(100vh - 136px - var(--safe-top) - var(--safe-bottom));
  }
}

@media (max-width: 600px) {
  .ths-header { padding-top: calc(7px + var(--safe-top)); padding-bottom: 7px; }
  .ths-logo__icon { width: 38px; height: 38px; }
  .ths-logo__title { font-size: 18px; }
  .ths-logo__tagline { font-size: 9.5px; }
  .map-section, .map-section.map-section--expanded { min-height: 0; }
}

/* ===== v19: true map-only home + detail overlay fix ===== */
/* Home means map. No branding/explanation/filter/navigation chrome over it. */
.ths-header,
#godZone,
.god-banner,
#godResults,
.city-bar--horizontal,
.filter-bar,
.browse-zone,
.bottom-tabs,
#openSponsorInfo,
#sponsorInfoSheet {
  display: none !important;
}

main {
  width: 100%;
  max-width: none !important;
  height: 100dvh;
  padding: 0;
  margin: 0;
}

.map-section,
.map-section.map-section--expanded {
  width: 100%;
  max-width: none !important;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  border: 0;
}

@supports not (height: 100dvh) {
  main,
  .map-section,
  .map-section.map-section--expanded { height: 100vh; }
}

/* Leaflet uses z-index values up to the hundreds. Details must always sit above the map. */
.detail-sheet { z-index: 5000; }
.detail-sheet__close { z-index: 5010; }
.detail-sheet--god .detail-sheet__close { z-index: 5010; }

/* God Toilet detail: readable on desktop as well as iPhone. */
@media (min-width: 700px) {
  .detail-sheet--god { align-items: center; justify-content: center; padding: 24px; }
  .detail-sheet--god .detail-sheet__panel {
    width: min(760px, calc(100vw - 48px));
    max-width: 760px;
    height: min(92dvh, 920px);
    max-height: 92dvh;
    border-radius: 20px;
    overflow-y: auto;
  }
  .detail-sheet--god .god-hero__img {
    width: 100%;
    max-height: 420px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

/* v20: GOD TOILET LUXURY DETAIL + 3-PANEL GALLERY */
.detail-sheet--god {
  background: rgba(2,8,14,.88) !important;
  backdrop-filter: blur(10px);
}
.detail-sheet--god .detail-sheet__panel {
  color:#f5f1e8;
  background:
    radial-gradient(circle at 82% 8%, rgba(214,170,55,.12), transparent 24%),
    radial-gradient(circle at 10% 55%, rgba(26,115,232,.08), transparent 28%),
    linear-gradient(155deg,#07111b 0%,#0a1219 48%,#11100d 100%) !important;
  border:1px solid rgba(218,177,72,.55);
  box-shadow:0 28px 90px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.03);
}
.detail-sheet--god #detailContent{padding:28px 28px 34px!important;}
.god-detail-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 52px 8px 0;}
.detail-sheet--god .god-detail-kicker{margin:0!important;font-size:14px!important;color:#f1c75b!important;letter-spacing:.12em!important;}
.god-detail-verified{font-size:9px;letter-spacing:.18em;color:#bda96b;border:1px solid rgba(225,187,85,.45);padding:6px 9px;border-radius:999px;white-space:nowrap;}
.detail-sheet--god .detail-name{font-size:clamp(28px,4vw,42px)!important;line-height:1.08!important;margin:8px 56px 4px 0!important;letter-spacing:.01em;}
.detail-sheet--god .detail-name-en{font-size:15px!important;color:#d4c58f!important;margin-bottom:8px!important;}
.god-designer{font-size:10px;letter-spacing:.15em;color:#8697a5;margin:0 0 18px}.god-designer strong{color:#f1c75b;font-size:12px;margin-left:8px;}
.god-gallery{position:relative;display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:8px;height:min(52vw,430px);min-height:270px;margin:0 0 8px;}
.god-gallery__tile{position:relative;padding:0;border:1px solid rgba(224,182,68,.75);border-radius:14px;overflow:hidden;background:#0a0a0a;cursor:zoom-in;box-shadow:0 10px 28px rgba(0,0,0,.32);}
.god-gallery__tile--main{grid-row:1/3}.god-gallery__tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease,filter .25s ease}.god-gallery__tile:hover img{transform:scale(1.035);filter:brightness(1.05)}
.god-gallery__tile--main img{object-position:center}.god-gallery__tile--left img{object-position:left center}.god-gallery__tile--right img{object-position:right center}
.god-gallery__zoom{position:absolute;left:12px;bottom:12px;background:rgba(4,10,15,.76);color:#f3cc64;border:1px solid rgba(236,195,82,.6);padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;}
.god-gallery__badge{position:absolute;right:18px;top:18px;width:86px;height:86px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:rgba(7,10,12,.86);border:1px solid #ddb74d;color:#f4cf68;box-shadow:0 0 28px rgba(220,177,57,.18);font-weight:900;pointer-events:none}.god-gallery__badge span{font-size:13px}.god-gallery__badge small{font-size:7px;letter-spacing:.14em;color:#fff0b6}
.god-gallery-empty{min-height:240px;border:1px solid rgba(219,176,62,.45);border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(135deg,rgba(255,255,255,.03),rgba(213,169,48,.05));color:#d5c99f;text-align:center;padding:25px;margin-bottom:10px}.god-gallery-empty__icon{font-size:32px}.god-gallery-empty span{font-size:11px;color:#8d9aa2;}
.detail-sheet--god .god-hero__disclaimer{font-size:10px!important;color:#9f987f!important;margin:4px 2px 16px!important;}
.god-amenity-strip--lux{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px!important;margin:18px 0 24px!important;}
.detail-sheet--god .god-amenity{min-height:84px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;background:linear-gradient(180deg,rgba(15,29,40,.95),rgba(10,20,29,.95))!important;border:1px solid #253c4d!important;border-radius:12px!important;padding:9px!important;box-shadow:none!important;}
.detail-sheet--god .god-amenity--yes{border-color:rgba(67,160,220,.5)!important}.detail-sheet--god .god-amenity--unknown{opacity:.62;filter:saturate(.5)}
.detail-sheet--god .god-amenity__icon{background:none!important;font-size:23px!important;width:auto!important;height:auto!important}.detail-sheet--god .god-amenity__label{font-size:10px!important;color:#f4f5f5!important;text-align:center!important;margin-top:5px!important}.god-amenity__state{font-size:9px;color:#e0bd58;margin-top:3px}.god-amenity--unknown .god-amenity__state{color:#7c8b95}
.god-section-title{font-size:15px;font-weight:900;color:#e8bb4f;letter-spacing:.05em;margin:18px 0 10px;padding-bottom:8px;border-bottom:1px solid rgba(225,183,73,.22)}
.god-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}.detail-sheet--god .god-info-grid .detail-row{margin:0!important;background:rgba(13,26,35,.9)!important;border:1px solid rgba(120,145,162,.18)!important;color:#eef2f4!important;padding:11px 12px!important;align-items:flex-start!important}.detail-sheet--god .god-info-grid .detail-row__label{color:#d4aa48!important;flex:0 0 88px!important;}
.detail-sheet--god .god-extra{background:rgba(13,26,35,.9)!important;border:1px solid rgba(224,181,69,.25)!important;padding:12px 14px!important}.detail-sheet--god .god-extra__item{color:#dce4e8!important}.detail-sheet--god .detail-memo--god,.god-operation-note{background:linear-gradient(135deg,rgba(23,29,28,.98),rgba(32,28,18,.98))!important;border:1px solid rgba(225,183,73,.34)!important;color:#e7e1d1!important;border-radius:12px;padding:14px 16px;margin:10px 0;line-height:1.7;font-size:13px}.detail-sheet--god .detail-memo--god strong,.god-operation-note strong{color:#f0c85f;letter-spacing:.08em}
.detail-sheet--god .detail-go--god{margin-top:18px!important;background:linear-gradient(135deg,#b98518,#f2d36e 55%,#b98318)!important;color:#100d08!important;border:1px solid #ffe291!important;padding:15px!important;box-shadow:0 10px 28px rgba(195,145,30,.22)!important;letter-spacing:.04em;}
.god-lightbox{position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:30px}.god-lightbox.hidden{display:none}.god-lightbox__img{max-width:min(1200px,96vw);max-height:88vh;object-fit:contain;border-radius:14px;border:1px solid #cda536;box-shadow:0 20px 80px #000}.god-lightbox__close{position:fixed;top:18px;right:20px;z-index:9001;width:42px;height:42px;border-radius:50%;border:1px solid #d6af46;background:#0d1115;color:#f0c95f;font-size:18px;cursor:pointer}.god-lightbox__caption{position:fixed;left:50%;bottom:15px;transform:translateX(-50%);font-size:10px;letter-spacing:.18em;color:#d7b453;background:rgba(0,0,0,.6);padding:6px 10px;border-radius:999px}
@media(min-width:700px){.detail-sheet--god .detail-sheet__panel{max-width:1100px!important;width:min(1100px,94vw)!important;max-height:94dvh!important;height:auto!important;border-radius:22px!important;}.detail-sheet--god .god-hero__img{max-height:none!important}.detail-sheet--god{padding:20px!important}}
@media(max-width:699px){.detail-sheet--god #detailContent{padding:22px 14px 28px!important}.god-detail-topline{align-items:flex-start;flex-direction:column;gap:5px;margin-right:45px}.god-detail-verified{font-size:8px}.god-gallery{height:330px;grid-template-columns:1.6fr 1fr;gap:6px}.god-gallery__badge{width:68px;height:68px;right:10px;top:10px}.god-gallery__badge span{font-size:11px}.god-amenity-strip--lux{grid-template-columns:repeat(3,1fr)!important}.god-info-grid{grid-template-columns:1fr}.detail-sheet--god .detail-name{font-size:29px!important}.god-gallery__tile{border-radius:10px}}
