.mapSection
{
    height: 100vh;
    overflow: hidden;
}

.mapLayout
{
    display: flex;
    height: 100%;
    background: #0b0f18;
}

.mapContextPanel
{
    width: 352px;
    flex: 0 0 352px;
    height: 100vh;
    max-height: 100vh;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.98), rgba(8, 12, 18, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    overflow: hidden;
}

.mapContextBlock
{
    margin-bottom: 12px;
}

.mapContextBlock h2,
.mapContextBlock h3
{
    margin: 0 0 7px;
    line-height: 1.2;
}

.mapContextBlock h2
{
    font-size: 1.05rem;
}

.mapContextBlock .mapContextTitle
{
    font-size: 1.22rem;
    letter-spacing: 0.01em;
}

.mapContextBlock h3
{
    font-size: 0.88rem;
}

.mapContextBlock p
{
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.mapContextBlock strong
{
    color: rgba(255, 255, 255, 0.96);
}

.mapRankLegend,
.mapCriteriaLegend
{
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mapRankLegend
{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.mapRankLegend li
{
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.mapRankLegend img
{
    display: block;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
}

.mapRankLegend strong,
.mapRankLegend small,
.mapCriteriaLegend strong,
.mapCriteriaLegend small
{
    display: block;
}

.mapRankLegend strong
{
    font-size: 0.7rem;
    line-height: 1.1;
}

.mapRankLegend small
{
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.62rem;
    line-height: 1.15;
}

.mapCriteriaLegend
{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.mapCriteriaLegend li
{
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 6px 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
}

.mapCriteriaLegend img
{
    display: block;
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.mapCriteriaLegend strong
{
    font-size: 0.68rem;
    line-height: 1.1;
}

.mapCriteriaLegend small
{
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    line-height: 1.15;
}

.mapUnexploredInfo
{
    margin-bottom: 0;
    padding: 10px 11px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(86, 207, 255, 0.055) 0,
        rgba(86, 207, 255, 0.055) 5px,
        rgba(255, 255, 255, 0.02) 5px,
        rgba(255, 255, 255, 0.02) 10px
    );
    border: 1px solid rgba(86, 207, 255, 0.15);
    border-radius: 8px;
}

.mapCheckHint
{
    padding: 10px 11px;
    background: rgba(104, 214, 160, 0.07);
    border: 1px solid rgba(104, 214, 160, 0.24);
    border-radius: 8px;
}

.mapCheckHint h3
{
    color: #8ee2b4;
}

.contentAds
{
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
}

.contentAds .adsbygoogle
{
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.adUnits
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.adsLabel
{
    width: 300px;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.58);
    font: 700 0.72rem/1.2 system-ui, Segoe UI, Arial, sans-serif;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    align-self: center;
    margin-bottom: 3px;
}

.mapRoot
{
    flex: 1;
    position: relative;
}

.mapLoader
{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px){
    .mapSection {
        height: auto;
        overflow: visible;
    }
    .mapLayout { flex-direction: column; }
    .mapContextPanel {
        width: 100%;
        height: 100vh;
        flex-basis: auto;
        max-height: 100vh;
        order: 2;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .mapRoot { order: 1; }
    .adUnits { justify-content: center; }
}

@media (max-height: 980px)
{
    .mapContextPanel
    {
        padding: 10px 16px;
    }

    .mapContextBlock
    {
        margin-bottom: 9px;
    }

    .mapRankLegend small,
    .mapCriteriaLegend small
    {
        display: none;
    }

    .mapContextBlock p
    {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .mapRankLegend li,
    .mapCriteriaLegend li
    {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

@media (max-height: 800px)
{
    .mapContextPanel
    {
        padding: 8px 14px;
    }

    .mapContextBlock
    {
        margin-bottom: 7px;
    }

    .mapContextBlock h2,
    .mapContextBlock h3
    {
        margin-bottom: 5px;
    }

    .mapContextBlock h2
    {
        font-size: 0.95rem;
    }

    .mapContextBlock .mapContextTitle
    {
        font-size: 1.08rem;
    }

    .mapContextBlock h3
    {
        font-size: 0.8rem;
    }

    .mapContextBlock p
    {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .mapRankLegend img
    {
        width: 26px;
        height: 26px;
    }

    .mapRankLegend li
    {
        padding: 4px 3px;
    }

    .mapRankLegend strong
    {
        font-size: 0.65rem;
    }

    .mapCriteriaLegend
    {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .mapCriteriaLegend li
    {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 4px 2px;
        text-align: center;
    }

    .mapCriteriaLegend img
    {
        width: 22px;
        height: 22px;
    }

    .mapCriteriaLegend strong
    {
        font-size: 0.6rem;
    }

    .adsLabel
    {
        display: none;
    }

    .mapUnexploredInfo
    {
        padding: 7px 8px;
    }

    .mapCheckHint
    {
        padding: 7px 8px;
    }
}

@media (max-height: 700px)
{
    .mapContextBlock p
    {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.62rem;
        line-height: 1.1;
    }

    .mapContextBlock h2,
    .mapContextBlock h3
    {
        font-size: 0.68rem;
    }

    .mapContextBlock .mapContextTitle
    {
        font-size: 0.78rem;
    }

    .mapRankLegend img
    {
        width: 20px;
        height: 20px;
    }

    .mapCriteriaLegend img
    {
        width: 18px;
        height: 18px;
    }
}






