/* ═══════════════════════════════════════════════════════════
   NAVIGA 시설 페이지 CSS (5-Tier 구조)
   - 장례식장·화장·봉안·자연장·묘지 5개 시설 공통
   - 모바일 우선 반응형
   - 기존 naviga-style.css와 함께 사용
   ═══════════════════════════════════════════════════════════ */

/* ═══════ Container & Header ═══════ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-header .logo {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 16px;
}

.site-header nav a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
}

.site-header nav a:hover {
  background: #f5f5f5;
}

.site-header nav a.cta {
  background: #2c3e50;
  color: #fff;
}

/* ═══════ Breadcrumb ═══════ */
.breadcrumb {
  font-size: 13px;
  color: #888;
  padding: 12px 16px;
}

.breadcrumb a {
  color: #2c3e50;
  text-decoration: none;
}

.breadcrumb span {
  color: #555;
  font-weight: 600;
}

/* ═══════ Facility Hero (제목·주소·전화) ═══════ */
.facility-page {
  padding: 24px 16px;
}

.facility-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #ecf0f1;
}

.facility-hero .badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.badge-category { background: #ecf0f1; color: #2c3e50; }
.badge-region { background: #e8f4f8; color: #2980b9; }
.badge-feature { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }

.facility-hero h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #2c3e50;
}

.facility-hero .address {
  color: #555;
  margin: 4px 0 12px;
  font-size: 15px;
}

.facility-hero .phone-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.phone-cta {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.phone-cta:hover {
  background: #219a52;
}

.updated {
  color: #888;
  font-size: 13px;
}

/* ═══════ Tier 공통 ═══════ */
.tier {
  margin-bottom: 40px;
}

.tier h2 {
  font-size: 22px;
  color: #2c3e50;
  border-left: 4px solid #2c3e50;
  padding-left: 12px;
  margin: 0 0 20px;
}

.tier h3 {
  font-size: 17px;
  color: #34495e;
  margin: 0 0 12px;
}

.tier h4 {
  font-size: 15px;
  color: #34495e;
  margin: 0 0 6px;
}

/* ═══════ Grid ═══════ */
.grid {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ═══════ Card ═══════ */
.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
}

.card-mini {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}

.card-stat {
  background: #2c3e50;
  color: #fff;
  border-radius: 8px;
  padding: 24px 12px;
  text-align: center;
}

.card-stat .stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.card-stat .stat-label {
  display: block;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.8;
}

/* ═══════ Tier 1: 의사결정 ═══════ */
.card-price .price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.card-price .price-table th,
.card-price .price-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.card-price .price-table th {
  width: 40%;
  color: #555;
  font-weight: 500;
}

.card-price .price-table td {
  text-align: right;
  font-weight: 600;
  color: #2c3e50;
}

.card-estimate {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-color: #f8d7da;
}

.card-estimate .estimate-big {
  font-size: 28px;
  text-align: center;
  margin: 12px 0;
  color: #c0392b;
}

.card-estimate .estimate-breakdown {
  font-size: 13px;
  color: #666;
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.card-estimate .estimate-breakdown li {
  padding: 4px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.card-comparison {
  background: #f8f9fa;
  text-align: center;
  margin-top: 16px;
}

.btn-secondary {
  display: inline-block;
  background: #fff;
  border: 1px solid #2c3e50;
  color: #2c3e50;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 12px;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #2c3e50;
  color: #fff;
}

.note {
  font-size: 12px;
  color: #888;
  margin: 8px 0 0;
}

/* ═══════ Tier 2: Map ═══════ */
.card-map .map-embed {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.address-full {
  font-size: 15px;
  color: #2c3e50;
  margin: 8px 0 4px;
}

.coord {
  font-size: 12px;
  color: #888;
  font-family: monospace;
}

/* ═══════ Tier 3: 시설 정보 표 ═══════ */
.facility-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}

.facility-table th,
.facility-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.facility-table tr:last-child th,
.facility-table tr:last-child td {
  border-bottom: none;
}

.facility-table th {
  background: #f9f9f9;
  width: 35%;
  color: #555;
  font-weight: 500;
}

.facility-table td {
  color: #2c3e50;
  font-weight: 600;
}

/* ═══════ FAQ ═══════ */
.tier-faq details {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 0;
}

.tier-faq summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  color: #2c3e50;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.tier-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #888;
}

.tier-faq details[open] summary::after {
  content: "−";
}

.tier-faq details p {
  padding: 0 16px 16px;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.tier-faq details p a {
  color: #2980b9;
}

/* ═══════ Related (internal link) ═══════ */
.related {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.related-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.related-grid a {
  display: block;
  padding: 12px 16px;
  background: #fff;
  border-radius: 6px;
  color: #2c3e50;
  text-decoration: none;
  border: 1px solid #e5e5e5;
}

.related-grid a:hover {
  border-color: #2c3e50;
  background: #f5f7fa;
}

/* ═══════ Tier 5: E-E-A-T ═══════ */
.tier-eeat {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #d4dfe8;
}

.tier-eeat h2 {
  border-left-color: #555;
  font-size: 18px;
}

.tier-eeat p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 8px 0;
}

.tier-eeat .data-source {
  font-size: 13px;
  margin-top: 12px;
}

.tier-eeat .data-source a {
  color: #2980b9;
}

.tier-eeat .last-updated {
  color: #888;
  font-size: 12px;
}

.tier-eeat .disclaimer {
  background: #fff3cd;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid #ffc107;
  font-size: 12px;
  color: #856404;
  margin-top: 16px;
}

/* ═══════ Footer ═══════ */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 32px 0;
  margin-top: 48px;
}

.site-footer .footer-info {
  margin-bottom: 16px;
}

.site-footer .footer-info p {
  margin: 4px 0;
  font-size: 14px;
}

.site-footer .footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.site-footer .footer-nav a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 13px;
}

.site-footer .copyright {
  border-top: 1px solid #34495e;
  padding-top: 16px;
  font-size: 12px;
  color: #95a5a6;
  margin: 0;
}

/* ═══════ 시설 종류별 색상 변형 ═══════ */
/* 화장시설 - 회색 톤 */
.facility-crematorium .tier h2 { border-left-color: #607d8b; }
.facility-crematorium .badge-category { background: #cfd8dc; color: #455a64; }

/* 봉안시설 - 보라색 톤 */
.facility-charnel .tier h2 { border-left-color: #7e57c2; }
.facility-charnel .badge-category { background: #e1bee7; color: #4a148c; }

/* 자연장지 - 녹색 톤 */
.facility-nature .tier h2 { border-left-color: #43a047; }
.facility-nature .badge-category { background: #c8e6c9; color: #1b5e20; }

/* 묘지 - 갈색 톤 */
.facility-grave .tier h2 { border-left-color: #795548; }
.facility-grave .badge-category { background: #d7ccc8; color: #3e2723; }
