:root {
  --accent: #0f766e;
  --accent-2: #115e59;
  --paper: #f0fdfa;
  --ink: #0c1f1d;
  --bg: var(--paper);
  --surface: #ffffff;
  --text: var(--ink);
  --muted: #4b5d5a;
  --border: #d5e7e4;
  --soft: #5f726f;
  --chip: #e2f5f2;
  --shadow: 0 8px 24px rgba(12, 31, 29, 0.09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: var(--accent-2); }
a:hover { color: var(--accent); }

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.brand-text { min-width: 0; }
.brand-text b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.hdr-link {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}
.hdr-link:hover { background: var(--chip); color: var(--accent-2); }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}
.hero { margin: 6px 0 14px; }
h1 {
  font-size: 28px;
  margin: 4px 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 .hl { color: var(--accent); font-style: normal; }
.lede {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 16px;
  max-width: 46em;
}
.crumbs {
  font-size: 13px;
  color: var(--soft);
  margin: 2px 0 10px;
}
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.locbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 14px;
  box-shadow: 0 2px 10px rgba(12, 31, 29, 0.03);
}
.flab {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 6px;
}
.locrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.locrow input,
.locrow select {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.locrow input { flex: 2 1 220px; min-width: 0; }
.locrow select { flex: 1 1 160px; min-width: 0; }

.locrow.nearrow { margin-bottom: 10px; }
.locrow.nearrow input { flex: 2 1 200px; }
.geo-status {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-2);
}
#nx-use-loc { flex: 0 0 auto; white-space: nowrap; }

.btn {
  font: inherit;
  font-size: 14.5px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--accent-2); color: #fff; }
.btn.ghost { background: var(--chip); color: var(--accent-2); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--accent); color: #fff; }

.pchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
}
.pchip .n { font-weight: 700; color: var(--text); font-size: 12.5px; }
.pchip.on, .pchip[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pchip.on .n, .pchip[aria-current="page"] .n { color: #e6fffa; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}
.count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.list > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 13px 14px;
}
.ev-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.cat-badge-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--chip);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.ev-body { min-width: 0; }
.t {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 5px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
}
.pill.city { background: var(--chip); color: var(--accent-2); }
.pill.cat { background: #f3f7f6; color: var(--muted); border: 1px solid var(--border); }
.pill.star { background: #fef9c3; color: #854d0e; }
.pill.price { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pill.dist { background: #eef6ff; color: #1e3a8a; border: 1px solid #bfdbfe; margin-left: auto; }
.btn.book { white-space: nowrap; }

.more-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}
.empty {
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.section-block { margin: 28px 0 10px; }
.section-block h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: -0.01em; }
.city-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}
.city-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.city-grid a span.cnt { color: var(--soft); font-size: 12.5px; font-weight: 600; }
.city-grid a:hover, .city-grid a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent-2);
}

.detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

footer {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 18px 16px 36px;
  color: var(--soft);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
footer a { color: var(--soft); }

@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .brand-text small { display: none; }
  .hdr-nav { gap: 6px; }
  .hdr-link { font-size: 12.5px; padding: 5px 7px; }
  .list > li { grid-template-columns: 1fr; padding: 12px; }
  .btn.book { width: 100%; justify-content: center; }
  .locrow input, .locrow select { flex: 1 1 100%; }
  #nx-use-loc { width: 100%; justify-content: center; }
  .pill.dist { margin-left: 0; }
}
