/* A self-contained fourth view inside the existing Version 2 explorer. */
.hbt-site #hbt-explorer [hidden] { display: none !important; }
.hbt-site #hbt-tab-map { display: flex; align-items: center; justify-content: center; gap: 13px; }
.hbt-map-shell {
  display: grid; grid-template-columns: 1.65fr 1fr; min-height: 804px;
  border-radius: 28px; overflow: hidden; border: 1px solid #507278;
  box-shadow: 0 28px 70px #0c37352b; background: #0b3446; color: #f7f3e8;
}
.hbt-map-scene { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 45% 38%,#2b6b81,#0d3b51 70%); position: relative; overflow: hidden; }
.hbt-map-scene::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .08; background: repeating-radial-gradient(ellipse at 40% 45%,transparent 0 46px,#c6e2e6 47px 48px,transparent 49px 80px); }
.hbt-map-scene-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 28px 27px 12px; position: relative; z-index: 2; }
.hbt-map-kicker { color: #e7c18c; font-size: 9px; letter-spacing: .18em; font-weight: 600; }
.hbt-site .hbt-map-scene-head p { font: 400 25px/1.2 Gloock,Georgia,serif; margin: 9px 0 0; color: #fff2d6; }
.hbt-site .hbt-map-expand { background: #0c293f70; border: 1px solid #e1d0ae55; border-radius: 30px; padding: 10px 13px; min-height: 44px; color: #f5e0ba; font-size: 11px; white-space: nowrap; cursor: pointer; }
.hbt-map-expand span { padding-left: 5px; font-size: 18px; }
.hbt-map-canvas { width: 100%; margin: auto 0; perspective: 1000px; overflow: hidden; position: relative; isolation: isolate; }
.hbt-map-world { position: relative; width: 100%; aspect-ratio: 3/2; transform: rotateX(var(--map-tilt-x,0deg)) rotateY(var(--map-tilt-y,0deg)); transition: transform .6s ease; transform-style: preserve-3d; }
.hbt-site .hbt-map-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.hbt-map-canvas::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#0e3d500a,transparent 10%,transparent 94%,#14485c30); }
.hbt-site .hbt-map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: none; overflow: visible; pointer-events: none; }
.hbt-map-road-shadow { stroke: #092c35b0; stroke-width: 13; stroke-linecap: round; }
.hbt-map-road { stroke: #ffe9b6; stroke-width: 5; stroke-dasharray: 4 13; stroke-linecap: round; }
.hbt-map-progress { stroke: #efaa59; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 5px #fff2bc99); }
.hbt-map-waypoints circle { fill: #163f45; stroke: #f4cc8d; stroke-width: 4; }
.hbt-map-waypoints circle[data-active="true"] { fill: #f5ce8e; stroke: #fff9e9; stroke-width: 5; }
.hbt-map-hotspots { position: absolute; inset: 0; }
.hbt-site .hbt-map-pin { position: absolute; transform: translate(-50%,-50%); width: 44px; height: 44px; padding: 0; border: none; background: transparent; color: #fff7dd; display: grid; place-items: center; cursor: pointer; }
.hbt-map-pin > span { display: grid; place-items: center; width: 24px; height: 24px; background: #103a43e8; border: 1px solid #f7dca6; border-radius: 50%; font-size: 10px; font-weight: 600; box-shadow: 0 4px 12px #001e2c80; transition: transform .3s,background .3s; }
.hbt-site .hbt-map-pin:hover > span,.hbt-site .hbt-map-pin[aria-pressed="true"] > span { background: #f7d19a; color: #173b3c; transform: scale(1.16); }
.hbt-map-pin::after { content: attr(data-label); opacity: 0; position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(5px); background: #082d3df2; color: #fff3db; border: 1px solid #f1d7aa77; border-radius: 8px; padding: 8px 10px; font-size: 11px; white-space: nowrap; transition: .2s; pointer-events: none; }
.hbt-map-pin:hover::after,.hbt-map-pin:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.hbt-map-location { display: flex; align-items: center; gap: 12px; margin: 10px 27px 0; padding: 19px 0; border-top: 1px solid #cde3d333; position: relative; }
.hbt-map-locator-dot { height: 7px; width: 7px; border-radius: 50%; background: #f3c681; box-shadow: 0 0 0 6px #efd5ad14; flex-shrink: 0; }
.hbt-map-location small { display: block; font-size: 8px; letter-spacing: .15em; color: #c2d8da; }
.hbt-map-location strong { display: block; font: 400 24px/1.25 Gloock,Georgia,serif; color: #fff1d8; margin-top: 6px; }
.hbt-map-stop-counter { margin-left: auto; color: #dfbe8b; font-size: 11px; white-space: nowrap; }
.hbt-map-controls { position: relative; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 0 27px; }
.hbt-site .hbt-map-play { background: linear-gradient(120deg,#ffe4b7,#dcb17c); color: #1e3435; border: 1px solid #f6d5a3; border-radius: 11px; min-height: 47px; padding: 12px 17px; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 22px #05263340; }
.hbt-map-play span { margin-right: 8px; }
.hbt-map-controls > div { display: flex; gap: 8px; }
.hbt-site .hbt-map-controls > div > button { border: 1px solid #e8d7b26b; border-radius: 50%; width: 44px; height: 44px; background: #092d414d; color: #ffe6bc; font-size: 19px; cursor: pointer; }
.hbt-site .hbt-map-controls button:hover,.hbt-site .hbt-map-expand:hover { box-shadow: 0 5px 20px #001b3660; border-color: #fff0ce; }
.hbt-site .hbt-map-caption { color: #bfd6d9; position: relative; font-size: 10px; line-height: 1.7; padding: 16px 27px 24px; margin: 0; }
.hbt-map-paper { background: linear-gradient(150deg,#fffdf7,#edf3ee); padding: 29px 27px; color: #153d36; min-width: 0; }
.hbt-map-selection label,.hbt-map-sports-base label { font-size: 11px; letter-spacing: .04em; font-weight: 600; display: block; margin-bottom: 8px; color: #596d63; }
.hbt-site .hbt-map-selection select,.hbt-site .hbt-map-sports-base select { width: 100%; min-height: 49px; font: 500 14px Montserrat,Arial,sans-serif; color: #173d35; border: 1px solid #a4b5a6; border-radius: 10px; background: #fff; padding: 12px 9px; }
.hbt-map-sports-base { padding-top: 13px; }
.hbt-site .hbt-map-sports-base p { font-size: 10px; line-height: 1.7; margin: 8px 0 0; }
.hbt-map-tour-heading { margin-top: 23px; }
.hbt-map-tour-number { font-size: 8px; font-weight: 600; letter-spacing: .16em; color: #9a683c; }
.hbt-site .hbt-map-tour-title { font: 400 34px/1.12 Gloock,Georgia,serif; margin: 9px 0 11px; }
.hbt-site .hbt-map-tour-duration { color: #8d623d; font-size: 11px; margin: 0 0 9px; }
.hbt-site .hbt-map-tour-summary { font-size: 14px; line-height: 1.75; margin: 0; }
.hbt-map-stop-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.hbt-site .hbt-map-stop-list button { padding: 7px 10px; min-height: 40px; font-size: 11px; color: #36584c; background: #fff9; border: 1px solid #b3c4b6; border-radius: 8px; cursor: pointer; transition: background .25s,color .25s; text-align: left; }
.hbt-map-stop-list button small { font: inherit; opacity: .65; margin-right: 5px; }
.hbt-site .hbt-map-stop-list button[aria-pressed="true"] { color: #fff2db; background: #153f36; border-color: #153f36; }
.hbt-map-stop-card { border-top: 1px solid #c5d0c4; padding-top: 16px; }
.hbt-site .hbt-map-stop-photo { display: block; width: 100%; height: 125px; object-fit: cover; border-radius: 12px; box-shadow: 0 7px 20px #163a3520; margin-bottom: 15px; }
.hbt-map-detail-number { font-size: 8px; letter-spacing: .12em; color: #a46f40; }
.hbt-site .hbt-map-stop-title { font: 400 23px/1.2 Gloock,Georgia,serif; margin: 8px 0; }
.hbt-site .hbt-map-stop-text { font-size: 14px; line-height: 1.75; margin: 0; }
.hbt-site .hbt-map-tour-link { display: inline-flex; font-size: 13px; margin-top: 20px; }
.hbt-site .hbt-map-note { font-size: 9px; color: #6d7869; line-height: 1.7; margin: 17px 0 0; }
.hbt-site .hbt-map-dialog { width: min(1500px,calc(100vw - 44px)); max-width: none; max-height: calc(100dvh - 34px); border: 1px solid #d5b77c90; border-radius: 24px; padding: 0; background: #0b2e40; color: #fff1d8; overflow: auto; box-shadow: 0 30px 120px #0009; }
.hbt-map-dialog::backdrop { background: #06151cdb; backdrop-filter: blur(12px); }
.hbt-map-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 30px; }
.hbt-site .hbt-map-dialog-head h2 { font: 400 29px/1.15 Gloock,Georgia,serif; color: #fff1d8; margin: 7px 0 0; }
.hbt-site .hbt-map-close { min-height: 44px; border-radius: 30px; padding: 10px 20px; background: #fff1; border: 1px solid #e7c69680; color: #ffe5b8; font-size: 12px; white-space: nowrap; cursor: pointer; }
.hbt-map-dialog .hbt-map-shell { border-radius: 0; grid-template-columns: 2fr 1fr; min-height: 0; height: calc(100dvh - 150px); border: none; }
.hbt-map-dialog .hbt-map-expand { display: none; }
.hbt-map-dialog .hbt-map-paper { padding: 25px 30px; overflow-y: auto; }
.hbt-map-dialog .hbt-map-scene-head { display: none; }
.hbt-map-dialog .hbt-map-canvas { flex: 1; min-height: 0; display: grid; place-items: center; }
.hbt-map-dialog .hbt-map-world { width: min(100%,calc((100dvh - 350px) * 1.5)); }
@media (max-width: 1000px) {
 .hbt-map-shell { grid-template-columns: 1.2fr 1fr; }
 .hbt-map-scene-head { padding: 23px 20px 12px; flex-wrap: wrap; }
 .hbt-site .hbt-map-scene-head p { font-size: 23px; }
 .hbt-map-paper { padding: 24px 21px; }
 .hbt-site .hbt-map-tour-title { font-size: 29px; }
 .hbt-map-location { margin-inline: 20px; }
 .hbt-map-controls { padding-inline: 20px; flex-wrap: wrap; }
 .hbt-site .hbt-map-caption { padding-inline: 20px; }
 .hbt-map-dialog .hbt-map-shell { grid-template-columns: 1.35fr 1fr; }
}
@media (max-width: 700px) {
 .hbt-site #hbt-explorer .hbt-explorer-tabs { grid-template-columns: 1fr 1fr; }
 .hbt-map-shell,.hbt-map-dialog .hbt-map-shell { display: flex; flex-direction: column; min-height: 0; height: auto; border-radius: 20px; }
 .hbt-map-dialog .hbt-map-world { width: 100%; }
 .hbt-map-dialog .hbt-map-paper { overflow: visible; }
 .hbt-map-dialog .hbt-map-canvas { flex: none; }
 .hbt-map-scene-head { padding: 22px 20px 17px; gap: 13px; }
 .hbt-site .hbt-map-scene-head p { font-size: 22px; }
 .hbt-map-kicker { font-size: 8px; }
 .hbt-site .hbt-map-expand { font-size: 10px; padding: 7px 11px; }
 .hbt-map-location { margin-top: 7px; padding: 16px 0; }
 .hbt-map-location strong { font-size: 23px; }
 .hbt-map-controls { flex-wrap: nowrap; gap: 8px; }
 .hbt-site .hbt-map-play { font-size: 10px; padding: 11px 12px; }
 .hbt-map-controls > div { gap: 5px; }
 .hbt-site .hbt-map-controls > div > button { width: 40px; height: 40px; }
 .hbt-site .hbt-map-caption { padding: 14px 20px 20px; font-size: 9px; }
 .hbt-map-paper,.hbt-map-dialog .hbt-map-paper { padding: 27px 24px; }
 .hbt-site .hbt-map-selection select,.hbt-site .hbt-map-sports-base select { font-size: 13px; }
 .hbt-site .hbt-map-tour-title { font-size: 34px; }
 .hbt-site .hbt-map-tour-summary,.hbt-site .hbt-map-stop-text { font-size: 13px; }
 .hbt-site .hbt-map-stop-list button { min-height: 42px; font-size: 11px; }
 .hbt-site .hbt-map-stop-photo { height: 170px; }
 .hbt-site .hbt-map-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
 .hbt-map-dialog-head { padding: 19px; gap: 12px; }
 .hbt-site .hbt-map-dialog-head h2 { font-size: 23px; }
 .hbt-site .hbt-map-close { font-size: 10px; padding: 9px 12px; }
 .hbt-map-pin > span { width: 20px; height: 20px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
 .hbt-map-world { transform: none !important; transition: none; }
 .hbt-map-pin > span { transition: none; }
}
@media print { .hbt-map-home,.hbt-map-dialog,#hbt-tab-map { display: none !important; } }
