/* DAKRUCO TRACE - trang tra cứu truy xuất nguồn gốc pallet */

:root {
  --dt-bg: #EEF2EE;
  --dt-green: #1B7A45;
  --dt-green-dark: #0E5730;
  --dt-green-soft: #EAF4EC;
  --dt-line: #E1E7E2;
  --dt-line-soft: #EDF1EE;
  --dt-ink: #111C16;
  --dt-ink-soft: #28352E;
  --dt-text: #43514A;
  --dt-muted: #8A9A90;
  --dt-muted2: #7C8E82;
  --dt-border-btn: #D5DED8;
  --dt-conn-grey: #CFE0D5;
  --dt-conn-green: #2E9E5B;
  --dt-gold: #C9A227;
}

* { box-sizing: border-box; }

body.trace-body {
  margin: 0;
  background: var(--dt-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1B2620;
}
.trace-body a { color: var(--dt-green); text-decoration: none; }
.trace-body a:hover { color: var(--dt-green-dark); text-decoration: underline; }
.trace-body table { border-collapse: collapse; width: 100%; }
.trace-body button { font-family: inherit; }

@keyframes omDash { to { stroke-dashoffset: -32; } }
@keyframes omRun { to { background-position: -16px 0, 0 0; } }
@keyframes omFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes omSlide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.dash-anim { animation: omDash 1.2s linear infinite; }

.page { min-height: 100vh; background: var(--dt-bg); padding: 26px 20px 40px; color: #1B2620; }
.page__inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.card-shadow { box-shadow: 0 1px 2px rgba(27, 38, 32, .04); }

/* ---------- Bilingual (VI / EN) ---------- */
.bi { display: inline-flex; align-items: baseline; column-gap: 6px; row-gap: 2px; flex-wrap: wrap; }
.bi__en { font-weight: 500; opacity: .68; }
.bi__en::before { content: "/ "; opacity: .8; }
.bi--stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bi--stack.is-center { align-items: center; }
.bi--stack .bi__en { font-size: .78em; font-weight: 600; }
.bi--stack .bi__en::before { content: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: #fff; border: 1px solid var(--dt-line); border-radius: 16px; padding: 16px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 1px 2px rgba(27, 38, 32, .04);
}
.topbar__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.topbar__brand-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--dt-green-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.topbar__brand-text { display: flex; flex-direction: column; gap: 1px; }
.topbar__brand-name { font-size: 19px; font-weight: 800; letter-spacing: .06em; color: var(--dt-green); line-height: 1.1; }
.topbar__brand-sub { font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--dt-muted); text-transform: uppercase; }
.topbar__datetime { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--dt-text); }

.btn-outline {
  border: 1px solid var(--dt-border-btn); background: #fff; border-radius: 10px; padding: 10px 15px;
  font-size: 13px; font-weight: 600; color: var(--dt-ink-soft); cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: border-color .22s ease, color .22s ease, background-color .22s ease;
}
.btn-outline:hover { border-color: var(--dt-green); color: var(--dt-green); background: #F6FAF7; }

.icon-btn {
  border: 0; background: #EFF2EF; color: var(--dt-text); border-radius: 9px; width: 34px; height: 34px; font-size: 14px; cursor: pointer;
}
.icon-btn--sm { border-radius: 7px; width: 26px; height: 26px; font-size: 12px; background: #E4EAE6; }

/* ---------- Empty / error state ---------- */
.empty-state {
  background: #fff; border: 1px solid var(--dt-line); border-radius: 18px;
  padding: 56px 28px; box-shadow: 0 1px 2px rgba(27, 38, 32, .04);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.empty-state[hidden] { display: none; }
.empty-state__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--dt-line-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.empty-state__title { font-size: 18px; font-weight: 700; color: var(--dt-ink); }
.empty-state__desc { font-size: 14px; color: var(--dt-text); max-width: 420px; line-height: 1.5; }

/* ---------- Pallet card ---------- */
.pallet-card { background: #fff; border: 1px solid var(--dt-line); border-radius: 18px; padding: 26px 28px 30px; box-shadow: 0 1px 2px rgba(27, 38, 32, .04); }
.pallet-card__top { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.pallet-card__id { display: flex; flex-direction: column; gap: 12px; margin-right: auto; min-width: 0; }
.pallet-card__label { font-size: 13px; color: var(--dt-muted2); }
.pallet-card__code-row { display: flex; align-items: center; gap: 12px; }
.pallet-card__code { font-size: 38px; font-weight: 800; letter-spacing: -.01em; color: var(--dt-ink); line-height: 1; }
.pallet-card__edit { cursor: pointer; flex: 0 0 auto; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--dt-green-soft); color: var(--dt-green);
  border-radius: 999px; padding: 8px 15px; font-size: 12px; font-weight: 700; letter-spacing: .1em; width: fit-content;
}
.pallet-card__qr { display: flex; align-items: flex-start; gap: 16px; }
.qr-box { border: 1px solid var(--dt-line); border-radius: 12px; padding: 9px; background: #fff; }
.qr-box img { width: 92px; height: 92px; display: block; }
.qr-info { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.qr-info span:first-child { font-size: 13.5px; color: var(--dt-text); line-height: 1.5; max-width: 150px; }
.qr-info span:last-child { font-size: 12px; color: var(--dt-muted); }
.qr-info__txng { color: var(--dt-green); font-weight: 700; }

/* ---------- Hub ---------- */
.hub {
  margin-top: 26px; position: relative; display: grid; align-items: start;
  row-gap: 16px; column-gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) minmax(0, 1fr);
}
.hub__conn { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.hub__conn.is-hidden { display: none; }
.hub__col--left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hub__col--right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hub__col--center { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }

.hub__circle-block { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }
.hub__circle {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #FFFFFF 0%, #F4F9F5 62%, #EDF5EF 100%);
  border: 1px solid #DCE8DF; display: flex; flex-direction: column; align-items: center; padding: 16px 18px 20px;
  box-shadow: 0 18px 40px -26px rgba(27, 122, 69, .5);
}
.hub__circle-badge { background: var(--dt-green); color: #fff; border-radius: 999px; padding: 5px 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em; margin-top: -2px; }
.hub__circle-code { font-size: 34px; font-weight: 800; color: var(--dt-ink); line-height: 1.1; margin-top: 4px; }
.hub__circle-img { width: 100%; flex: 1; min-height: 0; margin: 6px 0 2px; display: flex; align-items: center; justify-content: center; }
.hub__circle-img img { width: 150px; height: 112px; object-fit: contain; display: block; }

.hub__summary {
  display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 10px; position: relative; z-index: 1;
  width: auto; max-width: 186px; align-self: center; background: #fff; border: 1px solid #E4EAE6; border-radius: 14px;
  padding: 14px 22px 16px; box-shadow: 0 2px 8px -4px rgba(27, 38, 32, .12);
}
.hub__summary-grade { font-size: 13.5px; font-weight: 600; color: var(--dt-text); }
.hub__summary-caption { font-size: 12px; color: var(--dt-muted); margin-top: 6px; }
.hub__summary-weight { font-size: 21px; font-weight: 800; color: var(--dt-ink); }
.hub__summary-date { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dt-text); }

.hub__vconn { display: none; }
.hub__final-wrap { width: 100%; position: relative; z-index: 1; margin-top: 52px; }

/* ---------- Hub cards ---------- */
.hub-card__wrap { display: block; position: relative; z-index: 1; }
.hub-card {
  display: flex; flex-direction: column; width: 100%; cursor: pointer; text-align: left;
  padding: 16px 18px; border-radius: 14px; background: #fff; will-change: transform;
  border: 1px solid #E4EAE6; box-shadow: 0 2px 8px -4px rgba(27, 38, 32, .12);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s cubic-bezier(.22, .61, .36, 1), border-color .25s ease;
}
.hub-card:hover { border-color: #A8CDB6; transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(27, 122, 69, .3); }
.hub-card.is-active { border-color: var(--dt-green); box-shadow: 0 0 0 3px rgba(27, 122, 69, .1), 0 14px 28px -16px rgba(27, 122, 69, .35); }
.hub-card__head { display: flex; align-items: center; gap: 12px; width: 100%; }
.hub-card__num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--dt-green); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hub-card__title { font-size: 16.5px; font-weight: 700; color: var(--dt-ink); text-align: left; }
.hub-card__chevron { margin-left: auto; color: #B4BFB8; font-size: 15px; }
.hub-card__body { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 12px; align-items: start; width: 100%; margin-top: 12px; }
.hub-card__icon { font-size: 34px; line-height: 1; text-align: center; }
.hub-card__lines { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hub-card__line { font-size: 12.5px; color: var(--dt-muted2); line-height: 1.4; text-align: left; }
.hub-card__line.is-strong { font-size: 14.5px; font-weight: 700; color: var(--dt-ink-soft); }
.hub-card__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.hub-card__chip { border: 1px solid var(--dt-line); background: #F6F8F6; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 600; color: var(--dt-text); }
.hub-card__date { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dt-muted2); padding-top: 2px; }
.hub-card__done { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--dt-green); padding-top: 4px; }

@media (max-width: 939px) {
  .hub { grid-template-columns: minmax(0, 1fr); }
  .hub__conn { display: none; }
  .hub__col--center { display: contents; }
  .hub__col--left { order: 5; }
  .hub__col--right { order: 6; }
  .hub__vconn { display: block; margin-top: 14px; justify-self: center; order: 9; }
  .hub__final-wrap { margin-top: 14px; order: 9; }
}

/* ---------- Stats ---------- */
.stats-grid {
  margin-top: 26px; border: 1px solid var(--dt-line); border-radius: 14px; overflow: hidden;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 17px 10px; text-align: center; min-width: 0; border-left: 1px solid var(--dt-line-soft); }
.stat-item:first-child { border-left: none; }
.stat-item__label { font-size: 12.5px; color: var(--dt-muted); }
.stat-item__value { font-size: 23px; font-weight: 800; color: var(--dt-ink); line-height: 1.15; }
.stat-item__note { font-size: 12px; color: var(--dt-muted); }
.stat-item__cert { display: flex; align-items: center; gap: 8px; }
.stat-item__cert-badge { border: 1px solid var(--dt-border-btn); border-radius: 7px; padding: 6px 9px; font-size: 11px; font-weight: 700; color: var(--dt-text); letter-spacing: .04em; }
.stat-item__cert-badge--eudr { font-size: 9.5px; line-height: 1.25; text-align: center; }
@media (max-width: 939px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-item { border-left: 1px solid var(--dt-line-soft); }
  .stat-item:nth-child(3n+1) { border-left: none; }
  .stat-item:nth-child(n+4) { border-top: 1px solid var(--dt-line-soft); }
}

/* ---------- Journey card ---------- */
.journey-card { background: #fff; border: 1px solid var(--dt-line); border-radius: 18px; padding: 24px 26px 26px; box-shadow: 0 1px 2px rgba(27, 38, 32, .04); }
.section-title { font-size: 15px; font-weight: 800; letter-spacing: .1em; color: var(--dt-ink); text-transform: uppercase; }

.stepper { display: flex; align-items: flex-start; gap: 0; margin-top: 14px; padding-top: 8px; overflow-x: auto; padding-bottom: 6px; }
.stepper-node { display: flex; align-items: flex-start; flex: 1; min-width: 124px; }
.stepper-node__col { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 0 0 auto; width: auto; max-width: 92px; }
.stepper-node__circle {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; flex: 0 0 auto; border: 1.5px solid #E4EAE6; box-shadow: 0 1px 3px rgba(27, 38, 32, .07);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease, border-color .25s ease;
}
.stepper-node__circle.is-active { border: 2px solid var(--dt-gold); transform: scale(1.08); box-shadow: 0 0 0 4px rgba(201, 162, 39, .16); }
.stepper-node__label { font-size: 11.5px; text-align: center; line-height: 1.3; color: var(--dt-muted2); transition: color .25s ease; }
.stepper-node__label.is-active { font-weight: 700; color: var(--dt-ink); }
.stepper-node__rail { flex: 1 1 auto; min-width: 34px; margin-top: 17px; display: flex; align-items: center; gap: 0; }
.stepper-node__dash {
  flex: 1 1 auto; min-width: 0; height: 2px; border-radius: 2px;
  background-image: linear-gradient(90deg, var(--dt-conn-green) 0 5px, rgba(0, 0, 0, 0) 5px 16px), linear-gradient(90deg, var(--dt-conn-grey), var(--dt-conn-grey));
  background-size: 16px 2px, 100% 2px; background-repeat: repeat-x, no-repeat; animation: omRun 1.2s linear infinite;
}
.stepper-node__arrow { display: block; flex: 0 0 auto; margin-right: -1px; overflow: visible; }

.detail-content {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--dt-line-soft);
  min-width: 0; display: flex; flex-direction: column; gap: 16px;
}
.detail-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-head { flex: 1; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.detail-head__icon { font-size: 30px; line-height: 1; text-align: center; }
.detail-head__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.detail-head__top { display: flex; align-items: baseline; gap: 9px; }
.detail-head__n { font-size: 13px; font-weight: 700; color: var(--dt-muted); }
.detail-head__title { font-size: 19px; font-weight: 800; letter-spacing: .04em; color: var(--dt-ink); text-transform: uppercase; }
.detail-head__desc { font-size: 12.5px; color: var(--dt-muted2); line-height: 1.5; }

.step-all-map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; white-space: nowrap;
  padding: 9px 16px; border: 1px dashed var(--dt-border-btn); border-radius: 10px; background: #F6F8F6;
  color: var(--dt-green); font-size: 13px; font-weight: 600; cursor: pointer;
}
.step-all-map-btn:hover { border-color: var(--dt-green); background: #F0F6F1; }
.step-all-map-btn[hidden] { display: none; }

@media (max-width: 560px) {
  .detail-head-row { flex-wrap: wrap; }
  .step-all-map-btn { width: 100%; }
}

.panel-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-content: start; min-width: 0; }
.panel { border: 1px solid var(--dt-line); border-radius: 12px; overflow: hidden; min-width: 0; animation: omFade .25s ease both; }
.panel__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; background: #F6F8F6; padding: 11px 14px; border-bottom: 1px solid var(--dt-line-soft); }
.panel__heading { font-size: 14px; font-weight: 700; color: var(--dt-ink); min-width: 0; overflow-wrap: anywhere; }
.panel__tag { background: var(--dt-green-soft); color: var(--dt-green); border-radius: 7px; padding: 5px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.panel__body { padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; }
.panel__row { display: grid; grid-template-columns: minmax(88px, 48%) minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.panel__row-label { font-size: 11.5px; color: var(--dt-muted); overflow-wrap: anywhere; }
.panel__row-value { font-size: 12.5px; color: #28352E; text-align: right; line-height: 1.5; overflow-wrap: anywhere; }
.panel__action {
  margin-top: 3px; border: 1px solid var(--dt-line); background: #fff; border-radius: 9px; padding: 9px; font-size: 12.5px;
  font-weight: 600; color: var(--dt-green); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.panel__action:hover { border-color: var(--dt-green); background: #F6FAF7; }

/* ---------- Footer bar ---------- */
.footer-bar { background: #fff; border: 1px solid var(--dt-line); border-radius: 16px; padding: 18px 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 1px 2px rgba(27, 38, 32, .04); }
.footer-bar__info { display: flex; align-items: center; gap: 13px; margin-right: auto; min-width: 0; }
.footer-bar__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--dt-green-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.footer-bar__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.footer-bar__title { font-size: 13.5px; font-weight: 600; color: var(--dt-ink-soft); }
.footer-bar__note { font-size: 12.5px; color: var(--dt-muted); }

/* ---------- Drawer (danh mục pallet) ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 60; display: none; justify-content: flex-end; background: rgba(11, 32, 20, .42); }
.drawer-overlay.is-open { display: flex; animation: omFade .2s ease both; }
.drawer { position: relative; background: #fff; width: 100%; max-width: 640px; height: 100%; display: flex; flex-direction: column; box-shadow: -18px 0 46px -24px rgba(11, 32, 20, .5); animation: omSlide .26s cubic-bezier(.22, .61, .36, 1) both; }
.drawer__top { padding: 20px 24px 16px; border-bottom: 1px solid var(--dt-line-soft); display: flex; flex-direction: column; gap: 14px; }
.drawer__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__header-titles { display: flex; flex-direction: column; gap: 2px; }
.drawer__title { font-size: 16.5px; font-weight: 800; color: var(--dt-ink); }
.drawer__subtitle { font-size: 12.5px; color: var(--dt-muted); }
.drawer__search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--dt-border-btn); background: #F6F8F6; border-radius: 10px; padding: 0 13px; height: 44px; }
.drawer__search-input { border: 0; background: transparent; outline: none; flex: 1; font-size: 14px; color: #1B2620; height: 42px; font-family: inherit; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }

.drawer__all-map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin: 4px 0 12px; padding: 11px; border: 1px dashed var(--dt-border-btn); border-radius: 10px;
  background: #F6F8F6; color: var(--dt-green); font-size: 13px; font-weight: 600; cursor: pointer;
}
.drawer__all-map-btn:hover { border-color: var(--dt-green); background: #F0F6F1; }
.drawer__all-map-btn:disabled { opacity: .6; cursor: default; }
.drawer__all-map-btn[hidden] { display: none; }

.pallet-table th {
  text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dt-muted); font-weight: 700;
  padding: 10px 12px; position: sticky; top: 0; background: #fff; white-space: nowrap;
}
.pallet-table th .th-en {
  display: block; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 9.5px; color: var(--dt-muted2); margin-top: 2px;
}
.pallet-table td { font-size: 13px; color: #1B2620; padding: 12px; border-top: 1px solid var(--dt-line-soft); white-space: nowrap; }
.pallet-table td.is-muted { color: var(--dt-muted); }
.pallet-table td.is-text { color: var(--dt-text); }
.pallet-table tbody tr { cursor: pointer; transition: background-color .18s ease; background: #fff; }
.pallet-table tbody tr:hover { background: #F4F8F5; }
.pallet-table tbody tr.is-selected { background: #F4F8F5; box-shadow: inset 3px 0 0 var(--dt-green); }
.pallet-table tbody tr[hidden] { display: none; }
.code-pill { background: var(--dt-green-soft); color: var(--dt-green); border-radius: 7px; padding: 5px 10px; font-size: 13px; font-weight: 800; }
.pallet-table-empty { padding: 28px; text-align: center; font-size: 13.5px; color: var(--dt-muted); display: none; }
.pallet-table-empty.is-visible { display: block; }

.fsc-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.fsc-badge--fsc { background: var(--dt-green-soft); color: var(--dt-green); }
.fsc-badge--nonfsc { background: #F3F0E4; color: #8A7C3C; }

/* ---------- Map modal ---------- */
.map-modal-overlay { position: fixed; inset: 0; background: rgba(11, 32, 20, .5); z-index: 50; display: none; align-items: center; justify-content: center; padding: 26px; }
.map-modal-overlay.is-open { display: flex; }
.map-modal { background: #fff; width: 100%; max-width: 1000px; border-radius: 16px; padding: 20px 22px 24px; animation: omFade .2s ease both; }
.map-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-modal__title { font-size: 16px; font-weight: 700; color: var(--dt-ink); }
.map-modal__image { margin-top: 16px; border: 1px solid var(--dt-line); border-radius: 12px; overflow: hidden; height: 500px; position: relative; }
.map-modal__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-modal__caption { margin-top: 14px; font-size: 12.5px; color: var(--dt-muted2); }

.js-lot-map { width: 100%; height: 100%; }
.lot-map-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--dt-muted2); font-size: 13px; text-align: center; padding: 0 20px; background: #fff;
}
.lot-map-empty[hidden] { display: none; }

.leaflet-popup-content-wrapper { border-radius: 8px; }
.popup-title { font-size: 13px; font-weight: 700; color: var(--dt-green-dark); margin: 0 0 6px; border-bottom: 1px solid var(--dt-line); padding-bottom: 4px; }
.popup-table { border-collapse: collapse; font-size: 12px; }
.popup-table td { padding: 2px 6px 2px 0; vertical-align: top; }
.popup-table td.label { color: var(--dt-muted2); white-space: nowrap; font-weight: 600; }
.popup-table td.value { color: var(--dt-ink); }
