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;
}

#legal-stack {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: min(92vw, 620px);
}

#map-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  color: #2b3a4d;
  font-size: 11px;
  line-height: 1.2;
}

#map-credits span {
  border: 1px solid rgba(34, 50, 76, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #1f2d3d;
  padding: 5px 9px;
  border-radius: 999px;
}

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

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

#legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

#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: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  text-decoration: none;
}

#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: 35;
  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-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-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-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 {
  box-shadow: 0 6px 14px rgba(22, 36, 58, 0.08);
}

.popular-country-media {
  width: 220px;
  height: 124px;
  max-width: 100%;
  border: 1px solid #e6ecf7;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #f2f6fc 0%, #e5edf8 100%);
  margin: 0;
}

.popular-country-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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: 2px;
}

.popular-country-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;
}

.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: cover;
  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-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;
  /* header 鬮倥＆ */
  right: 0;
  width: 380px;
  /* 竊・蟆代＠菴呵｣輔≠繧句ｹ・*/

  height: 60vh;

  overflow: hidden;
  min-width: 260px;
  min-height: 220px;
  max-width: 90vw;
  /* 蛻晄悄繧ｵ繧､繧ｺ縺ｯ max-height 縺ｧ蛻ｶ蠕｡
  max-height: calc(100vh - 120px - 24px); */

  background: #ffffff;
  z-index: 5;

  /* 隕九◆逶ｮ */
  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;
}


#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: grab;
  user-select: none;
}

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

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

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

.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: 100%;
}

.photo-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid #d7deea;
  background: #eef2f7;
  object-fit: cover;
  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-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: cover;
  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);
}



/* 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: min(56vh, 460px);
  }

  #detail-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 35%;
    max-width: none;

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

    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);

    transform: translateY(0);

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

    box-sizing: border-box;
  }

  .detail-header {
    touch-action: pan-y;
    /* 竊・drag 縺ｯ縺薙％縺縺・*/
    cursor: grab;
  }

  #detail-panel.hidden {
    transform: translateY(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;
  }

  .popular-section {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: var(--mobile-popular-sheet-height);
    display: none;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
    z-index: 22;
  }

  .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: 11px;
    padding: 8px 8px 6px;
    margin-bottom: 0;
    height: auto;
    cursor: default;
  }

  .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;
    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;
  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;
}

/* 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;
}

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

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

#lang-menu-btn {
  min-height: 36px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #f2f4f7;
  color: #6a7380;
  font-size: 19px;
  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;
  background: #fff;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  z-index: 45;
  overflow: hidden;
}

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

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

.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;
}

#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 40px 0 36px;
  box-sizing: border-box;
}

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

#search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.62;
  font-size: 14px;
  line-height: 1;
}

#search-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

#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-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 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 {
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  width: 95px;
  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="file"],
.photo-review-label input[type="range"] {
  width: 100%;
  box-sizing: border-box;
}

.photo-review-preview {
  margin-top: 4px;
}

.photo-review-preview img {
  max-width: 100%;
  max-height: 40vh;
  border-radius: 10px;
  object-fit: contain;
}

.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) {
  #legal-stack {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
  }

  #map-credits {
    font-size: 10px;
  }

  #header {
    padding: 7px 8px;
    gap: 6px;
  }

  #header-top {
    justify-content: space-between;
    gap: 6px;
  }

  #title {
    display: none;
  }

  #map-brand {
    font-size: 24px;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
  }

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

  #region-menu-wrap {
    width: 132px;
    min-width: 132px;
    flex-basis: 132px;
  }

  #subregion-filter-wrap {
    min-width: 124px;
    flex-basis: 124px;
    gap: 4px;
  }

  #subregion-menu {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  #subregion-menu-combo {
    min-height: 34px;
    padding: 6px 28px 6px 9px;
    font-size: 12px;
  }

  #subregion-menu-toggle {
    right: 1px;
    width: 26px;
    font-size: 11px;
  }

  #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: 34px;
    padding: 6px 28px 6px 9px;
    box-sizing: border-box;
    font-size: 12px;
  }

  #region-menu-toggle {
    width: 26px;
    font-size: 11px;
  }

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

  #header-actions {
    gap: 6px;
  }

  #header-actions button,
  #header-actions select {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  #lang-menu-btn {
    min-height: 34px;
    min-width: 36px;
    font-size: 17px;
    padding: 0 8px;
  }

  #search-area {
    gap: 6px;
  }

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

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

  #search-icon {
    left: 10px;
    font-size: 13px;
  }

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

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

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

/* =========================
   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: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #edf1f7;
}

.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: 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-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: cover;
  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: cover;
  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: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(62vh, 560px);
    border-left: none;
    border-top: 1px solid #d9dee7;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.16);
    z-index: 24;
    transform: translateY(0);
    transition: transform 0.2s ease;
  }

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

  .search-results-head {
    cursor: grab;
    user-select: none;
  }

  #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: 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;
  }

  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: 16 / 9;
    max-height: 150px;
    width: min(74vw, 300px);
    margin: 6px auto 0 6px;
    border: 1px solid #e6ecf7;
    border-radius: 10px;
    overflow: hidden;
    border-bottom: 1px solid #e6ecf7;
  }
}
