.ubfp-floor-plan {
  width: 100%;
}
.ubfp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.ubfp-map-shell {
  display: block;
  min-width: 0;
}
.ubfp-map {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.ubfp-map svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.ubfp-panel {
  display: none;
}
.ubfp-rented-list {
  position: sticky;
  top: 16px;
}
.ubfp-rented-list-inner,
.ubfp-panel-inner,
.ubfp-map-tooltip-inner {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.ubfp-rented-list-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ubfp-rented-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ubfp-rented-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.ubfp-rented-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.ubfp-rented-item:hover,
.ubfp-rented-item:focus-visible,
.ubfp-rented-item.is-active {
  background: #eff6ff;
  border-radius: 12px;
  padding: 10px 12px;
  margin: -10px -12px 0;
  border-bottom-color: transparent;
  outline: none;
}
.ubfp-rented-name {
  font-weight: 600;
  color: #111827;
}
.ubfp-rented-booth {
  font-size: 0.95rem;
  color: #4b5563;
}
.ubfp-rented-empty,
.ubfp-panel-placeholder {
  color: #6b7280;
}
.ubfp-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}
.ubfp-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.ubfp-meta-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.ubfp-meta-label {
  font-weight: 600;
}
.ubfp-status {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ubfp-status.is-available {
  background: #dcfce7;
  color: #166534;
}
.ubfp-status.is-unavailable {
  background: #dbeafe;
  color: #1d4ed8;
}
.ubfp-description {
  margin: 12px 0 0;
}
.ubfp-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 600;
}
.ubfp-map [id^="hotspot-"] {
  cursor: pointer;
}
.ubfp-map [id^="hotspot-"] path,
.ubfp-map [id^="hotspot-"] polygon,
.ubfp-map [id^="hotspot-"] rect,
.ubfp-map [id^="hotspot-"] ellipse {
  transition: opacity .2s ease, stroke .2s ease, stroke-width .2s ease, fill .2s ease;
}
.ubfp-map [id^="hotspot-"].is-hovered path,
.ubfp-map [id^="hotspot-"].is-hovered polygon,
.ubfp-map [id^="hotspot-"].is-hovered rect,
.ubfp-map [id^="hotspot-"].is-hovered ellipse,
.ubfp-map [id^="hotspot-"].is-selected path,
.ubfp-map [id^="hotspot-"].is-selected polygon,
.ubfp-map [id^="hotspot-"].is-selected rect,
.ubfp-map [id^="hotspot-"].is-selected ellipse {
  stroke: #0f172a;
  stroke-width: 20;
  opacity: .92;
}
.ubfp-map-tooltip {
  position: absolute;
  z-index: 20;
  width: min(320px, calc(100% - 16px));
  pointer-events: none;
}
.ubfp-map-tooltip[hidden] {
  display: none;
}
.ubfp-map-tooltip.is-visible {
  display: block;
}
.ubfp-map-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 6px 6px 14px rgba(15, 23, 42, 0.06);
}
.ubfp-map-tooltip .ubfp-photo img {
  max-height: 180px;
}
.ubfp-photo {
  margin: 12px 0 0;
}
.ubfp-photo img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}
@media (max-width: 1100px) {
  .ubfp-layout {
    grid-template-columns: 1fr;
  }
  .ubfp-rented-list {
    position: static;
    order: 2;
  }
}
@media (max-width: 960px) {
  .ubfp-panel {
    display: block;
    margin-top: 16px;
  }
  .ubfp-map-tooltip {
    display: none !important;
  }
}
@media (max-width: 640px) {
  .ubfp-panel-inner {
    position: sticky;
    bottom: 0;
    z-index: 5;
    border-radius: 18px 18px 0 0;
  }
}
