/* The destination page's road trip cards (DestinationTripCards.razor, design U2b without photos,
   docs/plans/destination-page-redesign.md): the drawn loop on paper on the left, the words and
   two buttons on the right, clear air between cards. On a phone the map sits on top. */

.dt-cards {
    display: grid;
    gap: 32px;
    margin: 20px 0 8px;
}

.dt-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    border: 1px solid #E0E0E0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.dt-map {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3EEE4;
    border-right: 1px solid #E0E0E0;
    min-height: 250px;
}

.dt-map svg {
    display: block;
    width: 100%;
    height: auto;
}

/* The trip's photo, shown over the map while the card is hovered, on screens that can hover. */
.dt-map {
    position: relative;
    overflow: hidden;
}

.dt-photo {
    display: none;
}

@media (hover: hover) {
    .dt-photo {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity .25s ease;
        pointer-events: none;
    }

    .dt-card:hover .dt-photo,
    .dt-card:focus-within .dt-photo {
        opacity: 1;
    }
}

.dt-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 26px;
}

.dt-kicker {
    margin: 0;
    font: 700 12px Roboto, system-ui, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #757575;
}

.dt-name {
    margin: 0;
    font: 500 22px/1.25 'Roboto Serif', Georgia, serif;
    color: #191919;
}

.dt-name a {
    color: inherit;
    text-decoration: none;
}

.dt-name a:hover {
    text-decoration: underline;
}

.dt-day {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #3D3D3D;
}

.dt-day strong {
    font-weight: 500;
    color: #191919;
}

.dt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    padding: 9px 18px;
    font: 500 14px Roboto, system-ui, sans-serif;
    background: #D20158;
    color: #fff;
    text-decoration: none;
    border: 1px solid #D20158;
}

.dt-btn:hover {
    background: #B0014A;
    color: #fff;
}

.dt-btn-alt {
    background: #fff;
    color: #191919;
    border-color: #191919;
}

.dt-btn-alt:hover {
    background: #F5F1E8;
    color: #191919;
}

@media (max-width: 760px) {
    .dt-cards {
        gap: 24px;
    }

    .dt-card {
        grid-template-columns: 1fr;
    }

    .dt-map {
        border-right: 0;
        border-bottom: 1px solid #E0E0E0;
        min-height: 0;
    }

    .dt-text {
        padding: 16px;
    }

    .dt-name {
        font-size: 20px;
    }

    .dt-actions {
        display: grid;
        gap: 8px;
    }

    .dt-btn {
        min-height: 44px;
    }
}
