/* Trip2: zelfde kolommen en fotoverhoudingen als trip2-test. */
.trip-wide-hero {
    width: 100%;
    max-width: none;
    margin: 0;
}

.trip-wide-hero #carouselExampleControls,
.trip-wide-hero-frame {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    isolation: isolate;
}

.trip-wide-hero-gallery {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(4px, .6vw, 8px);
    aspect-ratio: 955 / 540;
}

.trip-wide-hero-photo {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
    background: #eef5f8;
}

.trip-wide-hero-photo:first-child { grid-area: 1 / 1 / -1 / 2; }

.trip-wide-hero-photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.trip-wide-hero-photo:focus-visible {
    z-index: 1;
    outline: 3px solid #e93074;
    outline-offset: -3px;
}

.trip-wide-hero .carousel-inner,
.trip-wide-hero .carousel-item {
    aspect-ratio: 955 / 540;
}

.trip-wide-hero .carousel-inner {
    overflow: hidden;
    border-radius: 8px;
    background: #eef5f8;
}

.trip-wide-hero .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    /* Behoud linksboven ook een eventueel ingebakken watermerk binnen de uitsnede. */
    object-position: left top;
}

/* Klein bijschrift per slide; beweegt mee zonder klikken of pijlen te blokkeren. */
.trip-wide-hero .trip-hero-photo-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    max-width: calc(100% - 28px);
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.trip-wide-hero .trip-wide-hero-photo:not(:first-child) .trip-hero-photo-caption {
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    padding: 3px 6px;
}

@media (max-width: 575px) {
    .trip-wide-hero .trip-wide-hero-photo:not(:first-child) .trip-hero-photo-caption {
        display: none;
    }
}

/* De oude absolute overlay wordt uitsluitend binnen de testhero gewone content. */
.trip-wide-hero .carousel-overlay {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
}

.trip-wide-hero .overlay-stack,
.trip-wide-hero .overlay-stack .card {
    width: 100%;
    min-width: 0;
}

.trip-wide-hero .carousel-overlay .card {
    background: #fff;
}

.trip-wide-hero .carousel-overlay .card:hover {
    transform: none;
}

@media (min-width: 992px) {
    /* Alleen titel en pakketcontent, niet de gedeelde navigatie of footer verbreden. */
    .container.trip-wide-content-container {
        width: calc(100% - 48px);
        max-width: 1360px;
    }

    .trip-wide-hero > .row {
        align-items: stretch;
    }

    .trip-wide-hero-media {
        display: flex;
    }

    .trip-wide-hero #carouselExampleControls,
    .trip-wide-hero-frame {
        flex: 1;
        min-width: 0;
    }

    /* Alleen de kaart bepaalt de rijhoogte; beelden voegen geen eigen hoogte toe. */
    .trip-wide-hero .carousel-inner,
    .trip-wide-hero-gallery {
        position: absolute;
        inset: 0;
        height: 100%;
        aspect-ratio: auto;
    }

    .trip-wide-hero .carousel-item {
        height: 100%;
        aspect-ratio: auto;
    }
}

/* De klikvlakken blijven volledig op de foto, onafhankelijk van de kaarthoogte. */
.trip-wide-hero #carouselExampleControls > .carousel-control-prev,
.trip-wide-hero #carouselExampleControls > .carousel-control-next {
    position: absolute;
    top: 50% !important;
    bottom: auto !important;
    width: 44px !important;
    height: 44px;
    transform: translateY(-50%) !important;
}

.trip-wide-hero #carouselExampleControls > .carousel-control-prev {
    left: 14px !important;
}

.trip-wide-hero #carouselExampleControls > .carousel-control-next {
    right: 14px !important;
}

.trip-wide-hero #carouselExampleControls > .carousel-control-prev:focus-visible,
.trip-wide-hero #carouselExampleControls > .carousel-control-next:focus-visible {
    outline: 3px solid #e93074;
    outline-offset: 3px;
    border-radius: 50%;
}

@media (max-width: 991.98px) {
    .trip-wide-hero-media + .trip-wide-hero-sidebar {
        margin-top: 20px;
    }
}

/* Berekeningskaart: compacter boven de prijs, zonder de overige binnenmarges te wijzigen. */
.trip-wide-content-container .cost-card {
    padding-top: 8px;
}

.trip-wide-content-container .cost-card .sidebar-price-value {
    margin-top: 0;
}

/* Fotoalbum: bewaar de linkerrand en het logo, ook bij de bestaande hoverzoom. */
.trip-wide-content-container .photo-gallery-item img {
    object-position: left center;
    transform-origin: left top;
}
