@charset "UTF-8";

:root {
  --paper: #f4f6fb;
  --surface: #fff;
  --ink: #172039;
  --muted: #4d5a72;
  --line: #dbe3f0;
  --accent: #2346c4;
  --accent-hover: #19389e;
  --accent-soft: #eaf0ff;
  --navy: #131f43;
  --radius: 14px;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 var(--sans);
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

:focus-visible {
  outline: 3px solid #5176ef;
  outline-offset: 4px;
}

.wrap {
  width: min(1200px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin-inline: auto;
}

.inner {
  padding-block: clamp(1.3rem, 3.3vw, 2.5rem) clamp(3.2rem, 7vw, 6rem);
  min-height: 62vh;
}

.ic {
  inline-size: 1.15em;
  block-size: 1.15em;
  flex: none;
}

.skip {
  position: fixed;
  z-index: 30;
  left: 1rem;
  top: -6rem;
  padding: .65rem .9rem;
  background: var(--surface);
}

.skip:focus { top: .5rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: .6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease;
}

.primary { color: #fff; background: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.secondary { color: var(--accent-hover); border-color: #c4d0ee; background: var(--surface); }
.secondary:hover { background: var(--accent-soft); border-color: #a3b9ec; }
.actions { margin-top: 1.5rem; }
.text-link { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .18em; }

.site-header {
  position: relative;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.head {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem 2rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  flex: none;
  align-items: center;
  gap: .6rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}

.mark { width: 27px; height: 27px; }
.brand-name { font: 700 1.26rem/1.13 var(--sans); letter-spacing: .065em; }
.brand small { display: block; margin-top: .24rem; color: var(--muted); font: 650 .75rem/1 var(--sans); letter-spacing: .12em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.primary-nav > a,
.navmenu > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: .3rem;
  padding: .5rem .75rem;
  border-radius: 7px;
  font-size: .9375rem;
  font-weight: 550;
  white-space: nowrap;
}

.primary-nav :is(a, summary):hover,
.primary-nav [aria-current="page"],
.primary-nav .current,
.navmenu[open] > summary {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.navmenu { position: relative; }
.navmenu .ic { width: .9em; height: .9em; }
.navmenu[open] .ic { transform: rotate(180deg); }

.menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 164px;
  padding: .35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 28px #1b2e4a20;
}

.menu a {
  display: block;
  padding: .45rem .65rem;
  border-radius: 5px;
  font-size: .9375rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.8rem 3rem;
  margin-block: clamp(1.1rem, 3.5vw, 2.7rem) .7rem;
  padding: clamp(2.3rem, 5.5vw, 4.9rem);
  border-inline-start: 5px solid #6c90fa;
  border-radius: var(--radius);
  background-color: var(--navy);
  color: #fff;
}

.hero h1 {
  max-width: 14em;
  margin-bottom: 1.05rem;
  font: 500 clamp(2.4rem, 5.15vw, 4.75rem)/1.17 var(--serif);
  text-wrap: balance;
}

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

.hero p {
  max-width: 42rem;
  color: #e4edff;
  text-wrap: pretty;
}

.hero-button {
  justify-self: start;
  color: #172e82;
  background: #edf3ff;
  border-color: #edf3ff;
  white-space: nowrap;
}

.hero-button:hover { background: #d7e4ff; border-color: #d7e4ff; }
.hero :focus-visible { outline-color: #b9cdff; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  margin-bottom: 1.15rem;
}

.section-head h2, .faq h2, .clip h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  font-weight: 700;
}

.selection { padding-block: clamp(1.5rem, 4.2vw, 3.5rem); }
.selection-more { display: flex; justify-content: center; margin-top: 1.6rem; }
.shuffle { min-height: 40px; white-space: nowrap; }

.chips, .city-index {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.chips { margin-bottom: 1.2rem; }

.chips button, .city-index a {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: .4rem .78rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}

.chips button:hover,
.city-index a:hover {
  border-color: #a8bbef;
  color: var(--accent-hover);
}

.chips [aria-pressed="true"],
.city-index [aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}

.chips [aria-pressed="true"]:hover,
.city-index [aria-current="page"]:hover {
  color: #fff;
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.65rem, 1.7vw, 1.25rem);
}

.card { min-width: 0; }

.card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.card-link:hover {
  border-color: #9ab0e7;
  box-shadow: 0 8px 22px #203e6416;
}

.card-photo {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #e5eaf4;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform .22s ease;
}

.card-link:hover img { transform: scale(1.025); }

.card-copy {
  flex: 1;
  padding: clamp(.75rem, 1.6vw, 1.15rem);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem .5rem;
  color: var(--muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

.card-meta span:first-child {
  color: var(--accent-hover);
  font-weight: 650;
}

.card-copy :is(h2, h3) {
  margin: .5rem 0;
  font: 650 clamp(1.13rem, 1.7vw, 1.46rem)/1.32 var(--sans);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .65rem;
  padding: 0;
  margin: .25rem 0 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}

@media (min-width: 58rem) {
  .home-selection .card:nth-child(-n + 2 of .card:not([hidden])) { grid-column: span 2; }

  .home-selection .card:nth-child(-n + 2 of .card:not([hidden])) .card-link {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .home-selection .card:nth-child(-n + 2 of .card:not([hidden])) .card-photo {
    aspect-ratio: 1.04;
    min-height: 100%;
  }

  .home-selection .card:nth-child(-n + 2 of .card:not([hidden])) .card-photo img {
    object-position: center 16%;
  }

  .home-selection .card:nth-child(-n + 2 of .card:not([hidden])) .card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.1rem, 2.4vw, 2rem);
    background: #eaf0ff;
  }

  .home-selection .card:nth-child(-n + 2 of .card:not([hidden])) h3 {
    font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  }
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .55rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: .875rem;
}

.crumb a:hover { text-decoration: underline; }
.crumb span { color: #7a86a4; }
.heading { margin-bottom: 1.4rem; }

.heading h1,
.profile-heading h1 {
  font-size: clamp(1.9rem, 4.1vw, 3.5rem);
  font-weight: 700;
  text-wrap: balance;
}

.heading p:not(.edition) {
  max-width: 43rem;
  margin-top: .8rem;
  color: var(--muted);
}

.browse {
  display: grid;
  grid-template-columns: minmax(14rem, 17.5rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.35rem);
  align-items: start;
}

.browse-context {
  position: sticky;
  top: 1.2rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.browse-context h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  text-wrap: balance;
}

.edition {
  margin-bottom: .55rem;
  color: var(--accent-hover);
  font-size: .875rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.city-index { flex-direction: column; }
.city-index a { justify-content: flex-start; }
.results-count { margin-bottom: .85rem; color: var(--muted); }
.browse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty, .listing-empty { margin-block: 1.15rem; color: var(--muted); }

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.05rem;
  padding-block: clamp(1.4rem, 3.8vw, 2.8rem);
  border-top: 1px solid var(--line);
}

.faq-heading p { margin-top: .45rem; color: var(--muted); }
.faq-items { display: grid; gap: .56rem; }
.browse-results .faq { margin-top: 2rem; padding-bottom: 0; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.faq-item[open] {
  border-color: #b9caf3;
  background: #f9fbff;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .68rem .95rem;
  min-height: 50px;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.faq-item[open] summary, .faq-item summary:hover { color: var(--accent-hover); }

.faq-item p {
  padding: 0 .95rem .88rem;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.faq-toggle {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: currentColor;
}

.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { display: none; }

.profile-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.profile-heading > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .9rem;
}

.demo-label {
  padding: .2rem .5rem;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: .8125rem;
}

.profile-meta { display: flex; align-items: center; gap: .42rem .65rem; color: var(--muted); flex-wrap: wrap; }
.profile-meta .ic, .profile-meta a { color: var(--accent-hover); }
.profile-meta a:hover { text-decoration: underline; }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(16rem, 1fr);
  gap: clamp(1rem, 3.5vw, 2.7rem);
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: .75rem;
}

.thumbs {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
  gap: .55rem;
}

.thumb {
  overflow: hidden;
  width: 70px;
  height: 78px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.thumb:hover { border-color: #8aa4ec; }
.thumb[aria-pressed="true"] { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.gallery-main { grid-column: 2; grid-row: 1; min-width: 0; }

.main-pic {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: clamp(310px, 43vw, 565px);
  border-radius: 11px;
  background: #e8edf7;
}

.main-pic > img { width: 100%; height: 100%; object-fit: contain; }

.main-pic span {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--accent-hover);
  background: #fffffff2;
}

.photo-caption { margin-top: .6rem; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }

.bio {
  padding: clamp(1rem, 2.4vw, 1.55rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  background: var(--surface);
}

.bio p, .prose { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.bio dl { margin: 0 0 1.2rem; }
.bio p + dl { margin-top: 1rem; }

.bio dl div {
  display: grid;
  grid-template-columns: minmax(4.6rem, auto) minmax(0, 1fr);
  gap: .5rem .75rem;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}

.bio dt { color: var(--muted); }
.bio dd { margin: 0; overflow-wrap: anywhere; }
.clip { padding-block: 1.3rem 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.clip p { color: var(--muted); margin-top: .35rem; }

.clip video {
  display: block;
  margin-top: .85rem;
  width: min(100%, 48rem);
  max-height: min(72vh, 540px);
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #141c33;
  border-radius: 11px;
}

.reading-copy {
  max-width: 46rem;
  padding: clamp(1rem, 3.7vw, 2.3rem);
  border-inline-start: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.privacy-sections > section {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.privacy-sections h2 { margin-bottom: .45rem; font-size: 1.18rem; }
.privacy-sections .prose { line-height: 1.8; }
.privacy-links { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; overflow-wrap: anywhere; }

.contact-page {
  --contact-paper: #fdf9ed;
  --contact-surface: #fffdf8;
  --contact-soft: #fbf6eb;
  --contact-ink: #33291d;
  --contact-muted: #625747;
  --contact-line: #e9dcc4;
  --contact-gold: #c99535;
  --contact-dark-gold: #875c20;
  padding-top: 1.25rem;
  color: var(--contact-ink);
  background: var(--contact-paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.contact-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.contact-page .crumb { color: var(--contact-muted); margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block: clamp(2.4rem, 5vw, 3.375rem);
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--contact-line);
  border-radius: 20px;
  background: var(--contact-surface);
  box-shadow: 0 10px 28px #5b411f0f;
  overflow-wrap: anywhere;
}

.contact-label { margin-bottom: .5rem; color: var(--contact-dark-gold); font-size: .75rem; letter-spacing: .18em; }
.contact-card :is(h1, h2) { margin-bottom: 1.5rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.contact-card-actions { margin-top: auto; color: var(--contact-muted); }
.contact-online { margin-top: .4rem; }
.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .68rem 1.06rem;
  border-radius: 999px;
  color: #2d2112;
  background: linear-gradient(135deg, #d7a94d, #c98b28);
  box-shadow: 0 8px 22px #c98b2826;
  font-weight: 800;
  transition: transform .15s ease;
}
.contact-cta:hover { transform: translateY(-1px); }
.contact-page :focus-visible { outline-color: var(--contact-dark-gold); }
.contact-status { margin-top: .38rem; color: var(--contact-dark-gold); font-size: .9rem; }
.contact-status:empty { margin: 0; }
.ref-panel { margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid var(--contact-line); }
.ref-panel button { margin-top: .6rem; }

.contact-guide { max-width: 740px; }
.contact-payment { padding-top: 1.5rem; scroll-margin-top: 1.5rem; }
.contact-booking-guide { padding-block: clamp(1.75rem, 5vw, 4rem); }
.contact-booking-guide section + section {
  border-top: 1px solid var(--contact-line);
  margin-top: clamp(2.625rem, 8vw, 5rem);
  padding-top: clamp(2.625rem, 8vw, 5rem);
}
.contact-guide h2 { margin-bottom: 1.5rem; font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.3; }
.contact-guide p { margin-bottom: 1rem; line-height: 1.9; white-space: pre-line; }
.contact-guide p:last-child { margin-bottom: 0; }
.contact-service-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  line-height: 1.8;
}
.contact-service-metrics > div { padding-inline-start: .94rem; border-inline-start: 2px solid var(--contact-gold); }
.contact-service-metrics dt { font-size: .875rem; }
.contact-service-metrics dd { margin: .25rem 0 0; font-weight: 700; }

#contact-wechat-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--contact-ink);
  background: var(--contact-surface);
  border: 1px solid var(--contact-line);
  border-radius: 18px;
  box-shadow: 0 20px 70px #261a1555;
}
#contact-wechat-dialog::backdrop { background: #261a156b; }
.contact-wechat-inner { padding: clamp(1.125rem, 4vw, 1.75rem); }
.contact-wechat-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.125rem; }
.contact-wechat-header h2 { font-size: clamp(1.25rem, 5vw, 1.55rem); line-height: 1.3; }
.contact-wechat-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--contact-line);
  border-radius: 50%;
  background: var(--contact-soft);
  font-size: 1.5rem;
  line-height: 1;
}
.contact-wechat-account { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; margin-top: .25rem; }
#contact-wechat-id {
  width: 100%;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--contact-line);
  border-radius: 8px;
  color: inherit;
  background: var(--contact-soft);
  font: inherit;
}
#contact-wechat-copy { white-space: nowrap; padding-inline: .75rem; }
.contact-wechat-intro { margin: 1.25rem 0 .5rem; }
#contact-wechat-dialog ol { margin: 0; padding-inline-start: 1.5em; }
#contact-wechat-dialog li + li { margin-top: .5rem; }

@media (max-width: 40rem) {
  .contact-wrap { width: calc(100% - 22px); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 33.75rem) {
  .contact-service-metrics { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 21.875rem) {
  .contact-wechat-account { grid-template-columns: minmax(0, 1fr); }
  #contact-wechat-copy { justify-self: start; }
}

.contact-details { color: var(--ink); font-style: normal; overflow-wrap: anywhere; }
.contact-details > div + div { margin-top: .55rem; }
.contact-details span { display: block; color: var(--muted); font-size: .875rem; font-weight: 650; }
.contact-details a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .17em; }

.site-footer {
  background: var(--navy);
  color: #f5f8ff;
}

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.3fr) minmax(10rem, .75fr);
  gap: 1.35rem clamp(1.3rem, 4.2vw, 3.7rem);
  padding-block: clamp(1.45rem, 3.5vw, 2.6rem);
}

.foot .brand-mark { background: #cddcff; color: var(--navy); }
.foot .brand small, .foot .contact-details, .foot .contact-details span { color: #d0daf0; }
.foot .contact-details a { color: #e7eeff; }
.foot :focus-visible { outline-color: #c1d3ff; }
.foot-tagline { margin-top: .75rem; color: #d9e5ff; font-size: .9375rem; white-space: pre-line; overflow-wrap: anywhere; }

.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .2rem .7rem;
  align-content: start;
  font-size: .875rem;
}

.foot-nav a { padding: .25rem 0; }
.foot-nav a:hover { text-decoration: underline; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 12;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
}

.toast:not(:empty) { padding: .5rem 1rem; }

#photo-modal {
  width: min(94vw, 52rem);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #f6f7ff;
  background: #111a33;
}

#photo-modal::backdrop { background: #091123cf; }
#photo-modal figure { padding: 1.1rem 2.5rem .85rem; }
#photo-modal figure img { width: 100%; height: min(73vh, 760px); object-fit: contain; }
#photo-modal figcaption { margin-top: .5rem; text-align: center; font-size: .875rem; }

#photo-modal button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff5f;
  border-radius: 7px;
  color: #fff;
  background: #182447df;
}

.modal-close { top: .5rem; right: .5rem; }
.prev, .next { top: 46%; }
.prev { left: .25rem; }
.next { right: .25rem; }

@media (max-width: 57.99rem) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browse { grid-template-columns: minmax(0, 1fr); }
  .browse-context { position: static; }
  .city-index { flex-direction: row; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  .head { min-height: 0; flex-direction: column; align-items: stretch; gap: .5rem; padding-block: .7rem .35rem; }
  .head .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
  .head .mark { width: 23px; height: 23px; }
  .head .brand-name { font-size: 1.14rem; }
  .primary-nav { flex-wrap: wrap; justify-content: space-between; gap: .15rem; }
  .primary-nav > a, .navmenu > summary { min-height: 40px; padding-inline: .2rem; font-size: .875rem; }
  .crumb { margin-bottom: 1.1rem; }
  .hero { gap: 1.15rem; border-inline-start-width: 4px; }
  .hero h1 { font-size: clamp(2rem, 7.9vw, 3.4rem); }
  .browse-context .heading { margin-bottom: .9rem; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery-main { grid-column: 1; grid-row: 1; }
  .thumbs { grid-column: 1; grid-row: 2; flex-direction: row; }
  .thumb { width: 60px; height: 66px; }
  .main-pic { height: clamp(285px, 102vw, 450px); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { display: flex; flex-wrap: wrap; gap: .3rem .85rem; }
}

@media (max-width: 35rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-copy { padding: .66rem; }
  .card-tags { gap: .15rem .5rem; }
  .card-meta { column-gap: .35rem; }
  .chips { gap: .32rem; }
  .chips button { padding-inline: .5rem; }
  .hero { padding: 1.65rem 1.3rem; }
}

@media (max-width: 38rem) {
  body:has(#hq-chat-widget-host) .foot {
    padding-block-end: calc(6.5rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 23rem) {
  .head { width: calc(100% - 1rem); }
  .primary-nav > a, .navmenu > summary { padding-inline: 0; }
  .navmenu > summary { gap: .12rem; }
  .navmenu .ic { width: .65rem; }
  .primary-nav { column-gap: .1rem; }
  .card-meta, .card-tags { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
