/* === 전역 설정 === */
:root {
  --bg: #fffdf9;
  --text: #2c2c2c;
  --accent: #c88f6a;
  --section-bg: #ffffff;
  --border: #eee;
}

body {
  margin: 0;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* === 메인 컨테이너 === */
.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 2em 1.2em;
  background-color: var(--section-bg);
}

/* === 제목, 카테고리 === */
h1 {
  font-size: 1.8em;
  margin-bottom: 0.3em;
  color: #111;
}
h2.category {
  font-size: 1em;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1.5em;
}

/* === 섹션 구분 === */
section {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
}
h3 {
  font-size: 1em;
  color: #444;
  margin: 1.2em 0 0.5em;
}
p {
  margin: 0.8em 0;
  line-height: 1.8;
  word-break: keep-all;
}

/* === 이미지 스타일 === */
img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* === 링크 스타일 === */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
}

/* === 전시장 소개 (.info > .venue-description) === */
.venue-description p {
  margin: 1em 0;
  line-height: 1.8;
  text-align: justify;
  word-break: keep-all;
}

/* === 전시 설명 및 개요 (.description) === */
.description p {
  margin: 1em 0;
  line-height: 1.8;
  text-align: justify;
}
.description h3 {
  margin-top: 1.8em;
}

/* === 지도 위치 (.map-section) === */
.map-section p {
  margin-top: 0.5em;
  margin-bottom: 0;
}

/* === 관련 전시 (.related-exhibitions) === */
.related-exhibitions {
  margin-top: 3em;
  background-color: #f9f5f1;
  padding: 1.2em;
  border-radius: 12px;
  font-size: 0.95em;
}
.related-exhibitions h3 {
  margin-top: 0;
}
.related-exhibitions p {
  margin-top: 0.6em;
}

/* === 반응형 (모바일 최적화) === */
@media screen and (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.85;
  }
  .container {
    padding: 1.5em 1em;
  }
  .venue-description p,
  .description p {
    font-size: 1.05em;
    line-height: 1.9;
  }
}

.related-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.related-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-card .text {
  padding: 0.75rem;
  font-size: 0.9rem;
}


/* exhibition-page-common.css 내에 추가 */

.related-exhibitions .leaflet-container {
  border-radius: 12px;
  margin-bottom: 1rem;
  height: 300px;
}

@media (max-width: 600px) {
  .related-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-exhibitions .leaflet-container {
    height: 250px;
  }

  .related-card .text {
    font-size: 0.85rem;
  }

  .related-card img {
    height: 120px;
    object-fit: cover;
  }
}

