/* ══════════════════════════════════════════════════════════════════════════════
   Country Picker Modal
   ══════════════════════════════════════════════════════════════════════════════ */

.geo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.geo-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 28px 72px rgba(0, 0, 0, .35);
}

/* Header */
.geo-modal-header {
    padding: 32px 28px 20px;
    text-align: center;
    flex-shrink: 0;
}
.geo-modal-icon {
    display: block;
    font-size: 38px;
    color: #E0006C;
    margin-bottom: 12px;
}
.geo-modal-title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
    color: #111;
}
.geo-modal-sub {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Body */
.geo-modal-body {
    padding: 16px 24px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Search bar */
.geo-search-wrap {
    position: relative;
    margin-bottom: 8px;
}
.geo-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}
.geo-search-input {
    width: 100%;
    padding: 11px 44px 11px 38px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fafafa;
    box-sizing: border-box;
}
.geo-search-input:focus {
    border-color: #E0006C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(224, 0, 108, .1);
}
.geo-spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #E0006C;
    border-radius: 50%;
    animation: geo-spin .6s linear infinite;
}
@keyframes geo-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Suggest list */
.geo-suggest-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}
.geo-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background .1s;
}
.geo-suggest-item:hover {
    background: #fdf2f8;
    color: #E0006C;
}
.geo-suggest-item .icon {
    color: #E0006C;
    flex-shrink: 0;
    font-size: 14px;
}
.geo-suggest-empty {
    padding: 14px 16px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    list-style: none;
}

/* Selected country pill */
.geo-selected-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdf2f8;
    border: 1.5px solid #fbb6d4;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 4px;
}
.geo-selected-icon { color: #E0006C; font-size: 16px; flex-shrink: 0; }
.geo-selected-name { flex: 1; font-size: 15px; font-weight: 600; color: #E0006C; }
.geo-clear-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s;
}
.geo-clear-btn:hover { color: #E0006C; }

/* Footer */
.geo-modal-footer {
    padding: 20px 24px 24px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fafafa;
}
.geo-confirm-btn {
    font-size: 15px;
    padding: 11px 32px;
    width: 100%;
}
.geo-confirm-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.geo-modal-note {
    margin: 10px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Sidebar — City / Location Hierarchy
   ══════════════════════════════════════════════════════════════════════════════ */

.country-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* City row */
.geo-city-row {
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.geo-city-row:last-child { border-bottom: none; }

.geo-city-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 4px;
}

.geo-city-link {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color .12s;
}
.geo-city-link:hover,
.geo-city-row.open .geo-city-link { color: #E0006C; }

/* Toggle button */
.geo-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    color: #bbb;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
    transition: color .12s, transform .2s;
}
.geo-toggle-btn:hover { color: #E0006C; }
.geo-city-row.open .geo-toggle-btn { color: #E0006C; }

/* Location list */
.geo-loc-list {
    list-style: none !important;
    margin: 0 0 6px 0 !important;
    padding: 0 0 0 10px !important;
    border-left: 2px solid #fbb6d4;
}

.geo-loc-row { padding: 4px 0; }

.geo-loc-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color .12s;
}
.geo-loc-link:hover { color: #E0006C; }
.geo-loc-link .icon {
    font-size: 10px;
    color: #ddd;
    flex-shrink: 0;
}

/* Empty state */
.geo-empty {
    padding: 8px 4px;
    list-style: none !important;
    font-size: 12px;
    color: #9ca3af;
}

