/* Locations — matched to hibachinow.com/locations */

.hn-loc-page {
  padding: 7.5rem 0 4rem;
}

.hn-loc-page--section {
  padding: 0 0 1rem;
}

.hn-loc-page__head {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hn-loc-page__head h1,
.hn-loc-page__head h2 {
  margin: 0 0 1.5rem;
  color: #dc2626;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.hn-loc-page--section .hn-loc-page__head h2 {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
}

.hn-loc-page__head p {
  margin: 0;
  color: #525252;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.625;
}

.hn-loc {
  width: min(100% - 2rem, 80rem);
  margin: 2rem auto 0;
}

.hn-loc__frame {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.hn-loc__map-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  padding-bottom: 63.5%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.hn-loc__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hn-loc__state {
  stroke: #ffffff;
  stroke-width: 0.8;
  transition: fill 0.12s ease, filter 0.12s ease;
  cursor: default;
}

.hn-loc__state.is-available {
  fill: #ef4444;
  cursor: pointer;
}

.hn-loc__state.is-coming,
.hn-loc__state.is-unavailable {
  fill: #e2e8f0;
  cursor: default;
}

.hn-loc__state.is-available:hover,
.hn-loc__state.is-available.is-hot {
  fill: #dc2626;
  filter: brightness(0.9);
}

.hn-loc__state.is-available.is-active {
  fill: #dc2626;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.5));
}

.hn-loc__state.is-coming.is-hot {
  fill: #cbd5e1;
}

.hn-loc__hi path {
  stroke-width: 1.2;
}

.hn-loc__hi {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  width: 18%;
  min-width: 60px;
  max-width: 90px;
  aspect-ratio: 90 / 58;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  overflow: hidden;
}

.hn-loc__hi-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hn-loc__hi-label {
  position: absolute;
  bottom: 0.125rem;
  right: 0.25rem;
  font-size: 8px;
  font-weight: 600;
  color: #374151;
  pointer-events: none;
}

/* Hover tooltip */
.hn-loc__tip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.hn-loc__tip[hidden],
.hn-loc__pop[hidden] {
  display: none !important;
}

.hn-loc__tip-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 0.625rem 1rem;
  min-width: max-content;
  border: 1px solid #f3f4f6;
}

.hn-loc__tip-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.hn-loc__tip-hint {
  margin: 0.25rem 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  letter-spacing: 0.02em;
}

.hn-loc__tip-arrow {
  width: 0.75rem;
  height: 0.75rem;
  margin: -6px auto 0;
  background: #fff;
  border-right: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  transform: rotate(45deg);
}

/* Selection popover */
.hn-loc__pop {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
}

.hn-loc__pop-card {
  pointer-events: auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  min-width: 208px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hn-loc__pop-name {
  margin: 0 0 0.125rem;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.hn-loc__pop-status {
  margin: 0 0 0.75rem;
  font-size: 10px;
  color: #4b5563;
  letter-spacing: 0.02em;
}

.hn-loc__pop-book {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.hn-loc__pop-book:hover {
  background: #b91c1c;
  color: #fff;
}

.hn-loc__pop-book[hidden] {
  display: none !important;
}

.hn-loc__pop-dismiss {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.375rem 0;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s ease;
}

.hn-loc__pop-dismiss:hover {
  color: #1f2937;
}

.hn-loc__pop-arrow {
  width: 0.75rem;
  height: 0.75rem;
  margin: -6px auto 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  transform: rotate(45deg);
  clip-path: polygon(0 50%, 50% 100%, 100% 50%);
}

/* Legend */
.hn-loc__legend {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0 0.25rem;
}

.hn-loc__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hn-loc__swatch {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  margin-top: 0.25rem;
}

.hn-loc__swatch--available {
  background: #dc2626;
}

.hn-loc__swatch--coming {
  background: #1e293b;
  border: 1px solid #334155;
}

.hn-loc__row-label {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.25rem;
}

.hn-loc__chips-wrap {
  flex: 1;
  min-width: 0;
}

.hn-loc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  overflow: hidden;
}

.hn-loc__chips[data-collapsed] {
  max-height: 22px;
}

.hn-loc__chip {
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-size: 10px;
  font-weight: 600;
  color: #b91c1c;
  cursor: pointer;
  line-height: 1.25;
  transition: opacity 0.15s ease;
}

.hn-loc__chip.is-coming {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #374151;
}

.hn-loc__chip:hover {
  opacity: 0.8;
}

.hn-loc__more {
  margin-top: 0.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s ease;
}

.hn-loc__more:hover {
  color: #1f2937;
}

/* CTA */
.hn-loc__cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hn-loc__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hn-loc__cta-btn:hover {
  background: #b91c1c;
  color: #fff;
}

.hn-loc__cta-btn svg {
  transition: transform 0.15s ease;
}

.hn-loc__cta-btn:hover svg {
  transform: translateX(2px);
}

.hn-loc__cta-note {
  margin: 0;
  font-size: 0.75rem;
  color: #4b5563;
}

.hn-loc-missing {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

@media (min-width: 1024px) {
  .hn-loc__frame {
    max-width: 48rem;
  }
}
