/**
 * Public styles for SimpleLocations
 */

.simple-locations-switcher {
    position: relative;
    display: inline-block;
    font-size: 14px;
    margin: 10px 0;
}

.simple-locations-current {
    display: flex;
    align-items: center;
    gap: 10px;
}

.simple-locations-label {
    font-weight: bold;
}

.simple-locations-value {
    margin-right: 10px;
}

.simple-locations-change-link {
    text-decoration: underline;
    cursor: pointer;
    color: #0073aa;
}

.simple-locations-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #E2DCD5;
    border: 1px solid #E2DCD5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 200px;
    margin-top: 5px;
}

.simple-locations-prompt {
    font-weight: bold;
    margin-bottom: 10px;
}

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

.simple-locations-list li {
    margin-bottom: 5px;
}

.simple-locations-select-link {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
	font-size: 18px;
}

.simple-locations-select-link:hover {
    background-color: #f5f5f5;
    color: #0073aa;
	font-size: 18px;
}

.simple-locations-active {
    background-color: #f0f7fb;
    font-weight: bold;
}

/* Location selection modal */
.simple-locations-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-locations-modal {
    background: #F5F5F4;
    max-width: fit-content;/*500px;*/
    width: 90%;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.simple-locations-modal-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
	letter-spacing: 0.03rem;
}

.simple-locations-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.simple-locations-modal button {
    cursor: pointer;
    padding: 8px 15px;
    border: none;
    font-size: 14px;
}

.simple-locations-yes-btn {
    background-color: #0073aa;
    color: white;
}

.simple-locations-no-btn {
    background-color: #f5f5f5;
    color: #333;
}

/* Menu item styles */
.menu-item .simple-locations-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 200px;
    margin-top: 5px;
}

.simple-locations-menu-current {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.simple-locations-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.simple-locations-menu-list li {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    text-align: left;
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
}

/* Force clean styles for dropdown menu items */
.simple-locations-menu-list li a,
.simple-locations-menu-list li a:hover,
.simple-locations-menu-list li a:focus,
.simple-locations-menu-list li a:active {
    display: block !important;
    padding: 5px 10px !important;
    text-decoration: none !important;
    color: #333 !important;
    background: none !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    font-weight: normal !important;
    letter-spacing: normal !important;
    border: none !important;
    margin: 0 !important;
    float: none !important;
    text-align: left !important;
    font-size: 14px !important;
}

.simple-locations-menu-list li a:hover {
    color: #003865 !important;
}

/* Menu links should inherit theme styles */
a.simple-locations-menu-link,
a.simple-locations-menu-modal-link {
    cursor: pointer;
}


/* Новый вид списка локаций */
.simple-locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* центрируем по модалке */
    list-style: none; /* убираем, если остались li */
    margin: 0;
    padding: 0;
}

.simple-locations-list .location-item {
    text-align: center;
    width: 300px; /* ширина карточки */
}

.simple-locations-list .location-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.simple-locations-list .location-item img {
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.simple-locations-list .location-item img:hover {
    transform: scale(1.05);
}

.simple-locations-list .location-title {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.simple-locations-modal-logo {
    margin-top: 25px;
    text-align: center;
}

.simple-locations-modal-logo img {
    max-width: 350px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.simple-locations-modal-logo img:hover {
    opacity: 1;
}


/* for mobile */
.simple-locations-list .location-item {
    text-align: center;
    width: 100%; /* по умолчанию занимает всю ширину */
    max-width: 300px; /* на больших экранах ограничиваем */
    /*flex: 1 1 calc(50% - 20px); /* 2 карточки в ряд на планшете */
}

@media (max-width: 480px) {
    .simple-locations-list .location-item {
        flex: 1 1 100%; /* на маленьких — 1 в ряд */
    }
}

.simple-locations-modal {
    background: #F5F5F4;
    /*max-width: 500px;*/
    width: 95%;   /* вместо 90% → комфортнее в телефоне */
    padding: 20px; /* уменьшаем отступ */
    overflow-y: auto;
    max-height: 90vh; /* прокрутка на маленьких экранах */
    position: relative;
}

.simple-locations-modal-title {
    font-size: 20px; /* вместо 24px */
}

.simple-locations-list .location-title {
    font-size: 16px;
}

.simple-locations-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px !important;
    cursor: pointer;
    color: #333;
}
