/* Brasilll 002 — destination photography and editorial destination modules */

.destination-card-photo {
    padding: 0;
    min-height: 430px;
    background: var(--paper) !important;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(23, 51, 42, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}
.destination-card-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(23, 51, 42, .13);
}
.destination-card-photo::before { display: none; }
.destination-card-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #dbe3dd;
}
.destination-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.destination-card-photo:hover .destination-card-image img { transform: scale(1.035); }
.destination-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}
.destination-card-photo small { color: var(--muted); opacity: 1; }
.destination-card-photo h3 {
    margin: 18px 0 10px;
    color: var(--ink);
    font-size: 1.85rem;
}
.destination-card-photo p {
    color: var(--muted);
    margin-bottom: 18px;
}
.destination-card-photo .score-chips { margin-top: auto; }
.destination-card-photo .score-chip {
    color: var(--forest);
    background: rgba(11, 79, 58, .08);
}
.photo-credit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(8, 24, 19, .66);
    color: rgba(255,255,255,.88);
    font-size: .58rem;
    line-height: 1.15;
    backdrop-filter: blur(8px);
}

.explore-card-photo {
    grid-template-columns: 150px 1fr auto;
    gap: 0 20px;
    padding: 0 20px 0 0;
    overflow: hidden;
    min-height: 176px;
}
.explore-card-image {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    background: #dbe3dd;
}
.explore-card-image img {
    width: 100%;
    height: 100%;
    min-height: 176px;
    object-fit: cover;
}
.explore-card-copy { align-self: center; padding: 18px 0; }
.explore-card-photo .arrow { align-self: center; }

.destination-photo-hero {
    position: relative;
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #dbe3dd;
    box-shadow: var(--shadow);
}
.destination-photo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 28, 21, .06) 30%, rgba(5, 28, 21, .58) 100%);
    pointer-events: none;
}
.destination-photo-hero > img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}
.destination-photo-overlay {
    position: absolute;
    left: 26px;
    bottom: 28px;
    z-index: 2;
    display: grid;
    gap: 6px;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.destination-photo-overlay span {
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-weight: 800;
    opacity: .78;
}
.destination-photo-overlay strong {
    max-width: 320px;
    font-family: Georgia, serif;
    font-size: 2.5rem;
    line-height: .92;
    font-weight: 600;
}
.destination-photo-hero figcaption {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(8, 24, 19, .66);
    color: rgba(255,255,255,.9);
    font-size: .65rem;
    backdrop-filter: blur(8px);
}
.destination-photo-hero figcaption a { color: inherit; }

.destination-editorial-intro {
    background: var(--forest-dark);
    color: var(--paper);
}
.editorial-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 70px;
    align-items: end;
}
.editorial-lead-grid h2,
.compact-heading h2,
.destination-verdict h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.04em;
}
.editorial-lead {
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: 1.13rem;
    line-height: 1.75;
}
.editorial-subheading { margin: 64px 0 22px; }
.editorial-subheading h3 {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.destination-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.destination-highlight-card {
    min-height: 310px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.10);
}
.destination-highlight-card:nth-child(2) { background: rgba(242,200,75,.14); }
.destination-highlight-card:nth-child(3) { background: rgba(43,119,168,.18); }
.destination-highlight-card > span {
    color: var(--sun);
    font-weight: 900;
    font-size: .78rem;
}
.destination-highlight-card h4 {
    margin: 74px 0 14px;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.03;
}
.destination-highlight-card p { margin: 0; color: rgba(255,255,255,.68); }

.compact-heading { display: block; }
.compact-heading h2 { max-width: 850px; }
.destination-area-grid,
.destination-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.destination-area-card,
.destination-plan-card {
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.destination-area-card { background: rgba(255,255,255,.55); }
.destination-area-card h3,
.destination-plan-card h3 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 1.6rem;
    line-height: 1.05;
}
.destination-area-card p,
.destination-plan-card p { margin: 0; color: var(--muted); }
.destination-plan-card { background: var(--paper); }
.destination-plan-card > span {
    display: block;
    margin-bottom: 40px;
    color: var(--green);
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
}
.destination-plan-card:nth-child(2) { background: rgba(242,200,75,.16); }
.destination-plan-card:nth-child(3) { background: rgba(43,119,168,.10); }
.destination-plan-card:nth-child(4) { background: rgba(35,139,87,.10); }

.destination-verdict {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 58px;
    align-items: start;
    padding: 44px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
}
.destination-verdict > div > p:last-child {
    max-width: 690px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}
.source-box {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(11,79,58,.07);
}
.source-box > strong { font-family: Georgia, serif; font-size: 1.45rem; }
.source-box p { color: var(--muted); font-size: .86rem; }
.source-box ul { margin: 14px 0 0; padding-left: 18px; }
.source-box li + li { margin-top: 8px; }
.source-box a { color: var(--forest); font-weight: 750; }

/* Intentional geometric fallback while destination photography is being curated. */
.explore-card:not(.explore-card-photo) {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 0 20px;
    min-height: 176px;
    padding: 0 20px 0 0;
    overflow: hidden;
}
.explore-card:not(.explore-card-photo)::before {
    content: "";
    min-height: 176px;
    align-self: stretch;
    background:
        radial-gradient(circle at 72% 28%, rgba(242,200,75,.96) 0 25px, transparent 26px),
        radial-gradient(circle at 32% 78%, rgba(43,119,168,.76) 0 38px, transparent 39px),
        linear-gradient(145deg, var(--forest-dark), var(--forest));
}
.explore-card:not(.explore-card-photo) .arrow { align-self: center; }

.destination-guide-hero:has(.destination-guide-hero-grid:not(:has(.destination-guide-photo))) {
    background:
        radial-gradient(circle at 91% 28%, rgba(242,200,75,.32) 0 108px, transparent 109px),
        radial-gradient(circle at 84% 73%, rgba(43,119,168,.14) 0 78px, transparent 79px);
}
.destination-guide-hero-grid:not(:has(.destination-guide-photo)) {
    grid-template-columns: minmax(0, 900px);
}

.matcher-result-card:not(:has(.matcher-result-image)) {
    grid-template-columns: 150px minmax(0, 1fr);
}
.matcher-result-card:not(:has(.matcher-result-image))::before {
    content: "";
    min-height: 100%;
    background:
        radial-gradient(circle at 68% 25%, rgba(242,200,75,.96) 0 31px, transparent 32px),
        radial-gradient(circle at 30% 76%, rgba(43,119,168,.72) 0 43px, transparent 44px),
        linear-gradient(145deg, var(--forest-dark), var(--forest));
}

@media (max-width: 1050px) {
    .destination-card-photo { min-height: 410px; }
    .editorial-lead-grid { grid-template-columns: 1fr; gap: 28px; }
    .destination-highlight-grid { grid-template-columns: 1fr; }
    .destination-highlight-card { min-height: 0; }
    .destination-highlight-card h4 { margin-top: 42px; }
    .destination-area-grid,
    .destination-plan-grid { grid-template-columns: repeat(2, 1fr); }
    .destination-verdict { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .destination-card-photo { min-height: 390px; }
    .destination-card-image { height: 210px; }
    .explore-card-photo {
        grid-template-columns: 1fr auto;
        padding: 0 18px 18px;
    }
    .explore-card-image {
        grid-column: 1 / -1;
        margin: 0 -18px;
        min-height: 190px;
    }
    .explore-card-image img { min-height: 190px; height: 190px; }
    .explore-card-copy { padding-bottom: 0; }
    .destination-photo-hero,
    .destination-photo-hero > img { min-height: 360px; height: 360px; }
    .destination-photo-overlay { left: 20px; bottom: 22px; }
    .destination-photo-overlay strong { font-size: 2.05rem; }
    .destination-photo-hero figcaption { top: 9px; right: 9px; max-width: calc(100% - 18px); }
    .destination-area-grid,
    .destination-plan-grid { grid-template-columns: 1fr; }
    .destination-verdict { padding: 28px; }

    .explore-card:not(.explore-card-photo) {
        grid-template-columns: 1fr auto;
        padding: 0 18px 18px;
    }
    .explore-card:not(.explore-card-photo)::before {
        grid-column: 1 / -1;
        min-height: 150px;
        margin: 0 -18px;
    }
    .matcher-result-card:not(:has(.matcher-result-image)) {
        grid-template-columns: 1fr;
    }
    .matcher-result-card:not(:has(.matcher-result-image))::before {
        min-height: 135px;
    }
    .destination-guide-hero:has(.destination-guide-hero-grid:not(:has(.destination-guide-photo))) {
        background:
            radial-gradient(circle at 94% 20%, rgba(242,200,75,.24) 0 68px, transparent 69px),
            radial-gradient(circle at 90% 58%, rgba(43,119,168,.10) 0 52px, transparent 53px);
    }
}
