/* Map page and park modal styles. */

.map-page {
  max-width: 1100px;
  margin: 1.25rem auto;
  padding: 0 1rem;
}

/* About section */
.about {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  background-image: linear-gradient(
    135deg,
    rgba(255, 210, 63, 0.16),
    rgba(255, 93, 143, 0.1)
  );
}

@media (max-width: 640px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.about__photo {
  margin: 0;
}

.about__photo[hidden] {
  display: none;
}

.about__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.25);
  transform: rotate(-2deg);
  background: #fff3df;
}

.about__title {
  font-size: 1.8rem;
  color: var(--color-pink);
  margin-bottom: 0.4rem;
}

.about__text {
  margin: 0.4rem 0;
}

.about__text--accent {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

.map-page__status {
  text-align: center;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem;
}

.map-page__map {
  height: 70vh;
  min-height: 420px;
  border-radius: var(--radius);
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-page__hint {
  text-align: center;
  color: var(--color-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Modal */
.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 22, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal__overlay[hidden] {
  display: none;
}

.modal__dialog {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.75rem;
}

.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}

.modal__title {
  margin-right: 1.5rem;
  color: var(--color-primary-dark);
}

.modal__meta {
  margin-top: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.modal__story {
  white-space: pre-wrap;
}

.modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery__item {
  margin: 0;
}

.gallery__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gallery__caption {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.modal__empty {
  color: var(--color-muted);
}
