/* Bottom listing sections: availability + maps */

.np-bigcal,
.np-mapcompare {
    box-sizing: border-box;
    max-width: 1120px;
    margin: 40px auto 0;
    padding: 30px 32px;
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: 22px;
}

.np-mapcompare {
    margin-bottom: 48px;
}

.np-bigcal__head,
.np-mapcompare__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.np-bigcal__title,
.np-mapcompare__title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--np-ink);
}

.np-bigcal__sub,
.np-mapcompare__sub {
    margin: 4px 0 0;
    color: var(--np-muted);
    font-size: 13.5px;
}

.np-bigcal__nav {
    display: flex;
    gap: 8px;
}

.np-bigcal__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--np-line);
    border-radius: 50%;
    background: #fff;
    color: var(--np-ink);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.np-bigcal__arrow:hover:not(:disabled) {
    border-color: var(--np-blue);
    color: var(--np-blue);
}

.np-bigcal__arrow:disabled {
    opacity: .3;
    cursor: default;
}

.np-bigcal__months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    margin-top: 24px;
}

.np-bigcal__month[hidden] {
    display: none;
}

.np-bigcal__monthname {
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--np-ink);
    text-align: center;
}

.np-bigcal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.np-bigcal__weekdays span {
    color: #9AA9BF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
}

.np-bigcal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.np-bigcal__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 60px;
    padding: 6px 2px;
    border-radius: 8px;
    background: #F4F7FB;
}

.np-bigcal__num {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
}

.np-bigcal__price {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.np-bigcal__day--empty {
    background: transparent;
}

.np-bigcal__day--free {
    background: #E9F6EF;
    color: #2F6B4F;
}

.np-bigcal__day--free .np-bigcal__price {
    color: #4E8A6C;
}

.np-bigcal__day--booked {
    background: #3E4F5C;
    color: #fff;
}

.np-bigcal__day--booked .np-bigcal__price {
    color: rgba(255, 255, 255, .72);
}

.np-bigcal__day--past {
    background: #F2F4F6;
    color: #B3BCC7;
}

.np-bigcal__day--today {
    background: #12233F;
    color: #fff;
    box-shadow: 0 6px 14px rgba(18, 35, 63, .25);
}

.np-bigcal__day--today .np-bigcal__price {
    color: rgba(255, 255, 255, .75);
}

.np-bigcal__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--np-line);
    color: var(--np-muted);
    font-size: 12.5px;
}

.np-bigcal__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.np-bigcal__dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.np-bigcal__dot--past {
    background: #F2F4F6;
    border: 1px solid #E1E6EC;
}

.np-bigcal__dot--today {
    background: #12233F;
}

.np-bigcal__dot--booked {
    background: #3E4F5C;
}

.np-bigcal__dot--free {
    background: #E9F6EF;
    border: 1px solid #CFE9DA;
}

/* Map comparison */

.np-mapcompare__grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.np-mapcompare__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: 16px;
}

.np-mapcompare__canvas {
    display: block;
    width: 100%;
    background: #EAF0F7;
}

.np-mapcompare__item--large .np-mapcompare__canvas {
    height: 480px;
}

.np-mapcompare__item--small .np-mapcompare__canvas {
    height: 320px;
}

.np-mapcompare__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(18, 35, 63, .16);
    color: var(--np-ink);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.np-mapcompare__item figcaption {
    padding: 10px 14px;
    background: #fff;
    color: var(--np-muted);
    font-size: 12px;
}

@media (max-width: 760px) {
    .np-bigcal,
    .np-mapcompare {
        margin: 28px 14px 0;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .np-mapcompare {
        margin-bottom: 32px;
    }

    .np-bigcal__head {
        align-items: center;
    }

    .np-bigcal__months {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .np-bigcal__day {
        min-height: 52px;
        border-radius: 7px;
    }

    .np-bigcal__num {
        font-size: 13px;
    }

    .np-bigcal__price {
        font-size: 9.5px;
    }

    .np-mapcompare__head {
        flex-direction: column;
        gap: 6px;
    }

    .np-mapcompare__grid {
        grid-template-columns: 1fr;
    }

    .np-mapcompare__item--large .np-mapcompare__canvas {
        height: 300px;
    }

    .np-mapcompare__item--small .np-mapcompare__canvas {
        height: 240px;
    }
}
