
/* Тултип подтверждения */
.dle-geo-confirm-popup {
    position: absolute;
    z-index: 10000;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 16px 18px;
    width: 270px;
    border: 1px solid #e2e8f0;
}
.dle-geo-confirm-arrow {
    position: absolute;
    top: -7px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    transform: rotate(45deg);
}
.dle-geo-confirm-title {
    font-size: 14px;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
}
.dle-geo-accent {
    font-weight: 700;
    color: #2b6cb0;
}
.dle-geo-confirm-actions {
    display: flex;
    gap: 8px;
}
.dle-geo-btn-confirm {
    flex: 1;
    background: #2b6cb0;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.dle-geo-btn-confirm:hover { background: #2c5282; }
.dle-geo-btn-change {
    flex: 1;
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.dle-geo-btn-change:hover { background: #e2e8f0; color: #1a202c; }

/* Оверлей и модальное окно */
.dle-geo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}
.dle-geo-modal-window {
    background: #ffffff;
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}
.dle-geo-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dle-geo-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}
.dle-geo-modal-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
}
.dle-geo-modal-close:hover { color: #e53e3e; }
.dle-geo-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

/* Кнопка Вся Россия */
.dle-geo-all-russia-block {
    margin-bottom: 18px;
}
.dle-geo-btn-all-russia {
    width: 100%;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}
.dle-geo-btn-all-russia:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}
.dle-geo-icon-globe {
    font-size: 20px;
    color: #3182ce;
}
.dle-geo-all-russia-text b {
    display: block;
    font-size: 15px;
    color: #2d3748;
}
.dle-geo-all-russia-text small {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}

/* Поле поиска */
.dle-geo-search-container {
    position: relative;
    margin-bottom: 16px;
}
.dle-geo-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 15px;
}
.dle-geo-search-field {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dle-geo-search-field:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* Популярные теги */
.dle-geo-popular-cities {
    margin-bottom: 16px;
}
.dle-geo-popular-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.dle-geo-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dle-geo-popular-tags a {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}
.dle-geo-popular-tags a:hover {
    background: #3182ce;
    color: #ffffff;
}

/* Список городов */
.dle-geo-results-list {
    min-height: 160px;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 10px;
}
.dle-geo-city-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: #2d3748;
    transition: background 0.15s;
}
.dle-geo-city-row:hover {
    background: #ebf8ff;
    color: #2b6cb0;
}
.dle-geo-city-row .dle-geo-reg-title {
    font-size: 12px;
    color: #a0aec0;
}
.dle-geo-state-msg {
    text-align: center;
    color: #a0aec0;
    padding: 40px 10px;
    font-size: 14px;
}
/****************************/
.dle-geo-all-russia-wrap {
    margin-bottom: 15px;
}
.dle-geo-btn-all {
    width: 100%;
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dle-geo-btn-all:hover {
    background: #e2e8f0;
    border-color: #a0aec0;
    color: #1a202c;
}
.dle-geo-btn-all span {
    font-size: 12px;
    color: #718096;
}
/* Кнопка селектора в шапке */
.dle-geo-widget {
    display: inline-block;
    position: relative;
    font-family: inherit;
}
.dle-geo-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #2b6cb0;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dle-geo-btn:hover {
    text-decoration: underline;
}

/* Модальное окно */
.dle-geo-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dle-geo-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}
.dle-geo-modal-dialog {
    position: relative;
    background: #fff;
    width: 95%;
    max-width: 560px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 10;
}
.dle-geo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.dle-geo-modal-title { margin: 0; font-size: 18px; font-weight: 600; }
.dle-geo-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #a0aec0; }
.dle-geo-modal-body { padding: 20px; }
.dle-geo-search-box input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}
.dle-geo-quick-cities { margin: 14px 0; font-size: 13px; }
.dle-geo-quick-title { color: #718096; margin-right: 6px; }
.dle-geo-quick-cities a { margin-right: 8px; color: #3182ce; text-decoration: none; }
.dle-geo-quick-cities a:hover { text-decoration: underline; }
.dle-geo-results-list {
    max-height: 260px;
    overflow-y: auto;
    margin-top: 10px;
}
.dle-geo-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}
.dle-geo-item:hover { background: #edf2f7; }
.dle-geo-item-region { color: #a0aec0; font-size: 13px; }

/* Тултип подтверждения города */
.dle-geo-confirm-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    z-index: 1000;
    min-width: 240px;
    border: 1px solid #e2e8f0;
}
.dle-geo-confirm-text { margin-bottom: 10px; font-size: 14px; }
.dle-geo-confirm-buttons { display: flex; gap: 8px; }
.dle-geo-btn-yes { background: #38a169; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.dle-geo-btn-no { background: #edf2f7; color: #4a5568; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }