/* Gentle motion when the mouse is over banners and photos (site wide).
   Background-image banners zoom through a ::before copy of their own background,
   so the box keeps its size and nothing spills over the page. */

/* Listing page banners and the home page slides */
.bravo_banner,
.bravo-form-search-all .owl-home-slide {
    position: relative;
    overflow: hidden;
}
.bravo_banner::before,
.bravo-form-search-all .owl-home-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 1.6s cubic-bezier(.2, .6, .2, 1);
    will-change: transform;
}
.bravo_banner > *,
.bravo-form-search-all .owl-home-slide > * {
    position: relative;
    z-index: 1;
}
.bravo_banner:hover::before,
.bravo-form-search-all .owl-home-slide:hover::before {
    transform: scale(1.06);
}

/* Photos inside cards: zoom a little, the card lifts */
.hotel_price_tariffs .ptf-photo,
.vendor-profile-card .profile-cover,
.g-overview .description img,
.bravo-list-tour-related .thumb-image {
    overflow: hidden;
}
.hotel_price_tariffs .ptf-photo img,
.vendor-profile-card .profile-cover img {
    transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.hotel_price_tariffs .ptf-card:hover .ptf-photo img,
.vendor-profile-card .profile-cover:hover img {
    transform: scale(1.06);
}
.g-overview .description img {
    border-radius: 10px;
    transition: transform .5s ease, box-shadow .5s ease;
}
.g-overview .description img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(16, 42, 67, .18);
}

/* Itinerary day cards and gallery: lift with a soft shadow */
.g-itinerary .item {
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}
.g-itinerary .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16, 42, 67, .22);
    filter: saturate(1.08);
}
.g-gallery .fotorama__stage__frame .fotorama__img {
    transition: transform 1.2s cubic-bezier(.2, .6, .2, 1);
}
.g-gallery .fotorama__stage:hover .fotorama__active .fotorama__img {
    transform: scale(1.04);
}

/* Feature cards on listing pages */
.g-tour-feature .item,
.g-space-feature .item,
.g-event-feature .item,
.g-boat-feature .item {
    transition: transform .3s ease, box-shadow .3s ease;
}
.g-tour-feature .item:hover,
.g-space-feature .item:hover,
.g-event-feature .item:hover,
.g-boat-feature .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 42, 67, .08);
}

/* People who ask for less motion get none */
@media (prefers-reduced-motion: reduce) {
    .bravo_banner::before,
    .bravo-form-search-all .owl-home-slide::before,
    .hotel_price_tariffs .ptf-photo img,
    .vendor-profile-card .profile-cover img,
    .g-overview .description img,
    .g-itinerary .item,
    .g-gallery .fotorama__img,
    .g-tour-feature .item,
    .g-space-feature .item,
    .g-event-feature .item,
    .g-boat-feature .item {
        transition: none !important;
        transform: none !important;
    }
}
/* Touch screens have no hover: keep everything still */
@media (hover: none) {
    .bravo_banner:hover::before,
    .bravo-form-search-all .owl-home-slide:hover::before {
        transform: none;
    }
}

/* ------------------------------------------------------------------
   Listing cards (search results, home page lists, related listings):
   rounded card with the photo inset in its own rounded box; on hover the
   card rises with a soft green shadow and the photo slowly zooms.
------------------------------------------------------------------- */
.bravo_wrap .item-tour,
.bravo_wrap .item-loop {
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, .9) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .05) !important;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease;
}
.bravo_wrap .item-tour:hover,
.bravo_wrap .item-loop:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 122, 70, .28) !important;
    box-shadow: 0 20px 42px rgba(6, 122, 70, .13), 0 4px 12px rgba(0, 0, 0, .04) !important;
}
.bravo_wrap .item-tour .thumb-image,
.bravo_wrap .item-loop .thumb-image {
    margin: 10px 10px 0;
    border-radius: 16px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* keeps the corners round while zooming (Safari) */
}
.bravo_wrap .item-tour .thumb-image a img,
.bravo_wrap .item-loop .thumb-image a img {
    transition: transform .65s cubic-bezier(.16, 1, .3, 1) !important;
}
/* One zoom for the whole card (replaces the older zoom on the photo alone) */
.bravo_wrap .item-tour .thumb-image:hover a img,
.bravo_wrap .item-loop .thumb-image:hover a img {
    transform: none;
}
.bravo_wrap .item-tour:hover .thumb-image a img,
.bravo_wrap .item-loop:hover .thumb-image a img {
    transform: scale(1.07);
}
.bravo_wrap .item-tour .item-title a,
.bravo_wrap .item-loop .item-title a {
    transition: color .25s ease;
}
.bravo_wrap .item-tour:hover .item-title a,
.bravo_wrap .item-loop:hover .item-title a {
    color: #067a46;
}
/* Badges on the photo: frosted glass pills */
.bravo_wrap .item-tour .thumb-image .sale_info,
.bravo_wrap .item-loop .thumb-image .sale_info {
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.bravo_wrap .item-tour .thumb-image .service-wishlist,
.bravo_wrap .item-loop .thumb-image .service-wishlist {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.bravo_wrap .item-tour .featured,
.bravo_wrap .item-loop .featured {
    z-index: 3;
}

/* Tour package cards on vehicle / boat pages and room / vehicle tariff cards: same feel */
.linked-tours .lt-card {
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease !important;
}
.linked-tours .lt-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 42px rgba(6, 122, 70, .13), 0 4px 12px rgba(0, 0, 0, .04) !important;
}
.linked-tours .lt-photo img {
    transition: transform .65s cubic-bezier(.16, 1, .3, 1) !important;
}
.linked-tours .lt-card:hover .lt-photo img {
    transform: scale(1.07) !important;
}
.hotel_price_tariffs .ptf-card {
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1);
}
.hotel_price_tariffs .ptf-card:hover {
    box-shadow: 0 16px 36px rgba(6, 122, 70, .12);
}
.hotel_price_tariffs .ptf-photo img {
    transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}
.hotel_price_tariffs .ptf-card:hover .ptf-photo img {
    transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
    .bravo_wrap .item-tour,
    .bravo_wrap .item-loop,
    .bravo_wrap .item-tour .thumb-image a img,
    .bravo_wrap .item-loop .thumb-image a img,
    .linked-tours .lt-card,
    .linked-tours .lt-photo img {
        transition: none !important;
        transform: none !important;
    }
}
