/* Public destination guide — matches Gluto marketing (light theme, readable type).
   Layout: blog first (readable column), then full-width map. */

.place-guide-page {
  /* Don’t fight :root tokens — body.home-page already sets a light mint background */
  background: transparent;
  color: var(--color-text);
  min-height: 100vh;
}

.place-guide-page .lp-nav {
  border-bottom: 1px solid var(--color-border);
}

/* --- Main stack: article → map --- */
.place-guide-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Blog: comfortable measure, centered */
.place-guide-article {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  box-sizing: border-box;
}

.place-guide-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.place-guide-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.place-guide-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.place-guide-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
}

.place-guide-body p {
  margin: 0 0 1rem;
}

.place-guide-body h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
  font-weight: 700;
}

.place-guide-body strong {
  color: var(--color-text);
  font-weight: 600;
}

.place-guide-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.place-guide-body .place-spotlight-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 2px;
}

.place-guide-body .place-spotlight-link:hover {
  color: var(--color-primary-hover);
}

.place-guide-body .place-spotlight-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* --- Full-width map block --- */
.place-guide-map-section {
  width: 100%;
  margin-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.place-map-card {
  width: 100%;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
}

.place-map-card-header {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1rem;
  box-sizing: border-box;
}

.place-map-card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.place-map-card-sub {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Map: span full viewport width, generous height */
#place-guide-map {
  width: 100%;
  height: min(78vh, 820px);
  min-height: 440px;
  background: #e8eef2;
}

.place-map-legend {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 0.85rem 1.25rem 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  box-sizing: border-box;
}

.place-map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.place-map-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.place-guide-error {
  padding: 2rem;
  text-align: center;
  color: var(--color-error);
  font-weight: 500;
}

.place-guide-loading {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-text-secondary);
}

.place-map-filters {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem 1.25rem 0.5rem;
  box-sizing: border-box;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}

.place-map-filters-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.place-map-filters-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0.4rem 0 0;
  line-height: 1.4;
}

.place-map-bucket-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.place-map-bucket-filter-label {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.place-map-bucket-filter-label input {
  margin: 0;
}

.place-map-bucket-count {
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.place-map-bucket-filter-label--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.place-map-filter-empty {
  font-size: 0.78rem;
  font-weight: 500;
  color: #b45309;
  margin: 0.45rem 0 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  #place-guide-map {
    height: min(70vh, 560px);
    min-height: 320px;
  }

  .place-guide-article {
    padding: 1.25rem 1rem 1.5rem;
  }
}

.maplibregl-popup-content.place-popup {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  max-width: 260px;
  color: #1c1917;
}

.place-popup-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.place-popup-verdict {
  font-size: 0.78rem;
  margin: 0 0 0.35rem;
  color: #44403c;
}

.place-popup-dist {
  font-size: 0.75rem;
  margin: 0 0 0.5rem;
  color: #57534e;
}

.place-popup-link {
  font-size: 0.8rem;
}

/* Instagram embed gallery (official blockquote + embed.js) */
.place-guide-instagram-section {
  width: 100%;
  background: var(--color-surface, #fafafa);
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0 2.25rem;
  box-sizing: border-box;
}

.place-guide-instagram-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.place-guide-instagram-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.place-guide-instagram-lead {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0 0 1.25rem;
  max-width: 48rem;
}

.place-guide-instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.place-guide-ig-card {
  background: var(--color-bg, #fff);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
  box-sizing: border-box;
}

.place-guide-ig-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.4;
  color: var(--color-text);
}

.place-guide-ig-snippet {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 0 0 0.5rem;
}

.place-guide-ig-source {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.place-guide-ig-card .instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
}

.place-guide-ig-direct {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
}

.place-guide-ig-direct a {
  color: var(--color-primary);
}

.place-guide-ig-more {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}

.place-guide-instagram-footnote {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 1.5rem 0 0;
  max-width: 48rem;
}

/* Full place panel (shared markup + map.css styles) */
.place-guide-detail-shell {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.place-guide-detail-shell:not([hidden]) {
  pointer-events: auto;
}

.place-guide-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.place-guide-detail-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-height: 100%;
  width: min(100vw, 28rem);
  max-width: 504px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.place-guide-detail-panel .map-place-detail {
  min-height: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem 2.5rem;
}

/* Review form: submission is wired on map.html only */
.place-guide-page #place-reviews-form {
  display: none !important;
}
