/* Refinamento do topo do Descobrindo. Mantém o feed "Lugares para descobrir" intacto. */

.hdsc-root {
    width: min(1280px, 100%);
}

.hdsc-heading {
    gap: 18px;
    padding-bottom: 15px;
}

.hdsc-heading h2 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hdsc-heading p {
    max-width: 720px;
    margin-top: 5px;
}

.hdsc-city-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(330px, .78fr);
    align-items: stretch;
    gap: 16px;
    margin-bottom: 28px;
}

.hdsc-city-overview > .hdsc-news,
.hdsc-city-overview > .hdsc-ranking {
    min-width: 0;
    height: 100%;
    margin: 0;
}

/* Jornal: um único destaque visível por vez. */

.hdsc-news--carousel {
    display: flex;
    flex-direction: column;
}

.hdsc-news__heading {
    min-height: 53px;
    margin-bottom: 11px;
}

.hdsc-news__actions,
.hdsc-news__arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hdsc-news__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hdsc-accent);
    font-size: .66rem;
    font-weight: 900;
    text-decoration: none;
}

.hdsc-news__arrows button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--hdsc-border);
    border-radius: 50%;
    background: #fff;
    color: var(--hdsc-text);
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.hdsc-news__arrows button:hover {
    border-color: var(--hdsc-accent);
    color: var(--hdsc-accent);
    transform: translateY(-1px);
}

.hdsc-news__viewport {
    position: relative;
    min-height: 382px;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 24px;
    background: #222733;
    box-shadow: 0 18px 44px rgba(20, 25, 36, .14);
}

.hdsc-news__track {
    height: 100%;
    display: flex;
    transition: transform .58s cubic-bezier(.22, .78, .25, 1);
    will-change: transform;
}

.hdsc-news-slide {
    position: relative;
    min-width: 100%;
    min-height: 382px;
    flex: 0 0 100%;
    overflow: hidden;
    color: #fff;
}

.hdsc-news-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 7s ease;
}

.hdsc-news-slide[aria-hidden="false"] > img {
    transform: scale(1.035);
}

.hdsc-news-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 22, .12) 15%, rgba(8, 12, 22, .82) 100%),
        linear-gradient(90deg, rgba(8, 12, 22, .42), transparent 72%);
}

.hdsc-news-slide__top {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hdsc-news-slide__top .hdsc-news-featured__badge {
    position: static;
}

.hdsc-news-slide__count {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(15, 18, 26, .35);
    color: #fff;
    font-size: .58rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.hdsc-news-slide__content {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 24px;
    left: 22px;
    max-width: 700px;
}

.hdsc-news-slide__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    color: rgba(255, 255, 255, .82);
    font-size: .61rem;
    font-weight: 800;
}

.hdsc-news-slide__meta > span {
    color: #fff;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hdsc-news-slide__meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hdsc-news-slide h4 {
    max-width: 650px;
    margin: 9px 0 0;
    font-size: clamp(1.38rem, 2.35vw, 2.1rem);
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.hdsc-news-slide h4 a {
    color: #fff;
    text-decoration: none;
}

.hdsc-news-slide__content p {
    display: -webkit-box;
    max-width: 620px;
    overflow: hidden;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: .72rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hdsc-news-slide__read {
    width: fit-content;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--hdsc-text);
    font-size: .64rem;
    font-weight: 950;
    text-decoration: none;
}

.hdsc-news__dots {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hdsc-news__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    transition: width .2s ease, background-color .2s ease;
}

.hdsc-news__dots button.is-active {
    width: 23px;
    background: #fff;
}

/* Ranking compacto, com leitura imediata e sem cartões altos. */

.hdsc-ranking--compact {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hdsc-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(22, 27, 37, .065);
}

.hdsc-ranking--compact .hdsc-ranking__heading {
    min-height: 86px;
    margin: 0;
    padding: 17px 18px 13px;
    border-bottom: 1px solid var(--hdsc-border-soft);
}

.hdsc-ranking__trophy {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff6dc;
    color: var(--hdsc-gold) !important;
    font-size: .9rem !important;
}

.hdsc-ranking--compact .hdsc-ranking__list {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0;
}

.hdsc-ranking--compact .hdsc-ranking-card {
    min-height: 91px;
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 0;
    border-bottom: 1px solid var(--hdsc-border-soft);
    border-radius: 0;
    color: inherit;
    text-decoration: none;
    transition: background-color .18s ease;
}

.hdsc-ranking--compact .hdsc-ranking-card:hover {
    background: #fff8fc;
}

.hdsc-ranking--compact .hdsc-ranking-position {
    position: static;
    min-width: 32px;
    min-height: 32px;
    padding: 5px;
    border: 0;
    background: #f4f5f8;
    box-shadow: none;
}

.hdsc-ranking--compact .hdsc-ranking-card > img {
    width: 58px;
    height: 58px;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

.hdsc-ranking--compact .hdsc-ranking-card__content {
    min-width: 0;
    display: block;
    padding: 0;
}

.hdsc-ranking-card__content > small {
    display: block;
    overflow: hidden;
    color: var(--hdsc-accent);
    font-size: .55rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.hdsc-ranking-card__content > strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--hdsc-text);
    font-size: .76rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdsc-ranking-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    margin-top: 5px;
    color: var(--hdsc-muted);
    font-size: .56rem;
    font-weight: 800;
    white-space: nowrap;
}

.hdsc-ranking-card__meta > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdsc-ranking-card__meta .fa-star {
    color: var(--hdsc-gold);
}

.hdsc-ranking-card__match {
    color: var(--hdsc-accent);
}

.hdsc-ranking-card__arrow {
    color: #b6bbc4;
    font-size: .62rem;
}

.hdsc-ranking__all {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    color: var(--hdsc-accent);
    font-size: .64rem;
    font-weight: 950;
    text-decoration: none;
}

/* Vitrines personalizadas: mesma ordenação do painel do usuário. */

.hdsc-showcases {
    margin-bottom: 29px;
}

.hdsc-showcases__heading {
    align-items: end;
}

.hdsc-showcases__heading p {
    margin: 5px 0 0;
    color: var(--hdsc-soft);
    font-size: .69rem;
}

.hdsc-showcases__all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hdsc-accent);
    font-size: .66rem;
    font-weight: 950;
}

.hdsc-showcases__featured {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hdsc-showcase-card {
    position: relative;
    min-height: 178px;
    display: block;
    overflow: hidden;
    border-radius: 21px;
    background: #262b35;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(21, 25, 35, .12);
    transform: translateZ(0);
}

.hdsc-showcase-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hdsc-showcase-card:hover > img {
    transform: scale(1.055);
}

.hdsc-showcase-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 12, 20, .08), rgba(9, 12, 20, .88));
}

.hdsc-showcase-card__icon {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(15, 18, 26, .46);
    color: #fff;
    font-size: .74rem;
    backdrop-filter: blur(8px);
}

.hdsc-showcase-card__copy {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 15px;
    left: 16px;
    display: block;
    padding-right: 22px;
}

.hdsc-showcase-card__copy strong,
.hdsc-showcase-card__copy small {
    display: block;
}

.hdsc-showcase-card__copy strong {
    font-size: .93rem;
    font-weight: 950;
    letter-spacing: -.02em;
}

.hdsc-showcase-card__copy small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: .61rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hdsc-showcase-card__arrow {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 19px;
    font-size: .6rem;
}

/* Modal com apenas uma área rolável. */

body.hdsc-showcase-modal-open {
    overflow: hidden;
}

.hdsc-showcase-modal {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.hdsc-showcase-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(21, 27, 39, .68);
    backdrop-filter: blur(6px);
}

.hdsc-showcase-modal__panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(780px, calc(100dvh - 36px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(9, 14, 25, .32);
}

.hdsc-showcase-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--hdsc-border-soft);
}

.hdsc-showcase-modal__header small {
    color: var(--hdsc-accent);
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.hdsc-showcase-modal__header h3 {
    margin: 4px 0 0;
    font-size: 1.35rem;
    font-weight: 950;
}

.hdsc-showcase-modal__header p {
    margin: 5px 0 0;
    color: var(--hdsc-soft);
    font-size: .7rem;
}

.hdsc-showcase-modal__header > button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: #f2f3f6;
    color: var(--hdsc-text);
    font-size: .9rem;
}

.hdsc-showcase-modal__body {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: 16px 18px 20px;
    overscroll-behavior: contain;
}

.hdsc-showcase-option {
    min-width: 0;
    min-height: 90px;
    display: grid;
    grid-template-columns: 78px 42px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--hdsc-border);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.hdsc-showcase-option:hover {
    border-color: #efb3cf;
    background: #fff8fc;
    transform: translateY(-1px);
}

.hdsc-showcase-option__media {
    width: 78px;
    height: 68px;
    display: block;
    overflow: hidden;
    border-radius: 13px;
}

.hdsc-showcase-option__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hdsc-showcase-option__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--hdsc-accent-soft);
    color: var(--hdsc-accent);
    font-size: .82rem;
}

.hdsc-showcase-option__copy {
    min-width: 0;
}

.hdsc-showcase-option__copy strong,
.hdsc-showcase-option__copy small {
    display: block;
}

.hdsc-showcase-option__copy strong {
    overflow: hidden;
    color: var(--hdsc-text);
    font-size: .75rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdsc-showcase-option__copy small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--hdsc-soft);
    font-size: .61rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hdsc-showcase-option > i {
    color: #b4bac4;
    font-size: .62rem;
}

@media (max-width: 1049px) {
    .hdsc-city-overview {
        grid-template-columns: 1fr;
    }

    .hdsc-ranking--compact .hdsc-ranking__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hdsc-ranking--compact .hdsc-ranking-card {
        grid-template-columns: 31px 50px minmax(0, 1fr);
        border-right: 1px solid var(--hdsc-border-soft);
        border-bottom: 0;
    }

    .hdsc-ranking-card__arrow {
        display: none;
    }

    .hdsc-showcases__featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .hdsc-news__heading {
        align-items: flex-end;
    }

    .hdsc-news__all {
        font-size: 0;
    }

    .hdsc-news__all i {
        font-size: .7rem;
    }

    .hdsc-news__viewport,
    .hdsc-news-slide {
        min-height: 340px;
    }

    .hdsc-news-slide__content {
        right: 18px;
        bottom: 22px;
        left: 18px;
    }

    .hdsc-news-slide h4 {
        font-size: 1.38rem;
    }

    .hdsc-news__dots {
        display: none;
    }

    .hdsc-ranking--compact .hdsc-ranking__list {
        display: flex;
    }

    .hdsc-ranking--compact .hdsc-ranking-card {
        min-height: 82px;
        grid-template-columns: 31px 52px minmax(0, 1fr) 12px;
        border-right: 0;
        border-bottom: 1px solid var(--hdsc-border-soft);
    }

    .hdsc-ranking-card__arrow {
        display: block;
    }

    .hdsc-showcase-card {
        min-height: 152px;
    }

    .hdsc-showcase-modal {
        align-items: end;
        padding: 0;
    }

    .hdsc-showcase-modal__panel {
        width: 100%;
        max-height: 92dvh;
        border-radius: 25px 25px 0 0;
    }

    .hdsc-showcase-modal__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .hdsc-heading__copy p,
    .hdsc-showcases__heading p {
        display: none;
    }

    .hdsc-city-overview {
        gap: 20px;
        margin-bottom: 24px;
    }

    .hdsc-news__arrows button {
        width: 32px;
        height: 32px;
    }

    .hdsc-news-slide__content p {
        -webkit-line-clamp: 1;
    }

    .hdsc-showcases__featured {
        gap: 9px;
    }

    .hdsc-showcase-card {
        min-height: 142px;
        border-radius: 18px;
    }

    .hdsc-showcase-card__copy {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .hdsc-showcase-card__copy strong {
        font-size: .79rem;
    }

    .hdsc-showcase-card__copy small {
        -webkit-line-clamp: 1;
    }

    .hdsc-showcase-card__arrow {
        right: 12px;
        bottom: 15px;
    }

    .hdsc-showcase-option {
        grid-template-columns: 64px 39px minmax(0, 1fr) 10px;
    }

    .hdsc-showcase-option__media {
        width: 64px;
        height: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdsc-news__track,
    .hdsc-news-slide > img,
    .hdsc-showcase-card > img,
    .hdsc-showcase-option {
        transition: none;
    }
}
