/* portal.css — theme Public (Cổng công viên). Chỉnh theo Figma design. */

/* ── Base cmc-* styles (dùng trong portal, không tải theme.css admin) ── */
.cmc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; border: 1px solid var(--border-color);
  background: white; color: var(--text-main); font-size: 14px; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: var(--transition); line-height: 1;
}
.cmc-btn:hover { background: var(--bg-light); }
.cmc-btn--primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.cmc-btn--primary:hover { background: var(--primary-hover); }
.cmc-btn--sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.cmc-btn--outline { background: transparent; border-color: var(--primary-color); color: var(--primary-color); font-weight: 600; }
.cmc-btn--outline:hover { background: var(--primary-color); color: white; }
.cmc-btn[disabled] { opacity: .55; cursor: not-allowed; }

.cmc-input, .cmc-select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-color);
  border-radius: 8px; font-size: 14px; background: #fff; box-sizing: border-box;
}
.cmc-input:focus, .cmc-select:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(20,53,27,0.1);
}
.cmc-field { margin-bottom: 14px; }
.cmc-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.cmc-muted { color: var(--text-muted); }
.cmc-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--card-shadow); }
.cmc-card__body { padding: 20px 24px; }
.cmc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--c, #6b7280); background: color-mix(in srgb, var(--c, #6b7280) 14%, #fff);
}
.cmc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #6b7280); flex-shrink: 0; }
.cmc-dl { display: grid; gap: 8px; font-size: 14px; }
.cmc-dl > div { display: flex; gap: 12px; }
.cmc-dl > div span { color: var(--text-muted); min-width: 120px; flex-shrink: 0; font-size: 13px; }
.cmc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 16px; }
.cmc-tab {
  border: none; background: transparent; padding: 10px 16px; cursor: pointer;
  font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: var(--transition);
}
.cmc-tab.is-active { color: var(--primary-color); border-bottom-color: var(--accent-color); font-weight: 600; }
.cmc-mapscreen__h { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; }
.cmc-toast-host { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.cmc-toast { min-width: 240px; max-width: 380px; padding: 12px 14px; border-radius: 10px; color: #fff; font-size: 14px; opacity: 1; transition: opacity .3s; }
.cmc-toast.is-leaving { opacity: 0; }
.cmc-toast--info { background: #2563eb; }
.cmc-toast--success { background: #16a34a; }
.cmc-toast--error { background: #dc2626; }
.cmc-skip-link {
  position: absolute; left: -9999px; top: 4px; width: 1px; height: 1px; overflow: hidden;
  background: var(--primary-color); color: #fff; padding: 8px 16px; border-radius: 4px;
  font-weight: 600; text-decoration: none; z-index: 9999;
}
.cmc-skip-link:focus { position: fixed; left: 16px; width: auto; height: auto; overflow: visible; }

/* ── Hero — full-width, no border-radius ── */
.pt-hero {
  position: relative;
  margin: 0; border-radius: 0;
  min-height: 580px; color: #fff;
  display: flex; align-items: center;
  overflow: hidden;
}
.pt-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: opacity 1.2s ease; opacity: 0;
}
.pt-hero__bg.is-active { opacity: 1; }
.pt-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,43,21,0.82) 0%, rgba(6,61,30,0.65) 60%, rgba(8,90,43,0.55) 100%);
}
.pt-hero__in {
  position: relative; z-index: 1;
  padding-top: 80px; padding-bottom: 64px;
  max-width: 680px;
}
.pt-hero-badge {
  display: inline-block; padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 20px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.8); margin-bottom: 20px;
}
.pt-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 56px); font-weight: 700;
  color: white; margin: 0 0 20px; line-height: 1.15;
}
.pt-hero p {
  font-size: clamp(15px, 2vw, 18px); line-height: 1.75;
  color: rgba(255,255,255,0.88); margin: 0 0 28px; max-width: 560px;
}
.pt-hero__dots { display: flex; gap: 8px; margin-top: 28px; }
.pt-hero__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5); background: transparent;
  cursor: pointer; padding: 0; transition: background .3s, border-color .3s;
}
.pt-hero__dot.is-active { background: white; border-color: white; }

/* Hero buttons */
.pt-btn-hero { padding: 12px 22px; font-size: 15px; font-weight: 600; }
.pt-btn-ghost {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.35);
  color: white; padding: 12px 22px; font-size: 15px; font-weight: 500;
}
.pt-btn-ghost:hover { background: rgba(255,255,255,0.22); color: white; }
.pt-btn-outline {
  background: transparent; border: 2px solid var(--primary-color);
  color: var(--primary-color); font-weight: 600; padding: 10px 20px;
}
.pt-btn-outline:hover { background: var(--primary-color); color: white; }
.pt-btn-outline-white {
  background: transparent; border: 2px solid rgba(255,255,255,0.5);
  color: white; font-weight: 600;
}
.pt-btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── Stats — dark green bar ── */
.pt-stats {
  background: linear-gradient(135deg, #052B15 0%, #063D1E 60%, #085A2B 100%);
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center;
  border-bottom: 4px solid var(--accent-color);
  margin: 0; border-radius: 0;
}
.pt-stat {
  padding: 36px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 6px; background: transparent;
}
.pt-stat:last-child { border-right: none; }
.pt-stat__num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 700;
  color: var(--accent-color); line-height: 1;
}
.pt-stat__lbl {
  font-size: 12px; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ── Sections ── */
.pt-section { padding: 72px 0; }
.pt-section--alt {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pt-h2 { font-size: 26px; margin: 0 0 16px; color: var(--primary-color); }

/* Section header */
.pt-section-hdr { margin-bottom: 36px; }
.pt-section-hdr h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px); color: var(--primary-color);
  margin: 8px 0 0; line-height: 1.3;
}
.pt-section-hdr--row {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 12px;
}
.pt-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-color); margin-bottom: 8px;
}
.pt-section-desc { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin: 12px 0 0; max-width: 620px; }
.pt-see-all {
  color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
.pt-see-all:hover { color: var(--accent-color); }

/* ── Map legend ── */
.pt-map-legend {
  display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
  font-size: 13px; color: var(--text-muted);
}
.pt-legend-item { display: flex; align-items: center; gap: 8px; }
.pt-legend-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.pt-legend-dot--green { background: #22c55e; }
.pt-legend-dot--gray { background: #9ca3af; }
.pt-legend-dot--amber { background: #f59e0b; }

/* Overview cards */
.pt-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 4px; }
.pt-ov {
  background: white; border: 1px solid var(--border-color);
  border-radius: 14px; padding: 20px; box-shadow: var(--card-shadow);
}
.pt-ov__hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pt-ov__hdr b { font-size: 15px; color: var(--primary-color); }
.pt-ov-link { font-size: 13px; color: var(--primary-color); text-decoration: none; font-weight: 500; }
.pt-ov-link:hover { color: var(--accent-color); }
.pt-ov__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; text-align: center; }
.pt-ov__stat { padding: 12px 8px; border-radius: 10px; }
.pt-ov__stat--green { background: #f0fdf4; }
.pt-ov__stat--gray { background: #f9fafb; }
.pt-ov__stat--amber { background: #fffbeb; }
.pt-ov__num { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.pt-ov__stat--green .pt-ov__num { color: #16a34a; }
.pt-ov__stat--gray .pt-ov__num { color: #6b7280; }
.pt-ov__stat--amber .pt-ov__num { color: #d97706; }
.pt-ov__lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ── Service tabs ── */
.pt-svc-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border-color); margin-bottom: 32px;
}
.pt-svc-tab {
  border: none; background: transparent; padding: 12px 24px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: var(--transition);
}
.pt-svc-tab.is-active { color: var(--primary-color); border-bottom-color: var(--accent-color); font-weight: 600; }
.pt-svc-tab:hover:not(.is-active) { color: var(--primary-color); }

/* Service grid + cards */
.pt-svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pt-svc-card {
  background: white; border: 1px solid var(--border-color);
  border-radius: 16px; padding: 28px; display: flex; flex-direction: column;
  gap: 12px; box-shadow: var(--card-shadow); transition: var(--transition);
}
.pt-svc-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); border-color: rgba(20,53,27,0.15); }
.pt-svc-card__head { display: flex; align-items: center; gap: 14px; }
.pt-svc-card__head h3 { font-size: 17px; font-weight: 700; color: var(--primary-color); margin: 0; }
.pt-svc-ic {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #052B15, #085A2B);
  display: flex; align-items: center; justify-content: center; color: white;
}
.pt-svc-ic svg { width: 20px; height: 20px; }
.pt-svc-price { font-size: 16px; font-weight: 700; color: var(--primary-color); }
.pt-svc-duration { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.pt-svc-feats {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px; flex-grow: 1;
}
.pt-svc-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-muted); }
.pt-svc-feat-ic { width: 15px; height: 15px; color: #22c55e; flex-shrink: 0; margin-top: 1px; }
.pt-svc-link {
  color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 14px;
  margin-top: auto; align-self: flex-start;
}
.pt-svc-link:hover { color: var(--accent-color); }

/* ── News 2×2 grid ── */
.pt-news-2col {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 20px;
}
.pt-newscard2 {
  background: white; border: 1px solid var(--border-color);
  border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--card-shadow); transition: var(--transition);
}
.pt-newscard2:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.pt-newscard2__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-newscard2__date { font-size: 12px; color: var(--text-muted); }
.pt-newscard2 h4 { font-size: 16px; font-weight: 700; color: var(--primary-color); margin: 0; line-height: 1.4; }
.pt-newscard2 p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.pt-read-more {
  color: var(--primary-color); text-decoration: none; font-size: 13px; font-weight: 600;
  align-self: flex-start; margin-top: auto;
}
.pt-read-more:hover { color: var(--accent-color); }

/* ── CTA banner ── */
.pt-cta {
  background: linear-gradient(135deg, #052B15 0%, #063D1E 70%, #085A2B 100%);
  color: white; padding: 72px 0;
}
.pt-cta__h {
  font-family: 'Playfair Display', serif;
  color: white; font-size: clamp(22px, 3vw, 34px); margin: 0 0 12px;
}
.pt-cta__p { font-size: 16px; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

/* ── Remaining sections: tracuu, dichvu, tintuc, tuongniem, lienhe ── */
.pt-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pt-results { display: grid; grid-template-columns: 360px 1fr; gap: 16px; margin-top: 14px; height: 480px; }
.pt-results__list { display: grid; gap: 8px; align-content: start; overflow-y: auto; background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.pt-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; background: white; }
.pt-result.is-sel { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(20,53,27,0.12); }
.pt-results__map { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.pt-map { width: 100%; height: 100%; }
.pt-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pt-memorial { max-width: 480px; margin: 20px auto; text-align: center; background: white; border: 2px solid var(--accent-color); border-radius: 16px; padding: 40px; box-shadow: 0 8px 32px rgba(197,160,89,0.1); }
.pt-memorial__ic { color: var(--accent-color); width: 48px; height: 48px; }
.pt-memorial h3 { font-size: 26px; margin: 12px 0 6px; }
.pt-memorial__years { color: var(--accent-color); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.pt-memorial__msg { font-style: italic; color: var(--text-muted); }
.pt-ok { color: #16a34a; font-weight: 600; }

/* Old cards (dịch vụ page) */
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pt-card { background: white; border: 1px solid var(--border-color); border-radius: 14px; padding: 20px; box-shadow: var(--card-shadow); }
.pt-card__ic { color: var(--accent-color); width: 28px; height: 28px; margin-bottom: 12px; }
.pt-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--primary-color); }
.pt-price { color: var(--primary-color); font-weight: 700; font-size: 14px; }

/* News listing (tintuc page) */
.pt-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pt-newscard { background: white; border: 1px solid var(--border-color); border-radius: 14px; padding: 18px; cursor: pointer; transition: var(--transition); }
.pt-newscard:hover { box-shadow: var(--card-shadow-hover); }
.pt-newscard h4 { margin: 8px 0 6px; font-size: 16px; color: var(--primary-color); }
.pt-newscard p { font-size: 13px; margin: 0 0 8px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pt-stats { grid-template-columns: repeat(2,1fr); }
  .pt-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .pt-stat:nth-child(2) { border-right: none; }
  .pt-svc-grid { grid-template-columns: 1fr 1fr; }
  .pt-news-2col { grid-template-columns: 1fr; }
  .pt-results { grid-template-columns: 1fr; height: auto; }
  .pt-results__map { height: 360px; }
  .pt-2col { grid-template-columns: 1fr; }
  .pt-overview { grid-template-columns: 1fr; }
  .pt-section-hdr--row { flex-direction: column; align-items: flex-start; }
  .pt-section { padding: 52px 0; }
}
@media (max-width: 620px) {
  .pt-hero { min-height: 440px; }
  .pt-hero__in { padding-top: 60px; padding-bottom: 48px; }
  .pt-stats { grid-template-columns: repeat(2,1fr); }
  .pt-stat { padding: 24px 12px; }
  .pt-svc-grid { grid-template-columns: 1fr; }
  .pt-svc-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pt-svc-tab { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
  .pt-news-2col { grid-template-columns: 1fr; }
  .pt-search { flex-direction: column; }
  .pt-map { height: 300px; }
  .pt-section { padding: 40px 0; }
  .pt-cta { padding: 48px 0; }
}

/* ═══════════════════════════════════════════════════════════
   BAN-DO PAGE  (bd-*)
   ═══════════════════════════════════════════════════════════ */

/* Page shell — full-viewport 2-panel layout */
.bd-page {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
  background: #f0f4f1;
  position: relative;
}

/* ── SIDEBAR (dark green) ── */
.bd-sidebar {
  flex-shrink: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.bd-sidebar__top {
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bd-sidebar__brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);           /* gold */
  margin-bottom: 8px;
}
.bd-sidebar__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}
.bd-sidebar__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
}
.bd-sidebar__section {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bd-sidebar__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

/* Zone list */
.bd-zone-list { display: flex; flex-direction: column; gap: 2px; }
.bd-zone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}
.bd-zone-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bd-zone-item.is-active {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
}
.bd-zone-frac {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.bd-zone-item.is-active .bd-zone-frac { color: rgba(255,255,255,0.65); }

/* Status filter */
.bd-status-filter-group { display: flex; flex-direction: column; gap: 3px; }
.bd-sf-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid transparent;
  background: none; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7); cursor: pointer; width: 100%;
  transition: var(--transition);
}
.bd-sf-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.bd-sf-btn.is-active {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
}
.bd-sf-btn::before {
  content: ''; display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.25);
}
.bd-sf-btn--green::before { background: #4ade80; }
.bd-sf-btn--gray::before  { background: #9ca3af; }
.bd-sf-btn--amber::before { background: var(--accent-color); }

/* Zone stats block — bottom of sidebar */
.bd-sidebar__stats {
  margin-top: auto;
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bd-sidebar__stats .bd-sidebar__label { margin-bottom: 12px; }
.bd-sstat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.bd-sstat-lbl { color: rgba(255,255,255,0.6); }
.bd-sstat-num { font-size: 15px; font-weight: 800; }
.bd-sstat-num--green { color: #4ade80; }
.bd-sstat-num--gray  { color: #9ca3af; }
.bd-sstat-num--amber { color: var(--accent-color); }

/* Grid header */
.bd-grid-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
  gap: 12px;
  flex-shrink: 0;
}
.bd-grid-title {
  font-size: 15px; font-weight: 700;
  color: var(--primary-color);
  display: block; margin-bottom: 2px;
}
.bd-grid-hint {
  font-size: 12px; color: var(--text-muted);
}
.bd-view-tabs { display: flex; gap: 4px; }
.bd-view-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #fff; font-size: 12px; font-weight: 500;
  color: var(--text-color); cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.bd-view-tab i { width: 14px; height: 14px; }
.bd-view-tab:hover { background: var(--bg-light); }
.bd-view-tab.is-active {
  background: var(--primary-color); color: #fff;
  border-color: var(--primary-color);
}

/* Content area */
.bd-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── GRAVE GRID TABLE ── */
.bd-grid-scroll {
  flex: 1; overflow: auto; padding: 20px 20px 10px;
}
.bd-grid-table {
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
}
.bd-grid-corner,
.bd-col-hdr,
.bd-row-hdr {
  width: 40px; height: 40px;
  text-align: center; vertical-align: middle;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  user-select: none;
}
.bd-grid-corner { width: 28px; }
.bd-row-hdr { width: 28px; font-weight: 700; color: var(--primary-color); }

.bd-cell-td { padding: 0; }
.bd-cell {
  width: 40px; height: 40px;
  border: none; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.bd-cell__lbl { pointer-events: none; }

/* Cell status colors */
.bd-cell--trong      { background: #d1fae5; color: #065f46; }
.bd-cell--da_su_dung { background: #e5e7eb; color: #6b7280; }
.bd-cell--dat_truoc  { background: #fef3c7; color: #92400e; }

.bd-cell--trong:hover      { background: #a7f3d0; transform: scale(1.08); box-shadow: 0 2px 8px rgba(16,185,129,0.3); }
.bd-cell--da_su_dung:hover { background: #d1d5db; transform: scale(1.08); }
.bd-cell--dat_truoc:hover  { background: #fde68a; transform: scale(1.08); box-shadow: 0 2px 8px rgba(197,160,89,0.3); }

.bd-cell--dim { opacity: 0.2; }
.bd-cell--sel {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 20%, transparent);
  transform: scale(1.1);
  z-index: 1;
}

/* Legend */
.bd-legend {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 20px 16px;
  flex-shrink: 0;
}
.bd-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
.bd-legend-dot {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
}
.bd-legend-dot--green { background: #d1fae5; border: 1px solid #6ee7b7; }
.bd-legend-dot--gray  { background: #e5e7eb; border: 1px solid #d1d5db; }
.bd-legend-dot--amber { background: #fef3c7; border: 1px solid #fde68a; }

/* ── OPENGL MAP VIEW ── */
.bd-ol-map {
  flex: 1; min-height: 420px;
  margin: 16px 20px 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* ── SEARCH RESULTS ── */
.bd-results { border-top: 1px solid var(--border-color); background: #fff; }
.bd-results__hdr {
  padding: 12px 24px;
  font-size: 13px; font-weight: 600;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}
.bd-results__list { display: flex; flex-direction: column; }
.bd-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}
.bd-result-row:hover { background: var(--bg-light); }
.bd-result-row.is-sel { background: color-mix(in srgb, var(--primary-color) 6%, transparent); }
.bd-btn-route {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 7px;
  background: var(--primary-color); color: #fff;
  border: none; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.bd-btn-route:hover { background: var(--primary-hover); }
.bd-link-memorial { font-size: 12px; color: var(--primary-color); text-decoration: underline; white-space: nowrap; }
.bd-link-memorial:hover { color: var(--accent-color); }

/* ── DETAIL DRAWER ── */
.bd-drawer {
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 100%;
  background: #fff;
  border-left: 1px solid var(--border-color);
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  z-index: 50;
}
.bd-drawer.is-open { transform: translateX(0); }
.bd-drawer__hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.bd-drawer__title {
  font-size: 15px; font-weight: 700;
  color: var(--primary-color); margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
}
.bd-drawer__close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  display: flex; align-items: center; border-radius: 6px;
  transition: background 0.15s;
}
.bd-drawer__close:hover { background: var(--bg-light); color: var(--text-color); }
.bd-drawer__close i { width: 16px; height: 16px; }
.bd-drawer__body {
  flex: 1; overflow-y: auto;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Info rows */
.bd-info-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; gap: 12px;
}
.bd-info-lbl { color: var(--text-muted); flex-shrink: 0; }

/* Status pills */
.bd-status-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.bd-status-pill--trong      { background: #d1fae5; color: #065f46; }
.bd-status-pill--da_su_dung { background: #e5e7eb; color: #6b7280; }
.bd-status-pill--dat_truoc  { background: #fef3c7; color: #92400e; }

/* Drawer action area */
.bd-drawer__actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.bd-action-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.bd-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 9px;
  background: var(--primary-color); color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
}
.bd-btn-primary:hover { background: var(--primary-hover); }
.bd-btn-primary i { width: 14px; height: 14px; }
.bd-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px;
  border: 1.5px solid var(--primary-color); color: var(--primary-color);
  font-size: 13px; font-weight: 600;
  text-decoration: none; background: none; transition: var(--transition);
}
.bd-btn-outline:hover { background: color-mix(in srgb, var(--primary-color) 6%, transparent); }
.bd-btn-outline i { width: 14px; height: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bd-sidebar { width: 220px; }
  .bd-drawer  { width: 260px; }
  .bd-cell    { width: 34px; height: 34px; font-size: 10px; }
  .bd-col-hdr, .bd-grid-corner { width: 34px; height: 34px; }
}
@media (max-width: 680px) {
  .bd-page { flex-direction: column; height: auto; overflow: visible; }
  .bd-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); overflow: visible; }
  .bd-main { overflow: visible; }
  .bd-drawer { position: fixed; top: 0; right: 0; height: 100dvh; z-index: 200; }
  .bd-zone-stats { grid-template-columns: repeat(3,1fr); }
}
