/* =========================================
   Map Blocks & Common Content Layout
   Aligned to osmaps.html styling conventions
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

/* Inherit typography & body setup from osmaps style */
body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: normal;
  font-size: 16pt;
  line-height: 1.6;
  color: #000000;
  background-color: #fffff0; /* Shared site cream */
}

.page-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #003d7c;
  margin: 0;
}

h1 {
  font-size: clamp(20pt, 3.5vw, 26pt);
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(15pt, 2.4vw, 18pt);
}

.intro-block {
  text-align: center;
  padding: 1.5rem 1rem 2rem 1rem;
  margin-bottom: 1.5rem;
}

.intro-block p {
  margin: 0.45em 0;
}

/* =========================================
   Map Description Card / Block
   ========================================= */
.map-card {
  border: 1px solid #dcdad0; /* Pale grey border */
  border-radius: 6px;
  background-color: #ffffff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.map-card-header {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f0eee3;
  padding-bottom: 0.75rem;
}

.map-card-header h2 {
  color: #003d7c;
}

/* Linked Image Container */
.map-card-media {
  margin-bottom: 1.25rem;
}

.map-card-media a {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 4px;
}

.map-card-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e8e6dc;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-card-media a:hover img {
  transform: scale(1.008);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Responsive Two-Column Text Grid */
.map-card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.map-card-content p {
  margin: 0 0 1em 0;
  font-size: 14pt; /* Readable body copy */
  line-height: 1.6;
}

.map-card-content p:last-child {
  margin-bottom: 0;
}

/* Collapse to single column on mobile/tablets */
@media (max-width: 768px) {
  body {
    font-size: 14pt;
  }

  .map-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .map-card-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .map-card-content p {
    font-size: 13pt;
  }
}