/* ==========================================================================
   Đi lễ đền chùa (/den-chua/) — build-denchua.js. Tiền tố dc- để không đụng style cũ.
   Màu loại (chấm, ghim) như app: chùa vàng nghệ, đền đỏ son, đình nâu gỗ, phủ tím, miếu xanh rêu.
   ========================================================================== */

.dc-main { min-height: calc(100vh - 200px); padding: 20px 0 48px; background: #fbf7f1; color: #1f2937; }
.dc-container { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.dc-an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Menu ☰: style.css ẩn .nav dưới 768px; bấm nút thì mở cột menu. */
@media (max-width: 768px) {
  .nav.dc-nav-mo { display: flex; flex-direction: column; position: absolute; top: 60px; right: 0; background: var(--green-dark); padding: 8px; border-radius: 0 0 8px 8px; z-index: 200; }
}

.dc-breadcrumb { margin-bottom: 14px; font-size: 13px; color: #6b7280; }
.dc-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.dc-breadcrumb li { display: flex; align-items: center; }
.dc-breadcrumb li + li::before { content: '›'; margin: 0 8px; color: #d1d5db; }
.dc-breadcrumb a { color: #4b5563; }
.dc-breadcrumb a:hover { color: #9f1d1d; text-decoration: underline; }
.dc-breadcrumb [aria-current="page"] { color: #111827; font-weight: 500; }

.dc-h1 { font-size: 28px; line-height: 1.25; font-weight: 800; color: #111827; margin: 0 0 8px; }
.dc-intro { font-size: 15px; line-height: 1.7; color: #4b5563; margin: 0 0 18px; }
.dc-intro strong { color: #111827; }
.dc-intro a, .dc-khoi a, .dc-nguon a, .dc-tim-trong a { color: #9f1d1d; }
.dc-khoi { margin-bottom: 8px; }
.dc-khoi > h2, .dc-the > h2 { font-size: 20px; font-weight: 800; color: #111827; margin: 26px 0 10px; }
.dc-the > h2 { margin-top: 0; }
.dc-giaithich { font-size: 14px; line-height: 1.6; color: #6b7280; margin: 0 0 10px; }
.dc-nho { font-size: 12.5px; line-height: 1.55; color: #6b7280; margin: 10px 0 0; }
.dc-nguon { font-size: 12.5px; line-height: 1.6; color: #6b7280; margin: 18px 0 0; }
.dc-xem-them { font-weight: 600; color: #9f1d1d; }
.dc-cham { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; flex: 0 0 auto; }

.dc-the { background: #fff; border-radius: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.07); padding: 16px 18px; margin: 18px 0; }

/* ---------- Nút ---------- */
.dc-nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 12px; background: #9f1d1d; color: #fff; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.dc-nut:hover { background: #7f1414; color: #fff; }
.dc-nut-phu { background: #fff4ef; color: #9f1d1d; border: 1px solid #f3cfc4; }
.dc-nut-phu:hover { background: #ffe9e0; color: #7f1414; }
.dc-nut-hang { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.dc-nut-hang [hidden] { display: none; }

/* ---------- Trang nơi đi lễ ---------- */
.dc-phu { font-size: 15px; color: #4b5563; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.dc-ghichu { color: #6b7280; }
/* Ảnh đầu trang (Commons): 16:10, cao tối đa 300px, cắt giữa; ghi công ngay dưới ảnh, thẳng mép các thẻ. */
.dc-anh { margin: 0 0 14px; }
.dc-anh[hidden] { display: none; }
.dc-anh img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 300px; object-fit: cover; border-radius: 12px; background: #efe6dc; }
.dc-anh figcaption { font-size: 12px; line-height: 1.5; color: #6b7280; margin-top: 5px; overflow-wrap: anywhere; }
.dc-anh figcaption a { color: #6b7280; text-decoration: underline; }
.dc-xep-hang { display: inline-block; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #8a5a00; background: #fdf3dc; border: 1px solid #ecd49c; }
.dc-wiki { font-size: 14.5px; margin: 6px 0 0; }
.dc-wiki a { color: #9f1d1d; font-weight: 600; }
.dc-bai p { font-size: 16px; line-height: 1.8; color: #1f2937; margin: 0 0 12px; }
.dc-hoi { border-left: 4px solid #c72929; }
.dc-hoi-ds { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dc-hoi-ten { display: block; font-size: 16px; color: #111827; }
.dc-hoi-goc { display: block; font-size: 13px; color: #6b7280; margin-top: 2px; }
.dc-hoi-nam { display: block; font-size: 15px; line-height: 1.6; color: #1f2937; margin-top: 4px; }
.dc-con { color: #9f1d1d; font-weight: 600; }
.dc-ds-link { margin: 0; padding-left: 20px; line-height: 1.9; }
.dc-h3 { font-size: 15px; font-weight: 700; color: #6b7280; margin: 12px 0 4px; }
.dc-ds-noi { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 24px; }
.dc-ds-noi li { break-inside: avoid; padding: 4px 0; line-height: 1.45; }
.dc-ds-noi li[hidden] { display: none; }
.dc-ds-noi small { color: #6b7280; }

/* ---------- Trang tỉnh ---------- */
.dc-luoi-noi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.dc-the-noi { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.07); padding: 10px 12px; display: flex; gap: 12px; align-items: flex-start; }
.dc-the-chu { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dc-the-chu > a { color: #111827; }
.dc-the-chu > a:hover b { color: #9f1d1d; text-decoration: underline; }
.dc-o-anh { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #f3ece4; background: color-mix(in srgb, var(--mau) 13%, #fff); }
.dc-o-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-o-anh { display: flex; align-items: center; justify-content: center; }
.dc-o-anh:empty::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--mau); opacity: .75; }
.dc-phu-nho { font-size: 13px; color: #6b7280; }
.dc-phu-hoi { font-size: 13px; color: #9f1d1d; }
.dc-phu-hoi small { color: #6b7280; }
.dc-nhom { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 8px; }
.dc-nhom > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: #111827; }
.dc-nhom > summary small { font-weight: 400; color: #6b7280; }
.dc-ds-b { list-style: none; margin: 0; padding: 0 14px 10px; columns: 2 260px; column-gap: 24px; font-size: 14px; }
.dc-ds-b li { break-inside: avoid; padding: 3px 0; line-height: 1.45; }
.dc-ds-b a { color: #1f2937; }
.dc-ds-b a:hover { color: #9f1d1d; text-decoration: underline; }
.dc-ds-b small { color: #6b7280; }
.dc-ds-b .dc-ghim { text-decoration: none; font-size: 12px; }
.dc-ds-tinh { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dc-ds-tinh a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid #eadfd3; color: #374151; font-size: 13.5px; text-decoration: none; }
.dc-ds-tinh a:hover, .dc-ds-tinh a[aria-current="page"] { background: #9f1d1d; border-color: #9f1d1d; color: #fff; }

/* ---------- Trang chính ---------- */
.dc-sap { border-left: 4px solid #c72929; }
.dc-sap-ds { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dc-sap-ds li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid #f3ece4; }
.dc-sap-ds li:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-sap-ds a { font-weight: 700; color: #111827; }
.dc-sap-ds small { grid-column: 1; font-size: 13px; color: #6b7280; }
.dc-sap-ds .dc-con { grid-column: 2; grid-row: 1 / span 2; font-size: 13.5px; white-space: nowrap; }
.dc-cong-cu { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 14px; }
.dc-tim { flex: 1 1 260px; min-width: 0; }
.dc-tim input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 14px; border: 1.5px solid #e5d9c8; border-radius: 12px; background: #fffdf9; color: #111827; }
.dc-tim input:focus { outline: none; border-color: #9f1d1d; box-shadow: 0 0 0 3px rgba(159,29,29,.13); }
.dc-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-chip-nut { font: inherit; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #eadfd3; color: #374151; cursor: pointer; display: inline-flex; align-items: center; }
.dc-chip-nut[aria-pressed="true"] { background: #9f1d1d; border-color: #9f1d1d; color: #fff; }
.dc-tim-trong { font-size: 14px; color: #6b7280; }
.dc-tinh-khoi { padding: 10px 0 6px; border-bottom: 1px solid #efe6dc; }
.dc-tinh-khoi[hidden] { display: none; }
.dc-tinh-khoi h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.dc-tinh-khoi h3 a { color: #111827; }
.dc-tinh-khoi h3 small { font-size: 13px; font-weight: 400; color: #6b7280; margin-left: 4px; }
.dc-bang-cuon { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.dc-bang { width: 100%; border-collapse: collapse; font-size: 14px; }
.dc-bang th, .dc-bang td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #f3ece4; vertical-align: top; }
.dc-bang th { background: #fbf3ec; font-weight: 700; color: #374151; white-space: nowrap; }
.dc-bang td:first-child { white-space: nowrap; font-weight: 600; }
.dc-bang a { color: #9f1d1d; font-weight: 600; }
.dc-bang small { color: #6b7280; }

/* ---------- Bản đồ ---------- */
.dc-ban-do { height: min(72vh, 640px); min-height: 380px; border-radius: 16px; overflow: hidden; background: #eef0ea; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.dc-ban-do .bd-loi { padding: 24px; color: #6b7280; font-size: 14px; }
.dc-chi-a { font-size: 14px; color: #374151; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.dc-gps-bao { font-size: 13px; color: #b45309; margin: 0 0 8px; }
.dc-gps-bao:empty { display: none; }
.dc-pop { display: flex; flex-direction: column; gap: 4px; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2937; padding-right: 10px; }
.dc-pop b { font-size: 15px; }
.dc-pop b a { color: #9f1d1d; }
.dc-pop span { font-size: 13px; color: #6b7280; }
.dc-pop-nut { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.dc-pop-nut a { color: #9f1d1d; font-weight: 600; font-size: 13px; }

/* ---------- App ---------- */
.dc-app { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #7f1d1d, #9f1d1d); color: #fff; border-radius: 16px; padding: 16px 18px; margin: 26px 0 8px; }
.dc-app-icon { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; background: #fff; padding: 6px; box-sizing: border-box; }
.dc-app-chu { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; }
.dc-app-chu b { font-size: 16px; }
.dc-app-chu span { font-size: 13.5px; line-height: 1.5; opacity: .92; }
.dc-app-nut { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .dc-h1 { font-size: 23px; }
  .dc-the { padding: 14px; }
  .dc-bai p { font-size: 15.5px; }
  .dc-nut { padding: 9px 13px; }
  .dc-bang th, .dc-bang td { padding: 8px 9px; font-size: 13.5px; }
}
