.public-map-popup-actions,
.lookingfor-air-map-modal-actions,
.members-search-air-map-actions,
.profile-osm-map-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px;
}

.public-map-popup-icon-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 248, 245, 0.92);
  cursor: pointer;
  box-shadow: var(--main-shadow-sm);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.public-map-popup-icon-button:hover,
.public-map-popup-icon-button:focus-visible {
  background: rgb(255, 245, 235);
  box-shadow: 0 3px 9px rgba(60, 36, 25, 0.24);
  transform: translateY(-1px);
}

.public-map-popup-icon-button img {
  filter: none !important;
  opacity: 0.55;
}

.public-map-popup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.public-map-popup-eyebrow-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none !important;
}

.public-map-popup-eyebrow-text {
  min-width: 0;
}

.public-map-popup-eyebrow-value {
  min-width: 0;
}

.public-map-popup-eyebrow-value:not([hidden]):not(:empty)::before {
  content: ": ";
}

@media (max-width: 520px) {
  .public-map-popup-eyebrow {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .public-map-popup-eyebrow-value {
    flex-basis: 100%;
    padding-left: 32px;
  }

  .public-map-popup-eyebrow-value:not([hidden]):not(:empty)::before {
    content: "";
  }
}

.members-search-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.members-search-popup-map-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.public-map-popup-leaflet-controls .leaflet-control-zoom,
.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.public-map-popup-leaflet-controls .leaflet-control-zoom a,
.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control a.public-map-popup-leaflet-center-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 1px solid #ccc !important;
  border-top: 1px solid #ccc !important;
  border-right: 1px solid #ccc !important;
  border-bottom: 1px solid #ccc !important;
  border-left: 1px solid #ccc !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  color: #000;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transform: none;
  transition: none;
}

.public-map-popup-leaflet-controls .leaflet-control-zoom a:hover,
.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control a.public-map-popup-leaflet-center-button:hover {
  background: #f4f4f4 !important;
  background-color: #f4f4f4 !important;
}

.public-map-popup-leaflet-controls .leaflet-control-zoom a:active,
.public-map-popup-leaflet-controls .leaflet-control-zoom a:focus:not(:hover),
.public-map-popup-leaflet-controls .leaflet-control-zoom a:focus-visible:not(:hover),
.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control a.public-map-popup-leaflet-center-button:active,
.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control a.public-map-popup-leaflet-center-button:focus:not(:hover),
.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control a.public-map-popup-leaflet-center-button:focus-visible:not(:hover),
.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control a.public-map-popup-leaflet-center-button.is-off-center:not(:hover) {
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  transform: none;
}

.public-map-popup-leaflet-controls .public-map-popup-leaflet-center-control a.public-map-popup-leaflet-center-button img {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}

.lookingfor-air-map-modal.is-public-map-popup-maximized,
.members-list-map-popup.is-public-map-popup-maximized,
.members-search-popup.is-public-map-popup-maximized,
.profile-osm-map-modal.is-public-map-popup-maximized {
  padding: 0;
}

.profile-osm-map-card.is-public-map-popup-maximized,
.members-list-map-card.is-public-map-popup-maximized,
.members-search-popup-card.is-public-map-popup-maximized {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  resize: none;
  transform: none !important;
}

.members-search-popup.is-public-map-popup-maximized .members-search-popup-card.is-public-map-popup-maximized {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

.members-list-map-card.is-public-map-popup-maximized,
.members-search-popup-card.is-public-map-popup-maximized {
  grid-template-rows: auto minmax(0, 1fr);
}

.members-list-map-card.is-public-map-popup-maximized .members-list-map-header,
.members-search-popup.is-public-map-popup-maximized .members-search-popup-eyebrow,
.profile-osm-map-card.is-public-map-popup-maximized .profile-osm-map-header-row,
.lookingfor-air-map-modal-card.is-lookingfor-air-map-maximized .lookingfor-air-map-modal-header,
.lookingfor-air-map-modal-card.is-public-map-popup-maximized .lookingfor-air-map-modal-header {
  cursor: default;
}

@media (min-width: 769px) {
  .profile-osm-map-card.is-public-map-popup-maximized {
    inset: 0;
  }
}

@media (max-width: 680px) {
  .public-map-popup-maximize-button,
  .lookingfor-air-map-maximize-button,
  .members-search-air-map-maximize-button,
  .members-list-map-maximize-button,
  .profile-osm-map-maximize-button {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .profile-osm-map-maximize-button {
    display: none !important;
  }
}

.public-map-popup-leaflet-center-button.is-off-center img {
  animation: public-map-center-icon-pulse 1.15s ease-in-out infinite;
  filter: none !important;
  opacity: 1;
}

@keyframes public-map-center-icon-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

.public-map-popup-canvas,
.lookingfor-air-map,
.members-search-air-map,
.profile-osm-map {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(122, 90, 74, 0.22);
  border-radius: 14px;
  background: rgba(255, 249, 242, 0.7);
  box-sizing: border-box;
}

.public-map-popup-canvas img,
.public-map-popup-canvas .leaflet-tile,
.lookingfor-air-map img,
.lookingfor-air-map .leaflet-tile,
.members-search-air-map img,
.members-search-air-map .leaflet-tile,
.profile-osm-map img,
.profile-osm-map .leaflet-tile {
  max-width: none !important;
  filter: none !important;
}

.public-map-popup-canvas.leaflet-container,
.lookingfor-air-map.leaflet-container,
.members-search-air-map.leaflet-container,
.members-list-map-canvas.leaflet-container,
.profile-osm-map.leaflet-container {
  cursor: default;
}
