/* Equipment Locator — per-boat equipment map (design-files/Equipment Locator.dc.html) */

#boat-equipment-map.customer-field {
  padding: 0;
  gap: 0;
  border: none;
  overflow: hidden;
  position: relative;
}

.eqloc-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

/* ---------- Step 1 · profile picker ---------- */

.eqloc-step1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  min-height: 0;
  overflow: auto;
}

.eqloc-step1-eyebrow-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.eqloc-eyebrow {
  font: 700 12px var(--font-mono);
  color: var(--seafoam);
}

.eqloc-title {
  font: 700 18px var(--font-display);
  color: var(--harbor-navy);
}

.eqloc-subcopy {
  font: 400 13px var(--font-body);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.eqloc-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .eqloc-profile-grid { grid-template-columns: repeat(2, 1fr); }
}

.eqloc-profile-card {
  cursor: pointer;
  border: 1.5px solid var(--card-border);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eqloc-profile-card:hover {
  border-color: rgba(15, 140, 130, .5);
}

.eqloc-profile-card.selected {
  border-color: rgba(15, 140, 130, .55);
  background: rgba(15, 140, 130, .05);
}

.eqloc-profile-svg-wrap {
  width: 100%;
  aspect-ratio: 400 / 120;
  position: relative;
}

.eqloc-profile-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.eqloc-profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eqloc-profile-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #C7D2DC;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eqloc-profile-card.selected .eqloc-profile-dot {
  border-color: var(--seafoam);
}

.eqloc-profile-dot-fill {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.eqloc-profile-card.selected .eqloc-profile-dot-fill {
  background: var(--seafoam);
}

.eqloc-profile-name {
  font: 600 13px var(--font-body);
  color: var(--harbor-navy);
  min-width: 0;
}

.eqloc-profile-sub {
  font: 500 11px var(--font-body);
  color: var(--text-faint);
}

.eqloc-step1-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.eqloc-continue-btn {
  cursor: pointer;
  font: 600 13.5px var(--font-body);
  color: #fff;
  background: var(--seafoam);
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
}

.eqloc-continue-btn:hover {
  background: #0D7A71;
}

.eqloc-continue-btn.disabled {
  opacity: .5;
  pointer-events: none;
}

/* ---------- Step 2 · locator editor ---------- */

.eqloc-step2 {
  flex: 1;
  display: grid;
  grid-template-columns: 296px 1fr;
  min-height: 0;
}

@media (max-width: 900px) {
  .eqloc-step2 { grid-template-columns: 1fr; overflow: auto; }
}

.eqloc-rail {
  border-right: 1px solid #F0F3F6;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 16px 16px 20px;
}

@media (max-width: 900px) {
  .eqloc-rail { border-right: none; border-bottom: 1px solid #F0F3F6; overflow: visible; }
}

.eqloc-rail-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eqloc-change-profile {
  margin-left: auto;
  cursor: pointer;
  font: 600 11.5px var(--font-body);
  color: var(--signal-blue);
  background: none;
  border: none;
}

.eqloc-section-label {
  font: 700 11px var(--font-body);
  letter-spacing: .06em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.eqloc-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 16px;
}

.eqloc-type-chip {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--card-border);
  border-radius: 9px;
  background: #fff;
  min-height: 44px;
  box-sizing: border-box;
}

.eqloc-type-chip:hover {
  border-color: rgba(15, 140, 130, .45);
  background: rgba(15, 140, 130, .04);
}

.eqloc-type-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eqloc-type-name {
  font: 600 12px var(--font-body);
  color: #33475C;
}

.eqloc-editor-card {
  border: 1.5px solid rgba(15, 140, 130, .4);
  background: rgba(15, 140, 130, .04);
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.eqloc-editor-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eqloc-editor-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eqloc-editor-type-name {
  font: 700 13px var(--font-display);
  color: var(--harbor-navy);
}

.eqloc-delete-link {
  margin-left: auto;
  cursor: pointer;
  font: 600 11.5px var(--font-body);
  color: var(--red-text);
  background: none;
  border: none;
}

.eqloc-field-label {
  font: 500 10.5px var(--font-body);
  color: var(--text-faint);
  margin-bottom: 3px;
}

.eqloc-field-input {
  width: 100%;
  box-sizing: border-box;
  font: 600 13px var(--font-body);
  color: var(--text-body);
  border: 1px solid #D5DEE7;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  outline: none;
}

.eqloc-icon-picker {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.eqloc-icon-swatch {
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid #E1E8EF;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eqloc-add-photo {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px dashed #D5DEE7;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--text-faint);
  cursor: pointer;
  background: none;
  font: 600 12px var(--font-body);
  min-height: 44px;
  box-sizing: border-box;
}

.eqloc-add-photo:hover {
  border-color: var(--seafoam);
  color: var(--seafoam);
}

.eqloc-add-photo.has-photo {
  border-style: solid;
  border-color: rgba(15, 140, 130, .5);
  background: rgba(15, 140, 130, .05);
  color: #0E7C73;
}

.eqloc-pos-readout {
  font: 500 11px var(--font-mono);
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 9px;
}

.eqloc-placed-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eqloc-placed-row {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1.5px solid #EDF1F5;
  background: #fff;
  min-height: 44px;
  box-sizing: border-box;
}

.eqloc-placed-row.selected {
  border-color: rgba(15, 140, 130, .45);
  background: rgba(15, 140, 130, .05);
}

.eqloc-placed-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eqloc-placed-text {
  min-width: 0;
  flex: 1;
}

.eqloc-placed-label {
  font: 600 12.5px var(--font-body);
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eqloc-placed-spec {
  font: 500 10.5px var(--font-body);
  color: var(--text-faint);
}

.eqloc-placed-photo-flag {
  flex-shrink: 0;
}

/* ---------- deck levels ---------- */

.eqloc-level-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.eqloc-level-chip {
  cursor: pointer;
  font: 600 11px var(--font-body);
  color: var(--text-muted);
  background: #fff;
  border: 1px solid #E1E8EF;
  padding: 4px 9px;
  border-radius: 999px;
}

.eqloc-level-chip.active {
  color: #0E7C73;
  background: rgba(15, 140, 130, .1);
  border-color: rgba(15, 140, 130, .35);
}

.eqloc-level-tabs {
  margin-left: auto;
  display: flex;
  gap: 5px;
}

.eqloc-level-tab {
  cursor: pointer;
  font: 600 11px var(--font-body);
  color: var(--text-muted);
  background: #fff;
  border: 1px solid #E1E8EF;
  padding: 4px 11px;
  border-radius: 999px;
}

.eqloc-level-tab.active {
  color: #0E7C73;
  background: rgba(15, 140, 130, .1);
  border-color: rgba(15, 140, 130, .35);
}

.eqloc-marker.faded {
  opacity: .25;
}

/* ---------- wiring & plumbing runs ---------- */

.eqloc-run-toggles {
  display: flex;
  gap: 7px;
  margin-bottom: 8px;
}

.eqloc-run-toggle {
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 6px;
  border: 1.5px solid var(--card-border);
  background: #fff;
  border-radius: 9px;
  font: 600 12px var(--font-body);
  color: #33475C;
  min-height: 44px;
  box-sizing: border-box;
}

.eqloc-run-toggle-swatch {
  width: 16px;
  height: 0;
  border-top: 3px solid transparent;
  border-radius: 2px;
}

.eqloc-run-toggle-swatch.wire {
  border-top-color: #E0A430;
  border-top-style: solid;
}

.eqloc-run-toggle-swatch.hose {
  border-top-color: #2F7DA0;
  border-top-style: dashed;
}

.eqloc-run-toggle.wire.active {
  border-color: #E0A430;
  background: rgba(224, 164, 48, .08);
}

.eqloc-run-toggle.hose.active {
  border-color: #2F7DA0;
  background: rgba(47, 125, 160, .08);
}

.eqloc-connect-hint {
  font: 600 11.5px var(--font-body);
  color: var(--signal-blue);
  background: rgba(20, 98, 184, .07);
  border: 1px solid rgba(20, 98, 184, .25);
  border-radius: 9px;
  padding: 7px 10px;
  margin-bottom: 8px;
}

.eqloc-run-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.eqloc-run-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #EDF1F5;
  border-radius: 9px;
  background: #fff;
}

.eqloc-run-swatch {
  width: 16px;
  height: 0;
  border-top: 3px solid;
  border-radius: 2px;
  flex-shrink: 0;
}

.eqloc-run-label {
  flex: 1;
  min-width: 0;
  font: 600 11.5px var(--font-body);
  color: #33475C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eqloc-run-delete {
  cursor: pointer;
  font: 700 13px var(--font-body);
  color: #B8C4CE;
  background: none;
  border: none;
  padding: 4px;
}

.eqloc-run-delete:hover {
  color: var(--red-text);
}

/* ---------- canvas column ---------- */

.eqloc-canvas-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 20px;
  gap: 14px;
  background: #FAFCFD;
}

.eqloc-canvas-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px 14px;
}

.eqloc-canvas-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.eqloc-canvas-title {
  font: 700 13px var(--font-display);
  color: var(--harbor-navy);
}

.eqloc-canvas-hint {
  font: 500 11px var(--font-body);
  color: var(--text-faint);
}

.eqloc-zoom-toggle {
  margin-left: auto;
  display: flex;
  background: #EEF2F6;
  border-radius: 9px;
  padding: 2px;
}

.eqloc-zoom-toggle-btn {
  cursor: pointer;
  font: 600 11px var(--font-body);
  color: #62748A;
  background: transparent;
  padding: 4px 10px;
  border-radius: 7px;
}

.eqloc-zoom-toggle-btn.active {
  color: #0C2C49;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 67, .10);
}

.eqloc-canvas-box {
  width: 100%;
  position: relative;
  touch-action: none;
  overflow: hidden;
}

.eqloc-canvas-box.side { aspect-ratio: 400 / 120; }
.eqloc-canvas-box.top { aspect-ratio: 400 / 140; }

.eqloc-canvas-box > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eqloc-runs-svg {
  pointer-events: none;
}

.eqloc-port-label, .eqloc-stbd-label {
  position: absolute;
  left: 8px;
  font: 600 9.5px var(--font-body);
  color: var(--text-faint);
}

.eqloc-port-label { top: 6px; }
.eqloc-stbd-label { bottom: 6px; }

.eqloc-bilge-tag {
  position: absolute;
  left: 8px;
  transform: translateY(-50%);
  font: 600 9.5px var(--font-body);
  color: var(--red-text);
  opacity: .8;
  background: rgba(255, 255, 255, .85);
  padding: 1px 5px;
  border-radius: 6px;
}

.eqloc-station-line {
  position: absolute;
  top: 4%;
  bottom: 4%;
  width: 0;
  border-left: 1.5px dashed rgba(20, 98, 184, .5);
  transform: translateX(-50%);
  pointer-events: none;
}

.eqloc-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 8px;
  margin: -8px;
  box-sizing: content-box;
}

.eqloc-marker-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(12, 44, 73, .28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eqloc-marker.selected .eqloc-marker-dot {
  border-color: var(--harbor-navy);
}

.eqloc-marker-label {
  font: 600 10px var(--font-body);
  color: var(--harbor-navy);
  background: rgba(255, 255, 255, .94);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #E1E8EF;
  white-space: nowrap;
}

.eqloc-canvas-footer {
  font: 500 11.5px var(--font-body);
  color: var(--text-faint);
  text-align: center;
}

.eqloc-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 13px var(--font-body);
  color: var(--text-muted);
  padding: 40px;
}

/* ---------- photo modal ---------- */

.eqloc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 44, 73, .45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eqloc-modal-card {
  width: 440px;
  max-width: 92%;
  max-height: 90%;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(12, 44, 73, .35);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eqloc-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eqloc-modal-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eqloc-modal-title {
  font: 700 15px var(--font-display);
  color: var(--harbor-navy);
}

.eqloc-modal-sub {
  font: 500 11.5px var(--font-body);
  color: var(--text-faint);
}

.eqloc-modal-close {
  margin-left: auto;
  cursor: pointer;
  font: 700 16px var(--font-body);
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 2px 6px;
}

.eqloc-modal-close:hover {
  color: var(--harbor-navy);
}

.eqloc-modal-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  display: block;
}

.eqloc-modal-drop {
  height: 250px;
  border: 2px dashed #D5DEE7;
  border-radius: 12px;
  background: #FAFCFD;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.eqloc-modal-drop:hover,
.eqloc-modal-drop.drag-over {
  border-color: var(--seafoam);
  background: rgba(15, 140, 130, .05);
}

.eqloc-modal-drop-text {
  font: 600 13px var(--font-body);
  color: var(--text-muted);
}

.eqloc-modal-drop-sub {
  font: 500 11px var(--font-body);
  color: var(--text-faint);
}

.eqloc-modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eqloc-modal-btn {
  cursor: pointer;
  font: 600 12.5px var(--font-body);
  color: var(--signal-blue);
  background: #fff;
  padding: 8px 12px;
  border: 1px solid #D5DEE7;
  border-radius: 9px;
}

.eqloc-modal-btn:hover {
  border-color: var(--signal-blue);
}

.eqloc-modal-btn.danger {
  color: var(--red-text);
}

.eqloc-modal-btn.danger:hover {
  border-color: var(--red-text);
}

.eqloc-modal-btn.primary {
  margin-left: auto;
  color: #fff;
  background: var(--seafoam);
  border: none;
}

.eqloc-modal-btn.primary:hover {
  background: #0D7A71;
}
