@layer components {
  .parking-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .parking-intro .parking-facts { margin: 10px 0 30px; padding-right: 30px; gap: 50px; }
  .parking-intro .fact strong:not(.unconfirmed) { font-family: var(--serif); font-size: 35px; letter-spacing: -.04em; }
  .parking-tour { background: #fffdf6; border: 1px solid #d3d9c8; border-radius: 10px; overflow: hidden; }
  .tour-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; }
  .tour-header .eyebrow { font-size: 8px; color: #6d7863; margin-bottom: 7px; }
  .tour-header h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.04em; }
  .tour-header p:last-child { font-size: 12px; color: var(--muted); margin-top: 8px; }
  .tour-destination { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 65px; height: 69px; border: 1px solid #bbc9af; border-radius: 8px; color: #5b7356; font-size: 15px; line-height: 1.35; flex-shrink: 0; }
  .tour-destination strong { font-size: 17px; font-weight: 500; letter-spacing: .05em; }
  .tour-notice { margin: 0 30px 20px; color: #82603e; background: #f3ecdc; padding: 12px 16px; border-radius: 4px; font-size: 11px; }
  .tour-layout { display: grid; grid-template-columns: 1fr 285px; border-top: 1px solid #dfe2d5; }
  .tour-viewer { min-width: 0; }
  .tour-viewport { height: 515px; background: #f3f1e6; position: relative; overflow: hidden; scroll-margin-top: 74px; }
  .tour-canvas { width: 100%; height: 100%; }
  .tour-scene-label { position: absolute; top: 18px; left: 18px; z-index: 1; display: flex; align-items: center; gap: 7px; background: #fffdf6eb; border: 1px solid #e2e2d2; padding: 7px 12px; border-radius: 25px; font-size: 10px; pointer-events: none; }
  .tour-scene-label > span:first-child { height: 5px; width: 5px; border-radius: 50%; background: #799167; }
  .tour-scale { position: absolute; bottom: 12px; left: 16px; font-size: 9px; color: #5c6955; padding: 3px 7px; background: #f9f7eeeb; border-radius: 4px; }
  .tour-overview { position: absolute; top: 17px; right: 17px; width: 44px; height: 44px; border: 1px solid #d2d8c5; background: #fffdf5ed; border-radius: 6px; display: grid; place-items: center; }
  .tour-overview svg { width: 19px; height: 19px; }
  .tour-overview[aria-pressed="true"] { color: white; background: var(--green); }
  .tour-sidebar { border-left: 1px solid #dfe2d5; padding: 26px 20px; background: #faf9f2; }
  .tour-sidebar > .eyebrow { font-size: 8px; color: var(--muted); padding-left: 10px; }
  .tour-chapters { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 8px; }
  .tour-chapters button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 63px; text-align: left; padding: 12px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 12px; line-height: 1.5; color: #68725f; transition: background .2s, border-color .2s; }
  .tour-chapters button:hover { background: #efefe4; }
  .tour-chapters button[aria-current] { background: #e8eddd; border-color: #d3ddc6; color: var(--green); }
  .chapter-number { font-family: var(--serif); font-size: 21px; color: #869279; flex-shrink: 0; }
  .tour-chapters button[aria-current] .chapter-number { color: #4f7050; }
  .chapter-dot { flex-shrink: 0; margin-left: auto; width: 5px; height: 5px; border-radius: 50%; border: 1px solid #b6c1a9; }
  .tour-chapters button[aria-current] .chapter-dot, .chapter-done .chapter-dot { background: #65805c; border-color: #65805c; }
  .tour-caption { display: flex; gap: 16px; padding: 24px; min-height: 131px; border-top: 1px solid #dfe2d5; }
  .tour-caption-index { color: #7b826b; font-size: 9px; letter-spacing: .06em; padding-top: 3px; white-space: nowrap; flex-shrink: 0; }
  .tour-caption h4 { font-size: 14px; font-weight: 550; line-height: 1.5; margin: 0 0 7px; }
  .tour-caption p { color: #69725f; font-size: 12px; line-height: 1.8; max-width: 480px; }
  .tour-reduced { font-size: 10px; color: #6d765f; margin: 22px 10px 0; line-height: 1.8; }
  .tour-controls { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 15px; padding: 18px 24px 24px; border-top: 1px solid #dfe2d5; background: #fbfaf4; }
  .tour-play { min-width: 160px; gap: 10px; }
  .tour-play svg, .tour-replay svg { width: 17px; height: 17px; flex-shrink: 0; }
  .tour-replay { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #cbd3be; background: transparent; border-radius: 5px; }
  .tour-replay:hover { background: #edeedf; }
  .tour-time { justify-self: end; font-size: 11px; font-variant-numeric: tabular-nums; }
  .tour-time span { color: #78816e; margin-left: 4px; }
  .tour-progress { --progress: 0%; grid-column: 1 / -1; width: 100%; height: 28px; cursor: pointer; appearance: none; background: transparent; margin: 0; }
  .tour-progress::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, #67815d var(--progress), #dce1d0 var(--progress)); border-radius: 5px; }
  .tour-progress::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #526d4d; border: 3px solid #fffdf6; box-shadow: 0 0 0 1px #b4c0a4; margin-top: -6px; }
  .tour-progress::-moz-range-track { height: 4px; background: #dce1d0; border-radius: 5px; }
  .tour-progress::-moz-range-progress { height: 4px; background: #67815d; }
  .tour-progress::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #526d4d; border: 3px solid #fffdf6; }
  .campus-road { fill: none; stroke: #d9d9cb; stroke-width: 110px; stroke-linejoin: round; }
  .road-center { fill: none; stroke: #f1f0e5; stroke-width: 3px; stroke-dasharray: 23 25; }
  .street-label { font: 28px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; fill: #67715f; letter-spacing: .025em; }
  .plan-label { font: 28px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; fill: #4b6149; }
  .entrance-label { font-size: 25px; }
  .building-name { font: 44px Georgia, serif; fill: #3a5742; letter-spacing: -1px; }
  .spot-number { font: 32px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; fill: #3d6545; }
  .route-guide { fill: none; stroke: #b8bf9f; stroke-width: 7px; stroke-dasharray: 10 15; stroke-linecap: round; }
  .route-travelled { fill: none; stroke: #c78b66; stroke-width: 8px; stroke-linecap: round; }
  .tour-arrived .destination-bay rect { fill: #c4d7b2; stroke: #486f4a; stroke-width: 7px; }
}

@layer responsive {
  @media (max-width: 1000px) {
    .tour-layout { grid-template-columns: 1fr 245px; }
    .tour-chapters button { gap: 9px; font-size: 11px; }
    .tour-sidebar { padding-inline: 12px; }
    .tour-viewport { height: 480px; }
  }
  @media (max-width: 700px) {
    .parking-intro { display: block; }
    .parking-intro .parking-facts { margin: 0 0 27px; padding: 0; gap: 45px; }
    .parking-intro .fact strong:not(.unconfirmed) { font-size: 29px; }
    .tour-header { padding: 22px 18px; align-items: flex-start; gap: 13px; }
    .tour-header h3 { font-size: 26px; max-width: 260px; line-height: 1.15; }
    .tour-header p:last-child { font-size: 11px; line-height: 1.8; }
    .tour-header .eyebrow { font-size: 7px; line-height: 1.8; }
    .tour-destination { width: 47px; height: 55px; font-size: 13px; }
    .tour-destination strong { font-size: 14px; }
    .tour-layout { grid-template-columns: 1fr; }
    .tour-viewport { height: 430px; height: clamp(270px, calc(100svh - 230px), 430px); }
    .tour-scene-label { font-size: 9px; top: 13px; left: 12px; max-width: calc(100% - 78px); }
    .tour-overview { top: 12px; right: 12px; }
    .tour-scale { font-size: 8px; left: 9px; bottom: 9px; }
    .tour-caption { padding: 21px 18px; gap: 13px; min-height: 145px; }
    .tour-caption h4 { font-size: 13px; }
    .tour-caption p { font-size: 11px; }
    .tour-caption-index { font-size: 8px; }
    .tour-sidebar { padding: 19px 14px; border-left: 0; border-top: 1px solid #dfe2d5; }
    .tour-sidebar > .eyebrow { padding-left: 4px; }
    .tour-chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 13px; }
    .tour-chapters button { min-height: 57px; padding: 7px 8px; font-size: 10px; gap: 8px; }
    .chapter-number { font-size: 18px; }
    .chapter-dot { display: none; }
    .tour-reduced { margin: 15px 4px 0; }
    .tour-controls { padding: 12px 18px 19px; gap: 12px; }
    .tour-play { min-width: 130px; font-size: 10px; }
    .tour-time { font-size: 9px; }
    .tour-time span { margin-left: 1px; }
    .tour-notice { margin: 0 18px 16px; font-size: 10px; }
  }
  @media (max-width: 360px) {
    .tour-viewport { height: 390px; height: clamp(260px, calc(100svh - 230px), 390px); }
    .tour-controls { gap: 8px; padding-inline: 12px; }
    .tour-play { min-width: 122px; }
  }
  @media print {
    .tour-controls, .tour-overview { display: none; }
    .tour-layout { grid-template-columns: 1fr; }
    .tour-viewport { height: 500px; }
    .tour-sidebar { border: none; }
  }
}
