/* Pearl Locale Selector — в духе Zara: минимализм, много воздуха, чёрно-белая эстетика */

.pearl-location-selector {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s ease, opacity 0.25s ease;
}

.pearl-location-selector--visible {
    visibility: visible;
    opacity: 1;
}

.pearl-location-selector__backdrop {
    position: absolute;
    inset: 0;
    background: #fff;
    pointer-events: none;
}

.pearl-location-selector__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    background: #fff;
}

/* Логотип сверху слева */
.pearl-location-selector__header {
    flex-shrink: 0;
    padding: 2rem 2.5rem 1.5rem;
}

.pearl-location-selector__logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pearl-location-selector__logo a {
    color: #000;
    text-decoration: none;
}

.pearl-location-selector__logo a:hover {
    text-decoration: underline;
}

/* Основной блок: слева форма, справа изображение */
.pearl-location-selector__main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

@media (min-width: 768px) {
    .pearl-location-selector__main {
        flex-direction: row;
    }
}

/* Левая колонка — форма */
.pearl-location-selector__form-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.5rem 3rem;
    max-width: 420px;
}

@media (min-width: 768px) {
    .pearl-location-selector__form-wrap {
        flex: 0 0 44%;
        max-width: none;
        padding: 3rem 3.5rem 4rem;
    }
}

.pearl-location-selector__title {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #000;
    line-height: 1.3;
}

.pearl-location-selector__subtitle {
    margin: 0 0 2rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #333;
    line-height: 1.4;
}

.pearl-location-selector__form {
    margin: 0;
}

.pearl-location-selector__field {
    margin: 0 0 1.25rem;
}

.pearl-location-selector__field:last-of-type {
    margin-bottom: 0;
}

.pearl-location-selector__select {
    display: block;
    width: 100%;
    padding: 0.65rem 0 0.65rem 0;
    font-size: 0.95rem;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    color: #000;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}

.pearl-location-selector__select:focus {
    outline: 0;
    border-bottom-color: #000;
}

.pearl-location-selector__submit {
    margin-top: 2rem;
}

.pearl-location-selector__btn {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: #000;
    border: 1px solid #000;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.pearl-location-selector__btn:hover {
    background: #fff;
    color: #000;
}

.pearl-location-selector__remember {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #555;
}

.pearl-location-selector__remember label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.pearl-location-selector__remember input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #000;
}

/* Правая колонка — изображение */
.pearl-location-selector__image-wrap {
    flex: 1;
    min-height: 280px;
    background: #f5f5f5;
}

@media (min-width: 768px) {
    .pearl-location-selector__image-wrap {
        min-height: 0;
        flex: 1 1 56%;
    }
}

.pearl-location-selector__image-wrap--fallback {
    background: #f0f0f0;
    background-image: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #ebebeb 100%);
}

.pearl-location-selector__image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .pearl-location-selector__image {
        min-height: 100%;
    }
}

.pearl-location-selector .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
