/* RESET: This page also clears default element spacing. */
* {
  margin: 0;
  padding: 0;
}

.page {
  max-width: 430px;
  margin: 0 auto;
}

/* HEADER */

.header {
  border-bottom: 1px solid #e7ebef;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
}

.menu {
  color: #102f57;
  font-size: 28px;
}

/* PAGE INTRO */

.hero {
  padding: 30px 22px 20px;
  background: linear-gradient(
    135deg,
    #eef7ff 0%,
    #e1effb 55%,
    #ffffff 100%
  );
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid #174775;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 9px;
  font-size: 34px;
  line-height: 1.05;
}

.hero p {
  color: #607489;
  font-size: 16px;
  line-height: 1.45;
}

/* CONTENT */

.content {
  padding: 14px 22px 34px;
}

/* GALLERY CARDS */

.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f3f9fd;
  border: 1px solid #dce9f4;
  border-radius: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(18, 42, 77, 0.12);
}

.gallery-card:active {
  transform: scale(0.99);
}

.gallery-card img {
  width: 100px;
  height: 88px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #dbe7f0;
}

.gallery-info {
  min-width: 0;
}

.gallery-info h2 {
  margin-bottom: 5px;
  color: #102f57;
  font-size: 18px;
  line-height: 1.2;
}

.gallery-info p {
  color: #6a7d91;
  font-size: 14px;
  line-height: 1.35;
}

.arrow {
  padding-right: 4px;
  color: #173d67;
  font-size: 30px;
  line-height: 1;
}

/* MUSEUM MAP */

.map-section {
  margin-top: 20px;
  padding: 18px;
  background: #f3f9fd;
  border: 1px solid #dce9f4;
  border-radius: 10px;
}

.map-section h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.map-section p {
  margin-bottom: 14px;
  color: #607489;
  font-size: 15px;
  line-height: 1.4;
}

.map-image {
  width: 100%;
  display: block;
  padding: 0;
  background: white;
  border-radius: 10px;
  border: 1px solid #dce9f4;
}

.map-preview {
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.map-preview:hover {
  border-color: #9fc0dc;
  box-shadow: 0 4px 14px rgba(16, 47, 87, 0.12);
}

.map-preview:focus-visible,
.map-expand-button:focus-visible {
  outline: 3px solid rgba(23, 85, 143, 0.35);
  outline-offset: 3px;
}

.map-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 9px;
}

.map-expand-button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: #17558f;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.map-expand-button:hover {
  background: #124878;
}

/* TOUR BUTTON */

.tour-button {
  min-height: 64px;
  margin-top: 16px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #17558f;
  color: white;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
}

.tour-icon {
  font-size: 18px;
}

.tour-arrow {
  font-size: 28px;
  line-height: 1;
}

/* BACK BUTTON */

.back-button {
  display: block;
  max-width: 220px;
  margin: 16px auto 0;
  padding: 15px 20px;
  background: #e7f1fa;
  color: #173d67;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

/* DESKTOP */

@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
  }

  .page {
    max-width: 900px;
    min-height: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  }

  .header {
    height: 85px;
    padding: 0 40px;
  }

  .header-title {
    font-size: 26px;
  }

  .hero {
    padding: 42px 40px 24px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .content {
    padding: 18px 40px 40px;
  }

  .gallery-list {
    gap: 14px;
  }



  .gallery-card {
    min-height: 145px;
    grid-template-columns: 180px 1fr auto;
    padding: 12px;
  }

  .gallery-card img {
    width: 180px;
    height: 120px;
  }

  .gallery-info h2 {
    font-size: 24px;
  }

  .gallery-info p {
    font-size: 17px;
  }

  .arrow {
    padding-right: 12px;
    font-size: 38px;
  }

  .map-section {
    margin-top: 24px;
    padding: 22px;
  }

  .map-section h2 {
    font-size: 36px;
  }

  .map-section p {
    font-size: 17px;
  }

  .map-expand-button {
    width: fit-content;
    margin: 12px auto 0;
    padding-inline: 20px;
    font-size: 16px;
  }









  .map-placeholder {
    min-height: 390px;
  }

  .tour-button {
    max-width: 520px;
    margin: 20px auto 0;
    font-size: 19px;
  }

  .back-button {
    max-width: 280px;
  }
}
