/* ============================================
   Terra Lanna TRAVEL — MAP CSS
   Interactive map page + zone streaming modal
   ============================================ */

/* ============================================
   MAP PAGE
   ============================================ */

#page-map {
  min-height: calc(100vh - var(--header-height));
  background: var(--color-bg);
}

.map-page-header {
  text-align: center;
  padding: 28px 24px 20px;
}

.map-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.06em;
  color: var(--color-white);
  line-height: 1;
}

.map-page-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

.map-page-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.map-page-hint span { font-size: 1.1rem; }

/* --- Map Container --- */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.map-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,0.8),
              0 0 0 1px rgba(255,215,0,0.15);
  cursor: pointer;
  /* Keep natural aspect ratio, never crop */
  line-height: 0;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* --- SVG Zone Overlay --- */
.map-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-zone {
  fill: rgba(255,255,255,0.04);
  stroke: rgba(255,255,255,0.12);
  stroke-width: 1.5;
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.2s ease, filter 0.2s ease;
  filter: none;
}

.map-zone:hover {
  stroke-width: 2.5;
  filter: brightness(1.15) drop-shadow(0 0 12px currentColor);
}

/* Zone-specific hover colors */
.map-zone--maerim        { fill: rgba(0, 255, 120, 0.08); stroke: rgba(0,200,100,0.35); }
.map-zone--maerim:hover  { fill: rgba(0, 255, 120, 0.30); stroke: rgba(0,230,100,0.8); }

.map-zone--chiangmai        { fill: rgba(255, 200, 0, 0.08); stroke: rgba(255,180,0,0.35); }
.map-zone--chiangmai:hover  { fill: rgba(255, 200, 0, 0.32); stroke: rgba(255,200,0,0.85); }

.map-zone--sankamphaeng        { fill: rgba(255, 140, 0, 0.08); stroke: rgba(255,120,0,0.35); }
.map-zone--sankamphaeng:hover  { fill: rgba(255, 140, 0, 0.30); stroke: rgba(255,140,0,0.8); }

.map-zone--hangdong        { fill: rgba(0, 200, 255, 0.08); stroke: rgba(0,180,255,0.35); }
.map-zone--hangdong:hover  { fill: rgba(0, 200, 255, 0.30); stroke: rgba(0,200,255,0.8); }

/* Zone Labels in SVG */
.map-zone-label {
  font-family: var(--font-heading), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: rgba(255,255,255,0.75);
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.9));
  transition: fill 0.2s ease;
}

.map-zone-emoji {
  font-size: 14px;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Pulse ring on zone labels */
.map-zone-pulse {
  fill: none;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 2;
  pointer-events: none;
  animation: zone-pulse 2.5s ease-out infinite;
}

@keyframes zone-pulse {
  0%   { r: 0; opacity: 1; }
  100% { r: 24px; opacity: 0; }
}

/* --- Zone button list (mobile fallback below map) --- */
.map-zone-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.map-zone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid;
}

.map-zone-btn--maerim {
  background: rgba(0,255,120,0.1);
  border-color: rgba(0,200,100,0.4);
  color: #00dd88;
}
.map-zone-btn--maerim:hover {
  background: rgba(0,255,120,0.22);
  box-shadow: 0 0 20px rgba(0,200,100,0.3);
}

.map-zone-btn--chiangmai {
  background: rgba(255,200,0,0.1);
  border-color: rgba(255,180,0,0.4);
  color: #ffc800;
}
.map-zone-btn--chiangmai:hover {
  background: rgba(255,200,0,0.22);
  box-shadow: 0 0 20px rgba(255,180,0,0.3);
}

.map-zone-btn--sankamphaeng {
  background: rgba(255,140,0,0.1);
  border-color: rgba(255,120,0,0.4);
  color: #ff8c00;
}
.map-zone-btn--sankamphaeng:hover {
  background: rgba(255,140,0,0.22);
  box-shadow: 0 0 20px rgba(255,120,0,0.3);
}

.map-zone-btn--hangdong {
  background: rgba(0,200,255,0.1);
  border-color: rgba(0,180,255,0.4);
  color: #00c8ff;
}
.map-zone-btn--hangdong:hover {
  background: rgba(0,200,255,0.22);
  box-shadow: 0 0 20px rgba(0,180,255,0.3);
}

/* ============================================
   ZONE MODAL (full-screen streaming layout)
   ============================================ */

#zone-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#zone-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.zone-modal {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 1200px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -24px 80px rgba(0,0,0,0.6);
}

#zone-modal-overlay.open .zone-modal {
  transform: translateY(0);
}

/* --- Zone Modal Header (sticky) --- */
.zone-modal-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 28px 16px;
  flex-shrink: 0;
  position: relative;
}

.zone-modal-drag-handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.zone-modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.zone-modal-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.zone-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--color-white);
  flex: 1;
}

.zone-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.zone-modal-close:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

/* --- Search Box in zone modal --- */
.zone-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.zone-search-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: border-color var(--transition);
}

.zone-search-box:focus-within {
  border-color: var(--color-blue-glow);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.15);
}

.zone-search-icon {
  padding: 0 12px;
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.zone-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 12px 0;
  min-width: 0;
}

.zone-search-input::placeholder { color: var(--color-muted); }

.zone-search-clear {
  padding: 0 12px;
  font-size: 0.85rem;
  color: var(--color-muted);
  cursor: pointer;
  flex-shrink: 0;
  display: none;
  transition: color var(--transition);
}
.zone-search-clear:hover { color: var(--color-white); }
.zone-search-input:not(:placeholder-shown) ~ .zone-search-clear { display: flex; align-items: center; }

/* Autocomplete suggestions */
.zone-search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-card);
  border: 1px solid var(--color-blue-glow);
  border-radius: var(--radius);
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: none;
}

.zone-search-suggestions.visible { display: block; }

.zone-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--color-border);
}

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

.zone-suggestion-item:hover {
  background: rgba(0,87,255,0.12);
}

.zone-suggestion-emoji { font-size: 1rem; flex-shrink: 0; }
.zone-suggestion-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
}
.zone-suggestion-cat {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-left: auto;
  flex-shrink: 0;
}

/* --- Filter Chips --- */
.zone-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.zone-filter-chips::-webkit-scrollbar { display: none; }

.zone-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  white-space: nowrap;
}

.zone-chip:hover {
  border-color: var(--color-blue-glow);
  color: var(--color-white);
}

.zone-chip.active {
  background: rgba(0,87,255,0.2);
  border-color: var(--color-blue-glow);
  color: var(--color-blue-glow);
}

/* --- Modal Content (scrollable) --- */
.zone-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 0 48px;
  scroll-behavior: smooth;
}

.zone-modal-content::-webkit-scrollbar { width: 4px; }
.zone-modal-content::-webkit-scrollbar-track { background: transparent; }
.zone-modal-content::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* --- Streaming Row --- */
.stream-section {
  margin-bottom: 36px;
}

.stream-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  margin-bottom: 16px;
}

.stream-section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-section-title-emoji { font-size: 1.1rem; }

.stream-section-count {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* Row with horizontal scroll */
.stream-row-wrap {
  position: relative;
}

.stream-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 28px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stream-cards::-webkit-scrollbar { display: none; }

/* Arrow buttons for desktop */
.stream-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.stream-arrow--left  { left: 4px; }
.stream-arrow--right { right: 4px; }

.stream-row-wrap:hover .stream-arrow { opacity: 1; }
.stream-arrow:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: translateY(-50%) scale(1.08);
}

.stream-arrow.hidden { display: none !important; }

/* ============================================
   GRID LAYOUT (non-Top-Picks sections)
   ============================================ */

.stream-cards--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 4px 28px 28px;
}

.stream-cards--grid .place-card {
  width: 100%;
  flex-shrink: 1;
  scroll-snap-align: none;
}

/* Staggered fade-in animation for grid cards */
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stream-cards--grid-anim .place-card {
  animation: card-fade-in 0.28s ease forwards;
  opacity: 0;
}

.stream-cards--grid-anim .place-card:nth-child(1)  { animation-delay: 0.00s; }
.stream-cards--grid-anim .place-card:nth-child(2)  { animation-delay: 0.04s; }
.stream-cards--grid-anim .place-card:nth-child(3)  { animation-delay: 0.08s; }
.stream-cards--grid-anim .place-card:nth-child(4)  { animation-delay: 0.12s; }
.stream-cards--grid-anim .place-card:nth-child(5)  { animation-delay: 0.16s; }
.stream-cards--grid-anim .place-card:nth-child(6)  { animation-delay: 0.20s; }
.stream-cards--grid-anim .place-card:nth-child(7)  { animation-delay: 0.24s; }
.stream-cards--grid-anim .place-card:nth-child(8)  { animation-delay: 0.28s; }
.stream-cards--grid-anim .place-card:nth-child(9)  { animation-delay: 0.30s; }
.stream-cards--grid-anim .place-card:nth-child(n+10) { animation-delay: 0.32s; }

/* ============================================
   SECTION ACTIONS (count + expand button row)
   ============================================ */

.stream-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Expand / Collapse button for Top Picks */
.stream-expand-btn {
  font-family: var(--font-heading, sans-serif);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold, #c9a84c);
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  line-height: 1.6;
}

.stream-expand-btn:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--color-gold, #c9a84c);
}

.stream-expand-btn--active {
  color: var(--color-muted, #888);
  border-color: rgba(255,255,255,0.18);
}

.stream-expand-btn--active:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: var(--color-white, #fff);
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */

.zone-scroll-top {
  position: absolute;
  bottom: 28px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold, #c9a84c);
  color: #1a1205;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.3);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-scroll-top:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}

.zone-scroll-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* --- Place Card --- */
.place-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.place-card:hover {
  border-color: var(--color-blue-glow);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,87,255,0.18);
}

.place-card-thumb {
  height: 130px;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.place-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.place-card:hover .place-card-img {
  transform: scale(1.06);
}

.place-img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--color-surface) 25%,
    rgba(255,255,255,0.06) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.place-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.place-card-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card-desc {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.place-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.place-card-rating {
  font-size: 0.72rem;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 3px;
}

.place-card-time {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
  text-align: right;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.place-card-tag {
  padding: 1px 6px;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.65rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Skeleton for place cards */
.place-card--skeleton {
  pointer-events: none;
}

.place-card--skeleton .place-card-thumb {
  background: linear-gradient(90deg, var(--color-surface) 25%, rgba(255,255,255,0.05) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.place-skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-surface) 25%, rgba(255,255,255,0.05) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  margin-bottom: 6px;
}

.place-skeleton-line--short { width: 60%; }

/* --- Empty State --- */
.zone-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 16px;
}

.zone-empty-emoji {
  font-size: 3.5rem;
  line-height: 1;
}

.zone-empty-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.zone-empty-sub {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.zone-empty-clear {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--color-blue-glow);
  color: var(--color-blue-glow);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.zone-empty-clear:hover {
  background: rgba(0,87,255,0.15);
}

/* --- Place Detail Modal (nested inside zone modal) --- */
.place-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.place-detail-overlay.open {
  opacity: 1;
  visibility: visible;
}

.place-detail-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.place-detail-overlay.open .place-detail-card {
  transform: scale(1) translateY(0);
}

.place-detail-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.place-detail-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,87,255,0.15), rgba(255,215,0,0.1));
}

.place-detail-body { padding: 24px; }

.place-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
}

.place-detail-close:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

.place-detail-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
  margin-bottom: 8px;
  line-height: 1.1;
}

.place-detail-name-th {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.place-detail-desc {
  font-size: 0.92rem;
  color: rgba(240,240,255,0.8);
  line-height: 1.7;
  margin-bottom: 16px;
}

.place-detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.place-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--color-white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .map-page-header { padding: 20px 16px 14px; }
  .map-wrapper { padding: 0 10px; margin-bottom: 20px; }
  .map-zone-buttons { padding: 0 16px 32px; gap: 8px; }
  .map-zone-btn { padding: 8px 16px; font-size: 0.82rem; }

  .zone-modal {
    height: 95vh;
    border-radius: 20px 20px 0 0;
  }

  .zone-modal-header { padding: 12px 16px 12px; }
  .stream-section-header { padding: 0 16px; }
  .stream-cards { padding: 4px 16px 12px; }
  .stream-arrow { display: none; }

  .place-card { width: 170px; }
  .place-card-thumb { height: 100px; }

  .zone-modal-title { font-size: 1.2rem; }

  .map-zone-label { font-size: 9px; }

  .stream-cards--grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 4px 16px 24px;
  }

  .zone-scroll-top { bottom: 20px; right: 14px; width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .place-card { width: 155px; }
  .zone-modal-header { padding: 10px 14px; }
  .map-zone-btn { padding: 8px 12px; font-size: 0.78rem; }

  .stream-cards--grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-zone-pulse { animation: none; }
  .place-skeleton-line,
  .stream-skeleton-tag,
  .stream-skeleton-name,
  .stream-skeleton-desc { animation: none; }
}

/* ============================================
   LOADING STATE
   ============================================ */

.zone-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 16px;
  gap: 12px;
}

.zone-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--color-gold, #c9a84c);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.zone-loading-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* Skeleton title/tag/name/desc for loading rows */
.stream-skeleton-title {
  height: 18px;
  width: 180px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.stream-skeleton-tag  { height: 14px; width: 80px;  border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-bottom: 6px; }
.stream-skeleton-name { height: 16px; width: 140px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-bottom: 6px; }
.stream-skeleton-desc { height: 12px; width: 160px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

/* ============================================
   VIATOR CARDS
   ============================================ */

.place-card--viator .place-card-thumb::after {
  content: 'Viator';
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,0.65);
  color: #f0a500;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

.place-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--color-gold, #c9a84c);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-card-price {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: #7ee8a2;
  font-weight: 700;
}

.place-card-reviews {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-left: 2px;
}

.place-card-book {
  display: inline-block;
  margin-top: 6px;
  background: var(--color-gold, #c9a84c);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}
.place-card-book:hover { opacity: 0.85; }

.place-detail-book-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--color-gold, #c9a84c);
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}
.place-detail-book-btn:hover { opacity: 0.85; }

/* Count badge next to zone title */
.zone-modal-count {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2px 10px;
  margin-left: 8px;
  white-space: nowrap;
}

/* ============================================
   PLACE CARD ACTIONS ROW
   ============================================ */

.place-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.place-card-reviews-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.place-card-reviews-btn:hover {
  border-color: var(--color-gold, #c9a84c);
  color: var(--color-gold, #c9a84c);
}

.place-card-book--site {
  background: var(--color-surface);
  color: var(--color-white);
  border: 1px solid var(--color-border);
}
.place-card-book--site:hover { opacity: 0.8; }

/* ============================================
   REVIEWS MODAL
   ============================================ */

.reviews-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  border-radius: inherit;
}
.reviews-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.reviews-modal {
  background: var(--color-bg, #0e0e18);
  border-top: 1px solid var(--color-border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 75vh;
  overflow-y: auto;
  padding: 20px 20px 32px;
  position: relative;
}

.reviews-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.reviews-modal-close:hover { background: var(--color-red); border-color: var(--color-red); }

.reviews-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  padding-right: 40px;
}
.reviews-modal-place-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-gold, #c9a84c);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.review-stars { font-size: 0.85rem; }
.review-author {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-white);
  font-weight: 600;
}
.review-verified {
  font-size: 0.68rem;
  background: rgba(100,220,140,0.15);
  color: #7ee8a2;
  border: 1px solid rgba(100,220,140,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-heading);
}
.review-date {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-left: auto;
  font-family: var(--font-heading);
}
.review-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--color-gold, #c9a84c);
  font-style: italic;
  margin-bottom: 4px;
}
.review-text {
  font-size: 0.85rem;
  color: rgba(240,240,255,0.8);
  line-height: 1.65;
}

.place-detail-rev-btn {
  background: var(--color-surface) !important;
  color: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  cursor: pointer;
}
.place-detail-rev-btn:hover { border-color: var(--color-gold, #c9a84c) !important; color: var(--color-gold, #c9a84c) !important; }

/* ── Viator Zone Infinite Scroll ── */
.zone-viator-sentinel {
  height: 1px;
  grid-column: 1 / -1;
}

.zone-viator-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--color-muted, #8888aa);
  font-size: 0.82rem;
  font-family: var(--font-heading);
}

.zone-viator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent, #7b6ef6);
  animation: zvdot-bounce 1s infinite ease-in-out;
}
.zone-viator-dot:nth-child(2) { animation-delay: 0.15s; }
.zone-viator-dot:nth-child(3) { animation-delay: 0.3s;  }

@keyframes zvdot-bounce {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.35; }
  40%            { transform: scale(1.1);  opacity: 1;    }
}

.zone-viator-end {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1rem 0 2rem;
  color: var(--color-muted, #8888aa);
  font-size: 0.8rem;
  font-family: var(--font-heading);
}
