/* Earth / satellite page — WorldMaps3D-style left sidebar */
body.nmx-earth-page {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

body.nmx-earth-page footer {
    display: none;
}

body.nmx-earth-page .main_i {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body.nmx-earth-page .result_box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    order: -1;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 380px;
    max-width: 38vw;
    min-width: 320px;
    height: 100vh;
    padding: 0 !important;
    background: #fff !important;
    border-right: 1px solid var(--nmx-border);
    overflow: hidden;
    z-index: 2;
    transition: width 0.25s ease, min-width 0.25s ease, max-width 0.25s ease, opacity 0.2s ease;
}

body.nmx-earth-page .nmx-earth-sidebar__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Brand */
.nmx-earth-brand {
    flex-shrink: 0;
    padding: 16px 18px 8px;
}

.nmx-earth-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nmx-text);
}

.nmx-earth-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--nmx-primary), var(--nmx-accent));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nmx-earth-brand__name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Search — pill style with search button */
body.nmx-earth-page .search_box.place_search {
    flex-shrink: 0;
    position: initial !important;
    width: 100% !important;
    padding: 0 18px 12px !important;
    background: #fff !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.nmx-earth-page .search_box .search_content {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 52px 0 14px !important;
    border-radius: 12px !important;
    border: 1px solid var(--nmx-border) !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
    position: relative;
}

body.nmx-earth-page .search_box .list_l {
    display: none !important;
}

body.nmx-earth-page .search_box #search_ipt {
    width: 100% !important;
    height: 40px !important;
    font-size: 14px !important;
    font-weight: 500;
    border: 0 !important;
    background: transparent !important;
    text-indent: 0 !important;
    padding: 0 !important;
}

body.nmx-earth-page .search_box .qk_ipt {
    right: 46px;
    opacity: 0.45;
}

body.nmx-earth-page .nmx-earth-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--nmx-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

body.nmx-earth-page .nmx-earth-search-btn:hover {
    background: var(--nmx-primary-dark);
}

/* Ad slot */
.nmx-earth-ad {
    flex-shrink: 0;
    margin: 0 18px 14px;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed var(--nmx-border);
    background: var(--nmx-bg-alt);
    min-height: 72px;
}

.nmx-earth-ad__label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nmx-text-muted);
}

/* Scrollable body */
.nmx-earth-sidebar__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 18px 24px;
    -webkit-overflow-scrolling: touch;
}

body.nmx-earth-page .near_box {
    margin-bottom: 12px;
}

body.nmx-earth-page .loading_near {
    margin: 8px 0;
}

body.nmx-earth-page .pagination_box {
    margin-bottom: 16px;
}

/* SEO content */
.nmx-earth-seo {
    color: var(--nmx-text);
    font-size: 14px;
    line-height: 1.65;
}

.nmx-earth-seo__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--nmx-text);
}

.nmx-earth-seo__lead {
    color: var(--nmx-text-muted);
    margin: 0 0 20px;
}

.nmx-earth-seo__block {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nmx-border);
}

.nmx-earth-seo__block:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nmx-earth-seo__heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--nmx-text);
}

.nmx-earth-seo__block p {
    margin: 0 0 10px;
    color: var(--nmx-text-muted);
}

.nmx-earth-seo__list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--nmx-text-muted);
}

.nmx-earth-seo__list li {
    margin-bottom: 6px;
}

.nmx-earth-seo__list--ordered {
    padding-left: 20px;
}

.nmx-earth-seo__faq {
    margin-bottom: 14px;
}

.nmx-earth-seo__faq-q {
    margin: 0 0 6px;
    color: var(--nmx-text);
    font-size: 13px;
    line-height: 1.5;
}

.nmx-earth-seo__faq-a {
    margin: 0;
    color: var(--nmx-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* Map area fills remaining width */
body.nmx-earth-page .result_maps {
    flex: 1 1 auto;
    position: relative !important;
    width: auto !important;
    min-width: 0;
    margin-left: 0 !important;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.nmx-earth-page #map {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

body.nmx-earth-page .left_hide {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -23px;
    z-index: 10;
}

body.nmx-earth-page .main_i.hide_left .result_box {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border-right: 0 !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

body.nmx-earth-page .main_i.hide_left .search_box.place_search {
    position: fixed !important;
    top: 12px !important;
    left: 12px !important;
    width: min(400px, calc(100vw - 24px)) !important;
    z-index: 10001 !important;
    padding: 0 !important;
    opacity: 1;
    pointer-events: auto;
}

body.nmx-earth-page .main_i.hide_left .search_box .search_content {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
}

body.nmx-earth-page .main_i.hide_left .left_hide svg {
    transform: rotate(-180deg);
}

/* Suggestion dropdown */
body.nmx-earth-page .getNominatim .suggestions {
    border-radius: 12px;
    border: 1px solid var(--nmx-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

body.nmx-earth-page .getNominatim .suggestions li a {
    padding: 10px 14px;
}

body.nmx-earth-page .getNominatim .suggestions li:hover a {
    background: var(--nmx-bg-alt);
}

body.nmx-earth-page .pagination_box:empty,
body.nmx-earth-page .near_box:empty {
    display: none;
}

@media (max-width: 991px) {
    body.nmx-earth-page .nmx-earth-brand,
    body.nmx-earth-page .nmx-earth-ad,
    body.nmx-earth-page .nmx-earth-sidebar__body,
    body.nmx-earth-page .ads_bottom_b,
    body.nmx-earth-page .search_b_title,
    body.nmx-earth-page .mb_map_os {
        display: none !important;
    }

    body.nmx-earth-page .result_box {
        order: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto !important;
        max-height: none !important;
        flex-shrink: 0;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        z-index: 1001;
        border-right: 0;
        border-bottom: 1px solid var(--nmx-border);
        overflow: visible;
    }

    body.nmx-earth-page .nmx-earth-sidebar__inner {
        height: auto;
        overflow: visible;
    }

    body.nmx-earth-page .search_box.place_search {
        position: relative !important;
        width: 100% !important;
        padding: 10px 14px !important;
    }

    body.nmx-earth-page .main_i {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body.nmx-earth-page {
        overflow: hidden;
    }

    body.nmx-earth-page #map.into_mps {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex: 1 1 auto;
        min-height: 0;
        width: 100% !important;
        height: auto !important;
        z-index: 1;
    }
}
