/* Quote Connect — Coverage map styles */

.cov-modes { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--r); flex-wrap: wrap; }
.cov-mode { display: inline-flex; align-items: center; gap: 7px; border: none; background: none; padding: 9px 14px; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cov-mode .qc-ic { color: var(--ink-3); }
.cov-mode.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.cov-mode.on .qc-ic { color: var(--accent-strong); }

.cov-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.cov-map-wrap { padding: 14px; position: relative; }

.cov-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; padding: 2px 4px; }
.cov-toolbar-l { font-size: 12px; color: var(--ink-3); }
.cov-states { display: flex; gap: 5px; flex-wrap: wrap; }
.cov-state { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); padding: 5px 11px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.cov-state:hover { border-color: var(--ink-3); color: var(--ink); }
.cov-state.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cov-admin-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: 100px; }

/* the map (Leaflet) */
.cov-map { position: relative; width: 100%; height: min(70vh, 640px); min-height: 460px; background: #0b1f33; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cov-leaf { position: absolute; inset: 0; width: 100%; height: 100%; }
.cov-map.pickable { cursor: crosshair; }
.cov-map.pickable .cov-leaf { cursor: crosshair; }
.leaflet-container { background: #0b1f33; font-family: var(--f-body); }

/* base layer switch */
.cov-baseswitch { position: absolute; top: 12px; right: 12px; z-index: 1000; display: flex; gap: 3px; background: rgba(255,255,255,.92); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 3px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.cov-baseswitch button { border: none; background: none; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.cov-baseswitch button.on { background: var(--navy); color: #fff; }

/* supplier pin */
.cov-leaf-icon { background: none; border: none; }
.cov-leaf-pin { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(2,15,45,.5), 0 1px 5px rgba(0,0,0,.5); transition: all .12s; }
.cov-leaf-pin.sel { width: 20px; height: 20px; margin: -3px; background: var(--accent-strong); box-shadow: 0 0 0 4px rgba(254,72,5,.4), 0 1px 6px rgba(0,0,0,.55); }
.cov-leaf-pin.faded { background: #9fb3c8; }
.cov-leaf-drop { display: block; width: 26px; height: 34px; background:
  radial-gradient(circle at 50% 34%, #fff 0 3.4px, transparent 4px), var(--blue);
  -webkit-mask: path("M13 0 C20 0 26 6 26 13 C26 23 13 34 13 34 C13 34 0 23 0 13 C0 6 6 0 13 0 Z");
          mask: path("M13 0 C20 0 26 6 26 13 C26 23 13 34 13 34 C13 34 0 23 0 13 C0 6 6 0 13 0 Z");
  border: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.cov-leaf-tip.leaflet-tooltip { background: var(--navy); color: #fff; border: none; border-radius: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; box-shadow: var(--shadow); }
.cov-leaf-tip.leaflet-tooltip::before { border-top-color: var(--navy); }
.leaflet-bar a { color: var(--ink) !important; }

.cov-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; background: rgba(2,15,45,.86); color: #fff; padding: 8px 16px; border-radius: 100px; font-size: 12px; pointer-events: none; backdrop-filter: blur(4px); }
.cov-hint .mono { letter-spacing: 0; }

.cov-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding: 0 4px; font-size: 11.5px; color: var(--ink-2); }
.cov-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cov-leg-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
.cov-leg-ring { width: 13px; height: 13px; border-radius: 50%; border: 1.4px dashed rgba(254,72,5,.6); background: rgba(254,72,5,.1); }

/* panel cards */
.cov-panel { position: sticky; top: 78px; }
.cov-card { padding: 20px; }
.cov-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.cov-card-head > div, .cov-card-htext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cov-card-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.cov-card-loc { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.cov-card-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cov-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.cov-card-note { display: flex; gap: 8px; font-size: 12px; color: var(--ink-2); line-height: 1.5; background: var(--surface-2); padding: 11px 13px; border-radius: var(--r); margin-bottom: 16px; }
.cov-card-note .qc-ic { color: var(--blue); flex: none; margin-top: 1px; }

/* signup */
.cov-signup-h { font-size: 21px; margin: 8px 0 8px; }
.cov-signup-p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.cov-signup-steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.cov-signup-steps li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cov-signup-steps li.dim { color: var(--ink-3); font-weight: 500; }
.cov-step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.cov-signup-steps li.dim .cov-step-n { background: var(--surface-2); color: var(--ink-3); }
.cov-signup-tip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--blue-deep); background: var(--blue-soft); border: 1px solid var(--blue-line); padding: 9px 13px; border-radius: var(--r); }

.cov-picked { display: flex; align-items: center; gap: 11px; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--r); padding: 12px; margin-bottom: 16px; }
.cov-picked-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cov-picked-label { font-weight: 700; font-size: 14.5px; }
.cov-picked-coords { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.cov-picked-edit { margin-left: auto; border: none; background: none; color: var(--blue-deep); font-size: 12px; font-weight: 700; text-decoration: underline; }
.cov-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.cov-field input { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); padding: 0 13px; height: 44px; font-size: 14px; color: var(--ink); }
.cov-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.cov-radius-locked { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 14px; margin-bottom: 16px; }
.cov-radius-locked-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cov-locked-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em; }
.cov-radius-bar { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.cov-radius-bar-fill { height: 100%; background: var(--line-strong); }
.cov-radius-locked-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; margin: 10px 0 0; }

/* admin */
.cov-admin-card { padding: 0; overflow: hidden; }
.cov-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: var(--navy); color: #fff; }
.cov-admin-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.cov-admin-badge .qc-ic { color: var(--accent-gold); }
.cov-admin-sub { font-size: 11px; color: rgba(255,255,255,.6); }
.cov-admin-intro { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; padding: 14px 18px 4px; margin: 0; }
.cov-admin-list { display: flex; flex-direction: column; max-height: 440px; overflow-y: auto; padding: 10px; gap: 6px; }
.cov-admin-row { padding: 11px; border: 1px solid transparent; border-radius: var(--r); cursor: pointer; transition: background .12s, border-color .12s; }
.cov-admin-row:hover { background: var(--surface-2); }
.cov-admin-row.on { background: var(--accent-soft); border-color: var(--accent-line); }
.cov-admin-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.cov-admin-row-id { min-width: 0; flex: 1; }
.cov-admin-row-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-admin-row-loc { font-size: 11px; color: var(--ink-3); }
.cov-admin-km { font-size: 13px; font-weight: 700; color: var(--accent-strong); flex: none; }

.cov-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 100px; background: var(--line); outline: none; }
.cov-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(2,15,45,.3); cursor: pointer; }
.cov-slider::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: pointer; }
.cov-admin-foot { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-3); padding: 12px 18px; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .cov-layout { grid-template-columns: 1fr; }
  .cov-panel { position: static; }
  .cov-map { max-width: 560px; margin: 0 auto; }
}
