:root {
  --fjord-deep: #1a3a45;
  --fjord: #3d6b7a;
  --fjord-mist: #d5e6ec;
  --sand: #e8e0d4;
  --sand-deep: #cfc3b0;
  --paper: #f4f7f8;
  --ink: #1e2a30;
  --ink-soft: #5a6b73;
  --heart: #c62828;
  --heart-soft: #f8e4e4;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 58, 69, 0.12);
  --radius: 18px;
  --touch: 44px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --controls-bg: #e4eef2;

  --cat-oplevelse: #2f6f7e;
  --cat-historisk: #8a5a2b;
  --cat-bygninger: #5c6b7a;
  --cat-minde: #6b3a4a;
  --cat-spise: #b85c38;
  --cat-sove: #4a6fa5;
  --cat-lege: #c47a2c;
  --cat-firma: #2f5d8a;
  --cat-indkob: #5a7a45;
  --cat-natur: #3d8a6a;
  --cat-praktisk: #6b5b7a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(61, 107, 122, 0.22), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(200, 180, 150, 0.28), transparent 52%),
    linear-gradient(180deg, #dceaf0 0%, var(--paper) 38%, var(--sand) 100%);
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
}

body.sheet-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

/* —— Hero —— */
.hero {
  padding: calc(0.85rem + var(--safe-top)) 1.15rem 0.55rem;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

body.is-ready .hero {
  opacity: 1;
  transform: translateY(0);
}

.hero__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.brand {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
  margin: 0 auto 0.55rem;
  padding: 0.15rem 0.5rem 0.35rem;
  filter: drop-shadow(0 4px 12px rgba(26, 58, 69, 0.12));
  transition: transform 0.25s var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand__word {
  display: block;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: clamp(3rem, 13vw, 5rem);
  line-height: 0.95;
  color: #2a353a;
  letter-spacing: 0.02em;
}

.brand__tag {
  display: block;
  margin-top: -0.1em;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: clamp(1.15rem, 4.2vw, 1.65rem);
  color: #4a5a62;
  line-height: 1;
  text-align: right;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--fjord-deep);
}

.hero__lead {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 28rem;
  margin-inline: auto;
  line-height: 1.5;
}

/* —— Guide layout —— */
.guide {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.55rem 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.guide__map-pane {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 58, 69, 0.08);
  background: var(--white);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.75s var(--ease-out) 0.1s,
    transform 0.75s var(--ease-out) 0.1s,
    box-shadow 0.3s ease;
}

body.is-ready .guide__map-pane {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.guide__map-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.guide__side {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out) 0.18s, transform 0.7s var(--ease-out) 0.18s;
}

body.is-ready .guide__side {
  opacity: 1;
  transform: translateY(0);
}

.map {
  width: 100%;
  height: min(52vh, 440px);
  min-height: 260px;
  touch-action: pan-x pan-y;
  z-index: 0;
}

.map-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.map-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--touch);
  padding: 0.55rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: var(--heart);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 22px rgba(198, 40, 40, 0.28);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.15s ease;
}

.map-nav:hover,
.map-nav:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  outline: 2px solid var(--fjord-deep);
  outline-offset: 2px;
}

.map-nav:active {
  transform: scale(0.98);
}

.map-locate {
  width: var(--touch);
  height: var(--touch);
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--fjord-deep);
  box-shadow: 0 6px 20px rgba(26, 58, 69, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), color 0.15s ease, background 0.15s ease;
}

.map-locate:hover,
.map-locate:focus-visible {
  color: var(--heart);
  transform: scale(1.05);
  outline: 2px solid var(--heart);
  outline-offset: 2px;
}

.map-locate.is-active {
  background: var(--heart-soft);
  color: var(--heart);
  animation: locate-pulse 1.4s ease-in-out infinite;
}

@media (max-width: 420px) {
  .map-nav span {
    font-size: 0.86rem;
  }
}

/* —— Controls —— */
.controls {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.45rem 0 0.7rem;
  /* Solid baggrund — ellers scroller listen henover menuen */
  background: var(--controls-bg);
  box-shadow: 0 10px 18px -10px rgba(26, 58, 69, 0.18);
  isolation: isolate;
}

.search {
  position: relative;
  display: block;
}

.search__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: var(--touch);
  padding: 0.65rem 1rem 0.65rem 2.65rem;
  border: 1px solid rgba(26, 58, 69, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(26, 58, 69, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search input::placeholder {
  color: var(--ink-soft);
}

.search input:focus {
  outline: none;
  border-color: rgba(61, 107, 122, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 107, 122, 0.15);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  --chip: var(--fjord);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.3rem 0.65rem 0.3rem 0.55rem;
  border: 1px solid rgba(26, 58, 69, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: chip-in 0.45s var(--ease-out) calc(var(--i, 0) * 40ms + 0.25s) forwards;
  transition:
    background 0.22s var(--ease-soft),
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.filter-chip.is-primed {
  opacity: 1;
  transform: none;
  animation: none;
}

.filter-chip.is-primed.is-active {
  animation: chip-select 0.4s var(--ease-spring);
}

.filter-chip:hover {
  border-color: rgba(26, 58, 69, 0.22);
  box-shadow: 0 4px 12px rgba(26, 58, 69, 0.08);
}

.filter-chip:active {
  filter: brightness(0.97);
}

.filter-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-spring), background 0.2s ease;
}

.filter-chip:hover .filter-chip__dot {
  transform: scale(1.25);
}

.filter-chip__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(26, 58, 69, 0.07);
  border-radius: 999px;
  min-width: 1.3rem;
  padding: 0.05rem 0.32rem;
  text-align: center;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-spring);
}

.filter-chip.is-active {
  background: var(--fjord-deep);
  color: var(--white);
  border-color: var(--fjord-deep);
  box-shadow: 0 6px 16px rgba(26, 58, 69, 0.2);
}

.filter-chip.is-active .filter-chip__dot {
  background: var(--white);
  transform: scale(1.15);
}

.filter-chip.is-active .filter-chip__count {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.18);
}

.filter-chip:focus-visible {
  outline: 2px solid var(--heart);
  outline-offset: 2px;
}

.list-meta {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  min-height: 1.2em;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
}

/* —— Place list —— */
.guide__side {
  position: relative;
  z-index: 1;
}

.desktop-panel,
.place-list {
  position: relative;
  z-index: 0;
}

.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.place-list.is-animating > li,
.place-list > li {
  animation: card-in 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.place-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 1px solid rgba(26, 58, 69, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-soft),
    background 0.22s ease;
  font: inherit;
  color: inherit;
}

.place-card__rail {
  display: block;
  width: 4px;
  min-height: 100%;
  transition: width 0.25s var(--ease-spring);
}

.place-card__body {
  display: block;
  padding: 0.85rem 0.95rem 0.9rem 0.85rem;
  transition: transform 0.22s var(--ease-out);
}

.place-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.place-card:hover,
.place-card:focus-visible {
  border-color: rgba(61, 107, 122, 0.32);
  box-shadow: 0 10px 28px rgba(26, 58, 69, 0.12);
  outline: none;
}

.place-card:hover .place-card__rail,
.place-card:focus-visible .place-card__rail {
  width: 6px;
}

.place-card:hover .place-card__body,
.place-card:focus-visible .place-card__body {
  transform: translateX(2px);
}

.place-card.is-active {
  border-color: rgba(198, 40, 40, 0.45);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.16), 0 12px 28px rgba(26, 58, 69, 0.12);
  background: var(--white);
}

.place-card.is-active .place-card__rail {
  width: 6px;
}

.place-card.is-flash {
  animation: card-flash 0.55s var(--ease-out);
}

.place-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--fjord-deep);
  line-height: 1.25;
}

.place-card__meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.place-card__text {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.place-empty {
  margin: 1.25rem 0;
  text-align: center;
  color: var(--ink-soft);
  display: grid;
  gap: 0.25rem;
  padding: 1.5rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(26, 58, 69, 0.15);
}

.place-empty__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fjord-deep);
}

.place-empty__text {
  font-size: 0.92rem;
}

.desktop-panel {
  display: none;
}

/* —— SEO / about —— */
.seo-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.25rem;
}

.seo-about__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 58, 69, 0.06);
}

.seo-about h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fjord-deep);
}

.seo-about p {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.seo-about p:last-child {
  margin-bottom: 0;
}

/* —— Footer —— */
.footer {
  margin-top: 0.5rem;
  padding: 0 1rem calc(2rem + var(--safe-bottom));
  color: var(--ink-soft);
}

.footer__inner {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 1.35rem;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 58, 69, 0.08);
  box-shadow: 0 8px 28px rgba(26, 58, 69, 0.06);
}

.footer__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.85rem;
  transition: transform 0.2s var(--ease-out);
}

.footer__mark:hover {
  transform: translateY(-1px);
}

.footer__mark img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 58, 69, 0.14);
}

.footer__name {
  display: block;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--fjord-deep);
  text-align: left;
}

.footer__tag {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--fjord);
  text-align: left;
}

.footer__place {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.footer__dot {
  margin: 0 0.15rem;
  opacity: 0.55;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.95rem 0 0;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 58, 69, 0.1);
  color: var(--fjord-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ease-out);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  background: var(--white);
  border-color: rgba(61, 107, 122, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.footer__credit {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(26, 58, 69, 0.08);
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* —— Bottom sheet —— */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.sheet.is-open {
  pointer-events: auto;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 69, 0.42);
  opacity: 0;
  transition: opacity 0.32s var(--ease-soft);
  backdrop-filter: blur(4px);
}

.sheet.is-open .sheet__backdrop {
  opacity: 1;
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 560px);
  background: linear-gradient(180deg, #fff 0%, #f7fafb 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 50px rgba(26, 58, 69, 0.24);
  padding: 0.45rem 1.25rem calc(1.35rem + var(--safe-bottom));
  transform: translateY(110%);
  transition: transform 0.42s var(--ease-spring);
  overflow-y: auto;
}

.sheet.is-open .sheet__panel {
  transform: translateY(0);
}

.sheet.is-open .sheet-detail {
  animation: detail-in 0.45s var(--ease-out) 0.08s both;
}

.sheet__handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--sand-deep);
  margin: 0.4rem auto 1rem;
}

.sheet-detail__category {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sheet-detail__cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sheet-detail__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--fjord-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sheet-detail__address {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sheet-detail__text {
  margin: 0.85rem 0 0;
  color: var(--ink);
  line-height: 1.5;
}

.sheet-detail__more {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 58, 69, 0.1);
}

.sheet-detail__more-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.sheet-detail__source {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.sheet-detail__source a {
  color: var(--fjord);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sheet-detail__toggle {
  margin-top: 0.85rem;
  width: 100%;
}

.sheet-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  flex: 1 1 auto;
  transition:
    transform 0.2s var(--ease-spring),
    filter 0.15s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 58, 69, 0.12);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--heart);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.06);
  outline: 2px solid var(--fjord-deep);
  outline-offset: 2px;
}

.btn--ghost {
  background: var(--fjord-mist);
  color: var(--fjord-deep);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--sand);
  outline: 2px solid var(--fjord);
  outline-offset: 2px;
}

/* —— Leaflet —— */
.leaflet-div-icon.pin-marker {
  background: transparent;
  border: none;
}

.pin-wrap {
  width: 30px;
  height: 40px;
  filter: drop-shadow(0 3px 4px rgba(26, 58, 69, 0.35));
  transform-origin: 50% 100%;
  transition: transform 0.22s var(--ease-spring), filter 0.22s ease;
}

.pin-wrap.is-selected {
  transform: scale(1.18);
  filter: drop-shadow(0 0 3px rgba(198, 40, 40, 0.85)) drop-shadow(0 3px 6px rgba(26, 58, 69, 0.4));
}

.pin-wrap.is-hovered {
  transform: scale(1.12);
}

.pin-wrap.is-pop {
  animation: pin-pop 0.5s var(--ease-spring);
}

.pin-svg {
  display: block;
  overflow: visible;
}

.leaflet-container {
  font-family: var(--font-body);
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 6px 18px rgba(26, 58, 69, 0.16) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 18px !important;
  color: var(--fjord-deep) !important;
  border-bottom-color: rgba(26, 58, 69, 0.08) !important;
}

/* —— Motion —— */
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chip-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chip-select {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes card-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.35);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.16), 0 12px 28px rgba(26, 58, 69, 0.12);
  }
}

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

@keyframes pin-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.32);
  }
  100% {
    transform: scale(1.18);
  }
}

@keyframes locate-pulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(26, 58, 69, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(198, 40, 40, 0.15), 0 6px 20px rgba(26, 58, 69, 0.18);
  }
}

/* —— Desktop —— */
@media (min-width: 900px) {
  .hero {
    padding: 1.5rem 1.5rem 0.85rem;
  }

  .guide {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
    padding: 0.35rem 1.5rem 2rem;
  }

  .guide__map-pane {
    position: sticky;
    top: 1rem;
    min-width: 0;
    width: 100%;
  }

  .guide__side {
    min-width: 0;
    width: 100%;
    position: sticky;
    top: 1rem;
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    z-index: 2;
  }

  .map {
    height: calc(100dvh - 11rem);
    min-height: 500px;
  }

  .controls {
    position: relative;
    top: auto;
    flex-shrink: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.15rem;
  }

  .desktop-panel {
    display: block;
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 0.85rem 1rem 1.15rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(26, 58, 69, 0.08);
    box-shadow: 0 4px 18px rgba(26, 58, 69, 0.06);
    max-height: none;
    overflow: visible;
  }

  .desktop-panel[hidden] {
    display: none !important;
  }

  .desktop-panel.is-filled {
    border-color: rgba(198, 40, 40, 0.22);
  }

  .desktop-panel.is-filled .sheet-detail {
    animation: detail-in 0.4s var(--ease-out);
  }

  .desktop-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
  }

  .desktop-panel__kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fjord);
  }

  .desktop-panel__close {
    appearance: none;
    border: 1px solid rgba(26, 58, 69, 0.14);
    background: rgba(244, 247, 248, 0.95);
    color: var(--fjord-deep);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 34px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .desktop-panel__close:hover,
  .desktop-panel__close:focus-visible {
    background: var(--heart-soft);
    border-color: rgba(198, 40, 40, 0.35);
    color: var(--heart);
    outline: none;
  }

  .desktop-panel .sheet-detail__title {
    font-size: 1.25rem;
  }

  .desktop-panel .sheet-detail__actions {
    margin-top: 0.85rem;
    margin-bottom: 0.15rem;
  }

  .desktop-panel .sheet-detail__more {
    max-height: 8rem;
    overflow-y: auto;
  }

  .desktop-panel .btn {
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
  }

  .desktop-panel__hint {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.45;
  }

  .place-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 0.2rem;
  }

  .place-card__text {
    overflow-wrap: anywhere;
  }

  .sheet {
    display: none;
  }
}
