/* YMU Place Detail map v1.1 hotfix */

.place-map-section {
  scroll-margin-top: 18px;
}

.place-map-description {
  max-width: 650px;
  margin: 5px 0 0;
  color: var(--muted);
}

.place-map-fit-button {
  align-self: end;
}

.place-detail-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.place-detail-map-panel,
.place-map-location-list {
  min-width: 0;
}

.place-detail-map {
  position: relative;
  display: block;
  width: 100%;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
  z-index: 1;
}

.place-map-loading,
.place-map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.place-map-error {
  color: #8a1c1c;
}

.place-map-missing-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.place-map-location-list {
  display: grid;
  gap: 10px;
}

.place-map-location-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.place-map-location-card-current {
  border-color: color-mix(
    in srgb,
    var(--accent) 55%,
    var(--border)
  );
}

.place-map-location-card-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--published-bg);
}

.place-map-location-heading > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.place-map-location-heading h3 {
  margin: 9px 0 4px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.place-map-location-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.place-map-amenities {
  margin: 10px 0 0;
}

.place-map-location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 13px;
  margin-top: 11px;
  font-size: 0.84rem;
  font-weight: 750;
}

@media (min-width: 980px) {
  .place-detail-map-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.72fr);
  }

  .place-map-location-list {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 2px;
  }
}

@media (max-width: 640px) {
  .place-detail-map {
    height: 58vh;
    min-height: 360px;
  }

  .place-map-loading,
  .place-map-error {
    min-height: 360px;
  }

  .place-map-fit-button {
    width: 100%;
  }

  .place-map-location-list {
    grid-template-columns: 1fr;
  }

  .place-map-amenities {
    display: none;
  }
}
