body[data-rich-page="town-guide"] { margin: 0; }
.town-guide, .town-guide * { box-sizing: border-box; }
.town-guide {
  width: min(1180px, calc(100% - 48px));
  margin: 22px auto 42px;
  color: #173b4d;
}
.town-guide .guide-hero {
  padding: 28px 32px;
  background: #164e50;
  color: #fffdf8;
  border-bottom: 5px solid #d4a45d;
  border-radius: 8px 38px 8px 8px;
}
.town-guide .eyebrow { color: #f3cb87; font-weight: 700; margin: 0; }
.town-guide .guide-hero h1 {
  margin: 8px 0;
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  line-height: 1.1;
  color: inherit;
}
.town-guide .guide-hero p:last-child { margin: 0; color: #e3efeb; }
.town-guide .map-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}
.town-guide .map-frame, .town-guide .detail {
  min-width: 0;
  border: 1px solid #c9d7d1;
  border-radius: 8px;
  background: #fffdf8;
  overflow: hidden;
}
.town-guide .map-frame { padding: 16px; background: #e8f0eb; }
.town-guide .map-frame h2, .town-guide .detail h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  overflow-wrap: normal;
}
.town-guide .town-picker { margin: 12px 0; }
.town-guide .town-picker label { display: block; margin-bottom: 4px; font-weight: 700; }
.town-guide .town-picker select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #718e84;
  border-radius: 5px;
  color: #173b4d;
  background: #fffdf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23173b4d' stroke-width='1.7'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  font: inherit;
  font-weight: 600;
}
.town-guide .map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  background: #19464b;
}
.town-guide .town-shape { fill: #407371; stroke: #e3efeb; stroke-width: 1.5; cursor: pointer; }
.town-guide .town-shape:nth-child(3n) { fill: #346563; }
.town-guide .town-shape:nth-child(4n) { fill: #4c7774; }
.town-guide .town-shape:is(:hover, :focus-visible, .active) { fill: #efc77f; stroke: #fffdf8; stroke-width: 3; }
.town-guide .map-label {
  fill: #fffdf8;
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: #173b4d;
  stroke-width: 3px;
}
.town-guide .map-credit { color: #405d61; font-size: .75rem; margin: 8px 0 0; }
.town-guide .detail { padding: 18px; }
.town-guide .detail p { margin: 6px 0 14px; line-height: 1.45; }
.town-guide .town-photo, .town-guide .town-banner {
  display: block;
  height: clamp(120px, 24vw, 215px);
  width: calc(100% + 36px);
  max-width: none;
  margin: -18px -18px 14px;
}
.town-guide .town-photo { object-fit: cover; }
.town-guide .town-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #164e50;
  padding: 16px;
}
.town-guide .town-outline { width: 100%; height: 100%; overflow: visible; }
.town-guide .town-outline path { fill: #efc77f; stroke: #fffdf8; stroke-width: 2; vector-effect: non-scaling-stroke; }
.town-guide .highlights { display: grid; gap: 6px; margin: 0 0 14px; }
.town-guide .highlights > span { font-weight: 700; }
.town-guide .links, .town-guide .route-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.town-guide .route-controls { justify-content: space-between; margin-top: 12px; border-top: 1px solid #c9d7d1; padding-top: 8px; }
.town-guide :is(.highlights a, .links a, .route-controls button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #a6bcb4;
  border-radius: 5px;
  background: #fffdf8;
  color: #173b4d;
  font: 600 .9375rem/1.3 'DM Sans', Arial, sans-serif;
  text-decoration: none;
}
.town-guide .highlights a { border-left: 4px solid #50796e; }
.town-guide .links a:first-child { background: #efc77f; border-color: #ac8042; }
.town-guide .route-controls button { cursor: pointer; }
.town-guide :is(.highlights a, .links a, .route-controls button):hover { background: #deebe5; }

@media (max-width: 760px) {
  .town-guide { width: calc(100% - 32px); margin-block: 10px 24px; }
  .town-guide .guide-hero { padding: 16px; border-radius: 6px 28px 6px 6px; }
  .town-guide .guide-hero p:last-child { line-height: 1.4; }
  .town-guide .map-section { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 12px; }
  .town-guide .map-frame { padding: 12px; }
  .town-guide .map-label { font-size: 20px; stroke-width: 4px; }
}
