/* ===== Header parity (mesmo padrão de contato/product/cart) ===== */
.destinos-modern .marketplace-header {
    background: #fff;
    border-bottom: 1px solid #edf0f3;
}

.destinos-modern .marketplace-header__primary {
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-right: auto;
    margin-left: auto;
}

.destinos-modern .marketplace-header__logo {
    width: 150px;
    max-width: 150px;
    height: auto;
    flex: 0 0 150px;
}

.destinos-modern .marketplace-header__logo img {
    width: 150px;
    max-height: 58px;
    object-fit: contain;
}

.destinos-modern .marketplace-header__showcase-navigation {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.destinos-modern .marketplace-header__showcase-navigation > a,
.destinos-modern .marketplace-header__showcase-navigation .marketplace-discover__trigger,
.destinos-modern .marketplace-header__showcase-navigation .marketplace-simple-menu__trigger {
    color: #071a33;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.destinos-modern .marketplace-header__utilities {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: max-content;
}

.destinos-modern .marketplace-header__utilities > a,
.destinos-modern .marketplace-header__account > a,
.destinos-modern .marketplace-header__cart > a {
    min-height: 42px;
    color: #071a33;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 1050px) {
    .destinos-modern .marketplace-header__showcase-navigation {
        gap: 12px;
    }

    .destinos-modern .marketplace-header__showcase-navigation > a,
    .destinos-modern .marketplace-header__showcase-navigation .marketplace-discover__trigger,
    .destinos-modern .marketplace-header__showcase-navigation .marketplace-simple-menu__trigger {
        font-size: 9px;
    }
}

/* ===== Sticky footer ===== */
.destinos-modern {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    color: var(--si-text);
}

.destinos-modern .dst-main {
    flex: 1 0 auto;
    padding: 34px 0 60px;
}

/* ===== Destinos mais procurados (rail horizontal) ===== */
.destinos-modern .dst-featured {
    position: relative;
    margin-bottom: 40px;
}

.destinos-modern .dst-featured__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.destinos-modern .dst-featured__heading h2 {
    margin: 0 0 4px;
    color: var(--si-navy);
    font-size: 20px;
    font-weight: 800;
}

.destinos-modern .dst-featured__heading p {
    margin: 0;
    color: var(--si-muted);
    font-size: 12.5px;
}

.destinos-modern .dst-featured__rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.destinos-modern .dst-featured__rail::-webkit-scrollbar {
    display: none;
}

.destinos-modern .dst-featured__scroll {
    position: absolute;
    top: 50%;
    right: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--si-line);
    border-radius: 50%;
    background: #fff;
    color: var(--si-navy);
    font-size: 11px;
    box-shadow: 0 6px 16px rgba(13, 41, 64, .12);
    cursor: pointer;
}

/* ===== Card de destino (reaproveitado no rail) ===== */
.destinos-modern .dst-card {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--si-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 41, 64, .06);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.destinos-modern .dst-card:hover {
    box-shadow: 0 14px 28px rgba(13, 41, 64, .14);
    transform: translateY(-2px);
}

.destinos-modern .dst-card__image {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #dfe6ec, #b9c4d6);
}

.destinos-modern .dst-card__pin {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--si-red);
    font-size: 10px;
}

.destinos-modern .dst-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
}

.destinos-modern .dst-card__body strong {
    color: var(--si-navy);
    font-size: 12px;
    font-weight: 800;
}

.destinos-modern .dst-card__body small {
    color: var(--si-red);
    font-size: 10px;
    font-weight: 700;
}

/* ===== Layout: filtros + destinos por país ===== */
.destinos-modern .dst-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    scroll-margin-top: 90px;
}

.destinos-modern .pmenu-filter-toggle {
    display: none;
}

.destinos-modern .dst-filters {
    position: sticky;
    top: 90px;
}

.destinos-modern .dst-countries h2 {
    margin: 0 0 4px;
    color: var(--si-navy);
    font-size: 22px;
    font-weight: 800;
}

.destinos-modern .dst-countries__lead {
    margin: 0 0 20px;
    color: var(--si-muted);
    font-size: 12.5px;
}

.destinos-modern .dst-country-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.destinos-modern .dst-country-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    border: 1px solid var(--si-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 41, 64, .06);
    overflow: hidden;
}

.destinos-modern .dst-country-card[hidden] {
    display: none;
}

.destinos-modern .dst-country-card__image {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(160deg, #1c3a5e, #0d2436);
}

.destinos-modern .dst-country-card__flag {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-size: 22px;
    line-height: 1;
}

.destinos-modern .dst-country-card__title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.destinos-modern .dst-country-card__title strong {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.destinos-modern .dst-country-card__title small {
    color: rgba(255, 255, 255, .8);
    font-size: 10.5px;
    font-weight: 700;
}

.destinos-modern .dst-country-card__cities {
    display: flex;
    flex-direction: column;
    padding: 6px 14px;
}

.destinos-modern .dst-country-card__city {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--si-line);
    color: var(--si-navy);
}

.destinos-modern .dst-country-card__city:last-of-type {
    border-bottom: 0;
}

.destinos-modern .dst-country-card__city[hidden] {
    display: none;
}

.destinos-modern .dst-country-card__city > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
}

.destinos-modern .dst-country-card__city-count {
    flex-shrink: 0;
    color: var(--si-muted);
    font-size: 10.5px;
}

.destinos-modern .dst-country-card__city > i {
    flex-shrink: 0;
    color: var(--si-muted);
    font-size: 9px;
}

.destinos-modern .dst-country-card__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 12px;
    padding: 10px;
    border: 1px solid var(--si-red);
    border-radius: 20px;
    background: #fff;
    color: var(--si-red);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.destinos-modern .dst-country-card__more:hover {
    background: #fff6f7;
}

/* ===== Modal "Ver todos os destinos" ===== */
.destinos-modern .dst-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483645;
    background: rgba(9, 23, 44, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.destinos-modern .dst-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.destinos-modern .dst-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483646;
    display: flex;
    flex-direction: column;
    width: min(560px, calc(100% - 32px));
    max-height: min(640px, calc(100% - 64px));
    padding: 22px 24px 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(9, 23, 44, .3);
    transform: translate(-50%, -50%) scale(.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.destinos-modern .dst-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.destinos-modern .dst-modal__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.destinos-modern .dst-modal__flag {
    flex-shrink: 0;
    font-size: 30px;
    line-height: 1;
}

.destinos-modern .dst-modal__heading {
    flex: 1 1 auto;
    min-width: 0;
}

.destinos-modern .dst-modal__heading h3 {
    margin: 0 0 2px;
    color: var(--si-navy);
    font-size: 18px;
    font-weight: 800;
}

.destinos-modern .dst-modal__heading small {
    color: var(--si-muted);
    font-size: 12px;
}

.destinos-modern .dst-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--si-line);
    color: var(--si-navy);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.destinos-modern .dst-modal__close:hover {
    background: #e2e7ed;
}

.destinos-modern .dst-modal__search {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    height: 44px;
    margin-bottom: 14px;
    padding: 0 14px;
    border: 1px solid var(--si-line);
    border-radius: 10px;
}

.destinos-modern .dst-modal__search i {
    color: var(--si-muted);
    font-size: 13px;
}

.destinos-modern .dst-modal__search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--si-text);
    font-size: 13px;
}

.destinos-modern .dst-modal__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.destinos-modern .dst-modal__city {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--si-line);
    border-radius: 10px;
}

.destinos-modern .dst-modal__city:hover {
    border-color: var(--si-red);
    background: #fff6f7;
}

.destinos-modern .dst-modal__city[hidden] {
    display: none;
}

.destinos-modern .dst-modal__city > span:first-child {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.destinos-modern .dst-modal__city strong {
    color: var(--si-navy);
    font-size: 12.5px;
    font-weight: 700;
}

.destinos-modern .dst-modal__city small {
    color: var(--si-muted);
    font-size: 10px;
}

.destinos-modern .dst-modal__city-count {
    flex-shrink: 0;
    color: var(--si-red);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.destinos-modern .dst-modal__city > i {
    flex-shrink: 0;
    color: var(--si-muted);
    font-size: 9px;
}

@media (max-width: 480px) {
    .destinos-modern .dst-modal__list {
        grid-template-columns: 1fr;
    }
}

.destinos-modern .dst-empty {
    padding: 40px 0;
    color: var(--si-muted);
    font-size: 13px;
    text-align: center;
}


/* ===== CTA final ===== */
.destinos-modern .dst-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    padding: 22px 26px;
    border: 1px solid #ffd6db;
    border-radius: 16px;
    background: #fff6f7;
}

.destinos-modern .dst-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--si-red);
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(226, 31, 47, .18);
}

.destinos-modern .dst-cta__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

.destinos-modern .dst-cta__copy strong {
    color: var(--si-navy);
    font-size: 14px;
    font-weight: 800;
}

.destinos-modern .dst-cta__copy span {
    color: var(--si-muted);
    font-size: 12.5px;
}

.destinos-modern .dst-cta__button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 24px;
    background: var(--si-red);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .destinos-modern .dst-country-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .destinos-modern .pmenu-filter-toggle {
        display: block;
    }

    .destinos-modern .dst-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .destinos-modern .dst-filters {
        position: static;
        display: none;
    }

    .destinos-modern .dst-filters.is-open {
        display: block;
    }
}

@media (max-width: 640px) {
    .destinos-modern .dst-country-card {
        grid-template-columns: 1fr;
    }

    .destinos-modern .dst-country-card__image {
        height: 110px;
    }

    .destinos-modern .dst-cta {
        flex-wrap: wrap;
    }

    .destinos-modern .dst-cta__button {
        width: 100%;
        justify-content: center;
    }
}
