/* assets/globe.css */
.globe-column {
  flex: 1 1 auto;
  min-height: 0;
}

.globe-panel {
  height: 100%;
  min-height: 0;
}

.globe-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.12), transparent 34%),
    #0d1117;
}

.globe-map {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: transparent;
  overflow: hidden;
}

.globe-status {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  max-width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #f9fafb;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.globe-loading,
.globe-empty {
  display: none;
}

.globe-shell.is-loading .globe-loading,
.globe-shell.is-ready:not(.has-markers) .globe-empty {
  display: block;
}

.globe-shell.has-markers .globe-status {
  display: none;
}

.maplibregl-popup-content {
  background: #111827;
  color: #f9fafb;
  border-radius: 12px;
  padding: 0;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: min(70vh, 420px);
  overflow: hidden;
}

.borderless-country-popup .maplibregl-popup-content {
  width: min(360px, calc(100vw - 32px));
}

.maplibregl-popup-tip {
  border-top-color: #111827;
}

.globe-marker-popup {
  padding: 14px 16px 12px;
  max-height: min(68vh, 400px);
  overflow-y: auto;
}

.globe-marker-popup-title {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
  color: #f9fafb;
}

.globe-marker-popup-pathway {
  margin: 0 0 10px;
  color: #fbbf24;
  font-size: 0.88rem;
  line-height: 1.35;
}

.globe-marker-popup-body {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #e5e7eb;
}

.globe-marker-popup-body p,
.globe-marker-popup-body ul,
.globe-marker-popup-body ol {
  margin: 0.45em 0;
}

.globe-marker-popup-body ul,
.globe-marker-popup-body ol {
  padding-left: 1.1rem;
}

.globe-marker-popup-sources {
  margin-top: 10px;
}

.globe-marker-popup-sources strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.globe-marker-popup-sources ul {
  margin: 0;
  padding-left: 1rem;
}

.globe-marker-popup-sources a {
  color: #fbbf24;
  word-break: break-word;
}

.globe-marker-popup-empty,
.globe-marker-popup-hint,
.globe-marker-popup-waiting,
.globe-marker-popup-incomplete,
.globe-marker-popup-preview,
.globe-marker-popup-activity {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #9ca3af;
}

.globe-marker-popup-status {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #60a5fa;
}

.globe-marker-popup--researching .globe-marker-popup-status {
  color: #60a5fa;
}

.globe-marker-popup--complete .globe-marker-popup-status {
  color: #34d399;
}

.globe-marker-popup-activity {
  margin-bottom: 8px;
  color: #e5e7eb;
}

.globe-marker-popup-preview {
  margin-bottom: 10px;
  color: #e5e7eb;
}

.globe-marker-popup-activities {
  margin: 0 0 10px;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.globe-marker-popup-view-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.globe-marker-popup-view-details:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.75);
}

.globe-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.globe-detail-backdrop[hidden] {
  display: none;
}

.globe-detail-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.globe-detail-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.globe-detail-dialog-heading {
  min-width: 0;
}

.globe-detail-dialog-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #f9fafb;
}

.globe-detail-dialog-pathway {
  margin: 6px 0 0;
  color: #fbbf24;
  font-size: 0.92rem;
  line-height: 1.35;
}

.globe-detail-dialog-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e5e7eb;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.globe-detail-dialog-close:hover {
  background: rgba(148, 163, 184, 0.22);
}

.globe-detail-dialog-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.55;
}

.globe-detail-dialog-body h3 {
  margin: 1.1em 0 0.45em;
  font-size: 0.95rem;
  color: #fbbf24;
}

.globe-detail-dialog-body h3:first-child {
  margin-top: 0;
}

.globe-detail-dialog-body p,
.globe-detail-dialog-body ul,
.globe-detail-dialog-body ol {
  margin: 0.45em 0;
}

.globe-detail-dialog-body a {
  color: #fbbf24;
  word-break: break-word;
}

.globe-marker-popup-hint {
  margin-top: 10px;
  font-size: 0.75rem;
}

.globe-country-marker {
  cursor: pointer;
}
