:root {
  --bg:          #0a0c12;
  --surface:     #111520;
  --surface2:    #181d2b;
  --border:      rgba(255,255,255,0.07);
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --text:        #f0ede8;
  --text-muted:  rgba(240,237,232,0.5);
  --text-dim:    rgba(240,237,232,0.28);
  --accent:      #4f7cff;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --shadow-md:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

#globeViz {
  position: fixed;
  inset: 0;
  z-index: 1;
}

#hero {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.6s var(--ease-out);
}

.hero-inner {
  text-align: center;
  padding: 44px 52px 36px;
  max-width: 500px;
  width: 100%;

  background: linear-gradient(
    160deg,
    rgba(17, 21, 32, 0.88) 0%,
    rgba(10, 12, 18, 0.92) 100%
  );
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);

  position: relative;
  overflow: hidden;
}

.hero-inner::before,
.hero-inner::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
}
.hero-inner::before {
  top: 16px; left: 16px;
  border-width: 1px 0 0 1px;
}
.hero-inner::after {
  bottom: 16px; right: 16px;
  border-width: 0 1px 1px 0;
}

.hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.title-img {
  width: 280px;
  max-width: 100%;
  display: block;
  margin: 0 auto 16px;
  animation: fadeUp 1s var(--ease-out) 0.1s both;
  filter: drop-shadow(0 4px 24px rgba(201,168,76,0.15));
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 28px;
  animation: fadeUp 1s var(--ease-out) 0.2s both;
}

#enterBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--gold) 0%, #a8782a 100%);
  color: #1a1200;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}

#enterBtn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

#enterBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}

#enterBtn:hover svg { transform: translateX(3px); }
#enterBtn:active { transform: translateY(0); }

.travel-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 28px 0 20px;
  animation: fadeUp 1s var(--ease-out) 0.35s both;
}

.stat { padding: 0 24px; }

.stat h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat h2 span {
  font-size: 16px;
  font-style: italic;
  color: var(--gold);
  margin-left: 2px;
}

.stat p {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.credit {
  font-size: 12px;
  color: var(--text-dim);
  animation: fadeUp 1s var(--ease-out) 0.4s both;
}

.author {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.author:hover { color: var(--gold-light); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   GLOBE PINS — 3D Icon Card Style
   ============================================ */
.globe-pin-wrapper {
  position: relative;
}

.globe-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: pinFloat var(--float-dur, 3s) ease-in-out var(--float-delay, 0s) infinite;
}

/* ── Floating animation ── */
@keyframes pinFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* ── Card body ── */
.globe-pin-card {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px 14px 14px 4px; /* asymmetric: pointer bottom-left */
  background: linear-gradient(145deg,
    rgba(255, 245, 200, 0.14) 0%,
    rgba(201, 168, 76, 0.22) 40%,
    rgba(120, 90, 20, 0.28) 100%
  );
  border: 1.5px solid rgba(201, 168, 76, 0.55);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.35),
    0 6px 20px rgba(0,0,0,0.55),
    0 12px 36px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 0 20px rgba(201,168,76,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  z-index: 2;
}

.globe-pin:hover .globe-pin-card {
  transform: translateY(-5px) scale(1.12) rotate(-2deg);
  border-color: rgba(232, 201, 122, 0.85);
  box-shadow:
    0 4px 0 rgba(0,0,0,0.4),
    0 14px 36px rgba(0,0,0,0.65),
    0 24px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 40px rgba(201,168,76,0.35);
}

.globe-pin-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 35%, rgba(255,240,150,0.18), transparent 65%);
  animation: glowPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.globe-pin-icon {
  width: 28px;
  height: 28px;
  color: var(--gold-light);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  position: relative;
  z-index: 1;
  transition: color 0.25s;
}
.globe-pin:hover .globe-pin-icon {
  color: #fff8d0;
}

.globe-pin-stem {
  width: 2px;
  height: 12px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.7), rgba(201,168,76,0.1));
  position: relative;
  z-index: 1;
  transition: height 0.28s ease;
}
.globe-pin:hover .globe-pin-stem {
  height: 18px;
}

.globe-pin-base {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f5e09a, var(--gold) 55%, #7a5010);
  box-shadow: 0 0 8px rgba(201,168,76,0.7), 0 2px 6px rgba(0,0,0,0.5);
  border: 1.5px solid rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.globe-pin:hover .globe-pin-base {
  transform: scale(1.25);
  box-shadow: 0 0 14px rgba(201,168,76,0.9), 0 3px 8px rgba(0,0,0,0.6);
}

.globe-pin-card::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: shadowPulse var(--float-dur, 3s) ease-in-out var(--float-delay, 0s) infinite;
}

@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50%       { transform: translateX(-50%) scale(0.7); opacity: 0.25; }
}

.globe-pin-label {
  margin-top: 4px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(17,21,32,0.94) 0%, rgba(10,12,18,0.97) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 3px 10px 3px 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(201,168,76,0.22);
  border-left: 2px solid rgba(201,168,76,0.6);
  box-shadow: 0 3px 12px rgba(0,0,0,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: border-color 0.25s, opacity 0.25s, transform 0.28s ease;
  opacity: 0.85;
  transform: translateY(0);
}

.globe-pin:hover .globe-pin-label {
  border-left-color: var(--gold);
  border-color: rgba(201,168,76,0.5);
  opacity: 1;
  transform: translateY(-3px);
}

#mapView {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

#map {
  width: 100%;
  height: 100%;
}

#sidebar {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  background: var(--surface);
  overflow: hidden;
  z-index: 1000;
  border-right: 1px solid var(--border);
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 4px 0 40px rgba(0,0,0,0.4);
}

#sidebar.show {
  transform: translateX(0);
}

#sidebarHandle { display: none; }

#sidebarContent {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

#sidebarContent::-webkit-scrollbar { width: 4px; }
#sidebarContent::-webkit-scrollbar-track { background: transparent; }
#sidebarContent::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

@media (max-width: 768px) {
  #sidebar {
    width: 100%;
    height: 70%;
    top: auto;
    bottom: 0;
    border-right: none;
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
  }

  #sidebar.show { transform: translateY(0); }

  #sidebarHandle {
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    margin: 12px auto 0;
    flex-shrink: 0;
    cursor: grab;
  }
}

@media (min-width: 769px) {
  #sidebar { display: flex; }
}

.sidebar-header {
  padding: 22px 20px 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-header::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.sidebar-hint {
  padding: 8px 20px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: rgba(201,168,76,0.04);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.place-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  align-items: center;
  animation: cardIn 0.4s var(--ease-out) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.place-card:nth-child(2) { animation-delay: 0.05s; }
.place-card:nth-child(3) { animation-delay: 0.1s; }
.place-card:nth-child(4) { animation-delay: 0.15s; }
.place-card:nth-child(5) { animation-delay: 0.2s; }

.place-card:hover  { background: rgba(255,255,255,0.03); }
.place-card.active {
  background: rgba(201,168,76,0.07);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

.place-img-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.place-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease-out);
}

.place-card:hover .place-img {
  transform: scale(1.06);
}

.place-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(201,168,76,0.15));
  pointer-events: none;
}

.place-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.place-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-date {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.place-stars {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
}

.place-arrow {
  font-size: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.place-card:hover .place-arrow {
  transform: translateX(3px);
  color: var(--gold);
}

.place-card-error {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

#backBtn {
  display: none;
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  z-index: 1100;
  box-shadow: var(--shadow-md);
  transition: background 0.15s, border-color 0.15s;
  align-items: center;
  gap: 8px;
}

#backBtn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

#backBtn:hover {
  background: var(--surface2);
  border-color: rgba(255,255,255,0.15);
}

.travel-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
  transform-origin: bottom center;
}

.travel-marker:hover {
  transform: scale(1.1) translateY(-4px);
}

.travel-marker.active {
  transform: scale(1.15) translateY(-6px);
  z-index: 9999;
}

.travel-marker-photo {
  width: 56px;
  height: 56px;
  border-radius: 12px 12px 12px 2px;
  overflow: hidden;
  border: 2.5px solid #fff;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.6),
    0 0 0 1px rgba(201,168,76,0.4);
  position: relative;
  background: var(--surface);
}

.travel-marker.active .travel-marker-photo {
  border-color: var(--gold);
  box-shadow:
    0 6px 24px rgba(0,0,0,0.7),
    0 0 0 2px rgba(201,168,76,0.8),
    0 0 20px rgba(201,168,76,0.3);
}

.travel-marker-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.travel-marker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.travel-marker-pin {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #fff;
  margin-top: -1px;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.5));
}

.travel-marker.active .travel-marker-pin {
  border-top-color: var(--gold);
}

.travel-popup .leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  border: 1px solid rgba(201,168,76,0.2) !important;
  border-radius: var(--radius-md) !important;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(201,168,76,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-tip-container { display: none; }

.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
}

.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 18px !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.4) !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.popup-inner {
  width: 300px;
  font-family: var(--font-body);
}

.popup-body {
  padding: 14px 16px 16px;
}

.popup-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.popup-inner h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.popup-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.popup-meta-chip svg {
  width: 11px;
  height: 11px;
  color: var(--gold);
  flex-shrink: 0;
}

.popup-stars-chip { padding: 3px 10px; }

.popup-stars { color: var(--gold); font-size: 11px; letter-spacing: 1.5px; }

.popup-story-wrap {
  position: relative;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.popup-story-icon {
  position: absolute;
  top: -1px;
  right: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.popup-story-icon svg {
  width: 14px;
  height: 14px;
}

.popup-story {
  font-size: 12.5px;
  color: rgba(240,237,232,0.65);
  line-height: 1.75;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
  padding-right: 4px;
}

.popup-story::-webkit-scrollbar { width: 3px; }
.popup-story::-webkit-scrollbar-track { background: transparent; }
.popup-story::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.popup-story p {
  margin: 0 0 0.75em;
}
.popup-story p:last-child { margin-bottom: 0; }

.popup-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 480px) {
  .popup-inner { width: 280px; }
  .popup-story { max-height: 160px; font-size: 12px; }
}

.swiper {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.swiper img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.popup-swiper-prev,
.popup-swiper-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  background: rgba(8, 10, 18, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  z-index: 20 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s, border-color 0.15s, transform 0.15s !important;
}

.popup-swiper-prev:hover,
.popup-swiper-next:hover {
  background: rgba(201, 168, 76, 0.85) !important;
  border-color: transparent !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.popup-swiper-prev::after,
.popup-swiper-next::after {
  content: '' !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  border-top: 2px solid #fff !important;
  border-right: 2px solid #fff !important;
  border-left: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  font-size: 0 !important;
}

.popup-swiper-prev::after {
  transform: rotate(-135deg) translate(-1px, 1px) !important;
}

.popup-swiper-next::after {
  transform: rotate(45deg) translate(-1px, 1px) !important;
}

.popup-swiper-prev { left: 10px !important; }
.popup-swiper-next { right: 10px !important; }

.popup-swiper-prev.swiper-button-disabled,
.popup-swiper-next.swiper-button-disabled {
  opacity: 0.3 !important;
  pointer-events: none !important;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--surface2) !important;
}

.leaflet-control-attribution {
  background: rgba(10,12,18,0.7) !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
  backdrop-filter: blur(4px);
}

.leaflet-control-attribution a { color: var(--text-dim) !important; }

.marker-cluster {
  background: rgba(201,168,76,0.2) !important;
  border: 2px solid rgba(201,168,76,0.5) !important;
}

.marker-cluster div {
  background: rgba(201,168,76,0.8) !important;
  color: #1a1200 !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

#zoomControls {
  display: none;
  position: absolute;
  right: 16px;
  bottom: 32px;
  flex-direction: column;
  gap: 4px;
  z-index: 1100;
}

#zoomControls button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background 0.15s;
}

#zoomControls button:hover { background: var(--surface2); }

#cinematic-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cinematic-scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
  animation: cinematicScan 1.8s ease-in-out forwards;
}

@keyframes cinematicScan {
  0%   { top: 0%;   opacity: 0.8; }
  100% { top: 100%; opacity: 0.2; }
}

#cinematic-overlay::before,
#cinematic-overlay::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  background: rgba(6, 8, 14, 0.95);
  z-index: 1;
  animation: letterboxIn 0.4s ease forwards;
}
#cinematic-overlay::before { top: 0;    transform-origin: top; }
#cinematic-overlay::after  { bottom: 0; transform-origin: bottom; }

@keyframes letterboxIn {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.cinematic-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: cinematicFadeUp 0.5s var(--ease-out) 0.2s both;
}

@keyframes cinematicFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cinematic-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.8;
}

#cinematic-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 60px rgba(201,168,76,0.3);
}

#cinematic-coords {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--gold);
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 24px;
}

.cinematic-bar {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 20px;
  animation: barExpand 0.8s var(--ease-out) 0.4s both;
}

@keyframes barExpand {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}

.cinematic-loading {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.cinematic-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
  animation: dotPulse 1.2s ease-in-out infinite;
}
.cinematic-dot:nth-child(1) { animation-delay: 0s; }
.cinematic-dot:nth-child(2) { animation-delay: 0.2s; }
.cinematic-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

.cinematic-corner {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
  z-index: 2;
  animation: cornerFadeIn 0.4s var(--ease-out) 0.1s both;
}
.cinematic-corner.tl { top: 100px;    left: 24px;  border-width: 1px 0 0 1px; }
.cinematic-corner.tr { top: 100px;    right: 24px; border-width: 1px 1px 0 0; }
.cinematic-corner.bl { bottom: 100px; left: 24px;  border-width: 0 0 1px 1px; }
.cinematic-corner.br { bottom: 100px; right: 24px; border-width: 0 1px 1px 0; }

@keyframes cornerFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

.cinematic-hline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201,168,76,0.15) 30%, rgba(201,168,76,0.15) 70%, transparent 95%);
  z-index: 2;
  animation: cornerFadeIn 0.5s var(--ease-out) 0.2s both;
}
.cinematic-hline.top    { top: 80px; }
.cinematic-hline.bottom { bottom: 80px; }