/* ==========================================================================
   LOCUS-SF: Spatial Map Explorer Studio Stylesheet
   Modern Interactive Dual-Pane Spatial Discovery, GIS Studio & CLUP Overlays
   ========================================================================== */

:root {
  --exp-gold: #f59e0b;
  --exp-gold-dark: #d97706;
  --exp-gold-deep: #b45309;
  --exp-gold-light: #fffbeb;
  --exp-gold-glow: rgba(245, 158, 11, 0.3);
  --exp-amber-gradient: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);
  --exp-amber-gradient-hover: linear-gradient(135deg, #ffc21a 0%, #ff881a 100%);
  --exp-amber-shadow: 0 4px 16px rgba(255, 122, 0, 0.32), 0 2px 6px rgba(255, 184, 0, 0.22);
  --exp-amber-shadow-hover: 0 8px 24px rgba(255, 122, 0, 0.42), 0 3px 8px rgba(255, 184, 0, 0.3);

  --exp-teal: #f59e0b;
  --exp-teal-dark: #d97706;
  --exp-teal-light: #fffbeb;
  --exp-teal-glow: rgba(245, 158, 11, 0.25);

  --exp-emerald: #059669;
  --exp-emerald-light: #ecfdf5;
  --exp-amber: #d97706;
  --exp-amber-light: #fffbeb;
  --exp-rose: #e11d48;
  --exp-rose-light: #fff1f2;
  --exp-blue: #2563eb;
  --exp-blue-light: #eff6ff;

  --exp-slate-900: #0f172a;
  --exp-slate-800: #1e293b;
  --exp-slate-700: #334155;
  --exp-slate-600: #475569;
  --exp-slate-500: #64748b;
  --exp-slate-400: #94a3b8;
  --exp-slate-200: #e2e8f0;
  --exp-card-border: #e2e8f0;
  --exp-card-hover-border: rgba(245, 158, 11, 0.45);
  --exp-radius: 20px;
  --exp-radius-sm: 12px;
  --exp-radius-pill: 9999px;
  --exp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --exp-shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --exp-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --exp-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="property-explorer-terminal"] {
  background: #f8fafc;
}

body[data-page="property-explorer-terminal"] .explorer-site-shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Container & Page Shell
   -------------------------------------------------------------------------- */
.explorer-page-shell {
  max-width: 1720px;
  margin: 0 auto;
  padding: 16px 24px 60px;
}

.explorer-studio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Hero Ribbon (Architectural Top Header)
   -------------------------------------------------------------------------- */
.explorer-hero-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--exp-card-border);
  border-radius: var(--exp-radius);
  box-shadow: var(--exp-shadow-sm);
  position: relative;
  overflow: hidden;
}

.explorer-hero-ribbon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--exp-teal) 0%, #2563eb 100%);
}

.explorer-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explorer-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.explorer-live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--exp-teal);
  background: var(--exp-teal-light);
  padding: 3px 10px;
  border-radius: var(--exp-radius-pill);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.explorer-live-beacon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--exp-teal);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35);
  animation: exp-pulse 2s infinite;
}

@keyframes exp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.explorer-hero-copy h1 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--exp-slate-900);
  margin: 0;
}

.explorer-hero-copy p {
  color: var(--exp-slate-600);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.explorer-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.explorer-hero-link {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--exp-radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--exp-transition);
}

.explorer-hero-link.is-secondary {
  background: #ffffff;
  border: 1px solid var(--exp-card-border);
  color: var(--exp-slate-700);
}

.explorer-hero-link.is-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--exp-slate-900);
}

.explorer-hero-link.is-primary {
  background: var(--exp-slate-900);
  border: 1px solid var(--exp-slate-900);
  color: #ffffff;
}

.explorer-hero-link.is-primary:hover {
  background: var(--exp-teal-dark);
  border-color: var(--exp-teal-dark);
}

/* --------------------------------------------------------------------------
   Investment Lens Selector Bar (Horizontal Tab Track)
   -------------------------------------------------------------------------- */
.explorer-lens-bar {
  background: #ffffff;
  border: 1px solid var(--exp-card-border);
  border-radius: var(--exp-radius);
  padding: 14px 18px;
  box-shadow: var(--exp-shadow-sm);
}

.explorer-lens-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-inline: 4px;
}

.explorer-lens-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--exp-slate-500);
}

.explorer-lens-bar-title svg {
  color: var(--exp-teal);
}

.explorer-lens-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--exp-teal-light);
  color: var(--exp-teal-dark);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--exp-radius-pill);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.explorer-lens-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.explorer-lens-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--exp-radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--exp-slate-700);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--exp-transition);
  white-space: nowrap;
}

.explorer-lens-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--exp-slate-900);
  transform: translateY(-1px);
}

.explorer-lens-btn.is-active {
  background: #ffffff;
  border-color: var(--exp-teal);
  color: var(--exp-teal-dark);
  font-weight: 700;
  box-shadow: 0 4px 14px var(--exp-teal-glow), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.explorer-lens-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.explorer-lens-btn-icon svg {
  width: 17px;
  height: 17px;
}

.explorer-lens-count-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--exp-radius-pill);
  background: #e2e8f0;
  color: var(--exp-slate-700);
}

.explorer-lens-btn.is-active .explorer-lens-count-pill {
  background: var(--exp-teal);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Unified Spatial Command Toolbar (Sleek Inline Filter Bar)
   -------------------------------------------------------------------------- */
.explorer-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--exp-card-border);
  border-radius: var(--exp-radius);
  padding: 12px 18px;
  box-shadow: var(--exp-shadow-sm);
  flex-wrap: wrap;
}

.explorer-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.explorer-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 200px;
}

.explorer-search-icon {
  position: absolute;
  left: 14px;
  color: var(--exp-slate-500);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.explorer-search-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 40px;
  border-radius: var(--exp-radius-sm);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--exp-slate-900);
  font-size: 13.5px;
  transition: var(--exp-transition);
}

.explorer-search-input:focus {
  background: #ffffff;
  border-color: var(--exp-teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--exp-teal-glow);
}

.explorer-search-clear {
  position: absolute;
  right: 12px;
  background: #e2e8f0;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: var(--exp-slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explorer-select {
  min-height: 42px;
  padding: 8px 32px 8px 14px;
  border-radius: var(--exp-radius-sm);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--exp-slate-800);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--exp-transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.explorer-select:focus {
  background-color: #ffffff;
  border-color: var(--exp-teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--exp-teal-glow);
}

.explorer-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-filter-reset {
  background: transparent;
  border: 1px dashed #cbd5e1;
  color: var(--exp-slate-600);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--exp-radius-sm);
  cursor: pointer;
  transition: var(--exp-transition);
}

.btn-filter-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* --------------------------------------------------------------------------
   Dual-Pane Studio Layout (List Feed + Interactive Map)
   -------------------------------------------------------------------------- */
.explorer-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(460px, 0.95fr);
  gap: 24px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Left Column: Candidate Properties Feed
   -------------------------------------------------------------------------- */
.explorer-feed-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explorer-feed-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.explorer-feed-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--exp-slate-900);
}

.explorer-feed-sort-note {
  font-size: 12px;
  color: var(--exp-slate-500);
  font-weight: 500;
}

.explorer-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

/* --------------------------------------------------------------------------
   Elevated Spatial Property Card
   -------------------------------------------------------------------------- */
.explorer-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--exp-card-border);
  border-radius: var(--exp-radius);
  overflow: hidden;
  box-shadow: var(--exp-shadow-sm);
  transition: var(--exp-transition);
  cursor: pointer;
  position: relative;
}

.explorer-card:hover {
  border-color: var(--exp-card-hover-border);
  box-shadow: var(--exp-shadow-md);
  transform: translateY(-2px);
}

.explorer-card.is-active {
  border-color: var(--exp-teal);
  box-shadow: 0 0 0 2px var(--exp-teal), var(--exp-shadow-md);
  background: #fafdfd;
}

/* Card Media Header */
.explorer-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background: #0f172a;
  overflow: hidden;
}

.explorer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.explorer-card:hover .explorer-card-media img {
  transform: scale(1.04);
}

.explorer-card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.explorer-tag-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--exp-radius-pill);
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-card-save {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--exp-slate-700);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--exp-transition);
}

.btn-card-save:hover {
  background: #ffffff;
  color: var(--exp-rose);
  transform: scale(1.1);
}

.btn-card-save.is-saved {
  background: #ffffff;
  color: var(--exp-rose);
}

.explorer-card-bottom-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.clup-gate-pill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--exp-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.clup-gate-pill.is-pass {
  background: #059669;
  color: #ffffff;
}

.clup-gate-pill.is-conditional {
  background: #d97706;
  color: #ffffff;
}

.clup-gate-pill.is-fail {
  background: #e11d48;
  color: #ffffff;
}

.lens-fit-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--exp-radius-pill);
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lens-fit-badge.score-high {
  background: var(--exp-teal);
  color: #ffffff;
}

/* Card Body */
.explorer-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.explorer-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.explorer-card-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--exp-slate-900);
  line-height: 1.3;
  margin: 0;
  text-decoration: none;
}

.explorer-card-title:hover {
  color: var(--exp-teal);
}

.explorer-card-loc {
  font-size: 12px;
  color: var(--exp-slate-500);
  margin: 0;
}

/* Card Metrics Row */
.explorer-card-metrics {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--exp-radius-sm);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.explorer-card-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--exp-slate-900);
  letter-spacing: -0.02em;
}

.explorer-card-area {
  font-size: 12px;
  font-weight: 700;
  color: var(--exp-slate-600);
}

/* Card Strategic Drivers */
.explorer-card-drivers {
  font-size: 12px;
  color: var(--exp-slate-600);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer Actions */
.explorer-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.btn-card-compare {
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--exp-radius-sm);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--exp-slate-700);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--exp-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-card-compare:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--exp-slate-900);
}

.btn-card-compare.is-active {
  background: var(--exp-slate-900);
  border-color: var(--exp-slate-900);
  color: #ffffff;
}

.btn-card-inspect {
  flex: 1.2;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--exp-radius-sm);
  background: var(--exp-teal);
  border: 1px solid var(--exp-teal);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--exp-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
}

.btn-card-inspect:hover {
  background: var(--exp-teal-dark);
  border-color: var(--exp-teal-dark);
}

/* --------------------------------------------------------------------------
   Right Column: Sticky GIS Interactive Map Studio
   -------------------------------------------------------------------------- */
.explorer-map-studio {
  position: sticky;
  top: 84px;
  height: calc(100vh - 110px);
  min-height: 640px;
  border-radius: var(--exp-radius);
  overflow: hidden;
  border: 1px solid var(--exp-card-border);
  box-shadow: var(--exp-shadow-md);
  background: #0f172a;
  display: flex;
  flex-direction: column;
}

.explorer-map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#explorerLeafletMap {
  width: 100%;
  height: 100%;
  background: #0f172a;
}

/* Floating Top Controls over Map */
.explorer-map-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
}

.explorer-map-legend-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--exp-radius-pill);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.is-pass i { background: #10b981; box-shadow: 0 0 6px #10b981; }
.legend-dot.is-conditional i { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.legend-dot.is-fail i { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }

.explorer-map-layer-switch {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--exp-radius-pill);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-map-layer {
  background: transparent;
  border: none;
  padding: 4px 12px;
  border-radius: var(--exp-radius-pill);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--exp-transition);
}

.btn-map-layer:hover {
  color: #ffffff;
}

.btn-map-layer.is-active {
  background: #ffffff;
  color: var(--exp-slate-900);
}

/* Floating Bottom Dossier Snapshot Card */
.explorer-map-dossier-card {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--exp-shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--exp-transition);
  animation: expSlideUp 0.25s ease;
}

@keyframes expSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier-thumb {
  width: 90px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.dossier-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dossier-topline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossier-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--exp-slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.dossier-meta {
  font-size: 11.5px;
  color: var(--exp-slate-500);
  margin: 0;
}

.dossier-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.dossier-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--exp-teal-dark);
}

.dossier-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-dossier-open {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--exp-slate-900);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--exp-transition);
}

.btn-dossier-open:hover {
  background: var(--exp-teal-dark);
}

/* --------------------------------------------------------------------------
   Custom Map Pins & Markers
   -------------------------------------------------------------------------- */
.locus-spatial-marker {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.locus-spatial-marker:hover {
  transform: scale(1.18);
  z-index: 50;
}

.marker-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--exp-radius-pill);
  background: #0f172a;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #ffffff;
  white-space: nowrap;
}

.marker-pill.is-active {
  background: var(--exp-teal);
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--exp-teal-glow), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.marker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.marker-dot.is-pass { background: #10b981; }
.marker-dot.is-conditional { background: #f59e0b; }
.marker-dot.is-fail { background: #f43f5e; }

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .explorer-studio-grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.95fr);
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .explorer-page-shell {
    padding: 12px 14px 40px;
  }
  .explorer-hero-ribbon {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .explorer-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .explorer-studio-grid {
    grid-template-columns: 1fr;
  }
  .explorer-map-studio {
    position: relative;
    top: 0;
    height: 480px;
    min-height: 400px;
  }
}

/* ==========================================================================
   LOCUS-SF: Ultra-Premium Spatial Map Explorer (Apple-grade Architectural Light Mode)
   ========================================================================== */

body[data-page="property-explorer-terminal"] {
  --exp-teal: #f59e0b;
  --exp-teal-dark: #d97706;
  --exp-teal-light: #fffbeb;
  --exp-teal-glow: rgba(245, 158, 11, 0.25);
  background: #f8fafc;
  color: #0f172a;
}

body[data-page="property-explorer-terminal"] .explorer-page-shell {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 20px 32px 64px;
  max-width: 1680px;
}

body[data-page="property-explorer-terminal"] .explorer-site-shell {
  max-width: 1640px;
}

.explorer-studio {
  gap: 22px;
  color: #0f172a;
  min-width: 0;
}

.explorer-studio :is(button, a, input, select):focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Hero Ribbon: Luminous Architectural Executive Card
   -------------------------------------------------------------------------- */
.explorer-studio .explorer-hero-ribbon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 40px;
  gap: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 60%, #fffdf5 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-top: 3.5px solid #f59e0b;
  border-radius: 24px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.explorer-studio .explorer-hero-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(226, 232, 240, 0.5) 39px 40px),
              repeating-linear-gradient(90deg, transparent 0 39px, rgba(226, 232, 240, 0.5) 39px 40px);
  mask-image: radial-gradient(circle at 85% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.explorer-studio .explorer-hero-ribbon::after {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  right: -80px;
  top: -130px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(245, 158, 11, 0.04), 0 0 0 120px rgba(245, 158, 11, 0.02);
  pointer-events: none;
}

.explorer-studio .explorer-hero-copy {
  position: relative;
  min-width: 0;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.explorer-studio .explorer-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.explorer-studio .explorer-live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.explorer-studio .explorer-live-beacon::before {
  content: '';
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: expBeaconPulse 2s infinite ease-in-out;
}

@keyframes expBeaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.explorer-hero-location {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.explorer-studio .explorer-hero-copy h1 {
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 0;
}

.explorer-studio .explorer-hero-copy h1 span {
  display: inline-block;
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.explorer-studio .explorer-hero-copy p {
  max-width: 580px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.explorer-studio .explorer-hero-actions {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 20px;
  min-width: 350px;
  z-index: 1;
}

.explorer-hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.explorer-hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.explorer-hero-stats strong {
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.explorer-hero-stats span {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.explorer-hero-links {
  display: flex;
  gap: 10px;
}

.explorer-studio .explorer-hero-link {
  font-size: 12px;
  font-weight: 750;
  border-radius: 9999px;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.explorer-studio .explorer-hero-link.is-secondary {
  color: #1e293b;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.explorer-studio .explorer-hero-link.is-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.explorer-studio .explorer-hero-link.is-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.35), 0 2px 6px rgba(255, 184, 0, 0.22);
}

.explorer-studio .explorer-hero-link.is-primary:hover {
  background: linear-gradient(135deg, #ffc21a 0%, #ff881a 100%);
  transform: translateY(-1.5px) scale(1.015);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.45), 0 3px 8px rgba(255, 184, 0, 0.3);
  color: #ffffff !important;
}

.explorer-studio .explorer-hero-link.is-primary:active {
  transform: translateY(0.5px) scale(0.99);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

.explorer-hero-caption {
  position: absolute;
  right: 40px;
  bottom: 12px;
  color: #94a3b8;
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 600;
  display: flex;
  gap: 12px;
}

.explorer-hero-caption span {
  letter-spacing: 0.05em;
  color: #64748b;
}

.explorer-queue-count {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Investment Lens Bar: Modern Segmented Goal Explorer
   -------------------------------------------------------------------------- */
.explorer-studio .explorer-lens-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 22px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.explorer-studio .explorer-lens-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 14px;
  gap: 12px;
}

.explorer-studio .explorer-lens-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: -0.015em;
  font-weight: 750;
  color: #0f172a;
}

.explorer-studio .explorer-lens-bar-title svg {
  color: #f59e0b;
}

.explorer-lens-help {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.explorer-studio .explorer-lens-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.explorer-studio .explorer-lens-btn {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 6px 10px;
  padding: 13px 16px;
  border-radius: 14px;
  min-height: 68px;
  font-size: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-studio .explorer-lens-btn:hover {
  background: #fffdf5;
  border-color: rgba(245, 158, 11, 0.45);
  color: #0f172a;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.explorer-studio .explorer-lens-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 8px 20px -2px rgba(15, 23, 42, 0.25), 0 0 0 2px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.explorer-studio .explorer-lens-btn-icon {
  width: 22px;
  height: 22px;
  color: #64748b;
  transition: color 0.2s ease;
}

.explorer-studio .explorer-lens-btn:hover .explorer-lens-btn-icon {
  color: #f59e0b;
}

.explorer-studio .explorer-lens-btn.is-active .explorer-lens-btn-icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
}

.explorer-studio .explorer-lens-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.explorer-studio .explorer-lens-count-pill {
  grid-column: 2;
  padding: 0;
  font-size: 10px;
  background: none;
  color: #64748b;
  margin-left: 0;
  font-weight: 500;
}

.explorer-studio .explorer-lens-btn.is-active .explorer-lens-count-pill {
  color: #fbbf24;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Command Bar: Clean Floating Filter Toolbar
   -------------------------------------------------------------------------- */
.explorer-studio .explorer-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.explorer-studio .explorer-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.explorer-studio .explorer-search-wrap {
  flex: 1 1 280px;
  position: relative;
}

.explorer-studio .explorer-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.explorer-studio :is(.explorer-search-input, .explorer-select) {
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  min-height: 46px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-studio :is(.explorer-search-input, .explorer-select):focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
  outline: none;
}

.explorer-studio .explorer-search-input {
  padding-left: 42px;
  width: 100%;
}

.explorer-studio .explorer-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.explorer-studio .explorer-select {
  padding-right: 32px;
  padding-left: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.explorer-studio .btn-filter-reset {
  border: 1.5px dashed #cbd5e1;
  background: #ffffff;
  color: #64748b;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.explorer-studio .btn-filter-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.explorer-studio .explorer-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explorer-saved-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-saved-filter:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.explorer-saved-filter svg {
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

.explorer-saved-filter span {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  background: #f1f5f9;
  color: #334155;
}

.explorer-saved-filter.is-active {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.explorer-saved-filter.is-active span {
  background: #f59e0b;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Comparison Tray: Floating Glass Executive Dock
   -------------------------------------------------------------------------- */
.explorer-compare-tray {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-left: 4.5px solid #f59e0b;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.07);
}

.explorer-compare-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: #0f172a;
}

.explorer-compare-caption > svg {
  width: 20px;
  height: 20px;
  color: #f59e0b;
}

.explorer-compare-caption strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
  font-weight: 750;
}

.explorer-compare-caption span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
}

.explorer-compare-items {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.explorer-compare-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px 6px 6px;
  min-width: 0;
  max-width: 230px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  flex: 1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.explorer-compare-item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

.explorer-compare-item > span {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-compare-item button {
  color: #94a3b8;
  background: transparent;
  border: 0;
  font-size: 16px;
  min-width: 24px;
  min-height: 28px;
  margin-left: auto;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.explorer-compare-item button:hover {
  color: #b91c1c;
  background: #fee2e2;
}

.explorer-compare-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 750;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);
  border: none;
  padding: 10px 22px;
  min-height: 42px;
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-compare-open:hover {
  background: linear-gradient(135deg, #ffc21a 0%, #ff881a 100%);
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.45);
}

.explorer-compare-prompt {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Dual-Pane Studio Grid & Candidate Feed
   -------------------------------------------------------------------------- */
.explorer-studio .explorer-studio-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.explorer-studio .explorer-feed-column {
  min-width: 0;
  gap: 18px;
}

.explorer-studio .explorer-feed-status-bar {
  min-height: 52px;
  padding: 0 2px;
  gap: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explorer-results-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #d97706;
  text-transform: uppercase;
}

.explorer-studio .explorer-feed-count {
  font-size: 22px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 750;
  letter-spacing: -0.04em;
  margin: 4px 0 0;
  line-height: 1.2;
  color: #0f172a;
}

.explorer-feed-count span {
  font-size: 12px;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 750;
  margin-left: 6px;
  vertical-align: middle;
}

.explorer-studio .explorer-feed-sort-note {
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: #fffbeb;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 750;
  border-radius: 9999px;
}

.explorer-studio .explorer-cards-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Candidate Site Cards: Crisp Architectural Cards
   -------------------------------------------------------------------------- */
.explorer-studio .explorer-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1fr);
  cursor: default;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.explorer-studio .explorer-card:hover {
  transform: translateY(-1.5px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(245, 158, 11, 0.08);
}

.explorer-studio .explorer-card.is-active {
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px #f59e0b, 0 12px 32px -4px rgba(245, 158, 11, 0.22);
}

.explorer-studio .explorer-card-media {
  position: relative;
  aspect-ratio: auto;
  height: 100%;
  min-height: 250px;
  background: #0f172a;
  overflow: hidden;
}

.explorer-studio .explorer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.explorer-studio .explorer-card:hover .explorer-card-media img {
  transform: scale(1.04);
}

.explorer-studio .explorer-card-media::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.75), transparent);
  pointer-events: none;
}

.explorer-studio .explorer-card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.explorer-studio .explorer-tag-pill {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 9px;
  padding: 4px 9px;
  letter-spacing: 0.07em;
  font-weight: 750;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.explorer-studio .btn-card-save {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-studio .btn-card-save:hover {
  background: #ffffff;
  color: #f59e0b;
  transform: scale(1.08);
}

.explorer-studio .btn-card-save.is-saved {
  background: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35);
}

.explorer-studio .btn-card-save svg {
  width: 16px;
  height: 16px;
}

.explorer-studio .explorer-card-bottom-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.explorer-studio .clup-gate-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.explorer-studio .clup-gate-pill.is-pass {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.explorer-studio .clup-gate-pill.is-conditional {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.explorer-studio .clup-gate-pill.is-fail {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.explorer-studio .clup-gate-pill.is-unverified {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.explorer-studio .lens-fit-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 9999px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 4px 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.explorer-studio .lens-fit-badge strong {
  font-size: 15px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.explorer-studio .lens-fit-badge.score-high strong {
  color: #d97706;
}

.explorer-studio .lens-fit-badge span {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
}

.explorer-studio .explorer-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.explorer-card-corridor {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 750;
  margin-bottom: 2px;
}

.explorer-card-corridor span {
  color: #94a3b8;
  font-size: 9px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.explorer-studio .explorer-card.is-active .explorer-card-corridor span {
  color: #d97706;
  font-weight: 800;
}

.explorer-studio .explorer-card-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.explorer-studio .explorer-card-title:hover {
  color: #d97706;
}

.explorer-studio .explorer-card-loc {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
}

.explorer-studio .explorer-card-metrics {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.explorer-studio .explorer-card-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.explorer-studio .explorer-card-metrics > div:last-child {
  text-align: right;
}

.explorer-metric-label {
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.explorer-studio .explorer-card-price {
  font-size: 17px;
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.explorer-studio .explorer-card-area {
  font-size: 14px;
  color: #334155;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

.explorer-card-area small {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}

.explorer-studio .explorer-card-drivers {
  font-size: 11px;
  color: #475569;
  line-height: 1.55;
  min-height: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explorer-studio .explorer-card-actions {
  display: flex;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  gap: 8px;
  margin-top: auto;
}

.explorer-studio :is(.btn-card-compare, .btn-card-inspect) {
  min-height: 38px;
  font-size: 11px;
  font-weight: 750;
  padding: 0 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.explorer-studio .btn-card-compare {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}

.explorer-studio .btn-card-compare:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.explorer-studio .btn-card-compare.is-active {
  background: #fffbeb;
  color: #b45309;
  border-color: #f59e0b;
}

.explorer-studio .btn-card-inspect {
  background: #0f172a;
  border: 1.5px solid #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.explorer-studio .btn-card-inspect:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.explorer-studio .btn-card-inspect svg {
  width: 13px;
  height: 13px;
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Sticky Map Studio: Apple-Grade Glass GIS Command View
   -------------------------------------------------------------------------- */
.explorer-studio .explorer-map-studio {
  position: sticky;
  top: 96px;
  height: calc(100svh - 116px);
  min-height: 0;
  max-height: none;
  border-radius: 22px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 16px 48px -16px rgba(15, 23, 42, 0.16);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.explorer-map-heading {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  gap: 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.explorer-map-heading h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.04em;
  font-weight: 750;
  color: #0f172a;
  margin: 4px 0 0;
}

.explorer-fit-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  color: #334155;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 750;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-fit-map svg {
  width: 13px;
  height: 13px;
  color: #f59e0b;
}

.explorer-fit-map:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.explorer-studio .explorer-map-stage {
  flex: 1;
  min-height: 260px;
  height: auto;
  position: relative;
  background: #f1f5f9;
}

.explorer-studio #explorerLeafletMap {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}

.explorer-studio .explorer-map-top-bar {
  position: relative;
  inset: auto;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1;
  pointer-events: auto;
}

.explorer-studio .explorer-map-legend-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  color: #334155;
  font-size: 9.5px;
  font-weight: 600;
  box-shadow: none;
}

.legend-label {
  font-size: 8px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  padding-right: 6px;
  border-right: 1px solid #e2e8f0;
}

.explorer-studio .legend-dot i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot.is-pass i { background: #10b981; }
.legend-dot.is-conditional i { background: #f59e0b; }
.legend-dot.is-fail i { background: #f43f5e; }
.legend-dot.is-unverified i { background: #94a3b8; }

.explorer-studio .explorer-map-layer-switch {
  pointer-events: auto;
  position: relative;
  inset: auto;
  flex: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  padding: 3px;
  display: flex;
  gap: 2px;
}

.explorer-studio .btn-map-layer {
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 11px;
  font-weight: 750;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.explorer-studio .btn-map-layer:hover {
  color: #0f172a;
}

.explorer-studio .btn-map-layer.is-active {
  background: #0f172a;
  color: #ffffff;
}

.explorer-map-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  inset: auto;
  color: #334155;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  font-size: 10px;
  font-weight: 600;
  padding: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: none;
}

.explorer-map-hint svg {
  width: 12px;
  height: 12px;
  color: #f59e0b;
}

.explorer-map-hint span {
  color: #94a3b8;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Map Markers: High-Visibility Glowing Amber & Crisp White Badges
   -------------------------------------------------------------------------- */
.explorer-studio .marker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 750;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explorer-studio .marker-pill.is-active {
  background: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 3.5px rgba(255, 122, 0, 0.4), 0 8px 24px rgba(255, 122, 0, 0.5) !important;
  transform: scale(1.1);
  font-weight: 800;
}

.explorer-studio .marker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.explorer-studio .marker-dot.is-pass { background: #10b981; }
.explorer-studio .marker-dot.is-conditional { background: #f59e0b; }
.explorer-studio .marker-dot.is-fail { background: #f43f5e; }
.explorer-studio .marker-dot.is-unverified { background: #94a3b8; }
.explorer-studio .marker-pill.is-active .marker-dot { border: 1px solid #ffffff; }

/* --------------------------------------------------------------------------
   Selected Property Dossier Card: Ultra-Cohesive Masterpiece
   -------------------------------------------------------------------------- */
.explorer-studio .explorer-map-dossier-card {
  position: relative;
  inset: auto;
  flex: none;
  border: 0;
  border-top: 1px solid #f1f5f9;
  border-radius: 0;
  padding: 16px 20px 18px;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.03);
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  max-height: 340px;
  overflow-y: auto;
}

.explorer-studio .dossier-thumb {
  position: relative;
  width: 76px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
}

.explorer-studio .dossier-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-thumb > span {
  position: absolute;
  inset: auto 6px 6px;
  padding: 3px 6px;
  background: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);
  border-radius: 6px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35);
}

.dossier-thumb small {
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.explorer-studio .dossier-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.explorer-studio .dossier-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.explorer-studio .dossier-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #0f172a;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.35;
  white-space: normal;
  margin: 0;
}

.explorer-studio .dossier-meta {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.dossier-metrics {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 14px;
  gap: 12px;
}

.dossier-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dossier-metrics > div + div {
  padding-left: 16px;
  border-left: 1.5px solid #e2e8f0;
}

.dossier-metrics span {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dossier-metrics strong,
.explorer-studio .dossier-metrics .dossier-price {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.dossier-metrics small {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.dossier-drivers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  font-size: 10px;
  color: #64748b;
}

.dossier-driver {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 9999px;
  background: #fffbeb;
  color: #b45309;
  font-size: 10px;
  font-weight: 650;
}

.dossier-driver svg {
  width: 11px;
  height: 11px;
  color: #f59e0b;
}

.explorer-studio .dossier-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

/* Compare Toggle in Selected Dossier */
.explorer-studio #explorerCompareSelected {
  flex: 0.8;
  min-height: 44px;
  font-size: 12px;
  font-weight: 750;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explorer-studio #explorerCompareSelected:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.explorer-studio #explorerCompareSelected.is-active {
  background: #fffbeb;
  color: #b45309;
  border-color: #f59e0b;
}

/* --------------------------------------------------------------------------
   THE SHOWSTOPPER CTA BUTTON (User's Exact Amber-Orange Pill Button)
   -------------------------------------------------------------------------- */
.explorer-studio .btn-dossier-open {
  flex: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #ffb800 0%, #ff7a00 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 9999px;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  min-height: 44px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.35), 0 2px 6px rgba(255, 184, 0, 0.22);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.explorer-studio .btn-dossier-open:hover {
  background: linear-gradient(135deg, #ffc21a 0%, #ff881a 100%);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.45), 0 3px 8px rgba(255, 184, 0, 0.3);
  transform: translateY(-1.5px) scale(1.015);
  color: #ffffff !important;
}

.explorer-studio .btn-dossier-open:active {
  transform: translateY(0.5px) scale(0.99);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.3);
}

.explorer-studio .btn-dossier-open .btn-arrow {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.explorer-studio .btn-dossier-open:hover .btn-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Empty & Unavailable States
   -------------------------------------------------------------------------- */
.explorer-map-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  z-index: 4;
  background: #f8fafc;
}

.explorer-map-unavailable[hidden] {
  display: none;
}

.explorer-map-unavailable strong {
  font-size: 16px;
  color: #0f172a;
}

.explorer-map-unavailable p {
  font-size: 12px;
  color: #64748b;
  max-width: 250px;
  line-height: 1.6;
}

.explorer-studio .empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  text-align: center;
}

.explorer-mobile-nav {
  display: none;
}

body[data-page="property-explorer-terminal"] .maplibregl-ctrl-top-right {
  top: 12px;
  right: 6px;
}

body[data-page="property-explorer-terminal"] .maplibregl-ctrl-bottom-right {
  z-index: 4;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (1500px, 1200px, 900px, 560px)
   -------------------------------------------------------------------------- */
@media (min-width: 1500px) {
  .explorer-studio .explorer-hero-ribbon { padding: 38px 46px; }
  .explorer-studio .explorer-card-title { font-size: 18px; }
  .explorer-studio .explorer-card-body { padding: 20px; }
}

@media (max-width: 1200px) {
  body[data-page="property-explorer-terminal"] .explorer-page-shell { padding-inline: 20px; }
  .explorer-studio .explorer-hero-ribbon { gap: 24px; padding: 28px; }
  .explorer-studio .explorer-hero-actions { min-width: 310px; }
  .explorer-studio .explorer-studio-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; }
  .explorer-studio .explorer-card { grid-template-columns: 140px minmax(0, 1fr); }
  .explorer-studio .explorer-card-title { font-size: 15px; }
}

@media (max-width: 900px) {
  body[data-page="property-explorer-terminal"] .explorer-page-shell { padding: 16px 18px 100px; }
  .explorer-studio .explorer-hero-ribbon { flex-direction: column; align-items: stretch; gap: 24px; padding: 26px; }
  .explorer-studio .explorer-hero-copy h1 { font-size: 32px; }
  .explorer-studio .explorer-hero-actions { min-width: 0; width: 100%; gap: 18px; }
  .explorer-hero-caption { display: none; }
  .explorer-compare-tray { flex-wrap: wrap; gap: 12px; }
  .explorer-compare-items { order: 3; flex-basis: 100%; }
  .explorer-compare-open, .explorer-compare-prompt { margin-left: auto; }
  .explorer-hero-stats { justify-content: flex-start; gap: 32px; }
  .explorer-studio .explorer-lens-bar { padding: 16px 18px 12px; }
  .explorer-studio .explorer-lens-bar-head { flex-wrap: wrap; gap: 6px; }
  .explorer-studio .explorer-studio-grid { grid-template-columns: 1fr; }
  .explorer-studio .explorer-search-wrap { flex-basis: 100%; min-width: 0; }
  .explorer-studio .explorer-command-bar { flex-direction: column; align-items: stretch; }
  .explorer-studio .explorer-toolbar-filters { width: 100%; }
  .explorer-studio .explorer-toolbar-actions { justify-content: space-between; }
  .explorer-studio .explorer-select { flex: 1 1 calc(50% - 8px); width: 0; min-width: 0; }
  .explorer-studio .explorer-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explorer-studio .explorer-card { display: flex; }
  .explorer-studio .explorer-card-media { height: auto; min-height: 0; aspect-ratio: 1.7; }
  .explorer-studio .explorer-card-title { font-size: 14px; }
  .explorer-studio.mobile-view-list .explorer-map-studio,
  .explorer-studio.mobile-view-map .explorer-feed-column { display: none; }
  .explorer-studio .explorer-map-studio {
    position: relative;
    top: 0;
    min-height: 640px;
    height: calc(100svh - 180px);
    max-height: 850px;
    scroll-margin-top: 90px;
  }
  .explorer-studio .explorer-feed-column { scroll-margin-top: 90px; }
  .explorer-mobile-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 100;
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 9999px;
    border: 1.5px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(16px);
  }
  .explorer-mobile-tab {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: transparent;
    border: 0;
    padding: 10px 18px;
    min-height: 40px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
  }
  .explorer-mobile-tab svg { width: 14px; height: 14px; }
  .explorer-mobile-tab.is-active {
    color: #ffffff;
    background: #0f172a;
  }
  .explorer-mobile-tab span {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 1px 6px;
  }
}

@media (max-width: 560px) {
  body[data-page="property-explorer-terminal"] .explorer-page-shell { padding-inline: 14px; }
  .explorer-studio { gap: 16px; }
  .explorer-studio .explorer-hero-ribbon { padding: 22px; border-radius: 20px; }
  .explorer-studio .explorer-hero-copy h1 { font-size: clamp(26px, 7vw, 32px); }
  .explorer-hero-stats { justify-content: space-between; gap: 8px; }
  .explorer-hero-stats strong { font-size: 24px; }
  .explorer-hero-links { gap: 8px; }
  .explorer-studio .explorer-hero-link { font-size: 10px; padding: 0 12px; }
  .explorer-studio .explorer-hero-link.is-primary { flex: 1; }
  .explorer-studio .explorer-cards-grid { grid-template-columns: 1fr; }
  .explorer-studio .explorer-card-price { font-size: 19px; }
  .explorer-studio .explorer-card-title { font-size: 15px; }
  .explorer-studio .explorer-map-heading { padding: 14px; gap: 8px; }
  .explorer-map-heading h2 { font-size: 17px; }
  .explorer-studio .dossier-thumb { width: 74px; height: 74px; }
  .explorer-studio .dossier-title { font-size: 16px; }
  .dossier-metrics { padding: 10px; gap: 8px; }
  .dossier-metrics strong, .explorer-studio .dossier-metrics .dossier-price { font-size: 14px; }
  .explorer-studio .btn-dossier-open { font-size: 12px; padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .explorer-studio *, .explorer-studio *::before, .explorer-studio *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* LOCUS-SF Competitor Radar Marker & Badges */
.locus-competitor-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 40px;
  cursor: pointer;
  z-index: 250;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
  filter: drop-shadow(0 3px 6px rgba(220, 38, 38, 0.35));
}

.locus-competitor-marker:hover {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.45));
}

.locus-competitor-marker svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dossier-competitor-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

.dossier-competitor-strip.is-clear {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.1);
}

.dossier-competitor-strip.has-competitors {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 14px -3px rgba(245, 158, 11, 0.15);
}

.dossier-competitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dossier-competitor-kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dossier-competitor-strip.is-clear .dossier-competitor-kicker {
  color: #047857;
}

.dossier-competitor-strip.has-competitors .dossier-competitor-kicker {
  color: #b45309;
}

.radar-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  flex-shrink: 0;
}

.dossier-competitor-strip.has-competitors .radar-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.dossier-competitor-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dossier-competitor-badge.is-clear {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dossier-competitor-badge.is-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.dossier-competitor-status-clean strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 2px;
}

.dossier-competitor-status-clean p {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.dossier-competitor-matches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-competitor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dossier-competitor-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossier-competitor-item-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.dossier-competitor-item-status {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.dossier-competitor-item-dist {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.dossier-competitor-disclaimer {
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

/* Floating Map Radar HUD Indicator */
.map-radar-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  pointer-events: none;
  transition: all 0.2s ease;
}

.map-radar-chip.is-warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
}

/* ==========================================================================
   Admin Map-Based Candidate Site Creator Studio
   ========================================================================== */

/* Map Toolbar Button */
.btn-map-admin-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #b45309;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-map-admin-add:hover {
  background: #fffbeb;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-map-admin-add.is-active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  animation: adminButtonPulse 2s infinite;
}

@keyframes adminButtonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.btn-map-admin-add .admin-spark {
  font-size: 13px;
}

/* Floating Map Capture Instruction Ribbon */
.map-capture-instruction {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 999px;
  color: #f8fafc;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  white-space: nowrap;
}

.map-capture-instruction strong {
  color: #fcd34d;
}

.map-capture-instruction .btn-chip-cancel {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-capture-instruction .btn-chip-cancel:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
}

.is-capture-active #explorerLeafletMap {
  cursor: crosshair !important;
}

/* Temporary Map Pinpoint Pulse */
.map-capture-temp-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.map-capture-pin-dot {
  width: 16px;
  height: 16px;
  background: #f59e0b;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.map-capture-pin-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  animation: captureRingPulse 1.6s ease-out infinite;
  z-index: 1;
}

@keyframes captureRingPulse {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Modal: Register Candidate Site from Map
   -------------------------------------------------------------------------- */
.modal-shell#modalMapAddCandidateSite {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  padding: 20px;
  box-sizing: border-box;
}

.modal-shell#modalMapAddCandidateSite[hidden] {
  display: none !important;
}

.map-add-site-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  border-radius: 22px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: mapModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mapModalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.map-add-site-header {
  padding: 20px 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.map-add-site-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-add-site-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
}

.map-add-site-header h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.map-add-site-coords-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 4px;
  border: 1px solid #e2e8f0;
}

.map-add-site-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.map-add-site-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.map-add-site-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Radar Scan Preview inside Modal */
.map-add-site-radar-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.map-add-site-radar-preview.is-clear {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
}

.map-add-site-radar-preview.has-competitors {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.map-add-site-radar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.map-add-site-radar-desc {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  color: #64748b;
}

/* Type Pill Grid */
.map-type-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.map-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.map-type-btn .map-type-icon {
  font-size: 18px;
}

.map-type-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.map-type-btn.is-selected {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Corridor & Barangay Grid */
.map-field-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 580px) {
  .map-field-dual {
    grid-template-columns: 1fr;
  }
}

.map-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-form-group label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.map-quick-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.map-quick-chip {
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-quick-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.map-quick-chip.is-active {
  background: #fef3c7;
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.4);
}

/* Infrastructure Checkbox Chips */
.map-infra-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.map-infra-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s ease;
}

.map-infra-toggle input {
  accent-color: #f59e0b;
}

.map-infra-toggle.is-checked {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.4);
  color: #92400e;
}

/* Modal Footer */
.map-add-site-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-map-site-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-map-site-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-map-site-cancel {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-map-site-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Floating Success Toast */
.map-admin-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid #10b981;
  border-radius: 14px;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-admin-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Map Explorer: clear controls, a spacious canvas, and a compact site brief. */
body[data-page="property-explorer-terminal"] .explorer-page-shell {
  padding-top: 12px;
}

.explorer-studio .explorer-hero-ribbon {
  padding-block: 28px;
}

.explorer-studio .explorer-hero-copy {
  gap: 10px;
}

.explorer-studio .explorer-lens-bar {
  padding-block: 14px 10px;
}

.explorer-studio .explorer-lens-bar-head {
  margin-bottom: 12px;
}

.explorer-studio .explorer-lens-count-pill {
  justify-self: start;
  line-height: 1.4;
}

.explorer-studio .explorer-lens-btn.is-active .explorer-lens-count-pill {
  padding: 2px 7px;
  background: rgba(245, 158, 11, 0.14);
}

.explorer-studio .explorer-card {
  grid-template-columns: minmax(135px, 0.58fr) minmax(0, 1fr);
}

.explorer-studio .explorer-card-media {
  min-height: 236px;
}

.explorer-studio .explorer-card.is-active {
  box-shadow: 0 0 0 1px #f59e0b, 0 8px 24px -12px rgba(245, 158, 11, 0.28);
}

.explorer-map-heading-copy,
.explorer-map-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.explorer-map-heading-copy { gap: 12px; }
.explorer-map-heading-actions { flex: none; }

.explorer-map-heading-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
  background: #fffbeb;
  color: #d97706;
}

.explorer-map-heading-icon svg { width: 22px; height: 22px; }
.explorer-map-toolbar-note { font-size: 10px; color: #64748b; }
.explorer-studio .btn-map-layer svg { width: 13px; height: 13px; }
.explorer-studio .btn-map-admin-add { flex: none; min-height: 36px; pointer-events: auto; }
.explorer-studio .btn-map-admin-add svg { width: 14px; height: 14px; }

.explorer-map-focus-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(310px, calc(100% - 80px));
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.explorer-map-focus-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: #fffbeb;
  color: #b45309;
  font: 700 14px "Space Grotesk", sans-serif;
}

.explorer-map-focus-label > div { min-width: 0; }
.explorer-map-focus-label div > span { display: block; color: #64748b; font-size: 8px; font-weight: 700; letter-spacing: 0.1em; }
.explorer-map-focus-label strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f172a; font-size: 11px; margin-top: 3px; }

.explorer-studio .map-radar-chip {
  top: auto;
  left: 16px;
  right: auto;
  bottom: 32px;
  z-index: 3;
  max-width: calc(100% - 32px);
  font-size: 10px;
  padding: 8px 12px;
  white-space: normal;
  line-height: 1.5;
}

.explorer-map-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.explorer-map-footer .legend-dot { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.explorer-map-footer .legend-label { color: #64748b; }
.explorer-map-hint strong { color: #0f172a; font-weight: 800; }

.explorer-studio .marker-pill {
  padding: 6px 11px 6px 6px;
  gap: 6px;
  position: relative;
}

.marker-site-number {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 9px;
}

.marker-pill.is-active .marker-site-number { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
.explorer-studio #explorerLeafletMap.is-overview .locus-spatial-marker:not(:hover):not(:focus-visible) .marker-pill:not(.is-active) { padding: 5px; gap: 3px; }
.explorer-studio #explorerLeafletMap.is-overview .locus-spatial-marker:not(:hover):not(:focus-visible) .marker-pill:not(.is-active) .marker-price { display: none; }
.locus-spatial-marker:has(.marker-pill.is-active) { z-index: 4; }
.locus-spatial-marker:hover, .locus-spatial-marker:focus-visible { z-index: 5; }
.explorer-studio .marker-pill.is-active::after { content: ""; position: absolute; bottom: -7px; left: calc(50% - 5px); width: 10px; height: 10px; background: #ff9400; border-right: 2px solid #ffffff; border-bottom: 2px solid #ffffff; transform: rotate(45deg); }

.explorer-studio .dossier-topline { flex-wrap: wrap; gap: 5px 10px; }
.explorer-studio .dossier-title { font-size: 18px; }
.explorer-studio .dossier-meta { font-size: 11px; }
.explorer-studio .dossier-actions { margin-top: 2px; }
.explorer-studio .dossier-competitor-strip { width: 100%; padding: 0; border-radius: 10px; display: block; }
.explorer-studio .dossier-competitor-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; }
.dossier-competitor-head::-webkit-details-marker { display: none; }
.explorer-studio .dossier-competitor-kicker { font-size: 10px; flex: 1; }
.explorer-studio .dossier-competitor-badge { font-size: 9px; padding: 3px 7px; white-space: nowrap; }
.dossier-radar-chevron { color: #64748b; font-size: 15px; line-height: 1; transition: transform 0.2s ease; }
.dossier-competitor-strip[open] .dossier-radar-chevron { transform: rotate(180deg); }
.explorer-studio .dossier-competitor-body { max-height: 150px; overflow-y: auto; padding: 0 12px 12px; }
.explorer-studio .dossier-competitor-disclaimer { margin-top: 8px; }
.explorer-studio .map-capture-instruction { top: 16px; max-width: calc(100% - 32px); width: max-content; border-radius: 12px; white-space: normal; font-size: 11px; padding: 10px 12px; }
.explorer-studio .map-capture-instruction .btn-chip-cancel { flex: none; }

body.explorer-map-expanded { overflow: hidden; }
.explorer-studio .explorer-map-studio.is-expanded {
  position: fixed;
  inset: 20px;
  z-index: 1100;
  top: 20px;
  height: auto;
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 30px rgba(15, 23, 42, 0.5), 0 20px 80px rgba(15, 23, 42, 0.2);
}

.explorer-map-studio.is-expanded .explorer-map-heading { grid-column: 1 / -1; }
.explorer-map-studio.is-expanded .explorer-map-top-bar { grid-column: 1; grid-row: 2; }
.explorer-studio .explorer-map-studio.is-expanded .explorer-map-stage { grid-column: 1; grid-row: 3; height: 100%; min-height: 0; }
.explorer-map-studio.is-expanded .explorer-map-footer { grid-column: 1; grid-row: 4; }
.explorer-studio .explorer-map-studio.is-expanded .explorer-map-dossier-card { grid-column: 2; grid-row: 2 / -1; border-top: 0; border-left: 1px solid #e2e8f0; max-height: none; overflow-y: auto; align-content: start; }
.explorer-map-studio.is-expanded .dossier-topline { flex-direction: column; align-items: flex-start; }
.explorer-map-studio.is-expanded .dossier-drivers { align-items: flex-start; }
.explorer-map-studio.is-expanded .dossier-metrics { gap: 8px; padding: 10px; }
.explorer-map-studio.is-expanded .dossier-metrics > div + div { padding-left: 8px; }
.explorer-map-studio.is-expanded .dossier-metrics strong { font-size: 14px; }
.explorer-map-studio.is-expanded .dossier-metrics span { font-size: 8px; }
.explorer-map-studio.is-expanded .dossier-actions { flex-direction: column; align-items: stretch; }
.explorer-map-studio.is-expanded .btn-dossier-open { font-size: 12px; }

@media (max-width: 1400px) {
  .explorer-map-toolbar-note, .explorer-map-hint span { display: none; }
  .explorer-studio .explorer-card-body { padding: 16px; }
  .explorer-studio .explorer-card { grid-template-columns: 135px minmax(0, 1fr); }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .explorer-map-heading-icon { display: none; }
  .explorer-studio .explorer-map-heading { padding: 16px; }
  .explorer-map-heading h2 { font-size: 18px; }
  .explorer-expand-map { width: 34px; padding: 0; }
  .explorer-expand-map > span:last-child { display: none; }
  .explorer-map-footer { padding-inline: 14px; gap: 12px; }
  .explorer-studio .explorer-map-legend-pill { gap: 8px; }
}

@media (max-width: 900px) {
  .explorer-studio .explorer-card { grid-template-columns: none; }
  .explorer-studio .explorer-card-media { min-height: 0; }
  .explorer-studio .explorer-map-studio { height: auto; min-height: 0; max-height: none; }
  .explorer-studio .explorer-map-stage { flex: none; height: clamp(360px, 52svh, 520px); min-height: 360px; }
  .explorer-studio .explorer-map-dossier-card { max-height: none; overflow-y: visible; }
  .explorer-studio .explorer-map-studio.is-expanded { inset: 10px; display: flex; overflow-y: auto; }
  .explorer-studio .explorer-map-studio.is-expanded .explorer-map-stage { height: max(320px, 45svh); min-height: 320px; }
  .explorer-studio .explorer-map-studio.is-expanded .explorer-map-dossier-card { border-left: 0; overflow-y: visible; }
  .explorer-map-studio.is-expanded .dossier-topline { flex-direction: row; align-items: center; }
  .explorer-map-studio.is-expanded .dossier-actions { flex-direction: row; }
}

@media (min-width: 901px) and (max-height: 800px) {
  .explorer-studio .explorer-map-studio:not(.is-expanded) { position: relative; top: 0; height: auto; }
  .explorer-studio .explorer-map-studio:not(.is-expanded) .explorer-map-stage { flex: none; height: 360px; }
}

@media (max-width: 560px) {
  .explorer-studio .explorer-hero-ribbon { padding: 22px; }
  .explorer-map-heading-icon { display: none; }
  .explorer-studio .explorer-map-heading { padding: 14px 12px; }
  .explorer-map-heading h2 { font-size: 17px; }
  .explorer-map-heading .explorer-results-kicker { font-size: 7px; }
  .explorer-map-heading-actions { gap: 5px; }
  .explorer-map-heading-actions .explorer-fit-map { min-height: 36px; padding-inline: 10px; font-size: 10px; }
  .explorer-map-heading-actions .explorer-expand-map { width: 36px; padding: 0; }
  .explorer-expand-map > span:last-child { display: none; }
  .explorer-studio .explorer-map-top-bar { gap: 6px; padding: 8px 10px; }
  .explorer-studio .btn-map-layer { padding-inline: 10px; font-size: 10px; min-height: 34px; }
  .explorer-studio .btn-map-layer .ui-icon { display: none; }
  .explorer-studio .btn-map-admin-add { padding-inline: 10px; font-size: 10px; }
  .explorer-map-focus-label { top: 12px; left: 12px; padding: 7px; }
  .explorer-map-focus-label strong { font-size: 10px; }
  .explorer-map-footer { padding: 10px 12px; gap: 8px; }
  .explorer-studio .explorer-map-legend-pill { width: 100%; gap: 8px; font-size: 8px; }
  .explorer-map-footer .legend-label { font-size: 7px; padding-right: 5px; }
  .explorer-map-hint { font-size: 9px; }
  .explorer-studio .explorer-map-dossier-card { padding: 14px 12px; gap: 10px; }
  .explorer-studio .dossier-thumb { width: 60px; height: 68px; }
  .dossier-thumb > span { inset-inline: 4px; flex-wrap: wrap; gap: 0; }
  .explorer-studio .dossier-title { font-size: 15px; }
  .explorer-studio .dossier-topline .explorer-results-kicker { font-size: 7px; }
  .explorer-studio .dossier-meta { font-size: 10px; }
  .explorer-studio .dossier-metrics { gap: 6px; padding: 10px; }
  .explorer-studio .dossier-metrics > div + div { padding-left: 8px; }
  .explorer-studio .dossier-metrics span { font-size: 7px; }
  .explorer-studio .dossier-metrics strong { font-size: 13px; overflow-wrap: anywhere; }
  .explorer-studio .dossier-actions { gap: 7px; }
  .explorer-studio #explorerCompareSelected { font-size: 10px; padding-inline: 8px; }
  .explorer-studio .btn-dossier-open { font-size: 10px; padding-inline: 10px; gap: 5px; }
  .explorer-studio .dossier-competitor-head { padding-inline: 9px; gap: 5px; }
  .explorer-studio .dossier-competitor-kicker { font-size: 9px; }
  .explorer-studio .dossier-competitor-badge { font-size: 8px; }
}

/* Compact workspace hierarchy: sites and map stay close to the controls. */
body[data-page="property-explorer-terminal"] .explorer-studio {
  gap: 16px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-ribbon {
  padding: 22px 28px;
  gap: 24px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #dce3eb;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="property-explorer-terminal"] .explorer-hero-ribbon::before,
body[data-page="property-explorer-terminal"] .explorer-hero-ribbon::after,
body[data-page="property-explorer-terminal"] .explorer-hero-caption {
  display: none;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-copy {
  gap: 7px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-copy h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-copy p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-actions {
  gap: 12px;
}

body[data-page="property-explorer-terminal"] .explorer-hero-stats {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  gap: 20px;
}

body[data-page="property-explorer-terminal"] .explorer-hero-stats > div + div {
  padding-left: 20px;
  border-left: 1px solid #e2e8f0;
}

body[data-page="property-explorer-terminal"] .explorer-hero-stats strong {
  font-size: 24px;
  letter-spacing: 0;
}

body[data-page="property-explorer-terminal"] .explorer-hero-stats span {
  font-size: 9px;
  letter-spacing: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-bar {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #dce3eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-bar-title {
  font-size: 12px;
  letter-spacing: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-btn {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 3px 9px;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 8px;
  transform: none;
  box-shadow: none;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-btn-icon {
  grid-row: 1 / 3;
  filter: none;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-name {
  letter-spacing: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-btn.is-active {
  border-color: #d99a21;
  box-shadow: inset 0 -2px #fbbf24;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-compare-tray {
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: none;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.035);
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card.is-active {
  border-color: #d99a21;
  box-shadow: inset 3px 0 #f59e0b;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-body {
  gap: 10px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-feed-status-bar {
  min-height: 40px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-studio:not(.is-expanded) {
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-heading {
  padding: 14px 18px;
}

body[data-page="property-explorer-terminal"] .explorer-map-heading h2 {
  font-size: 18px;
  letter-spacing: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio :is(.explorer-lens-btn, .btn-card-compare, .btn-card-pin, .explorer-select, .explorer-search-input):focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-ribbon {
    padding: 18px;
    gap: 18px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-copy h1 {
    font-size: 26px;
  }

  body[data-page="property-explorer-terminal"] .explorer-hero-location {
    font-size: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-hero-stats {
    gap: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-hero-stats > div + div {
    padding-left: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-heading {
    padding: 12px;
  }
}

/* Workspace polish: adjust geometry without changing typography or colors. */
body[data-page="property-explorer-terminal"] .explorer-page-shell {
  width: var(--site-width);
  max-width: none;
  padding: 28px 0 96px;
}

body[data-page="property-explorer-terminal"] .explorer-site-shell {
  width: 100%;
  max-width: none;
}

body[data-page="property-explorer-terminal"] .explorer-studio {
  gap: 20px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-ribbon {
  padding: 24px 28px;
  border-radius: 16px;
}

body[data-page="property-explorer-terminal"] .explorer-hero-copy {
  min-width: 0;
}

body[data-page="property-explorer-terminal"] .explorer-eyebrow-row {
  flex-wrap: wrap;
  gap: 8px 12px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-actions {
  flex: 0 1 420px;
  min-width: 0;
}

body[data-page="property-explorer-terminal"] .explorer-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="property-explorer-terminal"] .explorer-hero-stats > div + div {
  padding-left: 16px;
}

body[data-page="property-explorer-terminal"] .explorer-hero-links {
  flex-wrap: wrap;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-link {
  flex: 1;
  white-space: normal;
  text-align: center;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-btn {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border-radius: 12px;
}

body[data-page="property-explorer-terminal"] .explorer-lens-name {
  white-space: normal;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-studio-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

body[data-page="property-explorer-terminal"] .explorer-feed-column {
  container-type: inline-size;
  container-name: explorer-feed;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card {
  grid-template-columns: clamp(144px, 12vw, 210px) minmax(0, 1fr);
  border-radius: 14px;
  container-type: inline-size;
  container-name: explorer-card;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-media {
  min-height: 0;
}

body[data-page="property-explorer-terminal"] .explorer-card-media > img {
  position: absolute;
  inset: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-body {
  padding: 18px;
  gap: 10px;
}

body[data-page="property-explorer-terminal"] .explorer-card-corridor {
  flex-wrap: wrap;
  gap: 4px 10px;
}

body[data-page="property-explorer-terminal"] .explorer-card-metrics {
  padding-block: 12px;
}

body[data-page="property-explorer-terminal"] .explorer-domain-metric > .locus-icon {
  flex-shrink: 0;
}

body[data-page="property-explorer-terminal"] .explorer-domain-metric-copy :is(.explorer-card-price, .explorer-card-area) {
  white-space: nowrap;
}

body[data-page="property-explorer-terminal"] .locus-card-domain-strip {
  padding-block: 8px 2px;
  gap: 8px;
}

body[data-page="property-explorer-terminal"] .locus-card-domain-chip {
  min-height: 60px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 10px;
}

body[data-page="property-explorer-terminal"] .explorer-studio :is(.btn-card-compare, .btn-card-inspect) {
  min-height: 44px;
  padding: 8px;
  white-space: normal;
  text-align: center;
}

body[data-page="property-explorer-terminal"] .explorer-studio .btn-card-save {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-top-badges {
  align-items: flex-start;
  flex-wrap: wrap;
}

body[data-page="property-explorer-terminal"] .explorer-card-top-badges .btn-card-save {
  margin-left: auto;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-bottom-badges {
  flex-wrap: wrap;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-compare-tray {
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
}

body[data-page="property-explorer-terminal"] .explorer-compare-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="property-explorer-terminal"] .explorer-compare-item {
  max-width: none;
  padding: 4px 4px 4px 6px;
  gap: 6px;
}

body[data-page="property-explorer-terminal"] .explorer-compare-item > span {
  min-width: 0;
}

body[data-page="property-explorer-terminal"] .explorer-compare-item button {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-studio:not(.is-expanded) {
  top: 124px;
  height: calc(100svh - 148px);
  border-radius: 14px;
  scroll-margin-top: 124px;
}

body[data-page="property-explorer-terminal"] .explorer-map-heading {
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page="property-explorer-terminal"] .explorer-studio :is(.explorer-fit-map, .btn-map-admin-add, .btn-map-layer) {
  min-height: 44px;
}

body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-top-bar {
  flex-wrap: wrap;
}

@container explorer-feed (max-width: 520px) {
  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@container explorer-card (max-width: 340px) {
  body[data-page="property-explorer-terminal"] .explorer-card-metrics > .explorer-domain-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1440px) {
  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-command-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-toolbar-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-search-wrap {
    grid-column: 1 / -1;
    min-width: 0;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-select {
    width: 100%;
    min-width: 0;
  }

  body[data-page="property-explorer-terminal"] .explorer-toolbar-actions {
    min-height: 46px;
  }
}

@media (max-width: 1279px) {
  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-lens-btn {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-compare-tray {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  body[data-page="property-explorer-terminal"] .explorer-compare-items {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body[data-page="property-explorer-terminal"] :is(.explorer-compare-open, .explorer-compare-prompt) {
    margin-left: 0;
  }

  body[data-page="property-explorer-terminal"] .explorer-compare-item > span {
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-studio:not(.is-expanded) {
    top: 0;
    height: auto;
  }
}

@media (min-width: 901px) {
  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-link {
    flex: 1 1 auto;
    padding-inline: 16px;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  body[data-page="property-explorer-terminal"] .explorer-page-shell {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-ribbon {
    padding: 22px;
    gap: 20px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-actions {
    flex: none;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-command-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-toolbar-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="property-explorer-terminal"] .explorer-toolbar-actions {
    align-self: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-studio:not(.is-expanded) {
    top: 0;
    height: auto;
    scroll-margin-top: 94px;
  }

  body[data-page="property-explorer-terminal"] .explorer-feed-column {
    scroll-margin-top: 94px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-mobile-tab {
    min-height: 44px;
  }
}

@media (max-width: 600px) {
  body[data-page="property-explorer-terminal"] .explorer-hero-stats {
    gap: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-hero-stats > div + div {
    padding-left: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-hero-link {
    padding-inline: 10px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-compare-tray {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="property-explorer-terminal"] .explorer-compare-items {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="property-explorer-terminal"] .explorer-compare-item > span {
    flex: 1;
  }

  body[data-page="property-explorer-terminal"] .explorer-compare-open {
    grid-row: 3;
    width: 100%;
  }

  body[data-page="property-explorer-terminal"] .explorer-compare-prompt {
    white-space: normal;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-expand-map {
    width: 44px;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-map-heading-actions {
    margin-left: auto;
  }
}

@media (max-width: 360px) {
  body[data-page="property-explorer-terminal"] .explorer-hero-links {
    flex-direction: column;
  }

  body[data-page="property-explorer-terminal"] .explorer-studio .explorer-toolbar-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}
