/* LCB City 3D Atlas — BKKx / Arnis browser extrusion pattern */
.lcb-atlas {
  border: 1px solid var(--line-2, #d2cfc5);
  background: var(--panel, #fff);
  margin: 18px 0 28px;
  padding: 22px 24px 24px;
}
.lcb-atlas-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; font-weight: 700;
  color: var(--ink-3, #a9a59a); margin-bottom: 4px;
}
.lcb-atlas-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
}
.lcb-atlas-sub {
  font-size: 12.5px; color: var(--ink-2, #6f6c63); margin-top: 6px;
  line-height: 1.5; max-width: 720px;
}
.lcb-atlas-sub a { color: var(--rt-blue, #0039A6); }
.lcb-atlas-h {
  display: flex; justify-content: space-between; gap: 16px;
  align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap;
}
.lcb-atlas-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lcb-atlas-btn {
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 7px 12px; border: 1px solid var(--ink, #191712);
  background: var(--paper, #faf9f7); color: var(--ink, #191712);
  text-decoration: none; cursor: pointer; letter-spacing: 0.04em;
}
.lcb-atlas-btn:hover { background: var(--ink, #191712); color: var(--paper, #faf9f7); }
.lcb-atlas-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.9fr);
  gap: 0;
  border: 1px solid var(--line-2, #d2cfc5);
  background: #0e0f0c;
  min-height: 420px;
}
.lcb-atlas-map {
  width: 100%;
  min-height: 420px;
  height: 480px;
}
.lcb-atlas-side {
  background: var(--paper, #faf9f7);
  border-left: 1px solid var(--line-2, #d2cfc5);
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: auto;
}
.lcb-atlas-note {
  font-size: 13px; line-height: 1.45;
  padding: 10px 12px; border: 1px solid var(--line, #e7e5dd); background: #fff;
}
.lcb-atlas-note span { color: var(--ink-2, #6f6c63); font-size: 12px; }
.lcb-atlas-chapters {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.lcb-atlas-chapter {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px;
  padding: 8px 10px; border: 1px solid transparent;
  background: transparent; font: inherit; color: inherit;
}
.lcb-atlas-chapter span {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
  grid-row: span 2; align-self: center; color: var(--ink-3, #a9a59a);
}
.lcb-atlas-chapter strong { font-size: 12.5px; grid-column: 2; }
.lcb-atlas-chapter small { font-size: 11px; color: var(--ink-2, #6f6c63); grid-column: 2; }
.lcb-atlas-chapter:hover { background: #fff; border-color: var(--line-2, #d2cfc5); }
.lcb-atlas-chapter.is-active {
  background: #191712; color: #faf9f7; border-color: #191712;
}
.lcb-atlas-chapter.is-active span,
.lcb-atlas-chapter.is-active small { color: #c9ff38; }
.lcb-atlas-legend {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-size: 10.5px; color: var(--ink-2, #6f6c63);
}
.lcb-atlas-legend i {
  display: inline-block; width: 10px; height: 10px; margin-right: 4px;
  vertical-align: middle; border: 1px solid #191712;
}
.lcb-atlas-legend i.ship {
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  background: #FCCC0A;
}
.lcb-atlas-fine {
  font-size: 10px; color: var(--ink-3, #a9a59a); line-height: 1.45; margin-top: auto;
}
.lcb-atlas-fallback {
  color: #c9ff38; padding: 24px; font-size: 13px; font-family: 'IBM Plex Mono', monospace;
}

/* Map markers */
.lcb-atlas-marker {
  width: 28px; height: 34px; border: 0; padding: 0; cursor: pointer;
  background: transparent;
}
.lcb-atlas-marker span {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: #191712; color: #c9ff38;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  border: 1px solid #c9ff38;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.lcb-atlas-marker.is-active span {
  background: #c9ff38; color: #191712; border-color: #191712;
}
.lcb-atlas-ship {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 14px solid var(--ship, #FCCC0A);
  filter: drop-shadow(0 0 0 1px #191712);
}
.lcb-atlas-ship.is-live {
  animation: lcb-atlas-blink 1.6s ease-in-out infinite;
}
@keyframes lcb-atlas-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.lcb-atlas-pop { font-size: 12px; line-height: 1.4; max-width: 200px; }
.lcb-atlas-pop .th { color: #6f6c63; font-size: 11px; }
.lcb-atlas-pop .note { margin-top: 4px; color: #3a3730; }

.maplibregl-popup-content {
  background: #faf9f7 !important;
  color: #191712 !important;
  border: 1px solid #191712;
  border-radius: 0 !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
  font-family: 'Sarabun', 'IBM Plex Sans Thai', sans-serif;
}
.maplibregl-popup-tip { border-top-color: #191712 !important; }

@media (max-width: 900px) {
  .lcb-atlas-body { grid-template-columns: 1fr; }
  .lcb-atlas-side { border-left: 0; border-top: 1px solid var(--line-2, #d2cfc5); }
  .lcb-atlas-map { height: 360px; min-height: 360px; }
}
