.loopr-image-map-panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.loopr-image-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.loopr-image-map-head > * {
  margin-bottom: 0;
}

.loopr-image-map-meta {
  max-width: 360px;
  text-align: right;
}

.loopr-floor-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.loopr-floor-switcher button,
.loopr-image-map-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid rgba(4, 120, 130, 0.18);
  border-radius: 999px;
  background: #e1f5f5;
  color: #04707c;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.loopr-floor-switcher button:hover,
.loopr-floor-switcher button:focus,
.loopr-image-map-reset:hover,
.loopr-image-map-reset:focus {
  border-color: rgba(4, 120, 130, 0.34);
  background: #d2eeee;
  color: #0f172a;
}

.loopr-floor-switcher button.is-active,
.loopr-floor-switcher button[aria-pressed="true"] {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.loopr-image-map-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.loopr-image-map {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  background: #eef7f7;
}

.loopr-image-map .leaflet-container {
  border-radius: 20px;
}

.loopr-image-map .leaflet-control-zoom {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.loopr-image-map .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 34px;
  color: #0f172a;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

.loopr-image-map .leaflet-control-zoom a:hover,
.loopr-image-map .leaflet-control-zoom a:focus {
  background: #f4fbfb;
}

.loopr-image-map-admin-note {
  padding: 22px;
  border: 1px dashed rgba(4, 120, 130, 0.35);
  border-radius: 18px;
  background: #f4fbfb;
  color: #52616b;
}

@media (max-width: 991px) {
  .loopr-image-map {
    height: 460px;
  }

  .loopr-image-map-head {
    flex-direction: column;
  }

  .loopr-image-map-meta {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 575px) {
  .loopr-image-map-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .loopr-image-map {
    height: 340px;
    border-radius: 16px;
  }

  .loopr-floor-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .loopr-floor-switcher button {
    flex: 0 0 auto;
  }
}
