.guide-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
}

.guide-nav-actions,
.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.guide-brand,
.guide-home-link {
  text-decoration: none;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.guide-brand-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 14px 34px rgba(20, 30, 40, 0.15);
}

.guide-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-brand-copy {
  display: grid;
  gap: 2px;
}

.guide-brand-copy strong {
  font-size: 1.14rem;
  line-height: 1;
}

.guide-brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(20, 30, 40, 0.08);
  font-weight: 800;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(20, 30, 40, 0.08);
}

.language-switch button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button.is-active {
  color: #fff;
  background: var(--accent);
}

.mobile-sheet {
  display: none;
}

body.has-mobile-sheet {
  overflow: hidden;
}

.mobile-sheet-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(240, 246, 250, 0.98));
}

.mobile-sheet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.mobile-sheet-back {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  color: var(--accent);
  background: rgba(15, 118, 110, 0.1);
}

.mobile-sheet-header-copy {
  min-width: 0;
}

.mobile-sheet-header-copy .panel-kicker {
  margin-bottom: 4px;
}

.mobile-sheet-header-copy strong {
  display: block;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
}

.mobile-sheet-content {
  overflow-y: auto;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .guide-topbar {
    padding-top: 16px;
    align-items: flex-start;
  }

  .guide-brand-mark {
    width: 42px;
    height: 42px;
  }

  .guide-brand-copy small {
    display: none;
  }

  .guide-nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  body {
    display: flex;
    flex-direction: column;
  }

  .guide-topbar.shell {
    order: 0;
  }

  main.shell {
    order: 1;
  }

  .hero.shell {
    order: 2;
    margin-top: 14px;
    padding-top: 0;
  }

  .footer.shell {
    order: 3;
  }

  .planner-grid {
    margin-top: 14px;
  }

  .map-card {
    scroll-margin-top: 12px;
  }

  .sidebar {
    display: none;
  }

  .mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    background: rgba(240, 246, 250, 0.68);
    backdrop-filter: blur(10px);
  }

  .mobile-sheet[hidden] {
    display: none !important;
  }

  .mobile-sheet-content .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .mobile-sheet-content .detail-panel,
  .mobile-sheet-content .poi-panel {
    min-height: auto;
  }

  .mobile-sheet-content .poi-panel-head {
    display: none;
  }

  .mobile-sheet-content .poi-detail-image {
    height: 240px;
  }
}
