@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600&display=swap');

:root {
  --paper: #f4efe5;
  --ink: #17251f;
  --muted: #65706a;
  --line: rgba(23, 37, 31, 0.14);
  --green: #184d3a;
  --green-2: #236d50;
  --lime: #d7f15c;
  --sand: #ded1bb;
  --coral: #ee765d;
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(18, 40, 31, 0.18);
  --radius: 24px;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; overflow: hidden; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button, a { font: inherit; }
button { color: inherit; }

.app-shell { height: 100%; display: grid; grid-template-rows: 76px 1fr; }

.topbar {
  position: relative;
  z-index: 1000;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  padding: 0 24px;
  background: rgba(247, 243, 234, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50% 50% 46% 54%;
  color: var(--lime);
  background: var(--green);
  font-family: "Unbounded", sans-serif;
  font-size: 17px;
  transform: rotate(-7deg);
}

.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: "Unbounded", sans-serif; font-size: 12px; letter-spacing: .06em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb button {
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.breadcrumb button:hover { color: var(--green); }
#crumbArea, #crumbCategory { color: var(--ink); font-weight: 700; }

.icon-button {
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 17px;
}

.icon-button:hover { border-color: var(--green); background: var(--white); }

.map-stage { position: relative; min-height: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: #b9d4cf; }

.map-back-button {
  position: absolute;
  z-index: 710;
  top: 18px;
  left: 22px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(24,77,58,.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255,253,248,.96);
  box-shadow: 0 10px 30px rgba(24,77,58,.14);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.map-back-button:hover { border-color: var(--green); background: var(--white); }

.leaflet-container { font-family: "Manrope", sans-serif; }
.leaflet-tile-pane { filter: saturate(.58) sepia(.08) brightness(1.04) contrast(.9); }
.leaflet-control-attribution { display: none; }
.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(20, 45, 36, .14) !important;
}
.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  border: 0 !important;
  color: var(--green) !important;
  background: var(--white) !important;
}

.welcome-card {
  position: absolute;
  z-index: 500;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow-y: auto;
  padding: 48px 24px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(215,241,92,.26), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(238,118,93,.16), transparent 31%),
    rgba(247,243,234,.96);
  box-shadow: none;
  backdrop-filter: blur(12px);
  animation: rise .55s ease both;
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.eyebrow {
  margin: 0 0 13px;
  color: var(--green-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.welcome-card h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -.035em;
}

.welcome-copy { max-width: 650px; margin: 26px 0 0; color: #35483f; font-size: clamp(15px, 2vw, 19px); line-height: 1.65; }
.welcome-note { max-width: 610px; margin: 15px 0 30px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.welcome-start { max-width: 270px; }
.welcome-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: min(720px, 100%); }
.journey-button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 17px;
  border: 1px solid var(--green);
  border-radius: 20px;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.journey-button:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(24,77,58,.13); }
.journey-map { color: white; background: var(--green); }
.journey-category { color: var(--green); background: rgba(255,253,248,.78); }
.journey-advice {
  color: var(--green);
  border-color: rgba(24,77,58,.28);
  background: linear-gradient(110deg,rgba(215,241,92,.52),rgba(255,253,248,.86));
}
.journey-advice .journey-number { color: white; background: var(--coral); }
.journey-button.journey-advice i { color: var(--green); }
.journey-phrases { color: white; border-color: #d96750; background: linear-gradient(135deg,#e9785f,#c95744); }
.journey-phrases .journey-number { color: var(--coral); background: white; }
.journey-button.journey-phrases i { color: white; }
.journey-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--green); background: var(--lime); font-size: 10px; font-weight: 800; }
.journey-button strong, .journey-button small { display: block; }
.journey-button strong { margin-bottom: 5px; font-size: 14px; }
.journey-button small { color: inherit; opacity: .68; font-size: 9px; line-height: 1.4; }
.journey-button i { color: var(--lime); font-size: 22px; font-style: normal; }
.journey-category i { color: var(--green); }

.primary-button, .route-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.primary-button:hover, .route-button:hover { transform: translateY(-2px); background: var(--green-2); }
.primary-button span, .route-button span { color: var(--lime); font-size: 20px; }

.secondary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 16px;
  color: var(--green);
  background: rgba(255,253,248,.72);
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.secondary-button:hover { transform: translateY(-2px); background: var(--white); }
.secondary-button span { font-size: 20px; }

.advice-page, .phrases-page {
  position: absolute;
  z-index: 700;
  inset: 0;
  overflow-y: auto;
  background:
    radial-gradient(circle at 86% 8%, rgba(215,241,92,.24), transparent 25%),
    radial-gradient(circle at 4% 84%, rgba(238,118,93,.12), transparent 30%),
    var(--paper);
  animation: rise .35s ease both;
}

.phrases-page {
  background:
    radial-gradient(circle at 84% 8%, rgba(238,118,93,.18), transparent 26%),
    radial-gradient(circle at 5% 86%, rgba(215,241,92,.2), transparent 30%),
    var(--paper);
}
.phrases-shell { width: min(1060px,calc(100% - 48px)); margin: 0 auto; padding: 42px 0 70px; }
.phrases-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.phrases-hero h1 { max-width: 730px; margin: 0; font-family: "Unbounded",sans-serif; font-size: clamp(38px,5vw,66px); line-height: 1.04; letter-spacing: -.05em; }
.phrases-hero > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.phrases-note { display: flex; gap: 16px; align-items: center; margin: 24px 0; padding: 15px 18px; border-radius: 16px; color: #415148; background: #e7efd9; font-size: 11px; line-height: 1.55; }
.phrases-note strong { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: white; background: var(--green); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.phrase-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.phrase-tabs::-webkit-scrollbar { display: none; }
.phrase-tab { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: rgba(255,253,248,.84); cursor: pointer; font-size: 10px; font-weight: 800; }
.phrase-tab span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--lime); }
.phrase-tab:hover,.phrase-tab.active { border-color: var(--green); }
.phrase-tab.active { color: white; background: var(--green); }
.phrase-tab.active span { color: var(--green); }
.phrase-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.phrase-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; min-height: 156px; padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.9); box-shadow: 0 11px 32px rgba(24,77,58,.05); }
.phrase-copy span,.phrase-copy strong,.phrase-copy small { display: block; }
.phrase-copy .phrase-translation { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45; }
.phrase-copy .phrase-translation b,
.phrase-copy .phrase-reading b { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.phrase-copy .phrase-latin { margin: 15px 0 13px; color: var(--ink); font-size: clamp(24px,3vw,31px); line-height: 1.25; }
.phrase-copy .phrase-reading { color: var(--green-2); font-size: 16px; font-weight: 800; line-height: 1.45; letter-spacing: .01em; }
.copy-phrase { align-self: stretch; min-width: 92px; padding: 12px; border: 0; border-radius: 15px; color: var(--green); background: var(--lime); cursor: pointer; font-size: 15px; font-weight: 800; }
.copy-phrase span { display: block; margin-bottom: 7px; font-size: 8px; text-transform: uppercase; }
.copy-phrase:hover { background: #cae94d; }
.phrase-footnote { margin: 17px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.copy-toast { position: fixed; z-index: 1200; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: 999px; color: white; background: var(--green); box-shadow: 0 14px 40px rgba(16,45,34,.25); font-size: 10px; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease,transform .2s ease; }
.copy-toast.visible { opacity: 1; transform: translateY(0); }

.category-page {
  position: absolute;
  z-index: 700;
  inset: 0;
  overflow-y: auto;
  background:
    radial-gradient(circle at 90% 8%, rgba(215,241,92,.25), transparent 26%),
    radial-gradient(circle at 4% 88%, rgba(238,118,93,.12), transparent 28%),
    var(--paper);
  animation: rise .35s ease both;
}
.category-search-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 70px; }
.category-search-hero { max-width: 820px; margin-bottom: 30px; }
.category-search-hero h1 { margin: 0; font-family: "Unbounded", sans-serif; font-size: clamp(38px,5.4vw,68px); line-height: 1.05; letter-spacing: -.05em; }
.category-search-hero > p:last-child { max-width: 660px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.global-category-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.global-category-card {
  position: relative;
  min-height: 166px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,253,248,.86);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.global-category-card:hover, .global-category-card.active { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 18px 38px rgba(24,77,58,.1); }
.global-category-card.active { color: white; background: var(--green); }
.global-category-card .global-cat-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 26px; border-radius: 13px; color: var(--green); background: var(--lime); font-size: 20px; }
.global-category-card strong { display: block; font-family: "Unbounded", sans-serif; font-size: 12px; line-height: 1.35; }
.global-category-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.global-category-card.active small { color: rgba(255,255,255,.68); }
.global-category-card > i { position: absolute; top: 17px; right: 17px; color: var(--green); font-size: 17px; font-style: normal; }
.global-category-card.active > i { color: var(--lime); }
.global-results { margin-top: 18px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: 0 20px 60px rgba(24,77,58,.08); }
.global-results-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.global-results-head h2 { margin: 0; font-family: "Unbounded", sans-serif; font-size: clamp(25px,3vw,39px); letter-spacing: -.04em; }
.global-results-head p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.location-button { min-width: 220px; min-height: 46px; padding: 0 15px; border: 0; border-radius: 14px; color: white; background: var(--green); cursor: pointer; font-size: 10px; font-weight: 800; }
.location-button:hover { background: var(--green-2); }
.location-button[disabled] { opacity: .6; cursor: wait; }
.location-status { grid-column: 1 / -1; margin: -2px 0 0; padding: 10px 13px; border-radius: 12px; color: var(--muted); background: #f3eee4; font-size: 9px; line-height: 1.5; }
.location-status.success { color: #2f654e; background: #e5f0de; }
.location-status.error { color: #7a4b36; background: #f8e4da; }
.global-place-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.global-place-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: #fbf8f1; cursor: pointer; text-align: left; transition: transform .2s ease,border-color .2s ease; }
.global-place-card:hover { transform: translateY(-2px); border-color: var(--coral); }
.global-place-card .place-thumb { width: 58px; height: 58px; }
.global-place-card h3 { margin: 0 0 4px; font-size: 12px; }
.global-place-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.global-place-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.global-place-meta span { padding: 4px 6px; border-radius: 999px; color: var(--green); background: #e9eddf; font-size: 8px; font-weight: 700; }
.global-place-distance { min-width: 56px; color: var(--green); font-size: 9px; font-weight: 800; text-align: right; }
.advice-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 70px; }
.advice-back { margin-bottom: 32px; font-size: 12px; }
.advice-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.advice-hero h1 { max-width: 720px; margin: 0; font-family: "Unbounded", sans-serif; font-size: clamp(38px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -.05em; }
.advice-hero > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.advice-notice { display: flex; gap: 16px; align-items: center; margin: 24px 0 30px; padding: 15px 18px; border: 1px solid rgba(24,77,58,.15); border-radius: 16px; background: rgba(255,253,248,.7); color: var(--muted); font-size: 11px; line-height: 1.55; }
.advice-notice strong { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: var(--green); background: var(--lime); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.advice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.advice-topic {
  position: relative;
  min-height: 180px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,253,248,.84);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.advice-topic:hover, .advice-topic.active { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 18px 38px rgba(24,77,58,.1); }
.advice-topic.active { color: white; background: var(--green); }
.advice-topic-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; border-radius: 13px; color: var(--green); background: var(--lime); font-size: 18px; }
.advice-topic strong { display: block; font-family: "Unbounded", sans-serif; font-size: 13px; line-height: 1.35; }
.advice-topic small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.advice-topic.active small { color: rgba(255,255,255,.68); }
.advice-topic-arrow { position: absolute; right: 18px; top: 18px; color: var(--green); font-size: 18px; }
.advice-topic.active .advice-topic-arrow { color: var(--lime); }

.advice-detail { margin-top: 18px; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: 0 22px 60px rgba(24,77,58,.08); }
.advice-detail-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.advice-detail-head h2 { margin: 0; font-family: "Unbounded", sans-serif; font-size: clamp(27px, 3.5vw, 42px); letter-spacing: -.04em; }
.advice-detail-head p { max-width: 650px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.advice-detail-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; font-size: 22px; }
.advice-sections { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.advice-section { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #faf6ee; }
.advice-section.wide { grid-column: 1 / -1; }
.advice-section h3 { margin: 0 0 12px; font-size: 14px; }
.advice-section p { margin: 0 0 12px; color: #4d5a54; font-size: 11px; line-height: 1.7; white-space: pre-line; }
.advice-section p:last-child { margin-bottom: 0; }
.advice-list { margin: 0; padding-left: 18px; color: #4d5a54; font-size: 11px; line-height: 1.7; }
.advice-list li + li { margin-top: 7px; }
.advice-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.advice-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: white; font-size: 9px; font-weight: 800; text-decoration: none; }
.advice-links a:hover { border-color: var(--green); }
.advice-callout { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; color: #6f493d; background: #f8e7df; font-size: 10px; line-height: 1.65; }

.legend-row {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

.legend-row span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.live { background: var(--coral); box-shadow: 0 0 0 4px rgba(238,118,93,.16); }
.legend-dot.soon { background: #94a09a; }

.area-panel {
  position: absolute;
  z-index: 600;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: min(420px, calc(100vw - 36px));
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 28px;
  background: rgba(255, 253, 248, .96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: panelIn .38s cubic-bezier(.2,.75,.25,1) both;
  scrollbar-width: none;
}

.area-panel::-webkit-scrollbar { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateX(-18px); } }

.panel-close, .dialog-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(23,37,31,.12);
  border-radius: 50%;
  background: rgba(255,253,248,.86);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.panel-handle { display: none; }
.area-intro { padding: 34px 30px 27px; border-bottom: 1px solid var(--line); }
.area-title-row { display: flex; align-items: center; gap: 14px; }
.area-intro h2 { margin: 0; font-family: "Unbounded", sans-serif; font-size: 38px; letter-spacing: -.04em; }
.price-chip { padding: 5px 9px; border-radius: 999px; color: var(--green); background: var(--lime); font-size: 11px; font-weight: 800; }
.area-intro > p { margin: 16px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.area-meta, .dialog-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.area-meta span, .dialog-tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }

.panel-section, .places-view { padding: 26px 30px 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading h3 { margin: 0; font-family: "Unbounded", sans-serif; font-size: 20px; letter-spacing: -.03em; }
.section-heading .eyebrow { margin-bottom: 7px; }
.places-total { color: var(--muted); font-size: 10px; white-space: nowrap; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.category-card {
  position: relative;
  min-height: 106px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f2e9;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--green); background: var(--white); }
.category-card .cat-icon { display: block; margin-bottom: 13px; font-size: 24px; }
.category-card strong { display: block; max-width: 115px; font-size: 12px; line-height: 1.25; }
.category-card small { position: absolute; right: 12px; bottom: 12px; color: var(--muted); font-size: 9px; }
.category-card.soon { opacity: .48; cursor: default; }
.category-card.soon:hover { transform: none; border-color: var(--line); background: #f7f2e9; }
.empty-area { grid-column: 1 / -1; padding: 19px; border: 1px dashed var(--line); border-radius: 18px; background: #f7f2e9; }
.empty-area strong { font-size: 12px; }
.empty-area p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.back-button { margin: 0 0 20px; padding: 0; border: 0; color: var(--green-2); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.places-heading { align-items: center; }
.subcategory-row {
  display: flex;
  gap: 7px;
  margin: -5px 0 18px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subcategory-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f7f2e9;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}
.filter-chip:hover,
.filter-chip.active {
  border-color: var(--green);
  color: white;
  background: var(--green);
}
.places-list { display: grid; gap: 10px; }
.place-card {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbf8f1;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.place-card:hover, .place-card.active { transform: translateX(3px); border-color: var(--coral); box-shadow: 0 10px 24px rgba(30,55,43,.08); }
.place-thumb { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 13px; color: white; font-size: 25px; }
.place-card h4 { margin: 0 0 5px; font-size: 12px; }
.place-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.place-arrow { padding-right: 5px; color: var(--green); font-size: 18px; }

.map-controls-note {
  position: absolute;
  z-index: 450;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(255,253,248,.9);
  box-shadow: 0 10px 30px rgba(20,45,36,.12);
  color: var(--muted);
  font-size: 10px;
  backdrop-filter: blur(10px);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(238,118,93,.45); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(238,118,93,0); } }
.map-credit { position: absolute; z-index: 440; right: 29px; bottom: 12px; color: rgba(23,37,31,.55); font-size: 8px; }

.region-label-wrap { background: transparent; border: 0; }
.region-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(24,77,58,.25);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,253,248,.9);
  box-shadow: 0 8px 22px rgba(20,45,36,.12);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease;
}
.region-label:hover { transform: translate(-50%, -50%) scale(1.07); }
.region-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9ba59f; }
.region-label.live { color: white; border-color: var(--green); background: var(--green); }
.region-label.live::before { background: var(--lime); }
.region-label.external { color: var(--green); border-style: dashed; }
.region-label.live.external { color: var(--green); background: var(--lime); }
.region-label.live.external::before { background: var(--green); }

.external-poi-wrap { background: transparent; border: 0; }
.external-poi {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(24,77,58,.36);
  border-radius: 12px;
  color: var(--green);
  background: rgba(215,241,92,.9);
  box-shadow: 0 8px 22px rgba(20,45,36,.13);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.external-poi span { font-size: 13px; }

.place-marker-wrap { background: transparent; border: 0; }
.place-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid white;
  border-radius: 50% 50% 50% 10%;
  color: white;
  background: var(--coral);
  box-shadow: 0 8px 22px rgba(25,50,39,.3);
  font-size: 13px;
  transform: rotate(-45deg);
  transition: transform .2s ease, background .2s ease;
}
.place-marker span { transform: rotate(45deg); }
.place-marker.active { background: var(--green); transform: rotate(-45deg) scale(1.18); }

.place-dialog {
  width: min(920px, calc(100vw - 38px));
  max-height: min(720px, calc(100vh - 38px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 35px 100px rgba(8,25,18,.32);
}
.place-dialog::backdrop, .about-dialog::backdrop { background: rgba(14,30,24,.55); backdrop-filter: blur(6px); }
.place-dialog[open] { display: grid; grid-template-columns: 44% 56%; animation: dialogIn .28s ease both; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.place-visual { position: relative; min-height: 560px; overflow: hidden; background: linear-gradient(145deg, #194d3b, #61a985 60%, #d8ef82); }
.place-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.place-visual::before, .place-visual::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); }
.place-visual::before { width: 350px; height: 350px; top: -90px; right: -130px; background: rgba(255,255,255,.18); }
.place-visual::after { width: 280px; height: 280px; bottom: -100px; left: -90px; background: rgba(255,220,146,.25); }
.visual-icon { position: absolute; left: 50%; top: 46%; z-index: 1; color: rgba(255,255,255,.9); font-size: 84px; transform: translate(-50%,-50%); }
.visual-no-photo { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 8px 11px; border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(15,47,36,.25); font-size: 9px; backdrop-filter: blur(8px); }
.gallery-dots { position: absolute; z-index: 2; bottom: 18px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.gallery-dots i { width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; }
.gallery-dots i:first-child { width: 18px; border-radius: 6px; background: white; }
.place-visual.has-photo::before, .place-visual.has-photo::after,
.place-visual.has-photo .visual-icon, .place-visual.has-photo .gallery-dots { display: none; }
.place-visual.has-photo .visual-no-photo { color: white; background: rgba(10,28,22,.5); }
.dialog-content { overflow-y: auto; padding: 54px 48px 42px; }
.dialog-kicker { margin-bottom: 10px; color: var(--green-2); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.dialog-content h2 { margin: 0 0 14px; font-family: "Unbounded", sans-serif; font-size: 31px; line-height: 1.15; letter-spacing: -.04em; }
.dialog-description { margin: 24px 0; color: #4d5a54; font-size: 13px; line-height: 1.75; white-space: pre-line; }
.tip-card, .order-card, .notice-card { margin: 12px 0; padding: 16px 18px; border-radius: 16px; background: #eef2df; }
.order-card { background: #f4e4d8; }
.notice-card { color: #714528; background: #f7e2c7; }
.tip-card span, .order-card span, .notice-card span { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.notice-card span { color: #8a4d22; }
.tip-card p, .order-card p, .notice-card p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; }
.route-button { margin-top: 22px; }

.about-dialog {
  width: min(520px, calc(100vw - 38px));
  padding: 50px;
  border: 0;
  border-radius: 28px;
  color: white;
  background: var(--green);
  box-shadow: var(--shadow);
}
.about-dialog h2 { margin: 0 0 20px; font-family: "Unbounded", sans-serif; font-size: 28px; line-height: 1.25; letter-spacing: -.04em; }
.about-dialog p { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.7; }
.about-dialog small { display: block; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: var(--lime); line-height: 1.5; }
.dialog-close.dark { color: white; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }

[hidden] { display: none !important; }

@media (max-width: 800px) {
  .app-shell { grid-template-rows: 66px 1fr; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 15px; }
  .brand-copy small, .breadcrumb { display: none; }
  .welcome-card { padding: 38px 22px; }
  .welcome-card h1 { font-size: 46px; }
  .welcome-copy { margin-top: 20px; font-size: 15px; }
  .welcome-note { margin: 12px 0 24px; font-size: 11px; }
  .welcome-actions { grid-template-columns: 1fr; max-width: 390px; }
  .journey-button { min-height: 80px; }
  .category-search-shell { width: calc(100% - 28px); padding: 26px 0 50px; }
  .category-search-hero h1 { font-size: 39px; }
  .global-category-grid { grid-template-columns: repeat(2,1fr); }
  .global-category-card { min-height: 140px; padding: 16px; }
  .global-category-card .global-cat-icon { margin-bottom: 19px; }
  .global-results { padding: 21px 15px; border-radius: 22px; }
  .global-results-head { grid-template-columns: 1fr; align-items: start; }
  .location-button { width: 100%; }
  .global-place-list { grid-template-columns: 1fr; }
  .advice-shell { width: calc(100% - 28px); padding: 26px 0 50px; }
  .advice-back { margin-bottom: 22px; }
  .advice-hero { grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
  .advice-hero h1 { font-size: 39px; }
  .advice-hero > p { font-size: 12px; }
  .advice-notice { align-items: flex-start; }
  .advice-grid { grid-template-columns: repeat(2, 1fr); }
  .advice-topic { min-height: 150px; padding: 16px; }
  .advice-topic-icon { margin-bottom: 20px; }
  .advice-detail { padding: 22px 16px; border-radius: 22px; }
  .advice-sections { grid-template-columns: 1fr; }
  .advice-section.wide { grid-column: auto; }
  .area-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: 64vh;
    border-radius: 25px;
    animation-name: panelUp;
  }
  @keyframes panelUp { from { opacity: 0; transform: translateY(24px); } }
  .panel-handle { display: block; width: 40px; height: 4px; margin: 9px auto 0; border-radius: 4px; background: #c8c6bf; }
  .area-intro { padding: 22px 22px 20px; }
  .area-intro h2 { font-size: 30px; }
  .panel-section, .places-view { padding: 21px 22px 25px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card { min-height: 94px; padding: 12px; }
  .category-card strong { font-size: 10px; }
  .category-card .cat-icon { margin-bottom: 8px; }
  .map-controls-note { display: none; }
  .map-back-button { top: 12px; left: 12px; min-height: 42px; padding: 0 15px; font-size: 11px; }
  .map-credit { right: 12px; bottom: 5px; }
  .place-dialog { max-height: calc(100vh - 20px); }
  .place-dialog[open] { display: block; overflow-y: auto; }
  .place-visual { min-height: 270px; }
  .place-visual.has-photo { min-height: min(58vh, 480px); }
  .visual-icon { font-size: 65px; }
  .dialog-content { padding: 29px 24px 30px; }
  .dialog-content h2 { font-size: 24px; }
  .about-dialog { padding: 44px 28px 32px; }
  .phrases-shell { width: calc(100% - 28px); padding: 26px 0 50px; }
  .phrases-hero { grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
  .phrases-hero h1 { font-size: 39px; }
  .phrases-hero > p { font-size: 12px; }
  .phrases-note { align-items: flex-start; }
  .phrase-grid { grid-template-columns: 1fr; }
  .phrase-card { min-height: 138px; padding: 19px; }
  .phrase-copy .phrase-translation { font-size: 16px; }
  .phrase-copy .phrase-reading { font-size: 17px; }
}

@media (max-width: 430px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-card h1 { font-size: 40px; }
  .global-category-grid { grid-template-columns: 1fr; }
  .global-category-card { min-height: 116px; }
  .advice-grid { grid-template-columns: 1fr; }
  .advice-topic { min-height: 126px; }
  .phrase-card { grid-template-columns: 1fr; }
  .copy-phrase { min-height: 46px; }
  .copy-phrase span { display: inline; margin: 0 7px 0 0; }
}

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