.estadia-map-wrap {
  padding-top: 48px;
  min-height: auto;
}

.alignCenter{
  text-align: center;
}

.map-app {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  height: clamp(520px, 70vh, 760px);
  overflow: hidden;
  margin-top: 40px;
}

.map-app .sidebar {
  display: flex;
  flex-direction: column;
  background: var(--blush-header);
  border-right: 1px solid rgba(28, 58, 84, 0.08);
  overflow: hidden;
}

.map-app .sidebar__header {
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(28, 58, 84, 0.08);
}

.map-app .sidebar__header h1 {
  margin: 0 0 0.35rem;
  font-family: "Lato", serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  color: var(--navy);
}

.map-app .sidebar__hint {
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 300;
}

.map-app .sidebar__hint strong {
  font-weight: 600;
  color: var(--navy);
}

.map-app .sidebar__list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.map-app .location-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: stretch;
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(28, 58, 84, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.map-app .location-card:hover,
.map-app .location-card.is-active {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(28, 58, 84, 0.12);
  transform: translateY(-1px);
}

.map-app .location-card__photo {
  width: 92px;
  height: 100%;
  min-height: 118px;
  border-radius: 6px;
  object-fit: cover;
  align-self: stretch;
}

.map-app .location-card__body {
  min-width: 0;
}

.map-app .location-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.map-app .location-card__address {
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 300;
}

.map-app .location-card__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.map-app .location-card__contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.map-app .location-card__contact a,
.map-app .detail-item__value a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: break-word;
}

.map-app .location-card__contact a:hover,
.map-app .detail-item__value a:hover {
  text-decoration: underline;
}

.map-app .sidebar__detail {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.35rem 1.35rem;
}

.map-app .sidebar__back {
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
}

.map-app .detail__title {
  margin: 0 0 0.5rem;
  font-family: "Lato", serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  color: var(--navy);
}

.map-app .detail__subtitle {
  margin: 0 0 1.25rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.45;
}

.map-app .detail-grid {
  display: grid;
  gap: 0.85rem;
}

.map-app .detail-item {
  padding: 0.95rem 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(28, 58, 84, 0.08);
}

.map-app .detail-item__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-app .detail-item__value {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
  color: var(--navy);
  font-weight: 300;
}

.map-app .map-container {
  position: relative;
  min-height: 0;
  background: #dfe7d8;
}

.map-app #map {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.leaflet-popup-content-wrapper {
  border-radius: 4px;
}

.leaflet-popup-content {
  margin: 0.75rem 1rem;
  line-height: 1.4;
}

.popup-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--navy);
}

.popup-address {
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .map-app {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
    height: auto;
  }

  .map-app .sidebar {
    order: 2;
    border-right: 0;
    border-top: 1px solid rgba(28, 58, 84, 0.08);
    max-height: none;
  }

  .map-app .map-container,
  .map-app #map {
    height: 200px;
    min-height: 0;
    max-height: 200px;
  }
}
