/* Frontend Multi-City Site Styles */

/* Селектор города */
.mcs-city-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mcs-selector-icon {
    font-size: 18px;
}

/* Выпадающий список */
.mcs-selector-dropdown select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 20px;
}

.mcs-selector-dropdown select:hover {
    border-color: #999;
}

.mcs-selector-dropdown select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Кнопки */
.mcs-selector-buttons .mcs-button-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.mcs-city-button {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

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

.mcs-city-button.mcs-city-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 600;
}

/* Список ссылок */
.mcs-selector-links .mcs-city-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mcs-selector-links .mcs-city-links li {
    margin: 0;
    padding: 0;
}

.mcs-selector-links .mcs-city-links a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.mcs-selector-links .mcs-city-links a:hover {
    border-bottom-color: #2271b1;
}

.mcs-selector-links .mcs-city-current a {
    font-weight: 600;
    border-bottom-color: #2271b1;
}

/* Ссылки телефона и email */
.mcs-phone-link,
.mcs-email-link {
    color: #2271b1;
    text-decoration: none;
}

.mcs-phone-link:hover,
.mcs-email-link:hover {
    text-decoration: underline;
}

/* Виджет */
.widget.mcs-city-widget {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

.widget.mcs-city-widget .widget-title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 600px) {
    .mcs-city-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .mcs-selector-dropdown select,
    .mcs-city-button {
        font-size: 13px;
    }
    
    .mcs-selector-buttons .mcs-button-group {
        width: 100%;
    }
    
    .mcs-city-button {
        flex: 1;
        text-align: center;
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .mcs-city-selector {
        background: #1e1e1e;
        border-color: #444;
    }
    
    .mcs-selector-dropdown select {
        background: #1e1e1e;
        color: #fff;
        border-color: #444;
    }
    
    .mcs-city-button {
        background: #1e1e1e;
        color: #fff;
        border-color: #444;
    }
    
    .mcs-city-button:hover {
        background: #2a2a2a;
    }
}
