/* Scoped styles for the requested location section and photo gallery. */
.about-location .location-intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.about-location .location-intro > p:last-of-type {
  color: var(--muted);
  line-height: 1.75;
}

.about-location .location-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.about-location .map-card {
  min-width: 0;
  overflow: hidden;
}

.about-location .map-card iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.about-location .hotel-distances {
  min-width: 0;
  margin-top: 0;
}

.about-location .hotel-distances h3 {
  margin-bottom: 18px;
}

.about-location .hotel-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .95rem;
}

.about-location .hotel-table th,
.about-location .hotel-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}

.about-location .hotel-table thead th {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}

.about-location .hotel-table tbody th {
  font-weight: 600;
}

.about-location .hotel-table th:first-child {
  padding-left: 0;
}

.about-location .hotel-table td {
  white-space: nowrap;
}

.about-location .distance-note {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
}

.photo-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.photo-gallery .gallery-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.photo-gallery .gallery-photo a {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
}

.photo-gallery .gallery-photo a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.photo-gallery .gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo-gallery .gallery-photo a:hover img {
    transform: scale(1.035);
  }
}

.photo-gallery .gallery-photo figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.photo-gallery .gallery-empty {
  max-width: 760px;
}

.photo-gallery .gallery-empty p {
  margin: 0;
  color: var(--muted);
}

.photo-gallery .gallery-lightbox {
  --text: #fffdf8;
  --muted: #d9dcd0;
  --border: #69715f;
  --accent: #e6e8d2;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 54px 24px 20px;
  color: var(--text);
  background: #0d0f11;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.photo-gallery .gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, .88);
}

.photo-gallery .gallery-lightbox figure {
  margin: 0;
  text-align: center;
}

.photo-gallery .gallery-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 210px);
  margin: 0 auto;
  object-fit: contain;
}

.photo-gallery .gallery-lightbox figcaption {
  padding-top: 14px;
  font-size: .95rem;
}

.photo-gallery .gallery-close,
.photo-gallery .gallery-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.photo-gallery .gallery-close {
  position: absolute;
  top: 8px;
  right: 12px;
}

.photo-gallery .gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
}

.photo-gallery .gallery-controls span {
  min-width: 48px;
  color: var(--muted);
  text-align: center;
  font-size: .875rem;
}

.photo-gallery .gallery-lightbox button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .about-location .location-layout {
    grid-template-columns: 1fr;
  }

  .photo-gallery .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .about-location .map-card iframe {
    height: 350px;
  }

  .about-location .hotel-table {
    font-size: .875rem;
  }

  .about-location .hotel-table th,
  .about-location .hotel-table td {
    padding: 14px 8px;
  }

  .about-location .hotel-table thead th {
    font-size: .8rem;
  }

  .photo-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
}
