/* ============ IBPH LOCAL SELECTOR v3 ============ */

.ibph-local-selector-wrap {
    border: 2px solid #1a1a2e;
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.ibph-local-selector-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ibph-local-selector-sub {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.ibph-local-field-group {
    margin-bottom: 14px;
}

.ibph-local-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ibph-field-hint {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.ibph-local-field-group input[type="text"],
.ibph-local-field-group select {
    width: 100%;
    max-width: 380px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.ibph-local-field-group input[type="text"]:focus,
.ibph-local-field-group select:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 2px rgba(26,26,46,0.12);
}

/* City results */
.ibph-city-results {
    max-width: 380px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    margin-bottom: 14px;
}

#ibph-city-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ibph-city-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

.ibph-city-item:last-child { border-bottom: none; }
.ibph-city-item:hover { background: #1a1a2e; color: #fff; }

.ibph-no-results {
    padding: 12px 14px;
    color: #888;
    font-style: italic;
    font-size: 13px;
}

/* Earth */
.ibph-earth-message {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a1a2e;
    color: #fff;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.ibph-earth-message span { font-size: 28px; flex-shrink: 0; }
.ibph-earth-message strong { display: block; font-size: 15px; margin-bottom: 2px; }
.ibph-earth-message p { margin: 0; font-size: 13px; color: #b8b8c8; }

/* Confirmed selection */
.ibph-local-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #1a1a2e;
    color: #fff;
    padding: 14px 16px;
    border-radius: 4px;
    flex-wrap: wrap;
}

.ibph-local-selected-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ibph-local-selected-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.ibph-local-selected-value {
    font-size: 17px;
    font-weight: 700;
    color: #c9a85c;
    letter-spacing: 0.5px;
}

#ibph-local-change-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

#ibph-local-change-btn:hover { background: rgba(255,255,255,0.2); }

/* Error */
.ibph-local-error {
    background: #fdecea;
    color: #b02a2a;
    border: 1px solid #f5c2c0;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 480px) {
    .ibph-local-field-group input[type="text"],
    .ibph-local-field-group select,
    .ibph-city-results { max-width: 100%; }
    .ibph-local-selected { flex-direction: column; align-items: flex-start; }
}
