/* =====================================================================
 * place-picker.css — GEMEINSAME Ortsauswahl (Saso 04.11.2026)
 * =====================================================================
 *
 * Die Ortsmaske (Autocomplete + Leaflet-Karten-Picker) wird an drei
 * Stellen gebraucht:
 *   - Horoskop-Rechner   (/horoskope/, /chinesische-horoskope/)
 *   - Human Design        (/human-design/)
 *   - Konto               (/konto/)
 *
 * Die Styles lagen vorher in css/horoskope.css — dort werden sie aber nur
 * auf den Horoskop-Seiten geladen. Die Maske wird deshalb jetzt hier
 * eigenstaendig definiert und von horoskope.css per @import geholt.
 * Kein Kopieren: eine Quelle, drei Konsumenten.
 * ===================================================================== */

/* ---------- Vorschlagsliste (Autocomplete) ---------- */

.hr-field-place,
.konto-birth-place-row { position: relative; }

.hr-suggest {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 30;
    margin-top: 4px;
    background: #16162e;
    border: 1px solid rgba(212, 169, 68, 0.4);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    max-height: 280px;
    overflow-y: auto;
}
.hr-suggest-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: none; border: none; cursor: pointer;
    text-align: left; font-family: inherit;
    color: var(--color-text);
    border-bottom: 1px solid rgba(212, 169, 68, 0.12);
}
.hr-suggest-item:last-child { border-bottom: none; }
.hr-suggest-item:hover, .hr-suggest-item:focus { background: rgba(212, 169, 68, 0.12); outline: none; }
.hr-suggest-name { font-size: 0.95rem; font-weight: 600; }
.hr-suggest-sub { font-size: 0.78rem; color: var(--color-text-muted); }

/* ---------- Karten-Knopf ---------- */

.hr-map-btn {
    margin-top: 0.45rem;
    padding: 0.45rem 0.8rem;
    background: none;
    border: 1px dashed rgba(212, 169, 68, 0.45);
    border-radius: 8px;
    color: var(--color-gold-light, #d4a944);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}
.hr-map-btn:hover { background: rgba(212, 169, 68, 0.1); }

/* ---------- Karten-Bereich ---------- */

.hr-map-wrap {
    margin-top: 1rem;
    border: 1px solid rgba(212, 169, 68, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: #16162e;
}
.hr-map-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    color: var(--color-gold-light, #d4a944);
    background: rgba(42, 26, 74, 0.35);
}
.hr-map-close {
    background: none; border: none; color: var(--color-text-muted);
    font-size: 1.1rem; cursor: pointer; padding: 0.1rem 0.3rem;
}
.hr-map-close:hover { color: var(--color-text); }
.hr-map { height: 320px; background: #0d0d1a; }
.hr-map-info {
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
    color: var(--color-text);
    border-top: 1px solid rgba(212, 169, 68, 0.2);
    min-height: 2.2rem;
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.hr-map-dist { color: var(--color-text-muted); font-size: 0.8rem; }
.hr-map-take {
    padding: 0.35rem 0.9rem;
    border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--color-primary, #6a4ba0), var(--color-gold, #d4a944));
    color: #fff; font-weight: 600; font-size: 0.85rem; font-family: inherit;
    cursor: pointer;
}

/* ---------- Karten-Header: Titel + Suchfeld + Close (09.10.2026) ---------- */

.hr-map-head {
    display: flex; align-items: center; gap: 0.8rem;
    flex-wrap: wrap;
}
.hr-map-title { flex-shrink: 0; }
.hr-map-search { position: relative; flex: 1 1 180px; min-width: 150px; }
.hr-map-search input {
    width: 100%;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 169, 68, 0.35);
    background: rgba(13, 13, 26, 0.9);
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: inherit;
}
.hr-map-search input:focus { outline: none; border-color: var(--color-gold); }
.hr-map-suggest-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 1000;
}

/* --------------------------------------------------------------------
 * Konto-Variante der Maske (Saso 04.11.2026)
 * Das Konto nutzt die gleiche Bedienung, aber in eigener Optik:
 * Felder untereinander statt im Horoskop-Grid.
 * ------------------------------------------------------------------ */

.konto-birth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.6rem;
}

.konto-birth-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.konto-birth-row input[type="date"],
.konto-birth-row input[type="time"],
.konto-birth-row input[type="text"] {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 169, 68, 0.28);
    background: rgba(13, 13, 26, 0.55);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: inherit;
}

.konto-birth-row input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 169, 68, 0.18);
}

.konto-opt {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.konto-birth-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.konto-ok {
    color: #7fc9a0;
    font-size: 0.9rem;
    margin: 0.4rem 0 0;
}
