.city-selector {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.city-selector-current {
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-selector-label {
    color: #666;
    font-size: 14px;
}

.city-selector-button {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.city-selector-button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.city-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
}

.city-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.city-selector-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
}

.city-selector-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.city-selector-close:hover {
    color: #333;
}

.city-selector-search {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.city-search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.city-search-input:focus {
    outline: none;
    border-color: #999;
}

.city-selector-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.city-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.city-item:hover {
    background: #f5f5f5;
}

.city-item.selected {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.city-item.selected:before {
    content: "✓ ";
}

.city-region {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
    font-weight: normal;
}

.city-selector-footer {
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fafafa;
    text-align: center;
}

.city-selector-footer small {
    color: #999;
    font-size: 11px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}
 
.city-selector {
    position: relative;
    display: inline-block;
}

.city-button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.city-button:hover {
    background: #f5f5f5;
}

.city-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
}

.city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.city-search {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#city-search-<?= $componentId ?> {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

#city-search-<?= $componentId ?>:focus {
    outline: none;
    border-color: #999;
}

.city-list-container {
    max-height: 250px;
    overflow-y: auto;
}

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

.city-list li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.city-list li:hover {
    background: #f5f5f5;
}

.region {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}
