.sg-r-header {
    padding: 24px;
    color: var(--white);
    background: var(--black);
    border-radius: 4px;
}

.sg-r-header-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sg-r-title {
    color: var(--white);
    font-size: 28px;
    line-height: 28px;
    font-weight: 600;
    margin: 0;
}

.last-modified {
    white-space: nowrap;
    font-size: 14px;
    color: var(--spun-pearl-500);
}

.sg-r-header-body {
    display: grid;
    grid-template-columns: 285px 1fr;
    align-items: center;
    grid-gap: 12px;
    padding: 8px 0;
    margin: 12px 0;
    border-top: 1px solid var(--spun-pearl-950);
    border-bottom: 1px solid var(--spun-pearl-950);
}

.sg-r-header-side {
    text-align: center;
}

.sg-r-img {
    width: 100%;
    height: 142px;
    object-fit: contain;
    margin-bottom: 10px;
}

.sg-r-header-side .room-rating {
    padding: 4px 12px;
}

.sg-r-header-side .room-rating-star svg {
    width: 24px;
    height: 24px;
}

.sg-r-header-side .room-rating-number {
    font-size: 24px;
}

.sg-r-header-content {
    display: grid;
    grid-gap: 24px;
}

.sg-r-header-rates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    grid-gap: 24px;
}

.sg-r-header-rate {
    display: grid;
    grid-template-columns: 63px 1fr;
    align-items: center;
    grid-gap: 15px;
    font-weight: 600;
}

.sg-r-header-rate--value {
    text-align: center;
    font-size: 28px;
    background: var(--blue-ribbon-900);
    line-height: 28px;
    padding: 4px 0;
    border-radius: 4px;
}

.sg-r-header-rate--label {
    font-size: 16px;
    line-height: 24px;
}

.sg-r-header-metas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 24px;
}

.sg-r-header-meta--label {
    color: var(--spun-pearl-500);
    margin-bottom: 2px;
}

.sg-r-header-meta--value {
    font-size: 16px;
    font-weight: 600;
}

.sg-r-header-meta--value a {
    color: var(--white);
    text-decoration: underline;
    text-underline-position: under;
}

.sg-r-header-meta--value.platforms {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.sg-r-header-meta--value.platforms span {
    min-width: 24px;
    max-width: 24px;
    font-size: 10px;
    padding: 4px;
    color: var(--spun-pearl-400);
    font-weight: 700;
    background: var(--spun-pearl-950);
    line-height: 15px;
    border-radius: 4px;
}

.sg-r-header-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sg-r-header-footer--text {
    color: var(--spun-pearl-500);
}

.sg-r-header-footer--link {
    display: inline-grid;
    grid-template-columns: 1fr 24px;
    align-items: center;
    grid-gap: 8px;
    color: var(--blue-ribbon-400);
    font-weight: 600;
    padding: 0 16px;
    height: 40px;
    border-radius: 50px;
    border: 1px solid var(--blue-ribbon-900);
    transition: background ease .1s, color ease .1s;
}

.sg-r-header-footer--link svg {
    width: 24px;
    height: 24px;
}

.sg-r-header-footer--link:hover {
    background: var(--blue-ribbon-500);
    color: var(--white);
}

@media (max-width: 1199px) {
    .sg-r-header-body {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 991px) {
    .sg-r-header-rates {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sg-r-header {
        padding: 0;
    }

    .sg-r-header-head {
        display: block;
        padding: 12px;
    }

    .sg-r-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .sg-r-header-body {
        grid-template-columns: 1fr;
        padding: 16px 0;
        margin: 0;
    }

    .sg-r-header-content {
        padding: 12px 0 0 0;
        grid-gap: 12px;
    }

    .sg-r-header-rates,
    .sg-r-header-metas {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 12px;
        padding: 0 12px;
    }

    .sg-r-header-rates {
        order: 1;
    }

    .sg-r-header-metas {
        order: 2;
    }

    .sg-r-header-footer {
        padding: 12px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .sg-r-header-rate {
        grid-template-columns: 45px 1fr;
        grid-gap: 8px;
    }

    .sg-r-header-rate--label {
        font-size: 14px;
    }

    .sg-r-header-rate--value {
        font-size: 20px;
        line-height: 26px;
    }
}