/* City guide pages only. Linked from /cities and /{city} pages, not the homepage.
   Uses tokens from site.css. Classes are prefixed or otherwise unused there. */

.seo {
  max-width: 980px;
  margin: 0 auto;
  padding: 104px max(48px, env(safe-area-inset-right)) 24px max(48px, env(safe-area-inset-left));
  min-width: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumbs a:hover { color: var(--fg); }
.crumbs svg { width: 14px; height: 14px; opacity: 0.7; flex: none; }
.crumbs [aria-current="page"] { color: var(--fg); }

.seo-head h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  max-width: 16ch;
}
.seo-head .seo-lede {
  margin-top: 18px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--hero-sub);
  max-width: 46ch;
}
.seo-head .meta-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

.chip-s {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
}
.chip-s svg { width: 14px; height: 14px; flex: none; }
.chip-s.accent { background: var(--tag-bg); color: var(--tag-fg); box-shadow: none; }

.seo-prose { margin-top: 36px; }
.seo h2 + .seo-prose,
.seo .sec-head + .sec-intro { margin-top: 0; }
.seo-prose p { font-size: 17px; line-height: 1.7; color: var(--fg); opacity: 0.9; max-width: 68ch; }
.seo-prose p + p { margin-top: 16px; }
.seo-prose a,
.faq a,
.item p a {
  text-decoration: underline;
  text-decoration-color: var(--deck-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.seo-prose strong { font-weight: 600; }

.seo h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.15;
  margin: 64px 0 18px;
}
.seo h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  min-width: 0;
  padding: 28px 28px 30px;
  border-radius: 28px;
  background: var(--mood-1);
  border: 1px solid var(--mood-edge);
  box-shadow: var(--mood-shadow);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.guide-card:nth-child(2) { background: var(--mood-3); }
.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 42%, transparent 58%, rgba(0, 0, 0, 0.08));
}
.guide-card:hover { transform: translateY(-4px); }
.guide-card .kicker { font-size: 13px; font-weight: 500; color: var(--muted); position: relative; }
.guide-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  position: relative;
}
.guide-card .art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 0; position: relative; min-height: 0; }
.guide-card .art svg { width: min(150px, 60%); height: auto; filter: drop-shadow(0 16px 24px rgba(11, 11, 15, 0.18)); }
.guide-card p { font-size: 15px; line-height: 1.5; color: var(--fg); opacity: 0.78; position: relative; max-width: 36ch; }
.guide-card .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; position: relative; }
.guide-card .go svg { width: 16px; height: 16px; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}
.jump a:hover { background: var(--hover); }
.jump svg { width: 16px; height: 16px; flex: none; }

.sec-head { display: flex; align-items: center; gap: 14px; margin: 64px 0 10px; min-width: 0; }
.sec-head h2 { margin: 0; }
.ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--mood-2);
  border: 1px solid var(--mood-edge);
  box-shadow: var(--shot-shadow);
}
.ico svg { width: 20px; height: 20px; }
.sec-intro { font-size: 16px; line-height: 1.65; color: var(--fg); opacity: 0.82; max-width: 66ch; margin: 0 0 22px; }

.example-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  line-height: 1.6;
  max-width: 68ch;
}
.example-note strong { font-weight: 600; }

.ev-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.ev {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 250px;
}
[data-theme="light"] .ev { background: #EFEAE3; }
.ev.is-example { outline: 1.5px dashed var(--deck-accent); outline-offset: -7px; }
.ev .when { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--deck-accent); padding-right: 84px; }
[data-theme="light"] .ev .when { color: #8C6A47; }
.ev h3 { margin: 8px 0 6px; padding-right: 72px; }
.ev .where { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--muted); }
.ev .where svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.ev > p { margin-top: 10px; font-size: 14px; line-height: 1.5; opacity: 0.82; }
.ev .example-foot {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  opacity: 1;
}
.ev .wknd {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  background: var(--tag-bg);
  color: var(--tag-fg);
}

.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; }
.item { min-width: 0; padding: 20px 22px; border-radius: 20px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.item p { margin-top: 6px; font-size: 15px; line-height: 1.6; opacity: 0.85; }

.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "–"; color: var(--muted); font-weight: 400; flex: none; }
.faq details:not([open]) summary::after { content: "+"; }
.faq details p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; opacity: 0.85; max-width: 68ch; }

.seo-head { display: block; }
.seo-head .city-picker { margin-top: 18px; }
.city-picker { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; max-width: 100%; }
.picker-status { min-height: 2.6em; max-width: 28ch; margin: 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
.city-picker.is-far .picker-status { font-weight: 700; color: var(--fg); }
.picker-label { display: flex; flex-direction: column; gap: 4px; max-width: 100%; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
.picker-label select {
  min-height: 40px;
  width: 220px;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.city.is-current { box-shadow: inset 0 0 0 2px var(--fg); }
.city.featured.is-current { box-shadow: var(--deck-shadow), inset 0 0 0 2px var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  html.is-city-moved .city-grid { animation: ff-city-in 280ms ease; }
}
@keyframes ff-city-in { from { opacity: 0.45; } to { opacity: 1; } }

.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}
.city-links a:hover { background: var(--hover); }
.city-links a.here { background: var(--pill-bg); color: var(--pill-fg); box-shadow: none; }

.region { margin-top: 48px; min-width: 0; }
.region h2 { margin: 0 0 16px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
.city {
  position: relative;
  min-width: 0;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
}
.city.featured {
  background: var(--deck-places);
  box-shadow: var(--deck-shadow);
  border: 1px solid var(--deck-edge);
  grid-column: span 3;
  padding: 28px;
}
.city .ctry { font-size: 12.5px; color: var(--muted); }
.city h3 { margin: 4px 0 6px; font-size: 21px; }
.city.featured h3 { font-size: 30px; letter-spacing: -0.03em; padding-right: 140px; }
.city p { font-size: 14px; line-height: 1.5; opacity: 0.82; }
.city .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.city .links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg);
}
.city.featured .links a { min-height: 40px; padding: 6px 18px; font-size: 14px; }
.city.featured .links a.solid { background: var(--pill-bg); color: var(--pill-fg); box-shadow: none; }
.city .tag {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  background: var(--tag-bg);
  color: var(--tag-fg);
}

.seo-cta { padding-top: 56px; }
.seo-cta .cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.seo-cta .getapp-copy p { margin-bottom: 22px; }

@media (max-width: 860px) {
  .picker-label select { width: 100%; }
  .city-picker { width: 100%; }
  .ev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city.featured { grid-column: span 2; }
  .seo-cta .cta-row { justify-content: center; }
}

@media (max-width: 720px) {
  .seo {
    padding-top: 92px;
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: 16px;
    padding-left: max(20px, env(safe-area-inset-left));
  }
  .guide-grid, .items, .ev-list, .city-grid { grid-template-columns: minmax(0, 1fr); }
  .city.featured { grid-column: auto; }
  .guide-card { min-height: 320px; }
  .seo h2 { margin-top: 48px; }
  .sec-head { margin-top: 48px; }
  .seo-prose p { font-size: 16px; }
  .ev { min-height: 0; }
}

@media (max-width: 420px) {
  .seo {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .city .tag { position: static; margin-bottom: 8px; }
  .city.featured h3, .ev h3, .ev .when { padding-right: 0; }
  .ev .wknd { position: static; margin-bottom: 8px; align-self: flex-start; }
  .seo-cta .qr-frame { padding: 10px; }
  .seo-cta .qr-frame img { width: 120px; height: 120px; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: none; }
  .guide-card:hover { transform: none; }
}
