/* ============================================================
   관람안내 + 입장요금 / 운영시간 — 통합 페이지
   경주동궁원 디자인 시스템 — 세이지 그린 파스텔 톤
============================================================ */

/* ── 섹션 카드 공통 ── */
.sec-card {
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(2,6,23,.06);
  margin-bottom: 22px;
}
.sec-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dg-primary-gradient);
  color: #2d4a1e;
  padding: 14px 20px;
}
.sec-card__head i {
  width: 30px;
  height: 30px;
  background: rgba(45,74,30,.10);
  color: #2d4a1e;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.sec-card__head .sc-title {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sec-card__head .sc-sub {
  margin-left: 6px;
  font-size: .78rem;
  color: rgba(45,74,30,.45);
  font-weight: 400;
}
.sec-card__body {
  padding: 20px 22px;
}
.sec-card__body.p-0 {
  padding: 0;
}

/* ── 카드 토글 ── */
.sec-card__head .sc-toggle {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(45,74,30,.08);
  color: #2d4a1e;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  cursor: pointer;
  transition: transform .25s ease, background .15s ease;
  flex-shrink: 0;
}
.sec-card__head .sc-toggle:hover {
  background: rgba(45,74,30,.15);
}
.sec-card.is-collapsed .sc-toggle {
  transform: rotate(180deg);
}
.sec-card.is-collapsed .sec-card__body {
  display: none;
}


/* ── 관람안내 그리드 ── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid rgba(2,6,23,.07);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow .15s;
}
.guide-item:hover {
  box-shadow: 0 4px 14px rgba(2,6,23,.08);
}
.guide-item--warn {
  border-left: 3px solid #e8a87c;
}
.guide-item--warn .guide-item__icon {
  background: rgba(200,120,60,.08);
  color: #b45309;
}
.guide-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(140,176,120,.14);
  color: #3d5a2e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.guide-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guide-num {
  font-size: .8rem;
  font-weight: 800;
  color: #8ca078;
  letter-spacing: .04em;
}
.guide-item__body p {
  margin: 0;
  font-size: 1.1rem;
  color: #1e293b;
  line-height: 1.65;
}
.guide-item__body p strong {
  color: #0b1220;
}
.guide-item__body small {
  color: var(--dg-text-sub);
  font-size: .92rem;
}


/* ── 운영시간 카드 그리드 ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.info-card {
  background: #f8fafc;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 12px;
  padding: 18px 20px;
}
.info-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: .92rem;
  color: #3d5a2e;
  margin-bottom: 14px;
}
.info-card__head i {
  width: 28px;
  height: 28px;
  background: rgba(140,176,120,.14);
  color: #3d5a2e;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
}
.info-card__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-row {
  display: flex;
  gap: 10px;
  font-size: .875rem;
  line-height: 1.55;
  color: #1e293b;
}
.info-row .lbl {
  flex-shrink: 0;
  font-weight: 700;
  color: #4e6d3a;
  min-width: 76px;
  font-size: .82rem;
}
.info-row .val { color: var(--dg-text); }
.info-row .note {
  display: block;
  margin-top: 4px;
  font-size: .8rem;
  color: var(--dg-text-sub);
}

/* ── 관람유의사항 아이콘 ── */
.info-card__rows .info-row .lbl i {
  width: 24px; height: 24px;
  background: rgba(140,176,120,.14);
  color: #3d5a2e;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
}
.info-card__rows .info-row .lbl:has(i) {
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ── 요금표 ── */
.fee-wrap-inner {
  width: 0;
  min-width: 100%;
  overflow: hidden;
}
.fee-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fee-scroll::-webkit-scrollbar { height: 4px; }
.fee-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.fee-table th,
.fee-table td {
  padding: 11px 14px;
  text-align: center;
  border: 1px solid rgba(2,6,23,.08);
  vertical-align: middle;
  line-height: 1.45;
}
.fee-table thead tr:first-child th {
  background: rgba(140,176,120,.22);
  color: #2d4a1e;
  font-weight: 800;
  font-size: .88rem;
}
.fee-table .th-botanica {
  background: rgba(140,176,120,.30);
  color: #2d4a1e;
  font-weight: 800;
}
.fee-table .th-birdpark {
  background: rgba(140,176,120,.22);
  color: #2d4a1e;
  font-weight: 800;
}
.fee-table .th-sub {
  background: rgba(140,176,120,.12);
  color: #3d5a2e;
  font-weight: 700;
  font-size: .86rem;
}
.fee-table td.td-cat {
  font-weight: 700;
  color: var(--dg-text);
  background: #f8fafc;
  font-size: .9rem;
  text-align: left;
  padding-left: 16px;
}
.fee-table td.td-amt {
  font-weight: 700;
  color: #0b1220;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.fee-table td.td-free {
  color: #3d5a2e;
  font-weight: 800;
  font-size: .95rem;
  background: rgba(140,176,120,.08);
}
.fee-table tr.tr-citizen td { background: rgba(140,176,120,.06); }
.fee-table tr.tr-citizen td.td-cat { color: #3d5a2e; }


/* ── 주의사항 박스 ── */
.notice-box {
  background: #f8fafc;
  border-top: 1px solid rgba(2,6,23,.08);
  padding: 16px 22px;
}
.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.notice-list li {
  font-size: .82rem;
  color: var(--dg-text-sub);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}
.notice-list li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: var(--dg-text-muted);
  font-size: .78rem;
}


/* ── 감면 조례 ── */
.ord-block { margin-bottom: 24px; }
.ord-block:last-child { margin-bottom: 0; }
.ord-block__title {
  font-size: .88rem;
  font-weight: 800;
  color: #0b1220;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.ord-block__title .num-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #6b8c55;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ord-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ord-list li {
  font-size: .83rem;
  color: var(--dg-text);
  line-height: 1.65;
  padding: 6px 10px 6px 12px;
  border-left: 2px solid #e2e8f0;
}
.ord-list li:hover {
  border-left-color: #8ca078;
  background: rgba(140,176,120,.06);
}
.ord-divider {
  border: none;
  border-top: 1px dashed rgba(2,6,23,.1);
  margin: 20px 0;
}
.ord-sub-wrap {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}
.ord-sub-wrap .sub-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--dg-text-sub);
  margin-bottom: 8px;
}
.ord-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ord-sub-list li {
  font-size: .82rem;
  color: var(--dg-text-sub);
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.ord-sub-list li::before {
  content: attr(data-no) ".";
  color: var(--dg-text-muted);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 18px;
}


/* ══════════════════════════════════════
   반응형 — 큰 순서대로 통합
══════════════════════════════════════ */

/* ── 900px: 관람안내 4열 → 2열 ── */
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px: 요금표 내부 스크롤 ── */
@media (max-width: 768px) {
  .fee-scroll .fee-table {
    min-width: 580px;
    width: 580px;
  }
}

/* ── 640px: 전체 모바일 대응 ── */
@media (max-width: 640px) {
  /* 섹션 카드 */
  .sec-card__head {
    border-radius: 16px 16px 0 0;
    padding: 12px 14px;
    gap: 8px;
  }
  .sec-card__head .sc-title { font-size: .88rem; }
  .sec-card__head .sc-sub { display: none; }
  .sec-card__head .sc-toggle {
    width: 26px; height: 26px;
    font-size: .65rem;
    border-radius: 6px;
  }

  .sec-card__body { padding: 14px 10px; }
  .sec-card__body.p-0 { padding: 0; }

  /* 운영시간 — 1열, 가로 배치 유지 */
  .info-grid { grid-template-columns: 1fr; }
  .info-card { padding: 14px 12px; }
  .info-row {
    flex-direction: row;
    gap: 6px;
  }
  .info-row .lbl {
    min-width: 60px;
    font-size: .78rem;
  }
  .info-row .val { font-size: .82rem; }

  /* 관람유의사항 — 2열 유지, 축소 */
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .guide-item {
    padding: 12px;
    gap: 8px;
  }
  .guide-item__icon {
    width: 32px; height: 32px;
    font-size: .9rem;
    border-radius: 8px;
  }
  .guide-item__body p {
    font-size: .82rem;
    line-height: 1.5;
  }
  .guide-item__body small { font-size: .75rem; }
  .guide-num { font-size: .68rem; }

  /* 요금표 */
  .fee-table { font-size: .75rem; }
  .fee-table th,
  .fee-table td { padding: 8px 6px; word-break: keep-all; }
  .fee-table td.td-cat { padding-left: 8px; font-size: .78rem; }
  .fee-table td.td-amt,
  .fee-table td.td-free { font-size: .78rem; }

  /* 주의사항 */
  .notice-box { padding: 12px 10px; }
  .notice-list li { font-size: .78rem; }

  /* 감면 조례 */
  .ord-block__title { font-size: .82rem; }
  .ord-list li { font-size: .78rem; padding: 5px 6px 5px 10px; }
  .ord-sub-wrap { padding: 10px; }
  .ord-sub-wrap .sub-title { font-size: .78rem; }
  .ord-sub-list li { font-size: .78rem; }
}

/* ── 480px: 관람안내 1열 ── */
@media (max-width: 480px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-item {
    flex-direction: row;
    align-items: center;
  }
  .guide-item__body p { font-size: .92rem; }
  .guide-item__body small { font-size: .8rem; }
  .guide-num { font-size: .72rem; }
}