:root { font-family: system-ui, -apple-system, sans-serif; color: #253253; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
.venue-map-widget { padding: 12px; max-width: 960px; margin: auto; }
.venue-map-widget header { padding: 2px 4px 12px; }
h1 { margin: 0; font-size: 18px; line-height: 1.4; }
header p { margin: 4px 0 0; color: #66728b; font-size: 13px; }
.venue-map-widget__preview { position: relative; display: block; height: 280px; border-radius: 14px; overflow: hidden; background: #eef1f6; color: #253253; text-decoration: none; }
#venue-widget-map { position: absolute; inset: 0; pointer-events: none; }
.venue-map-widget__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #eef1f6; font-size: 14px; }
.venue-map-widget__fallback span { color: #514191; }
.is-loaded .venue-map-widget__fallback { display: none; }
footer { padding: 10px 4px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
footer a { color: #514191; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.venue-map-widget__attribution { margin: 0; font-size: 10px; line-height: 1.6; }
.venue-map-widget__attribution a { color: #66728b; }
.venue-map-widget__besttime { font-size: 13px; line-height: 1.6; }
a:focus-visible { outline: 3px solid #6451b1; outline-offset: 2px; }
@media (max-width: 420px) {
  .venue-map-widget { padding: 8px; }
  .venue-map-widget__preview { height: 260px; }
}

.map-forecast { position: absolute; z-index: 2; bottom: calc(21% + 48px); left: 50%; transform: translateX(-50%); width: min(400px, calc(100% - 24px)); padding: 10px 12px; border: 1px solid #e1e5f3; border-radius: 14px; background: #fff; box-shadow: 0 5px 20px #2734541c; pointer-events: none; }
.map-forecast::after { content: ''; position: absolute; bottom: -9px; left: calc(50% - 8px); width: 16px; height: 16px; background: #fff; border-right: 1px solid #e1e5f3; border-bottom: 1px solid #e1e5f3; transform: rotate(45deg); }
.map-forecast .map-forecast__header { display: flex; align-items: center; gap: 8px; padding: 0 0 8px; }
.map-forecast__header strong { flex: 1; font-size: 13px; white-space: nowrap; }
.map-forecast__clock { font-size: 9px; color: #727a95; white-space: nowrap; }
.map-forecast__snapshot { text-align: right; font-size: 13px; font-weight: 700; white-space: nowrap; }
.map-forecast__snapshot > span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #959caf; }
.map-forecast__snapshot[data-level="low"] > span::before { background: #80cf83; }
.map-forecast__snapshot[data-level="medium"] > span::before { background: #ffd77b; }
.map-forecast__snapshot[data-level="high"] > span::before { background: #ff9b9f; }
.map-forecast__snapshot small { display: block; font-size: 8px; font-weight: 400; color: #727a95; }
.map-forecast__week { width: 100%; table-layout: fixed; border-spacing: 2px; font-size: 9px; line-height: 1; }
.map-forecast__week th:first-child { width: 25px; text-align: left; }
.map-forecast__week thead td:first-child { width: 25px; }
.map-forecast__week thead th { height: 14px; font-size: 8px; font-weight: 500; color: #727a95; white-space: nowrap; overflow: visible; }
.map-forecast__week tbody th { color: #6c7590; font-weight: 600; }
.map-forecast__week td { padding: 0; position: relative; height: 12px; }
.map-forecast__cell { display: block; width: 100%; height: 12px; border-radius: 3px; background: #edf0f6; }
.map-forecast__cell--low { background: #80cf83; }
.map-forecast__cell--medium { background: #ffd77b; }
.map-forecast__cell--high { background: #ff9b9f; }
.map-forecast__week .is-current { outline: 2px solid #5a69ff; outline-offset: 0; border-radius: 3px; }
.map-forecast__week .is-current::after { content: ''; position: absolute; width: 4px; height: 4px; background: #fff; border: 1px solid #5a69ff; border-radius: 50%; left: calc(50% - 2px); top: calc(50% - 2px); }
.map-forecast__day { display: flex; gap: 3px; height: 100px; padding-top: 13px; }
.map-forecast [hidden] { display: none !important; }
.map-forecast__hour { flex: 1; min-width: 0; }
.map-forecast__bar-zone { display: flex; align-items: flex-end; height: 70px; position: relative; }
.map-forecast__bar { width: 100%; min-height: 2px; background: #b7caf8; border-radius: 3px 3px 0 0; }
.map-forecast__bar--closed { background: transparent; min-height: 0; }
.map-forecast__axis { display: block; text-align: center; height: 16px; padding-top: 4px; font-size: 8px; color: #727a95; white-space: nowrap; }
.map-forecast__hour.is-current .map-forecast__bar { background: #7dabf4; outline: 2px solid #5a69ff; outline-offset: 1px; }
.map-forecast__now { display: none; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #5a69ff; }
.map-forecast__hour.is-current .map-forecast__now { display: block; }
.has-overlay .venue-map-widget__fallback { justify-content: flex-end; padding-bottom: 15px; font-size: 11px; }
@media (max-width: 420px) {
  .map-forecast { padding: 9px; border-radius: 11px; }
  .map-forecast__header strong { font-size: 12px; }
  .map-forecast .map-forecast__header { gap: 5px; }
  .map-forecast__clock { font-size: 8px; }
  .map-forecast__week tbody th { font-size: 8px; }
}
@media (max-width: 420px) {
  .venue-map-widget__preview.has-overlay { height: 280px; }
}

.map-forecast__cell--empty { background: #e2f2e4; }
.map-forecast__snapshot[data-level="empty"] > span::before { background: #e2f2e4; }

@media (max-width: 420px) {
  .venue-map-widget { padding: 6px; }
  .venue-map-widget header { padding-bottom: 8px; }
  .venue-map-widget h1 { font-size: 17px; overflow-wrap: anywhere; }
  .venue-map-widget header p { font-size: 12px; overflow-wrap: anywhere; }
  .venue-map-widget__preview.has-overlay { height: 280px; }
  footer { padding-top: 7px; gap: 5px 12px; }
  .venue-map-widget__attribution { font-size: 9px; }
}
