:root {
  --ink: #101820;
  --muted: #59636e;
  --line: #d8dde3;
  --panel: #f4f6f8;
  --orange: #ff6b35;
  --green: #2f7d5c;
  --blue: #2e6f95;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #dfe7ea;
}

.album-map {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 22%, rgba(255,255,255,.9) 0 8%, transparent 8.2%),
    radial-gradient(circle at 35% 62%, rgba(255,255,255,.95) 0 12%, transparent 12.2%),
    linear-gradient(135deg, #dbe7ea 0%, #edf2f2 52%, #d9e6df 100%);
}

.album-header {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.album-header p,
.album-header h1 {
  margin: 0;
}

.album-header p {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.album-header h1 {
  font-size: 24px;
  line-height: 1;
}

.album-header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.map-canvas {
  position: absolute;
  inset: 72px 0 114px;
  overflow: hidden;
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .45;
}

.map-label {
  position: absolute;
  color: rgba(16, 24, 32, .4);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-label.tokyo {
  top: 21%;
  right: 14%;
}

.map-label.fuji {
  left: 31%;
  top: 52%;
}

.map-label.hakone {
  left: 44%;
  bottom: 20%;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#route-path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18 12;
  filter: drop-shadow(0 4px 0 rgba(16, 24, 32, .12));
}

.marker {
  position: absolute;
  z-index: 5;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 28px rgba(16, 24, 32, .24);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.marker img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.marker::after {
  content: attr(data-day);
  position: absolute;
  right: -10px;
  top: -8px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.marker.active {
  outline: 5px solid rgba(255, 107, 53, .45);
}

.detail-panel {
  position: absolute;
  z-index: 7;
  left: 22px;
  top: 94px;
  width: min(340px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(16, 24, 32, .16);
}

.detail-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.detail-panel p,
.detail-panel h2 {
  margin: 0;
}

.detail-panel .meta {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-panel h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.detail-panel .area {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.detail-panel .note {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.photo-rail {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 16px 16px;
  background: rgba(255,255,255,.9);
  border-top: 1px solid var(--line);
}

.rail-item {
  flex: 0 0 132px;
  padding: 0;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 32, .15);
  cursor: pointer;
}

.rail-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rail-item span {
  display: block;
  padding: 7px 8px 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.rail-item.active {
  border-color: var(--orange);
}

@media (max-width: 720px) {
  .album-header {
    display: block;
    min-height: 82px;
  }

  .album-header span {
    display: block;
    margin-top: 5px;
  }

  .map-canvas {
    inset: 82px 0 124px;
  }

  .detail-panel {
    left: 14px;
    top: 98px;
    width: calc(100% - 28px);
    max-height: 245px;
    overflow: auto;
  }

  .detail-panel img {
    display: none;
  }

  .marker {
    width: 68px;
    height: 68px;
  }

  .rail-item {
    flex-basis: 112px;
  }
}
