:root {
  --ink: #17221e;
  --ink-soft: #53605a;
  --paper: #f4f0e7;
  --paper-deep: #ebe4d6;
  --card: #fffdfa;
  --line: #d9d1c2;
  --red: #b9432f;
  --red-dark: #913222;
  --jade: #2f6d5b;
  --jade-light: #e2ece6;
  --ochre: #b38436;
  --blue: #446879;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(45, 37, 24, 0.09);
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --serif: "STSong", "SimSun", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: var(--paper);
  border-bottom: 1px solid rgba(23, 34, 30, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.local-only {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.local-only svg {
  width: 15px;
  height: 15px;
  color: var(--jade);
}

.sync-status.is-connecting svg {
  animation: spin 1s linear infinite;
}

.sync-status.is-error,
.sync-status.is-error svg {
  color: var(--red);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.hero {
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: #28352f;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 47%;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 23, 19, 0.9) 0%, rgba(14, 23, 19, 0.62) 44%, rgba(14, 23, 19, 0.15) 78%),
    linear-gradient(0deg, rgba(14, 23, 19, 0.48), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 70px;
  padding-block: 76px 62px;
}

.hero-copy {
  max-width: 690px;
  color: var(--white);
  animation: rise-in 700ms ease both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.eyebrow span {
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow.dark {
  margin-bottom: 12px;
  color: var(--red);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.hero h1 em {
  color: #f0c572;
  font-style: normal;
}

.hero-description {
  max-width: 570px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.9;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 600;
}

.primary-link svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.primary-link:hover svg {
  transform: translate(2px, 2px);
}

.progress-seal {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  animation: rise-in 700ms 120ms ease both;
}

.progress-seal p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.progress-seal p strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
}

.seal-ring {
  --progress: 0deg;
  width: 142px;
  height: 142px;
  padding: 7px;
  border-radius: 50%;
  background: conic-gradient(#f0c572 var(--progress), rgba(255, 255, 255, 0.2) 0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.seal-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(20, 31, 26, 0.69);
  backdrop-filter: blur(10px);
}

.seal-inner span {
  color: var(--white);
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 700;
}

.seal-inner small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.photo-credit {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.stats-strip {
  position: relative;
  z-index: 3;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  min-height: 118px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 25px 30px;
  border-right: 1px solid var(--line);
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--jade);
  background: var(--jade-light);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-item > div {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
}

.stat-item span:not(.stat-icon) {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.stat-quote {
  gap: 10px;
  background: #f8f4eb;
}

.stat-quote > svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: var(--red);
  fill: rgba(185, 67, 47, 0.1);
}

.stat-quote p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
}

.collection {
  padding-block: 72px 72px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h2,
.field-notes h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.25;
}

.section-intro {
  max-width: 350px;
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.7);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}

.filter-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: 160ms ease;
}

.filter-tab span {
  font-size: 10px;
  opacity: 0.65;
}

.filter-tab:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.filter-tab.is-active {
  color: var(--white);
  background: var(--ink);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field,
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg,
.select-wrap > svg {
  position: absolute;
  width: 15px;
  height: 15px;
  color: var(--ink-soft);
  pointer-events: none;
}

.search-field svg {
  left: 13px;
}

.select-wrap > svg {
  right: 11px;
}

.search-field input,
.select-wrap select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field input {
  width: 218px;
  padding: 0 12px 0 37px;
}

.select-wrap select {
  min-width: 122px;
  padding: 0 34px 0 12px;
  appearance: none;
  cursor: pointer;
}

.search-field input:focus,
.select-wrap select:focus,
.detail-dialog input:focus,
.detail-dialog textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(47, 109, 91, 0.13);
}

.search-field input::placeholder {
  color: #989e98;
}

.results-meta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
}

.text-button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

.text-button.danger:hover {
  color: var(--red);
}

.attraction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.attraction-card {
  --category-color: var(--ochre);
  position: relative;
  min-width: 0;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: card-in 380ms ease both;
}

.attraction-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--category-color);
}

.attraction-card::after {
  content: attr(data-index);
  position: absolute;
  right: 16px;
  bottom: 40px;
  color: rgba(23, 34, 30, 0.045);
  font-family: var(--serif);
  font-size: 66px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.attraction-card:hover {
  z-index: 2;
  border-color: rgba(23, 34, 30, 0.22);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.attraction-card.is-visited {
  background: linear-gradient(135deg, #fffdfa 0%, #eff5f0 100%);
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--category-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.category-label svg {
  width: 14px;
  height: 14px;
}

.visit-toggle {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: 160ms ease;
}

.visit-toggle:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.visit-toggle svg {
  width: 14px;
  height: 14px;
}

.attraction-card.is-visited .visit-toggle {
  color: var(--white);
  border-color: var(--jade);
  background: var(--jade);
}

.card-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
}

.card-title button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.card-title button::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.card-title button:hover {
  color: var(--red);
}

.card-location {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 7px 0 13px;
  color: var(--ink-soft);
  font-size: 11px;
}

.card-location svg {
  width: 12px;
  height: 12px;
}

.card-description {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 19px;
  color: #7d837e;
  font-size: 10px;
}

.card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-footer svg {
  width: 12px;
  height: 12px;
}

.visited-date {
  color: var(--jade);
  font-weight: 600;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 600;
}

.detail-link svg {
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}

.attraction-card:hover .detail-link svg {
  transform: translateX(2px);
}

.empty-state {
  padding: 70px 20px;
  border: 1px dashed var(--line);
  text-align: center;
}

.empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.empty-icon svg {
  width: 23px;
  height: 23px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
}

.secondary-button,
.outline-button,
.solid-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 170ms ease;
}

.secondary-button:hover,
.outline-button:hover {
  color: var(--white);
  background: var(--ink);
}

.solid-button {
  color: var(--white);
  border-color: var(--jade);
  background: var(--jade);
}

.solid-button:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.secondary-button svg,
.outline-button svg,
.solid-button svg {
  width: 15px;
  height: 15px;
}

.field-notes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 74px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notes-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 67, 47, 0.3);
  border-radius: 50%;
  color: var(--red);
  transform: rotate(-7deg);
}

.notes-mark svg {
  width: 27px;
  height: 27px;
}

.field-notes h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.field-notes p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.site-footer {
  padding: 24px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .text-button {
  color: rgba(255, 255, 255, 0.5);
}

.site-footer .text-button.danger:hover {
  color: #f0c572;
}

.detail-dialog {
  width: min(650px, calc(100% - 32px));
  max-height: min(790px, calc(100vh - 40px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.detail-dialog::backdrop {
  background: rgba(12, 20, 16, 0.68);
  backdrop-filter: blur(4px);
}

.auth-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.auth-dialog::backdrop {
  background: rgba(12, 20, 16, 0.74);
  backdrop-filter: blur(5px);
}

.auth-panel {
  position: relative;
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(255, 253, 250, 0.96), rgba(244, 240, 231, 0.96)),
    repeating-linear-gradient(120deg, transparent 0 30px, rgba(23, 34, 30, 0.04) 30px 31px);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.auth-close:hover {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.auth-close svg {
  width: 15px;
  height: 15px;
}

.auth-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.auth-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.3;
}

.auth-description {
  margin: 14px 0 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 18px;
  padding: 3px;
  border-radius: 4px;
  background: var(--paper-deep);
}

.auth-mode-tab {
  min-height: 38px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
}

.auth-mode-tab.is-active {
  color: var(--white);
  background: var(--ink);
}

.auth-form label {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
}

.auth-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-row svg {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  pointer-events: none;
}

.auth-input-row input {
  width: 100%;
  height: 46px;
  padding: 0 13px 0 40px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
}

.auth-input-row input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(47, 109, 91, 0.13);
}

.auth-password-row input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.password-toggle svg {
  position: static;
  width: 15px;
  height: 15px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--jade);
  font-size: 11px;
  line-height: 1.7;
}

.auth-message.is-error {
  color: var(--red);
}

.auth-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #8b908b;
  font-size: 10px;
}

.dialog-head {
  --dialog-color: #446879;
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 26px 28px;
  overflow: hidden;
  background: linear-gradient(
    125deg,
    #17251f 0%,
    color-mix(in srgb, var(--dialog-color) 44%, #17251f) 100%
  );
  color: var(--white);
}

.dialog-head::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: repeating-linear-gradient(
    120deg,
    transparent 0 27px,
    rgba(255, 255, 255, 0.13) 27px 28px
  );
}

.dialog-head::after {
  content: attr(data-badge);
  position: absolute;
  right: 20px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--serif);
  font-size: 94px;
  font-weight: 900;
  line-height: 1;
}

.dialog-head > div {
  position: relative;
  z-index: 1;
}

.dialog-head small {
  display: block;
  margin-bottom: 6px;
  color: #f0c572;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.dialog-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
  color: var(--white);
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dialog-close svg {
  width: 16px;
  height: 16px;
}

.dialog-body {
  padding: 27px 28px 30px;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.dialog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 10px;
}

.dialog-meta svg {
  width: 12px;
  height: 12px;
}

.dialog-description {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.dialog-highlights {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 2px solid var(--ochre);
  background: #faf7f0;
}

.dialog-highlights strong {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}

.dialog-highlights p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.visit-form {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.visit-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.visit-form-heading strong {
  font-family: var(--serif);
  font-size: 17px;
}

.visit-form-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: var(--ink-soft);
  font-size: 10px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
}

.field input {
  height: 40px;
  padding: 0 10px;
}

.field textarea {
  min-height: 84px;
  padding: 10px;
  line-height: 1.6;
  resize: vertical;
}

.field input:disabled,
.field textarea:disabled {
  color: #a3a39d;
  background: #f4f1eb;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.19);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero-content {
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-quote {
    display: none;
  }

  .stat-item:nth-child(3) {
    border-right: 0;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-controls {
    width: 100%;
  }

  .search-field {
    flex: 1;
  }

  .search-field input {
    width: 100%;
  }

  .attraction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 70px;
    padding-inline: 16px;
  }

  .header-actions {
    gap: 10px;
  }

  .local-only {
    display: inline-flex;
    font-size: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(14, 23, 19, 0.9), rgba(14, 23, 19, 0.42)),
      linear-gradient(0deg, rgba(14, 23, 19, 0.65), transparent 60%);
  }

  .hero-content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    gap: 28px;
    padding-block: 70px 36px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.8;
  }

  .progress-seal {
    flex-direction: row;
    align-self: flex-start;
  }

  .seal-ring {
    width: 70px;
    height: 70px;
    padding: 4px;
  }

  .seal-inner span {
    font-size: 18px;
  }

  .seal-inner small {
    font-size: 7px;
  }

  .progress-seal p {
    max-width: 130px;
    line-height: 1.7;
  }

  .progress-seal p strong {
    font-size: 16px;
  }

  .photo-credit {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    min-height: 91px;
  }

  .stat-item {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 14px 8px;
    text-align: center;
  }

  .stat-item:first-child {
    padding-left: 8px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
  }

  .stat-icon svg {
    width: 15px;
    height: 15px;
  }

  .stat-item strong {
    font-size: 21px;
  }

  .stat-item span:not(.stat-icon) {
    font-size: 10px;
  }

  .collection {
    padding-block: 48px 52px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }

  .section-intro {
    max-width: none;
    text-align: left;
  }

  .toolbar {
    margin-inline: -16px;
    padding: 10px 16px;
    border-right: 0;
    border-left: 0;
  }

  .filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-tab {
    justify-content: center;
    padding-inline: 8px;
  }

  .toolbar-controls {
    flex-direction: column;
  }

  .search-field,
  .select-wrap,
  .select-wrap select {
    width: 100%;
  }

  .attraction-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .attraction-card {
    min-height: 205px;
  }

  .field-notes {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 50px;
  }

  .notes-mark {
    width: 52px;
    height: 52px;
  }

  .field-notes .outline-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-dialog {
    max-height: calc(100vh - 20px);
  }

  .auth-dialog {
    width: calc(100% - 20px);
    margin-top: auto;
    margin-bottom: 10px;
  }

  .auth-panel {
    padding: 30px 22px 24px;
  }

  .auth-panel h2 {
    font-size: 26px;
  }

  .dialog-head {
    padding: 22px 20px;
  }

  .dialog-head h2 {
    font-size: 26px;
  }

  .dialog-body {
    padding: 22px 20px 24px;
  }

  .visit-form-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
