.skysimhub-explorer {
    position: relative;
    z-index: 120;
    isolation: isolate;
    margin: 0 0 32px;
}

.skysimhub-explorer__form {
    position: relative;
    z-index: 3;
    margin: 0;
}

.skysimhub-explorer__bar {
    display: flex;
    align-items: stretch;
    min-height: 62px;
    border: 1px solid #bfc9d6;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.skysimhub-explorer__bar:focus-within,
.skysimhub-explorer--menu-open .skysimhub-explorer__bar {
    border-color: #ff0000;
    box-shadow: 0 14px 36px rgba(255, 0, 0, 0.12);
}

.skysimhub-explorer__search {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 18px;
    cursor: text;
}

.skysimhub-explorer__search-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: #111827;
}

.skysimhub-explorer__search-icon svg,
.skysimhub-explorer__toggle-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.skysimhub-explorer__input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    padding: 18px 0;
}

.skysimhub-explorer__input::placeholder {
    color: #111827;
    opacity: 0.92;
    font-weight: 800;
}

.skysimhub-explorer__toggle {
    flex: 0 0 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid #d7dee8;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.skysimhub-explorer__toggle:hover {
    background: #f8fafc;
}

.skysimhub-explorer__toggle-label {
    display: inline-block;
    text-align: left;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
}

.skysimhub-explorer__toggle-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.skysimhub-explorer--menu-open .skysimhub-explorer__toggle-icon {
    transform: rotate(180deg);
}

.skysimhub-explorer__menu {
    position: relative;
    z-index: 10001;
    width: 100%;
    margin-top: 16px;
    border: 1px solid rgba(255, 0, 0, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.skysimhub-explorer__menu-arrow {
    position: absolute;
    top: -10px;
    right: 42px;
    z-index: 2;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-top: 1px solid rgba(255, 0, 0, 0.12);
    border-left: 1px solid rgba(255, 0, 0, 0.12);
    transform: rotate(45deg);
}

.skysimhub-explorer__panels {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(250px, 0.9fr);
    gap: 0;
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
}

.skysimhub-explorer__panel {
    min-width: 0;
    padding: 28px 30px;
    background: #fffdfb;
}

.skysimhub-explorer__panel--favorites {
    background: #fff9f5;
}

.skysimhub-explorer__panel--regions {
    background: #ffffff;
    border-left: 1px solid #eef2f7;
    max-height: 480px;
    overflow-y: auto;
}

.skysimhub-explorer__panel-title {
    margin: 0 0 20px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
}

.skysimhub-explorer__favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 36px;
}

.skysimhub-explorer__favorite-link,
.skysimhub-explorer__region-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #111827;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    transition: color 0.18s ease, transform 0.18s ease;
}

.skysimhub-explorer__favorite-link {
    padding: 4px 0;
}

.skysimhub-explorer__favorite-link:hover,
.skysimhub-explorer__region-link:hover {
    color: #f4053a;
    transform: translateX(2px);
}

.skysimhub-explorer__favorite-flag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    font-size: 24px;
    line-height: 1;
}

.skysimhub-explorer__region-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skysimhub-explorer__region-link {
    display: block;
    padding: 4px 0;
}

.skysimhub-explorer__dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    z-index: 10000;
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid #cfd8e3;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.skysimhub-explorer__dropdown-list {
    display: flex;
    flex-direction: column;
}

.skysimhub-explorer__dropdown-empty {
    padding: 20px 22px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.skysimhub-explorer__result {
    display: block;
    padding: 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #edf2f7;
}

.skysimhub-explorer__result:last-child {
    border-bottom: 0;
}

.skysimhub-explorer__result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.skysimhub-explorer__result-image {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.skysimhub-explorer__result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skysimhub-explorer__result-title {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.skysimhub-explorer__result-country {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.skysimhub-explorer__result-categories {
    padding: 14px 18px 16px;
    background: #f6ede5;
}

.skysimhub-explorer__result-categories-label {
    display: block;
    margin: 0 0 12px;
    color: #2f241d;
    font-size: 13px;
    font-weight: 800;
}

.skysimhub-explorer__result-category-list {
    display: grid;
    gap: 10px;
}

.skysimhub-explorer__result-category {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.skysimhub-explorer__result-category-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(180deg, #dbeafe 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.skysimhub-explorer .skysimhub-search-results {
    margin-top: 28px;
}

@media (max-width: 1024px) {
    .skysimhub-explorer__panels {
        grid-template-columns: 1fr;
    }

    .skysimhub-explorer__panel--regions {
        max-height: none;
        border-left: 0;
        border-top: 1px solid #eef2f7;
    }
}

@media (max-width: 767px) {
    .skysimhub-explorer__bar {
        min-height: 58px;
        border-radius: 16px;
    }

    .skysimhub-explorer__search {
        gap: 10px;
        padding: 0 14px;
    }

    .skysimhub-explorer__input {
        font-size: 17px;
        padding: 16px 0;
    }

    .skysimhub-explorer__toggle {
        flex-basis: 92px;
        padding: 0 12px;
    }

    .skysimhub-explorer__toggle-label {
        font-size: 14px;
    }

    .skysimhub-explorer__menu,
    .skysimhub-explorer__dropdown {
        top: calc(100% + 12px);
        border-radius: 18px;
    }

    .skysimhub-explorer__menu-arrow {
        right: 26px;
    }

    .skysimhub-explorer__favorites-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .skysimhub-explorer__panel {
        padding: 20px 18px;
    }
}
