.pano-flat-card-bridge {
  position: fixed;
  z-index: 2147483647;
  left: 12px;
  top: 12px;
  width: min(360px, calc(100vw - 24px));
  padding: 20px;
  color: #f7f8ff;
  background: rgba(38, 57, 102, .96);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  font-family: Inter, "Segoe UI", sans-serif;
  pointer-events: none;
}

/* Point hotspots stay above polygon outlines but below bridge tooltips.
   Their pointer events still delimit polygon hover through the tooltip,
   because all bridge cards are non-interactive. */
#hotspots {
  z-index: 2147483646 !important;
}

.pano-selection-toggle {
  position: fixed;
  z-index: 2147483647;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px 8px 15px;
  color: #fff;
  background: rgba(33, 44, 88, .94);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  box-shadow: 0 9px 28px rgba(18, 25, 61, .28);
  font-family: Gilroy, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.pano-selection-toggle[hidden] { display: none !important; }
.pano-selection-toggle:hover { background: rgba(40, 53, 103, .98); }
.pano-selection-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pano-selection-toggle__label {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.pano-selection-toggle__track {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background-color 150ms ease;
}

.pano-selection-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(18, 25, 61, .3);
  transition: transform 150ms ease;
}

.pano-selection-toggle.is-active .pano-selection-toggle__track { background: #cf8c71; }
.pano-selection-toggle.is-active .pano-selection-toggle__knob { transform: translateX(18px); }

.pano-flat-card-bridge h2,
.pano-flat-card-bridge p { margin-top: 0; }
.pano-flat-card-bridge h2 { margin-bottom: 10px; font-size: 1.25rem; }
.pano-flat-card-bridge__heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.pano-flat-card-bridge__status { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.pano-flat-card-bridge__status--available { color: #09391e; background: #9ce1b7; }
.pano-flat-card-bridge__status--reserved { color: #563500; background: #ffd58e; }
.pano-flat-card-bridge__status--unknown { color: #3f4260; background: #dce1f5; }
.pano-flat-card-bridge__description,
.pano-flat-card-bridge__location,
.pano-flat-card-bridge__features,
.pano-flat-card-bridge__unknown { color: #d8e0ff; line-height: 1.45; }
.pano-flat-card-bridge__unknown { margin: 0; text-align: center; font-size: 1rem; font-weight: 650; }
.pano-flat-card-bridge__prices { display: flex; flex-wrap: wrap; gap: 5px 13px; align-items: baseline; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.pano-flat-card-bridge__price-previous { color: #c2cbe8; font-size: .9rem; font-weight: 500; line-height: 1.25; text-decoration: line-through; text-decoration-thickness: 1px; }
.pano-flat-card-bridge__price-current { color: #fff; font-size: 1.2rem; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.pano-flat-card-bridge__prices--unknown { color: #c2cbe8; font-size: .9rem; font-weight: 500; line-height: 1.35; }

.pano-unavailable-tooltip {
  position: fixed;
  z-index: 2147483647;
  left: 10px;
  top: 10px;
  max-width: min(280px, calc(100vw - 20px));
  padding: 9px 13px;
  color: #fff;
  background: #212c58;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(25, 35, 73, .22);
  font-family: Gilroy, "Segoe UI", sans-serif;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.pano-unavailable-tooltip.is-visible { opacity: 1; }

.pano-unavailable-tooltip[data-kind="available"] {
  min-width: min(218px, calc(100vw - 20px));
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(18, 25, 61, .34);
}

.pano-unavailable-tooltip[data-kind="available"][data-prices="visible"] {
  width: auto;
  min-width: min(236px, calc(100vw - 20px));
}

.pano-navigation-tooltip__title {
  overflow: hidden;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pano-navigation-tooltip__divider {
  height: 1px;
  margin: 10px 0 9px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .16));
}

.pano-navigation-tooltip__rooms {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pano-navigation-tooltip__room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  color: rgba(255, 255, 255, .94);
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.35;
}

.pano-navigation-tooltip__room-count {
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.pano-navigation-tooltip__rooms--priced .pano-navigation-tooltip__room {
  grid-template-columns: 4.5rem auto auto;
  gap: 9px;
}

.pano-navigation-tooltip__room-price {
  color: #fff;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.2;
  text-align: end;
  white-space: nowrap;
}

.pano-navigation-tooltip__room-price--unknown {
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  font-weight: 500;
}

/* Pano2VR may restore its previous polygon title on every pointer move even
   after setActiveHotspot(null). Keep both messages strictly exclusive while
   the unavailable-area tooltip owns the hover. */
body.pano-unavailable-tooltip-active #hotspottext {
  visibility: hidden !important;
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .pano-unavailable-tooltip { transition: none; }
  .pano-selection-toggle,
  .pano-selection-toggle__track,
  .pano-selection-toggle__knob { transition: none; }
}
