/* Viajario 0.13.7 · imagen privada de cabecera por viaje */

.trip-hero-has-cover {
    position: relative;
    min-height: 350px;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    background-color: #061857;
    background-image:
        linear-gradient(90deg, rgba(3, 13, 48, .94) 0%, rgba(6, 24, 87, .78) 48%, rgba(6, 24, 87, .28) 100%),
        var(--trip-cover-image);
    background-position: center;
    background-size: cover;
    box-shadow: 0 16px 40px rgba(6, 24, 87, .22);
}

.trip-hero-has-cover .trip-description { max-width: 780px; }

.trip-cover-modal[hidden] { display: none !important; }

.trip-cover-modal {
    position: fixed;
    z-index: 15000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.trip-cover-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 13, 48, .76);
    backdrop-filter: blur(3px);
}

.trip-cover-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100dvh - 36px);
    padding: 24px;
    overflow-y: auto;
    color: #18223b;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 24px 70px rgba(2, 10, 40, .34);
}

.trip-cover-dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.trip-cover-dialog h2 { margin: 4px 0 0; }

.trip-cover-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #061857;
    background: #eef1f7;
    border: 1px solid #d8deea;
    border-radius: 7px;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
}

.trip-cover-close:hover,
.trip-cover-close:focus-visible { color: #fff; background: #eb6255; border-color: #eb6255; }

.trip-cover-dialog input[type="file"] {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    color: #25304a;
    background: #f7f8fb;
    border: 1px solid #d8deea;
    border-radius: 7px;
}

.trip-cover-dialog .form-help { margin: 10px 0 0; color: #68738b; font-size: 13px; }
.trip-cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trip-cover-remove { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e1e5ed; }
.trip-cover-remove button { padding: 0; color: #b53932; background: none; border: 0; font-weight: 750; cursor: pointer; }
.trip-cover-modal-open { overflow: hidden; }

.trip-card-has-cover .trip-card-link {
    background-color: #061857;
    background-image:
        linear-gradient(90deg, rgba(3, 13, 48, .9), rgba(6, 24, 87, .46)),
        var(--trip-card-cover);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.trip-card-has-cover .trip-destination,
.trip-card-has-cover .trip-dates,
.trip-card-has-cover .trip-meta { color: rgba(255, 255, 255, .88); }
.trip-card-has-cover .trip-arrow { color: #fff; }
.trip-card-has-cover.archived-trip-card .trip-card-link { filter: saturate(.74); }

@media (max-width: 760px) {
    .trip-hero-has-cover {
        min-height: 390px;
        background-image:
            linear-gradient(0deg, rgba(3, 13, 48, .96) 0%, rgba(6, 24, 87, .72) 62%, rgba(6, 24, 87, .25) 100%),
            var(--trip-cover-image);
        background-position: center;
    }

    .trip-cover-modal { align-items: end; padding: 8px; }
    .trip-cover-dialog { width: 100%; max-height: calc(100dvh - 16px); padding: 20px; }
    .trip-cover-actions { display: grid; grid-template-columns: 1fr; }
    .trip-cover-actions .button { width: 100%; }
}
