/* ============================================================
 * hotspot-finder.css — Hotspot Finder tool step-content styles.
 *
 * Hotspot Finder slice Commit 2 (WIP). Lives at
 *   public/tools/wip/hotspot-finder.css
 * during WIP testing; moves to public/tools/hotspot-finder.css at
 * Commit 3 cutover.
 *
 * Naming convention: `.hf-*` prefix to avoid collisions with
 * shell-owned `.gw-*` classes and other tools' prefixes
 * (`.fs-*` for Find Similar, `.dp-*` for Demographics Profile,
 * `.oc-*` for Order Cluster, `.ug-*` for Upload & Geocode).
 *
 * SHARED CLASSES this file DOES NOT own — they live in
 * geoweave-shell.css and are used by both FS and HF:
 *   .gw-demo-filter-*, .gw-demo-additional-*, .gw-demo-radio-*,
 *   .gw-demo-tolerance-*, .gw-demo-group-*, .gw-city-picker-*,
 *   .gw-zip-geocoder-*.
 *
 * Followup: many .hf-* classes below (section, btn, param-row,
 * results) duplicate their .fs-* counterparts. On the third
 * consumer (demographics-bg), migrate these to shared .gw-tool-*
 * or similar and remove from both tool CSS files.
 * ============================================================ */

/* Sections in the step body. */

.hf-section {
    margin-bottom: 16px;
}

.hf-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.hf-section-hint {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Center picker mode-radio (tool-specific — the three-mode
   choice between City/Zip/Map-click). The individual widgets
   themselves use .gw-city-picker-*/.gw-zip-geocoder-* from
   shell CSS. */

.hf-center-mode {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.hf-center-info {
    padding: 6px 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
    background: var(--color-bg-subtle);
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hf-center-label {
    flex: 1;
}

.hf-center-reset {
    font-size: 11px;
    background: none;
    border: none;
    color: var(--color-action-primary);
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.hf-center-reset:hover {
    text-decoration: underline;
}

.hf-map-click-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: var(--color-bg-surface);
    border: 1px dashed var(--color-border-default);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
    margin-top: 6px;
}

.hf-map-click-btn:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-action-primary);
    color: var(--color-action-primary);
}

.hf-map-click-hint {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
    font-style: italic;
    text-align: center;
}

/* Search parameter controls (radius, circle size, max circles). */

.hf-param-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hf-param-label {
    font-size: 12px;
    min-width: 80px;
    color: var(--color-text-secondary);
}

.hf-max-slider {
    flex: 1;
    height: 4px;
}

.hf-max-val {
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: right;
}

/* Color By dropdown. */

.hf-colorby-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--color-border-default);
    border-radius: 6px;
    font-size: 13px;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    margin-top: 4px;
}

/* Buttons + status. */

.hf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    background: var(--color-action-primary);
    color: var(--color-action-text);
    border: 1px solid var(--color-action-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: filter var(--transition-fast);
}

.hf-btn:hover:not(:disabled) {
    filter: brightness(1.15);
}

.hf-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.hf-btn-secondary {
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    border-color: var(--color-border-default);
}

.hf-btn-secondary:hover:not(:disabled) {
    background: var(--color-bg-subtle);
    filter: none;
}

.hf-search-status {
    padding: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
    background: var(--color-bg-subtle);
    border-radius: 4px;
    text-align: center;
    margin-top: 8px;
}

.hf-search-status.error {
    color: var(--color-danger);
    background: var(--color-danger-bg);
}

/* Step 3 — Results summary + circle cards. */

.hf-results-summary {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--color-text-primary);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.hf-results-summary .hf-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-action-primary);
}

.hf-results-summary .hf-meta {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

.hf-circle-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    max-height: 340px;
    overflow-y: auto;
}

.hf-circle-card {
    padding: 6px 8px;
    border: 1px solid var(--color-border-default);
    border-left: 3px solid var(--color-action-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: var(--color-bg-surface);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hf-circle-card:hover {
    background: var(--color-bg-subtle);
}

.hf-circle-card-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--color-action-primary);
    margin-bottom: 2px;
}

.hf-circle-card-stats {
    color: var(--color-text-secondary);
    font-size: 11px;
    line-height: 1.4;
}

/* Export buttons row. */

.hf-export-row {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.hf-export-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hf-export-btn:hover:not(:disabled) {
    background: var(--color-bg-subtle);
}

.hf-export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--color-text-tertiary);
}

.hf-export-btn .gw-ic {
    width: 18px;
}

/* Save section. */

.hf-save-section {
    padding: 12px;
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
}

.hf-save-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.hf-save-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-border-default);
    border-radius: 6px;
    font-size: 13px;
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
