﻿html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
}



/* 﨟樔ｺｮ繝ｻ繝ｻ陜ｨ・ｰ陜暦ｽｳ繝ｻ螢ｹ繝ｻ郢昴・繝郢晢ｽｼ邵ｺ・ｮ鬯ｮ蛟･・・崕繝ｻ笆｡邵ｺ蜿ｰ・ｸ荵晢ｿ｡郢ｧ繝ｻ*/
#map {
  position: absolute;
  top: 104px;
  /* 遶翫・郢晏･繝｣郢敖郢晢ｽｼ邵ｺ・ｮ鬯ｮ蛟･・・ｸｺ・ｶ郢ｧ繝ｻ*/
  bottom: 0;
  width: 100%;
  z-index: 1;
}

#trip-planner-launcher {
  position: fixed;
  top: 118px;
  right: 14px;
  z-index: 9;
  border: 1px solid #d4deef;
  border-radius: 16px;
  background: linear-gradient(160deg, #112642 0%, #1d3d66 52%, #2f6fd6 100%);
  color: #f7fbff;
  min-height: 52px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 10px 24px rgba(13, 29, 50, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

#trip-planner-launcher:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(13, 29, 50, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#trip-planner-launcher:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(47, 111, 214, 0.55);
}

.trip-planner-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.trip-planner-icon svg {
  width: 18px;
  height: 18px;
  fill: #f7fbff;
}

.trip-planner-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.trip-planner-kicker {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.trip-planner-title {
  font-size: 14px;
  font-weight: 700;
}

.trip-planner-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.trip-planner-overlay.hidden {
  display: none;
}

.trip-planner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 31, 0.58);
}

.trip-planner-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 760px);
  max-height: min(84vh, 760px);
  border-radius: 18px;
  border: 1px solid #d8e1ef;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(209, 230, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%),
    #ffffff;
  box-shadow: 0 22px 52px rgba(16, 28, 45, 0.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trip-planner-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
  color: #11233d;
}

.trip-planner-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f698a;
}

.trip-planner-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #3d5574;
}

.trip-planner-region-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  overflow: auto;
  padding: 2px;
}

.trip-planner-region-btn {
  border: 1px solid #cfdaeb;
  border-radius: 12px;
  background: #f8fbff;
  min-height: 46px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: #193252;
  font-size: 13px;
  font-weight: 700;
}

.trip-planner-region-btn:hover {
  border-color: #9db6dc;
  background: #edf4ff;
}

.trip-planner-region-btn.is-current {
  border-color: #2f6fd6;
  background: linear-gradient(180deg, #f2f7ff 0%, #e7f0ff 100%);
  color: #123f7f;
}

.trip-planner-region-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.trip-planner-close {
  border: 1px solid #ccd6e7;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 14px;
  background: #fff;
  color: #1f3555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.trip-planner-close:hover {
  background: #f3f7fd;
}

.trip-planner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trip-planner-back {
  border: 1px solid #ccd6e7;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 14px;
  background: #fff;
  color: #1f3555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.trip-planner-back:hover {
  background: #f3f7fd;
}

.trip-planner-back.hidden {
  visibility: hidden;
}

#legal-stack {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: min(68vw, 420px);
}

#map-credits {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  color: #2b3a4d;
  font-size: 10px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
}

#map-credits span {
  border: 1px solid rgba(34, 50, 76, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2d3d;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#map-credits a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

#map-credits a:hover {
  text-decoration: underline;
}

#legal-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  overflow: hidden;
}

#legal-links a,
#legal-links button {
  border: 1px solid rgba(34, 50, 76, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2d3d;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
  white-space: nowrap;
}

#legal-links button {
  cursor: pointer;
}

#legal-links a:hover,
#legal-links button:hover {
  background: #ffffff;
}

.cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent-panel {
  margin-left: auto;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(18, 28, 45, 0.2);
  padding: 12px;
}

.cookie-consent-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.cookie-consent-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.cookie-consent-controls {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.cookie-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.cookie-consent-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent-actions button {
  border-radius: 8px;
  border: 1px solid #cfd8e3;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  background: #f8fafc;
}

.cookie-consent-actions .cookie-primary {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

#cookie-settings-open {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 8;
  border: 1px solid rgba(34, 50, 76, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2d3d;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}




/* =========================
   popular-panel
========================= */

#popular-panel {
  position: fixed;
  top: 104px;
  bottom: 8px;
  left: 0;
  background: white;
  border-radius: 12px;
  padding: 8px;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  font-size: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* 隨倥・邵ｺ阮呻ｼ・ｸｺ遒√裟髫輔・*/
  overflow: hidden;
  /* 遶翫・陷茨ｽｨ闖ｴ阮吶・郢ｧ・ｹ郢ｧ・ｯ郢晢ｽｭ郢晢ｽｼ郢晢ｽｫ邵ｺ霈披雷邵ｺ・ｪ邵ｺ繝ｻ*/
  max-height: none;
  transition: transform 0.2s ease;
}

.popular-section {
  border: 1px solid #dce3f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(22, 36, 58, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 0;
}

.popular-mobile-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 0 2px;
  background: transparent;
}

.popular-mobile-tab {
  min-height: 30px;
  border: 1px solid #d5dce9;
  border-radius: 999px;
  background: #fff;
  color: #53627a;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.popular-mobile-tab.is-active {
  background: #2f6fd6;
  border-color: #2f6fd6;
  color: #fff;
}

.popular-near-pin-btn {
  border-color: #c9d7ee;
  background: #f5f9ff;
  color: #2f4e80;
}

.popular-near-pin-btn.is-active {
  background: #0f8a70;
  border-color: #0f8a70;
  color: #fff;
}

.popular-desktop-hide-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 26px;
  height: 64px;
  border: 1px solid #c7d2e3;
  border-radius: 13px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  color: transparent;
  padding: 0;
  font-size: 0;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 1px 2px rgba(18, 33, 56, 0.12);
  outline: none;
}

.popular-desktop-hide-btn:hover {
  background: linear-gradient(180deg, #f3f8ff 0%, #e6eefb 100%);
  border-color: #b9c8de;
}

.popular-desktop-hide-btn:focus-visible {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(47, 111, 214, 0.42);
}

.popular-desktop-hide-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #4d5f7d;
  border-bottom: 2px solid #4d5f7d;
  transform: translate(-40%, -50%) rotate(135deg);
}

.popular-desktop-hide-btn.is-collapsed::before {
  transform: translate(-60%, -50%) rotate(-45deg);
}

.popular-desktop-hide-btn::after {
  content: attr(data-hint);
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.popular-desktop-hide-btn:hover::after {
  opacity: 1;
}

#popular-panel.is-desktop-hidden {
  transform: translateX(calc(-100% + 28px));
}

#popular-panel.is-tab-country .popular-section-area,
#popular-panel.is-tab-country .popular-section-region,
#popular-panel.is-tab-area .popular-section-country,
#popular-panel.is-tab-area .popular-section-region,
#popular-panel.is-tab-region .popular-section-country,
#popular-panel.is-tab-region .popular-section-area {
  display: none;
}

#popular-panel:not(.is-region-enabled) .popular-mobile-tab[data-popular-tab="region"],
#popular-panel:not(.is-region-enabled) .popular-section-region {
  display: none;
}

.popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #1f2d43;
  padding: 10px 10px 8px;
  border-bottom: 1px solid #edf1f7;
  margin-bottom: 0;
  cursor: grab;
  user-select: none;
}

.popular-mobile-back {
  display: none;
  min-height: 30px;
  min-width: 30px;
  border: 1px solid #d5dce9;
  border-radius: 999px;
  background: #fff;
  color: #3c4b63;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.popular-sheet-close {
  display: none;
  min-height: 28px;
  min-width: 28px;
  border: 1px solid #d5dce9;
  border-radius: 999px;
  background: #fff;
  color: #53627a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#popular-panel.is-panel-dragging .popular-header {
  cursor: grabbing;
}

.popular-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  border-radius: 3px;
  opacity: 0.65;
  background:
    linear-gradient(135deg, transparent 0 45%, #8d97a6 46% 52%, transparent 53% 100%),
    linear-gradient(135deg, transparent 0 60%, #8d97a6 61% 67%, transparent 68% 100%);
}

#popular-panel.is-panel-resizing .popular-resize-handle {
  opacity: 1;
}

.popular-resize-handle-x {
  position: absolute;
  top: 40px;
  right: 0;
  bottom: 20px;
  width: 8px;
  cursor: ew-resize;
  opacity: 0.4;
  background: linear-gradient(180deg, transparent 0%, #8d97a6 18%, #8d97a6 82%, transparent 100%);
}

#popular-panel.is-panel-resizing .popular-resize-handle-x {
  opacity: 0.9;
}

.popular-list {
  max-height: none;
  /* header陋ｻ繝ｻ・定題ｼ費ｼ樒ｸｺ貊・ｽｫ蛟･・・*/
  overflow-y: auto;
  /* 遶翫・郢晢ｽｪ郢ｧ・ｹ郢晏現笆｡邵ｺ莉｣縺帷ｹｧ・ｯ郢晢ｽｭ郢晢ｽｼ郢晢ｽｫ */
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 6px;
  min-height: 0;
  flex: 1 1 auto;
}

.popular-list.is-dragging {
  cursor: grabbing;
}

.popular-empty {
  padding: 12px 10px;
  border: 1px dashed #ccd8ea;
  border-radius: 10px;
  color: #4a5b77;
  font-size: 13px;
  background: #f8fbff;
}

.popular-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px 8px;
  border: 1px solid #e5ebf5;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  background: #fff;
}

.popular-item:hover {
  background: #f6f9ff;
  border-color: #b9c8e2;
}

.popular-item-country {
  --popular-card-pad: 8px;
  padding: var(--popular-card-pad);
  box-shadow: 0 6px 14px rgba(22, 36, 58, 0.08);
}

.popular-country-media {
  width: calc(100% + (var(--popular-card-pad) * 2));
  max-width: none;
  margin: calc(var(--popular-card-pad) * -1) calc(var(--popular-card-pad) * -1) 0;
  border: 1px solid #e6ecf7;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f2f6fc 0%, #e5edf8 100%);
}

.popular-country-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #eef2f7;
  display: block;
}

.popular-country-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a93;
  font-size: 12px;
  font-weight: 700;
}

.popular-country-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #42536e;
  user-select: text;
}

.popular-rating-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.popular-rating-stars {
  color: #d4a017;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.popular-rating-value {
  font-weight: 700;
  color: #2a3d5e;
}

.popular-country-category {
  font-size: 12px;
  color: #33445f;
  font-weight: 600;
  user-select: text;
}

.popular-country-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #33445f;
  user-select: text;
}

.popular-country-extra-wrap {
  padding-top: 6px;
}

.popular-country-more-btn {
  min-height: 42px;
  min-width: 42px;
  border: 1px solid #d5deed;
  border-radius: 10px;
  background: #f8fbff;
  color: #2f486e;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}

.popular-country-more-btn:hover {
  background: #edf4ff;
}

.popular-country-more-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.popular-list-more-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.popular-list-more-btn {
  min-height: 30px;
  border: 1px solid #d5deed;
  border-radius: 999px;
  background: #f8fbff;
  color: #2f486e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
}

.popular-list-more-btn:hover {
  background: #edf4ff;
}

.popular-country-extra-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.popular-country-extra-grid.hidden {
  display: none;
}

.popular-country-extra-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef2f7;
  border-radius: 10px;
  border: 1px solid #dbe4f2;
  display: block;
}

.popular-country-photo-placeholder-small {
  min-height: 82px;
  border-radius: 10px;
  border: 1px dashed #d3ddeb;
  font-size: 11px;
}

.popular-country-photo-strip {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.popular-country-strip-thumb {
  width: 64px;
  min-width: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.popular-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: start;
}

.popular-item .rank {
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.popular-item .name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  user-select: text;
}

.popular-item .meta {
  font-size: 12px;
  line-height: 1.25;
  color: #555;
  user-select: text;
}

.popular-item .meta-score {
  color: #2f3a4a;
}



/* 﨟槫｡・髫ｧ・ｳ驍擾ｽｰ郢昜ｻ｣繝ｭ郢晢ｽｫ */
/* =========================
   SPOT DETAIL PANEL
========================= */
#detail-panel {
  padding: 0;
  position: fixed;
  top: 120px;
  bottom: 20px;
  /* header 鬯ｮ蛟･・・*/
  right: 0;
  width: 380px;
  /* 遶翫・陝・ｻ｣・闖ｴ蜻ｵ・｣霈披旺郢ｧ蜿･・ｹ繝ｻ*/

  height: auto;

  overflow: hidden;
  min-width: 260px;
  min-height: 220px;
  max-width: 90vw;
  /* 陋ｻ譎・ｄ郢ｧ・ｵ郢ｧ・､郢ｧ・ｺ邵ｺ・ｯ max-height 邵ｺ・ｧ陋ｻ・ｶ陟包ｽ｡
  max-height: calc(100vh - 120px - 24px); */

  background: #ffffff;
  z-index: 12;

  /* 髫穂ｹ昶螺騾ｶ・ｮ */
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.18);
  border-radius: 14px 14px 14px 14px;


  /* 郢ｧ・｢郢昜ｹ斟鍋ｹ晢ｽｼ郢ｧ・ｷ郢晢ｽｧ郢晢ｽｳ雋・摩・・*/
  transform: translateX(0);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.15s ease;

}

/* 鬮ｱ讚・ｽ｡・ｨ驕会ｽｺ霑･・ｶ隲ｷ繝ｻ*/
#detail-panel.hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

body.embed-mode #detail-panel {
  display: none !important;
}

body.itinerary-embed-mode #header {
  display: none !important;
}

body.itinerary-embed-mode #map {
  top: 0 !important;
}

body.itinerary-embed-mode #popular-panel {
  display: none !important;
}

body.itinerary-embed-mode #trip-planner-launcher {
  display: none !important;
}


#btn-prev,
#btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}

#btn-prev {
  left: -18px;
  /* 郢昜ｻ｣繝ｭ郢晢ｽｫ陞滓じ竊楢氣莉｣・陷・ｽｺ邵ｺ繝ｻ*/
}

#btn-next {
  right: -18px;
}

#btn-prev:disabled,
#btn-next:disabled {
  opacity: 0.3;
  cursor: default;
}


/* =========================
   DRAGGING STATE
========================= */
#detail-panel.is-dragging {
  transform: scale(0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* =========================
   FIXED DRAG HEADER
========================= */
.detail-header {
  position: relative;
  top: 0;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;

  cursor: default;
  user-select: text;
}

.detail-header:active {
  cursor: default;
}

.detail-title-wrap {
  flex: 1;
  min-width: 0;
  user-select: text;
}

.detail-title-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-mobile-back {
  display: none;
  min-height: 32px;
  min-width: 32px;
  border: 1px solid #d5dce9;
  border-radius: 999px;
  background: #fff;
  color: #3c4b63;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.detail-vote {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-vote-count {
  font-size: 12px;
  color: #555;
  min-width: 1.5em;
  text-align: left;
}

.reviews-section {
  margin-top: 6px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reviews-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.reviews-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reviews-link-btn {
  border: none;
  background: transparent;
  color: #1976d2;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 6px;
}

.reviews-link-btn:hover {
  text-decoration: underline;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.reviews-empty {
  font-size: 12px;
  color: #666;
}

.review-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-who {
  font-size: 12px;
  font-weight: 600;
  color: #222;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
}

.review-stars {
  letter-spacing: 1px;
  color: #f5a623;
  font-size: 12px;
}

.review-date {
  color: #777;
}

.review-comment {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #333;
  white-space: pre-wrap;
}

.reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.reviews-modal.hidden {
  display: none;
}

.reviews-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.reviews-modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 640px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reviews-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.reviews-modal-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.reviews-modal-close {
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
}

.reviews-modal-body {
  padding: 12px 14px 14px;
  overflow: auto;
}

.reviews-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reviews-modal-actions {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}

.reviews-modal-more {
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.reviews-modal-more:disabled {
  opacity: 0.6;
  cursor: default;
}

.detail-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
}

.detail-icon-btn:hover {
  background: #e6e6e6;
}

.detail-icon-btn.is-active {
  background: #1f6feb;
  color: #fff;
  box-shadow: 0 4px 10px rgba(31, 111, 235, 0.35);
}


/* =========================
   RESIZE HANDLES
========================= */
.resize-handle {
  position: absolute;
  z-index: 20;
}

/* 陜怜ｹ・ｽｾ・ｺ */
.resize-top {
  top: -4px;
  left: 0;
  right: 0;
  height: 8px;
  cursor: ns-resize;
}

.resize-bottom {
  bottom: -4px;
  left: 0;
  right: 0;
  height: 8px;
  cursor: ns-resize;
}

.resize-left {
  left: -4px;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
}

.resize-right {
  right: -4px;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
}

/* 陜怜ｹ・嚀 */
.resize-tl {
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}

.resize-tr {
  top: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}

.resize-bl {
  bottom: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
}

.resize-br {
  bottom: -6px;
  right: -6px;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
}


/* =========================
   INNER CONTENT
========================= */
.detail-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;

  /* 郢晏･繝｣郢敖郢晢ｽｼ陋ｻ繝ｻ・定題ｼ費ｼ樒ｸｺ貅伉讙趣ｽ｢・ｺ陞ｳ貅倪・鬯ｮ蛟･・・ｸｲ繝ｻ*/
  height: calc(100% - 120px);

  /* 陟｢・ｵ邵ｺ・ｮ邵ｺ貅假ｽ・*/
  overscroll-behavior: contain;

  overflow-y: auto;
  /* 遶翫・髴托ｽｽ陷会｣ｰ */

  padding-bottom: 72px
    /* 陟｢・ｵ邵ｺ・ｮ邵ｺ貅假ｽ∫ｸｺ・ｮ陞ｳ迚吶・闖ｴ蜥丞項 */

}

/* TITLE */
.detail-title {
  font-size: 19px;
  font-weight: bold;
  margin: 0;
  user-select: text;
}

/* CATEGORIES */
.detail-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  padding-top: 6px;
  /* 遶翫・闕ｳ鄙ｫ竊楢氣莉｣・闖ｴ蜥丞項 */
}


.detail-chip {
  background: #f1f1f1;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  user-select: text;
}

/* 﨟櫁推 陷蜥乗ｄ郢ｧ・ｻ郢ｧ・ｯ郢ｧ・ｷ郢晢ｽｧ郢晢ｽｳ */
.photo-section {
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #e6ebf4;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 6px 14px rgba(30, 52, 86, 0.08);
}

.photo-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1f2f49;
  margin: 0 0 10px;
}

.photo-cover-wrap {
  width: calc(100% + 24px);
  margin: 0 -12px;
}

.photo-cover {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid #d7deea;
  background: #eef2f7;
  object-fit: contain;
  cursor: pointer;
  display: block;
  box-shadow: 0 8px 16px rgba(24, 39, 64, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.photo-cover:hover {
  transform: translateY(-1px);
  border-color: #b9c8e2;
  box-shadow: 0 12px 22px rgba(24, 39, 64, 0.2);
}

.photo-more-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 34px;
  border: 1px solid #d6dfed;
  border-radius: 10px;
  background: #ffffff;
  color: #2f486e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.photo-more-btn:hover {
  background: #f5f8ff;
}

.photo-strip {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.photo-strip-thumb {
  width: 72px;
  min-width: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #d7deea;
  background: #eef2f7;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

.photo-strip-more {
  width: 72px;
  min-width: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #d5deed;
  background: #f8fbff;
  color: #2f486e;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0 0;
}

.photo-list-extra.hidden {
  display: none;
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid #d7deea;
  background: #eef2f7;
  object-fit: contain;
  cursor: pointer;
  display: block;
  box-shadow: 0 8px 16px rgba(24, 39, 64, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.photo-thumb:hover {
  transform: translateY(-1px);
  border-color: #b9c8e2;
  box-shadow: 0 12px 22px rgba(24, 39, 64, 0.2);
}

.photo-loading .photo-loading-text {
  font-size: 12px;
  color: #607089;
  padding: 8px 2px 2px;
}

/* =========================
   PHOTO MODAL
========================= */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.photo-modal.hidden {
  display: none;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

#photo-modal-img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.photo-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(18, 27, 44, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10001;
  backdrop-filter: blur(2px);
}

.photo-modal-nav-prev {
  left: 14px;
}

.photo-modal-nav-next {
  right: 14px;
}

@media (max-width: 768px) {
  .photo-modal-nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}



/* DESCRIPTION */
.detail-description {
  font-size: 13.5px;
  line-height: 1.65;
  user-select: text;
}

.detail-ai-note {
  margin-top: 6px;
  font-size: 10.5px;
  color: #777;
  font-style: italic;
}

/* META */
.detail-meta {
  font-size: 12.5px;
  color: #333;
  user-select: text;
}

.detail-meta a {
  color: #1976d2;
  text-decoration: none;
}

/* ACTIONS */
.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.detail-btn {
  flex: 1;
  padding: 9px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #1976d2;
  color: white;
}

.detail-btn.secondary {
  background: #f0f0f0;
  color: #333;
}

/* =========================
   MOBILE (Bottom Sheet)
========================= */
@media (max-width: 1024px) {
  :root {
    --mobile-popular-top: 118px;
    --mobile-popular-tabs-height: 46px;
    --mobile-popular-sheet-height: 100dvh;
    --mobile-overlay-top: var(--mobile-popular-top);
  }

  #detail-panel {
    left: 0;
    right: 0;
    top: var(--mobile-overlay-top);
    bottom: 0;
    width: auto;
    height: auto;
    max-width: none;

    touch-action: none;
    overscroll-behavior: contain;

    border-radius: 0;
    box-shadow: none;

    transform: translateX(0);
    z-index: 34;

    padding-bottom: calc(16px + env(safe-area-inset-bottom));

    box-sizing: border-box;
  }

  .detail-header {
    touch-action: pan-y;
    /* 遶翫・drag 邵ｺ・ｯ邵ｺ阮呻ｼ・ｸｺ・ｰ邵ｺ繝ｻ*/
    cursor: default;
  }

  .detail-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #detail-panel.hidden {
    transform: translateX(100%);
  }

  body.embed-mode #detail-panel {
    left: auto;
    right: 8px;
    top: 8px;
    bottom: auto;
    width: min(360px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    min-width: 240px;
    height: min(62vh, 520px);
    border-radius: 14px;
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.18);
    transform: translateX(0);
    padding-bottom: 0;
  }

  body.embed-mode #detail-panel.hidden {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
  }

  body.embed-mode #detail-panel {
    display: none !important;
  }

  /* popular panel: move under header and make horizontal scroll */
  #popular-panel {
    position: fixed;
    top: var(--mobile-popular-top);
    left: 8px;
    right: 8px;
    bottom: auto;
    height: auto;
    width: auto;
    padding: 0;
    gap: 0;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 11px;
    z-index: 21;
    pointer-events: none;
  }

  #popular-mobile-tabs,
  #popular-panel .popular-section {
    pointer-events: auto;
  }

  .popular-section {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-overlay-top);
    bottom: 0;
    height: calc(100dvh - var(--mobile-overlay-top));
    display: none;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    z-index: 32;
  }

  .popular-mobile-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 0;
    background: transparent;
  }

  #popular-panel.is-mobile-sheet-open.is-tab-country .popular-section-country {
    display: flex;
  }

  #popular-panel.is-mobile-sheet-open.is-tab-area .popular-section-area {
    display: flex;
  }

  #popular-panel.is-mobile-sheet-open.is-tab-region .popular-section-region {
    display: flex;
  }

  #popular-panel.is-tab-country .popular-section-area,
  #popular-panel.is-tab-country .popular-section-region,
  #popular-panel.is-tab-area .popular-section-country,
  #popular-panel.is-tab-area .popular-section-region,
  #popular-panel.is-tab-region .popular-section-country,
  #popular-panel.is-tab-region .popular-section-area {
    display: none;
  }

  .popular-header {
    font-size: 12px;
    padding: 10px 12px 8px;
    margin-bottom: 0;
    height: auto;
    cursor: default;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
  }

  .popular-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #popular-panel.is-mobile-sheet-open #popular-mobile-tabs {
    display: none;
  }

  .popular-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .popular-resize-handle {
    display: none;
  }

  .popular-resize-handle-x,
  .popular-desktop-hide-btn {
    display: none;
  }

  .popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
    padding: 6px;
  }

  .popular-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;

    min-width: 0;
    padding: 8px 8px;
    border-radius: 8px;
    background: #f8f8f8;
    border: 1px solid #ededed;
    font-size: 11px;
  }

  .popular-item:hover {
    background: #eef3ff;
  }

  .popular-item .rank {
    font-size: 11px;
  }

  .popular-item .name {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .popular-item .meta {
    font-size: 10px;
    line-height: 1.25;
  }

  /* give map room for header + popular bar */
  #map {
    top: 80px;
  }


  /* =========================
   mobile 騾包ｽｨ header 髫ｱ・ｿ隰ｨ・ｴ
  ========================= */
  #header {
    padding: 6px 10px;
    gap: 4px;
  }

  #region-menu {
    padding: 6px 10px;
    font-size: 12px;
  }

  #search-input {
    font-size: 13px;
    padding: 6px;
  }

  #categories {
    gap: 4px;
  }

}
/* =========================
   detail-close
========================= */
.detail-close {
  position: static;
  top: 10px;
  right: 10px;

  width: 32px;
  height: 32px;
  border-radius: 50%;

  border: none;
  background: #f0f0f0;
  color: #333;

  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
}

.detail-close:hover {
  background: #e0e0e0;
}

/* =========================
   PRECAUTIONS
========================= */
.detail-precautions {
  margin-top: 10px;
  padding: 10px 12px;

  background: #fafafa;
  border-left: 4px solid #f5a623;

  font-size: 12.5px;
  line-height: 1.6;
  color: #333;
  user-select: text;
}

.detail-precautions-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: bold;
}

.detail-subtitle {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: bold;
}



/* 﨟樊差繝ｻ繝ｻ郢晏･繝｣郢敖郢晢ｽｼ繝ｻ莠･諷崎摎・ｳ邵ｺ・ｫ鬩･髦ｪ繝ｻ郢ｧ荵昴・邵ｺ・ｧ absolute 邵ｺ・ｧ闕ｳ鄙ｫ竊楢摎・ｺ陞ｳ螟ｲ・ｼ繝ｻ*/
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 10px 14px 9px;
  border-bottom: 1px solid #d9dee7;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

#header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  position: relative;
  z-index: 3;
}

/* TITLE */
#title {
  display: inline-flex;
  align-items: center;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-family: "Roboto", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: #123f78;
  padding: 0 2px 0 0;
}

@media (max-width: 1024px) {
  #title {
    display: none;
  }
}

/* Region menu */
#region-menu-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  width: 148px;
  min-width: 148px;
  flex: 0 0 148px;
  flex-shrink: 0;
}

#region-menu-combo {
  min-height: 36px;
  width: 100%;
  padding: 7px 30px 7px 10px;
  box-sizing: border-box;
  font-size: 13px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  color: #243248;
}

#region-menu-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 28px;
  height: calc(100% - 2px);
  border: 0;
  border-left: 1px solid #e1e6ef;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: #4a5c7a;
  font-size: 12px;
  cursor: pointer;
}

#region-menu-toggle:hover {
  background: #f6f9ff;
}

#region-menu-combo:focus {
  outline: none;
  border-color: #8ea6cf;
  box-shadow: 0 0 0 2px rgba(142, 166, 207, 0.2);
}

.region-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 40;
}

.region-suggestions.hidden {
  display: none;
}

.region-suggestion-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 13px;
  color: #243248;
  cursor: pointer;
}

.region-suggestion-item:hover,
.region-suggestion-item.is-active {
  background: #f2f7ff;
}

#region-menu {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #ffffff;
  color: #243248;
}

#subregion-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 172px;
  flex: 0 0 172px;
  position: relative;
}

#subregion-menu {
  min-height: 36px;
  width: 100%;
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #ffffff;
  color: #243248;
}

#subregion-menu-combo {
  min-height: 36px;
  width: 100%;
  padding: 7px 30px 7px 10px;
  box-sizing: border-box;
  font-size: 13px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  color: #243248;
}

#subregion-menu-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 28px;
  height: calc(100% - 2px);
  border: 0;
  border-left: 1px solid #e1e6ef;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: #4a5c7a;
  font-size: 12px;
  cursor: pointer;
}

#subregion-menu-toggle:hover {
  background: #f6f9ff;
}

#subregion-filter-wrap.is-active #subregion-menu-combo {
  padding-right: 58px;
}

#subregion-filter-wrap.is-active #subregion-menu-toggle {
  right: 37px;
}

#subregion-menu-combo:focus {
  outline: none;
  border-color: #8ea6cf;
  box-shadow: 0 0 0 2px rgba(142, 166, 207, 0.2);
}

#subregion-menu-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 45;
}

#subregion-clear {
  min-height: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid #cfd6e4;
  border-radius: 999px;
  background: #fff;
  color: #6f7d91;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#subregion-clear:hover {
  background: #eef2f8;
  border-color: #b8c4da;
}

#subregion-clear[hidden] {
  display: none !important;
}

#header-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  align-items: center;
  flex-shrink: 0;
}

#header-actions > button,
#header-actions > select,
#clear-search {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  color: #243248;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#mobile-action-wrap {
  position: relative;
  display: none;
  z-index: 90;
}

#mobile-action-wrap.hidden {
  display: none !important;
}

#mobile-action-btn {
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  color: #243248;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

#mobile-action-popup {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 170;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#mobile-action-popup.hidden {
  display: none;
}

.mobile-action-item {
  display: block;
  width: 100%;
  min-height: 36px;
  border: 0;
  background: #fff;
  color: #243248;
  font-size: 12px;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.mobile-action-item + .mobile-action-item {
  border-top: 1px solid #e8edf5;
}

.mobile-action-item:hover {
  background: #f2f7ff;
}

#header-actions > button:hover,
#header-actions > select:hover,
#clear-search:hover {
  background: #f6f9ff;
  border-color: #b8c4da;
}

#my-map-btn.is-active {
  background: #1f65cf;
  border-color: #1f65cf;
  color: #fff;
}

#lang-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 80;
}

#lang-menu-btn {
  min-height: 36px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  color: #243248;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

#lang-menu-btn:hover {
  background: #eceff4;
  border-color: #c2cad8;
}

#lang-menu-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 9px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

#lang-menu-btn:hover::after,
#lang-menu-btn:focus-visible::after {
  opacity: 1;
}

.lang-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  display: block;
  background: #fff;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 130;
  overflow: hidden;
}

.lang-options.hidden {
  display: none;
}

.lang-option-item {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  background: #fff;
  color: #243248;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.lang-option-item + .lang-option-item {
  border-top: 1px solid #e8edf5;
}

.lang-option-item:hover,
.lang-option-item.is-active {
  background: #f2f7ff;
}

/* 﨟槫翁 隶諛・ｽｴ・｢郢晁ｼ斐°郢晢ｽｼ郢晢｣ｰ */
#search-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  position: relative;
  z-index: 1;
}

#search-stack {
  position: relative;
  width: 100%;
  flex: 1;
}

#search-row {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #cfd6e4;
  border-radius: 18px;
  background: #fff;
  min-height: 44px;
  padding: 0 72px 0 14px;
  box-sizing: border-box;
}

#search-row:focus-within {
  border-color: #7da2ea;
  box-shadow: 0 0 0 3px rgba(67, 116, 217, 0.12);
}

#search-submit {
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 28px;
  min-width: 28px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #6f7d91;
  font-size: 14px;
  line-height: 1;
}

#search-submit:hover {
  background: #eef2f8;
  border-color: transparent;
}

#search-line {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(52vw, 960px);
  max-width: 100%;
}

#search-input {
  flex: 1;
  min-height: 42px;
  padding: 0;
  font-size: 14px;
  border: none;
  border-radius: 0;
  color: #172033;
  background: transparent;
}

#search-input:focus {
  outline: none;
  box-shadow: none;
}

#clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 28px;
  min-width: 28px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #6f7d91;
  font-size: 16px;
  line-height: 1;
}

#clear-search:hover {
  background: #eef2f8;
  border-color: transparent;
}

#search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
}

.search-suggestion {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover {
  background: #f6f9ff;
}

.suggestion-title {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.suggestion-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #666;
}

.suggestions-hidden {
  display: none;
}

/* 﨟樊差 郢ｧ・ｫ郢昴・縺也ｹ晢ｽｪ郢昶・繝｣郢昴・*/
#categories {
  margin-top: 0;
  display: flex;
  overflow-x: auto;
  gap: 8px;
  flex: 1;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.cat {
  min-height: 34px;
  padding: 6px 12px;
  background: #f4f7fb;
  border: 1px solid #d7deea;
  border-radius: 999px;
  color: #33445f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat:hover {
  background: #edf3ff;
  border-color: #c0cbe0;
}

/* 隨倥・鬩包ｽｸ隰壽ｨ費ｽｸ・ｭ邵ｺ・ｮ郢ｧ・ｫ郢昴・縺也ｹ晢ｽｪ郢昶・繝｣郢昴・*/
.cat.active {
  background: #2f6fd6;
  border-color: #2f6fd6;
  color: #fff;
  box-shadow: 0 4px 10px rgba(47, 111, 214, 0.32);
}

/* =========================
   ZOOM DEBUG
========================= */
#zoom-debug {
  position: fixed;
  top: 10px;
  right: 10px;

  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;

  font-size: 12px;
  font-family: monospace;

  border-radius: 4px;
  z-index: 9999;
  pointer-events: none;
}

/* =========================
   AI STAR RATING
========================= */
.detail-rating {
  margin: 8px 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.3;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #edf1f6;
}

.detail-rating-label {
  font-weight: 700;
  font-size: 11px;
  color: #2f3a4a;
  line-height: 1.25;
}

.detail-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-rating .stars {
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.detail-rating .rate-value {
  font-size: 12px;
  color: #5f6b7a;
  font-weight: 600;
  line-height: 1;
}

.hover-tooltip {
  position: absolute;
  z-index: 9999;

  background: rgba(30, 30, 30, 0.9);
  color: #fff;

  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  width: max-content;
  max-width: min(560px, 72vw);

  pointer-events: none;
  /* 遶翫・髮懊・纃ｾ髫輔・*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hover-photo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 6px;
}

.hover-tooltip.hidden {
  display: none;
}

.hover-title {
  font-weight: bold;
  margin-bottom: 3px;
}

.hover-category {
  font-size: 10.5px;
  opacity: 0.8;
}

.hover-ratings {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hover-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hover-rating-tag {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0.95;
}

.hover-rating-value {
  font-size: 11px;
  color: #fff;
}

.hover-desc {
  margin-top: 4px;
  font-size: 10.5px;
  color: #ddd;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.photo-mini-cards-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.photo-mini-card {
  position: absolute;
  transform: translate(-50%, -100%) scale(var(--mini-card-scale, 1));
  transform-origin: center bottom;
  pointer-events: auto;
  cursor: pointer;
}

.photo-mini-card-frame {
  position: relative;
  width: clamp(110px, 13vw, 146px);
  background: #ffffff;
  border: 1px solid rgba(24, 46, 78, 0.18);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(13, 24, 41, 0.24);
  overflow: hidden;
}

.photo-mini-card-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
  filter: drop-shadow(0 1px 0 rgba(24, 46, 78, 0.18));
}

.photo-mini-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-mini-card-name {
  padding: 5px 7px 7px;
  font-size: 11px;
  line-height: 1.3;
  color: #1e2a3c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-preview-bubble {
  position: fixed;
  z-index: 10010;
  width: auto;
  min-width: min(300px, 86vw);
  max-width: min(560px, calc(100vw - 24px));
  background: #fff;
  color: #1f2a3b;
  border: 1px solid #ccd8ea;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(17, 29, 48, 0.33);
  overflow: visible;
  animation: spotPreviewIn 160ms ease-out;
  transform: none;
}

.spot-preview-bubble.hidden {
  display: none;
}

@keyframes spotPreviewIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.spot-preview-anchor {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid #2e63be;
  background: rgba(46, 99, 190, 0.16);
  box-shadow: 0 0 0 0 rgba(46, 99, 190, 0.5);
  pointer-events: none;
  z-index: 9;
  animation: spotAnchorPulse 1.4s ease-out infinite;
}

.spot-preview-anchor.hidden {
  display: none;
}

@keyframes spotAnchorPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 99, 190, 0.45);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(46, 99, 190, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 99, 190, 0);
  }
}

.spot-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 0;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.94), rgba(244, 248, 255, 0));
}

.spot-preview-fav-btn {
  border: 1px solid #cdd8ea;
  background: #f7faff;
  color: #2b4668;
  border-radius: 999px;
  min-height: 28px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.spot-preview-fav-btn:hover {
  background: #eef4ff;
  border-color: #b8c8df;
}

.spot-preview-fav-btn.is-active {
  background: #eaf2ff;
  border-color: #84a8e0;
  color: #1f4e99;
}

.spot-preview-fav-icon {
  line-height: 1;
  font-size: 12px;
}

.spot-preview-open-link {
  border: none;
  background: transparent;
  color: #2d63bb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spot-preview-open-link:hover {
  color: #1f4e99;
}

.spot-preview-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spot-preview-close-btn {
  border: 1px solid #d0daea;
  background: #ffffff;
  color: #51637d;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

.spot-preview-close-btn:hover {
  background: #f2f6fd;
  color: #2b4668;
}

.spot-preview-media {
  width: 100%;
  height: clamp(150px, 23vh, 220px);
  background: #eef2f8;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.spot-preview-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spot-preview-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6d82;
  font-size: 13px;
}

.spot-preview-body {
  padding: 11px 13px 13px;
}

@media (max-width: 1024px) {
  .spot-preview-bubble {
    left: 50% !important;
    top: auto !important;
    width: min(92vw, 460px);
    min-width: 0;
    max-width: min(92vw, 460px);
    max-height: min(60vh, 560px);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-50%);
  }

  .spot-preview-media {
    height: clamp(140px, 28vh, 260px);
  }

  .spot-preview-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

.spot-preview-name {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}

.spot-preview-category {
  margin-top: 4px;
  font-size: 12px;
  color: #3c4a5f;
}

.spot-preview-ratings {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spot-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f7fd;
  border: 1px solid #d7e2f2;
  border-radius: 999px;
  padding: 4px 8px;
  color: #28425f;
  font-size: 12px;
}

.spot-preview-pill-label {
  color: #526980;
  font-size: 11px;
}

.spot-preview-pill-stars {
  color: #d29a06;
  font-size: 11px;
  letter-spacing: 0.6px;
  line-height: 1;
}

.spot-preview-desc {
  margin-top: 8px;
  font-size: 12px;
  color: #4d5a6e;
  line-height: 1.45;
}

.spot-preview-links {
  margin-top: 9px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spot-preview-text-link {
  border: none;
  background: transparent;
  color: #2d63bb;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spot-preview-text-link:hover {
  color: #1f4e99;
}

.spot-preview-actions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.spot-preview-chip {
  border: 1px solid #cfd9ea;
  background: #f7faff;
  color: #2a4668;
  border-radius: 999px;
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.spot-preview-chip:hover {
  background: #edf4ff;
  border-color: #b9c8de;
}

/* photo review modal */
.photo-review-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.photo-review-modal.hidden {
  display: none;
}

.photo-review-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.photo-review-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.photo-review-close-icon {
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.photo-review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.photo-review-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #222;
}

.photo-review-label input[type="text"],
.photo-review-label textarea,
.photo-review-label input[type="range"] {
  width: 100%;
  box-sizing: border-box;
}

.photo-review-file-input {
  display: none;
}

.photo-review-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-review-file-btn {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  color: #111827;
}

.photo-review-file-name {
  font-size: 13px;
  color: #6b7280;
}

.photo-review-drop-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.photo-review-label.is-dragover {
  outline: 2px dashed #2563eb;
  outline-offset: 2px;
  border-radius: 10px;
  background: #eff6ff;
}

.photo-review-preview {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.photo-review-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
}

.photo-review-preview-item {
  position: relative;
  cursor: grab;
}

.photo-review-preview-item.is-dragging {
  opacity: 0.75;
  cursor: grabbing;
}

.photo-review-preview-item.is-drop-target img {
  outline: 2px solid #1d4ed8;
  outline-offset: 1px;
}

.photo-review-remove-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.photo-review-preview-item:hover .photo-review-remove-btn,
.photo-review-preview-item:focus-within .photo-review-remove-btn {
  opacity: 1;
  transform: scale(1);
}

.photo-review-note {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

.photo-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 8px;
}

.photo-review-submit,
.photo-review-actions .secondary {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.photo-review-submit {
  background: #1976d2;
  color: #fff;
}

#map-brand {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f8fbff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
}

.photo-review-actions .secondary {
  background: #eee;
  color: #333;
}

/* spot submit modal */
.spot-submit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.spot-submit-modal.hidden {
  display: none;
}

.spot-submit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.spot-submit-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 640px);
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.spot-submit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.spot-submit-header h3 {
  margin: 0;
  font-size: 15px;
}

.spot-submit-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  cursor: pointer;
}

.spot-submit-form {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.spot-submit-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.spot-submit-label input,
.spot-submit-label textarea {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
}

.spot-submit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spot-submit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.spot-submit-primary,
.spot-submit-secondary {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.spot-submit-primary {
  background: #1976d2;
  color: #fff;
}

.spot-submit-secondary {
  background: #eee;
  color: #333;
}

.spot-submit-status {
  min-height: 18px;
  font-size: 12px;
  color: #1f6feb;
}

/* =========================================
   Mobile compact header (overrides)
========================================= */
@media (max-width: 768px) {
  #lang-menu-wrap {
    position: relative;
    isolation: isolate;
  }

  #lang-menu-btn::after {
    display: none;
  }

  .lang-options {
    right: 0;
    left: auto;
    top: calc(100% + 2px);
    min-width: 156px;
    max-width: min(72vw, 220px);
    z-index: 180;
    overflow: hidden;
  }

  .lang-option-item {
    font-size: 14px;
    padding: 10px 12px;
    min-height: 40px;
  }

  #trip-planner-launcher {
    top: auto;
    left: auto;
    right: 8px;
    bottom: calc(112px + env(safe-area-inset-bottom));
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 12px;
    gap: 6px;
    max-width: min(42vw, 150px);
    z-index: 9;
  }

  .trip-planner-icon {
    width: 22px;
    height: 22px;
  }

  .trip-planner-icon svg {
    width: 13px;
    height: 13px;
  }

  .trip-planner-kicker {
    display: none;
  }

  .trip-planner-title {
    font-size: 10.5px;
    line-height: 1.15;
  }

  .trip-planner-panel {
    width: min(94vw, 760px);
    max-height: min(86vh, 760px);
    padding: 12px;
  }

  .trip-planner-head h2 {
    font-size: 20px;
  }

  .trip-planner-region-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #legal-stack {
    right: 6px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    max-width: min(68vw, 300px);
    gap: 3px;
  }

  #cookie-settings-open {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  #map-credits {
    font-size: 8px;
    line-height: 1;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
  }

  #map-credits span {
    padding: 2px 6px;
    max-width: min(60vw, 260px);
  }

  #legal-links {
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
  }

  #legal-links a,
  #legal-links button {
    font-size: 8px;
    line-height: 1;
    padding: 2px 6px;
  }

  #header {
    padding: calc(11px + env(safe-area-inset-top)) 8px 10px;
    gap: 8px;
  }

  #header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 3px;
    align-items: center;
  }

  #title {
    display: none;
  }

  #map-brand {
    font-size: 10px;
    left: 10px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    transform: none;
    transform-origin: left bottom;
    letter-spacing: 0;
    opacity: 0.8;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.35),
      0 1px 4px rgba(0, 0, 0, 0.3);
  }

  #region-menu {
    padding: 5px 8px;
    font-size: 16px;
  }

  #region-menu-wrap {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  #subregion-filter-wrap {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    gap: 4px;
  }

  #subregion-menu {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 16px;
  }

  #subregion-menu-combo {
    min-height: 32px;
    padding: 5px 24px 5px 8px;
    font-size: 14px;
  }

  #subregion-menu-toggle {
    right: 1px;
    width: 22px;
    font-size: 10px;
  }

  #subregion-filter-wrap.is-active #subregion-menu-combo {
    padding-right: 52px;
  }

  #subregion-filter-wrap.is-active #subregion-menu-toggle {
    right: 34px;
  }

  #subregion-clear {
    min-height: 28px;
    min-width: 28px;
    font-size: 15px;
  }

  #region-menu-combo {
    min-height: 32px;
    padding: 5px 24px 5px 8px;
    box-sizing: border-box;
    font-size: 14px;
  }

  #region-menu-toggle {
    width: 22px;
    font-size: 10px;
  }

  .region-suggestion-item {
    font-size: 12px;
    padding: 7px 9px;
  }

  #header-actions {
    flex: 0 0 auto;
    min-width: 0;
    gap: 3px;
    justify-content: flex-end;
    overflow: visible;
    padding-bottom: 0;
    margin-left: 0;
    white-space: nowrap;
  }

  #header-actions > button,
  #header-actions > select {
    min-height: 32px;
    min-width: 34px;
    padding: 5px 7px;
    font-size: 10px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  #favorites-btn.is-mobile-icon {
    width: 34px;
    min-width: 34px;
    padding: 0;
    font-size: 19px;
    color: #d90429;
    line-height: 1;
    border-color: #d6dce8;
    background: #fff;
  }

  #mobile-action-wrap {
    display: inline-flex;
    align-items: center;
  }

  #mobile-action-btn {
    min-height: 32px;
    min-width: 34px;
    width: 34px;
    font-size: 18px;
    border-radius: 8px;
  }

  #mobile-action-popup {
    min-width: 132px;
    z-index: 180;
  }

  .mobile-action-item {
    font-size: 13px;
    min-height: 36px;
    padding: 9px 10px;
  }

  #add-spot-btn,
  #my-map-btn,
  #heatmap-toggle {
    display: none !important;
  }

  #zoom-debug {
    display: none !important;
  }

  #lang-menu-btn {
    min-height: 32px;
    min-width: 34px;
    font-size: 14px;
    padding: 0 6px;
    border-radius: 8px;
    background: #fff;
    color: #243248;
  }

  #search-area {
    gap: 6px;
  }

  #search-row {
    min-height: 40px;
    padding: 0 64px 0 10px;
    border-radius: 16px;
  }

  #search-input {
    font-size: 16px;
    min-height: 38px;
    padding: 0;
    border-radius: 0;
  }

  #search-submit {
    right: 34px;
    min-height: 24px;
    min-width: 24px;
    font-size: 13px;
  }

  #clear-search {
    right: 6px;
    min-height: 26px;
    min-width: 26px;
    font-size: 14px;
  }

  #search-line {
    width: 100%;
  }

  #categories {
    gap: 6px;
    padding-bottom: 2px;
  }

  .cat {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Keep panels readable: hide trip CTA while large floating panels are open */
body.detail-open #trip-planner-launcher,
body.search-results-open #trip-planner-launcher,
body.popular-open #trip-planner-launcher {
  display: none !important;
}

/* =========================
   Search Results Side Panel
========================= */
#search-results-panel {
  position: fixed;
  top: 104px;
  right: 0;
  bottom: 0;
  width: var(--search-results-panel-width, 360px);
  background: #fff;
  border-left: 1px solid #d9dee7;
  box-shadow: -10px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 14;
  display: flex;
  flex-direction: column;
}

#search-results-panel.hidden {
  display: none;
}

.search-results-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #edf1f7;
}

.search-results-back {
  display: none;
  min-height: 28px;
  min-width: 28px;
  border: 1px solid #d5dce9;
  border-radius: 999px;
  background: #fff;
  color: #53627a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.search-results-back:hover {
  background: #f6f9ff;
}

.search-results-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2d43;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results-close {
  min-height: 24px;
  min-width: 24px;
  border: 1px solid #d5dce9;
  border-radius: 999px;
  background: #fff;
  color: #53627a;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.search-results-close:hover {
  background: #f6f9ff;
}

.search-results-body {
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  width: 100%;
  text-align: left;
  border: 1px solid #dce3f0;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(22, 36, 58, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.search-result-item:hover {
  border-color: #b9c8e2;
  box-shadow: 0 10px 20px rgba(22, 36, 58, 0.13);
  transform: translateY(-1px);
}

.search-result-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #f2f6fc 0%, #e5edf8 100%);
  border-bottom: 1px solid #e6ecf7;
}

.search-result-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a93;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.search-result-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: start;
  padding: 10px 10px 0;
}

.search-result-rank {
  font-size: 11px;
  font-weight: 700;
  color: #3d4d67;
  background: #eef3fb;
  border: 1px solid #d8e2f2;
  border-radius: 999px;
  padding: 2px 8px;
}

.search-result-name {
  font-size: 14px;
  font-weight: 700;
  color: #162133;
  line-height: 1.35;
  user-select: text;
}

.search-result-meta {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #42536e;
  padding: 0 10px;
  user-select: text;
}

.search-result-meta > span,
.search-result-meta > .search-result-rating-chip {
  background: #f4f7fc;
  border: 1px solid #dee6f3;
  border-radius: 999px;
  padding: 3px 8px;
}

.search-result-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-result-rating-stars {
  color: #d4a017;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.search-result-rating-value {
  font-weight: 700;
  color: #2a3d5e;
}

.search-result-category {
  margin-top: 6px;
  font-size: 12px;
  color: #31445f;
  padding: 0 10px;
  user-select: text;
}

.search-result-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #425269;
  padding: 0 10px 11px;
  user-select: text;
}

.search-result-extra-wrap {
  padding: 0 10px 11px;
}

.search-result-more-btn {
  min-height: 30px;
  border: 1px solid #d5deed;
  border-radius: 999px;
  background: #f8fbff;
  color: #2f486e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
}

.search-result-more-btn:hover {
  background: #edf4ff;
}

.search-result-extra-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.search-result-extra-grid.hidden {
  display: none;
}

.search-result-extra-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #eef2f7;
  border-radius: 10px;
  border: 1px solid #dbe4f2;
  display: block;
}

.search-result-photo-placeholder-small {
  min-height: 82px;
  border-radius: 10px;
  border: 1px dashed #d3ddeb;
  font-size: 11px;
}

.search-hit {
  background: #fff4a8;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef2f7;
  display: block;
}

.search-result-empty {
  font-size: 13px;
  color: #5c6779;
  padding: 8px 4px;
}

body.search-results-open #detail-panel {
  right: calc(var(--search-results-panel-width, 360px) + 16px);
}

@media (max-width: 1024px) {
  #search-results-panel {
    top: var(--mobile-overlay-top, 118px);
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: calc(100dvh - var(--mobile-overlay-top, 118px));
    border-left: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 33;
    transform: translateX(0);
    transition: transform 0.2s ease;
  }

  #search-results-panel.hidden {
    display: flex;
    transform: translateX(-100%);
    pointer-events: none;
  }

  .search-results-head {
    padding: 10px 12px;
    cursor: default;
  }

  .search-results-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #search-results-panel .search-result-media {
    aspect-ratio: 16 / 8;
    max-height: 190px;
    width: min(72vw, 340px);
    margin: 8px auto 0 8px;
    border: 1px solid #e6ecf7;
    border-radius: 10px;
    overflow: hidden;
    border-bottom: 1px solid #e6ecf7;
  }

  #popular-panel .popular-item-country .popular-country-media {
    aspect-ratio: auto;
    max-height: none;
    width: 100%;
    max-width: 100%;
    margin: calc(var(--popular-card-pad) * -1) calc(var(--popular-card-pad) * -1) 0;
    border: 1px solid #e6ecf7;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-bottom: 1px solid #e6ecf7;
  }

  #popular-panel .popular-item-country {
    --popular-card-pad: 6px;
    padding: var(--popular-card-pad);
    gap: 3px;
  }

  #popular-panel .popular-item-country .popular-country-meta {
    font-size: 10px;
    gap: 3px;
  }

  #popular-panel .popular-item-country .popular-country-category {
    font-size: 11px;
  }

  #popular-panel .popular-item-country .popular-country-desc {
    font-size: 10px;
    line-height: 1.35;
  }

  body.search-results-open #detail-panel {
    right: 0;
  }
}

@media (max-width: 768px) {
  #search-results-panel .search-result-media {
    aspect-ratio: 16 / 9;
    max-height: 150px;
    width: min(74vw, 300px);
    margin: 6px auto 0 6px;
  }

  #popular-panel .popular-item-country .popular-country-media {
    aspect-ratio: auto;
    max-height: none;
    width: 100%;
    max-width: 100%;
    margin: calc(var(--popular-card-pad) * -1) calc(var(--popular-card-pad) * -1) 0;
    border: 1px solid #e6ecf7;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    border-bottom: 1px solid #e6ecf7;
  }

  #popular-panel .popular-item-country {
    --popular-card-pad: 5px;
    padding: var(--popular-card-pad);
    gap: 2px;
  }

  #popular-panel .popular-item-country .popular-country-meta {
    font-size: 10px;
    gap: 2px;
  }

  #popular-panel .popular-item-country .popular-country-category {
    font-size: 10px;
  }

  #popular-panel .popular-item-country .popular-country-desc {
    font-size: 10px;
    line-height: 1.3;
  }
}





/* Blur-up image loading */
img.blur-up-img {
  filter: blur(16px);
  transform: scale(1.02);
  opacity: 0.92;
  transition: filter .28s ease, transform .28s ease, opacity .28s ease;
  will-change: filter, transform, opacity;
}

img.blur-up-img.is-loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}
