:root{
  --bg0:#020205;
  --fg:#e9e9f1;
  --muted:rgba(233,233,241,.7);
  --muted2:rgba(233,233,241,.45);
  --stroke:rgba(255,255,255,.1);
  --mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --serif:"Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--fg);
  font-family:var(--sans);
  background:var(--bg0);
  min-height:100%;
  overflow-x:hidden;
}

/* Page transition (opacity only) */
html.page-loading body{ opacity:0; }
html.page-ready body{ opacity:1; transition:opacity .42s ease; }
html.page-leaving body{ opacity:0; transition:opacity .24s ease; }
@media (prefers-reduced-motion: reduce){
  html.page-loading body, html.page-leaving body{ opacity:1 !important; }
}

/* ===== Header ===== */
.yo-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 24px;
  background:linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 75%, transparent 100%);
  pointer-events:none;
}
.yo-header > *{ pointer-events:auto; }

.yo-back, .yo-recenter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  line-height:1;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
  background:rgba(8,8,14,.78);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  padding:9px 16px;
  cursor:pointer;
  text-decoration:none;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.yo-back:hover, .yo-recenter:hover{
  color:#fff;
  border-color:rgba(255,255,255,.32);
  background:rgba(20,20,30,.85);
  transform:translateY(-1px);
}
.yo-back__arrow{
  font-size:14px;
  line-height:1;
  display:flex;
  align-items:center;
}
.yo-back__label, .yo-recenter__label{
  line-height:1.15;
  padding-top:1px;
}
.yo-recenter__icon{ font-size:13px; }

.yo-title-wrap{
  text-align:center;
  flex:1;
  min-width:0;
}
.yo-eyebrow{
  margin:0;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.yo-title{
  margin:4px 0 0;
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:clamp(20px, 2.6vw, 30px);
  letter-spacing:.02em;
  color:rgba(255,255,255,.92);
  text-shadow:0 1px 2px rgba(0,0,0,.5);
}

/* ===== Main ===== */
.yo-main{
  position:relative;
  height:100vh;
  width:100%;
}
.yo-map{
  position:absolute;
  inset:0;
  background:#020205;
}
.yo-hint{
  position:fixed;
  bottom:18px; left:50%;
  transform:translateX(-50%);
  z-index:600;
  margin:0;
  padding:9px 18px;
  border-radius:999px;
  background:rgba(8,8,14,.75);
  border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
  pointer-events:none;
  white-space:nowrap;
}

/* ===== Custom pins ===== */
.yo-pin{
  position:relative;
  width:18px !important;
  height:18px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
}
.yo-pin__halo{
  position:absolute;
  inset:-12px;
  border-radius:50%;
  background:radial-gradient(circle at center, rgba(255,255,255,.45) 0%, rgba(255,255,255,.15) 35%, transparent 70%);
  opacity:.65;
  transition:opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1);
  pointer-events:none;
  animation:yoPinPulse 3.4s ease-in-out infinite;
}
.yo-pin__core{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#fff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.35),
    0 0 10px rgba(255,255,255,.6),
    0 0 20px rgba(255,255,255,.35);
  cursor:pointer;
  transition:transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.yo-pin:hover .yo-pin__halo{
  opacity:1;
  transform:scale(1.25);
}
.yo-pin:hover .yo-pin__core,
.yo-pin.is-active .yo-pin__core{
  transform:scale(1.4);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.5),
    0 0 14px rgba(255,255,255,.85),
    0 0 28px rgba(255,255,255,.5);
}
@keyframes yoPinPulse{
  0%,100%{ opacity:.55; transform:scale(1); }
  50%{ opacity:.95; transform:scale(1.15); }
}

/* Custom Leaflet tooltip on hover */
.yo-tip{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px 12px;
  border-radius:6px;
  background:rgba(8,8,14,.92) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#fff !important;
  box-shadow:0 12px 24px rgba(0,0,0,.5) !important;
  font-family:var(--sans) !important;
  white-space:nowrap;
}
.yo-tip__title{
  font-family:var(--serif);
  font-style:italic;
  font-size:14px;
  color:#fff;
}
.yo-tip__area{
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.leaflet-tooltip-top.yo-tip:before,
.leaflet-tooltip-bottom.yo-tip:before,
.leaflet-tooltip-left.yo-tip:before,
.leaflet-tooltip-right.yo-tip:before{
  display:none !important;
}

/* Override Leaflet default attribution + zoom controls for theme */
.leaflet-control-attribution{
  background:rgba(0,0,0,.6) !important;
  color:rgba(255,255,255,.4) !important;
  font-family:var(--mono) !important;
  font-size:9px !important;
  padding:3px 8px !important;
}
.leaflet-control-attribution a{ color:rgba(255,255,255,.6) !important; }
.leaflet-bar{
  border:none !important;
  box-shadow:0 8px 20px rgba(0,0,0,.4) !important;
}
.leaflet-bar a{
  background:rgba(8,8,14,.9) !important;
  color:rgba(255,255,255,.78) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-bottom-width:0 !important;
  width:34px !important;
  height:34px !important;
  line-height:32px !important;
  font-size:18px !important;
  font-weight:300 !important;
  transition:color .2s ease, background .2s ease;
}
.leaflet-bar a:hover{
  background:rgba(20,20,30,.95) !important;
  color:#fff !important;
}
.leaflet-bar a:last-child{
  border-bottom-width:1px !important;
  border-radius:0 0 6px 6px !important;
}
.leaflet-bar a:first-child{
  border-radius:6px 6px 0 0 !important;
}

/* Zoom controls — bottom left (above mini player) */
.leaflet-bottom.leaflet-left .leaflet-control-zoom{
  margin-bottom:78px !important;
  margin-left:20px !important;
  border:none !important;
  box-shadow:0 8px 24px rgba(0,0,0,.45) !important;
}
.leaflet-bottom.leaflet-left .leaflet-control-zoom a{
  width:36px !important;
  height:36px !important;
  line-height:34px !important;
  font-size:20px !important;
}

/* ===== Side panel ===== */
.yo-panel-scrim{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0;
  visibility:hidden;
  transition:opacity .35s ease, visibility .35s ease;
  z-index:1100;
}
.yo-panel-scrim.is-visible{
  opacity:1;
  visibility:visible;
}
.yo-panel{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(440px, 92vw);
  padding:32px 32px;
  background:linear-gradient(180deg, rgba(14,14,22,.97), rgba(6,6,12,.98));
  border-left:1px solid rgba(255,255,255,.08);
  z-index:1101;
  transform:translateX(100%);
  transition:transform .45s cubic-bezier(.22,1,.36,1);
  overflow-y:auto;
  display:flex;
  flex-direction:column;
}
.yo-panel.is-visible{ transform:translateX(0); }
.yo-panel__close{
  position:absolute;
  top:14px;
  right:16px;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.78);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.yo-panel__close:hover{
  color:#fff;
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.06);
  transform:rotate(90deg);
}
.yo-panel__area{
  margin:18px 0 0;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
.yo-panel__title{
  margin:6px 0 2px;
  font-family:var(--serif);
  font-style:italic;
  font-weight:500;
  font-size:28px;
  line-height:1.15;
  color:#fff;
}
.yo-panel__title-jp{
  margin:0 0 12px;
  font-family:var(--sans);
  font-size:12px;
  color:rgba(255,255,255,.55);
  letter-spacing:.04em;
}
.yo-panel__title-jp:empty{ display:none; }

.yo-panel__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:18px;
}
.yo-panel__chip{
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.22em;
  text-transform:uppercase;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.7);
}
.yo-panel__frame{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  border-radius:8px;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
  margin-bottom:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.yo-panel__frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.yo-panel__frame-fallback{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:rgba(255,255,255,.32);
}
.yo-panel__h3{
  margin:0 0 8px;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:rgba(255,255,255,.5);
  font-weight:500;
}
.yo-panel__note{
  margin:0 0 22px;
  font-family:var(--sans);
  font-size:14.5px;
  line-height:1.65;
  color:rgba(255,255,255,.85);
}
.yo-panel__map-link{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.86);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  text-decoration:none;
  transition:color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.yo-panel__map-link:hover{
  color:#fff;
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.06);
  transform:translateY(-1px);
}
.yo-panel__map-arrow{ font-size:14px; }

/* ===== Mobile ===== */
@media (max-width:680px){
  .yo-header{ flex-wrap:wrap; gap:10px; padding:14px 16px; }
  .yo-title-wrap{ order:3; flex-basis:100%; }
  .yo-panel{ width:100vw; padding:28px 22px; }
  .yo-hint{ font-size:9px; padding:8px 14px; }
}

@media (prefers-reduced-motion: reduce){
  .yo-pin__halo{ animation:none !important; }
}
