/*
Theme Name:     BDSG Traveler Childtheme
Description:    Traveler Child Theme
Theme URI:      https://bdsg-sf.com/
Author:         the BDSG
Author URI:     https://bdsg-sf.com/
Version:        1.0
Template:       traveler
*/

/* fix custom gravatar alignment on grids via the plugin "One User Avatar" */
.service-list-wrapper .item .featured-image a img {
     margin:0;
 }
 
 /* color the little "go to the top" arrow */
 div#gotop {
     background: #0000002e;
     color: #FFF;
 }

/* hide custom currency selector "USD" form appearing on mobile */
 body > header > div.header__center > .st-list-mobile{
     display:none;
 }

/* location activities search mods */

/* hides dates selectors */
#nav-st_activity > div > div > div > form > div.form-group.form-date-field.st-search-date-tour.form-date-search.d-flex.align-items-center{
    display:none !important;
}

/* location activities search form mods */

/* hides dates selectors on search forms home and search results pages*/
.elementor-widget-container .form-date-search.d-flex.align-items-center, .page-template .form-date-search.d-flex.align-items-center{
     display:none !important;
 }
  /* the little vertical line */
 .st-banner-search-form.style_2 .st-search-form-el .st-search-el .search-form .field-detination:after, .st-banner-search-form.style_2 .st-search-form-el .st-search-el .search-form .field-guest:after {
      position:relative;
 }
 
 .st-banner-search-form.style_2 #nav-st_activity .st-search-form-el, .st-banner-search-form.style_2 #nav-st_tours .st-search-form-el,
 .st-search-form-el, .st-banner-search-form.style_2 #nav-st_tours .st-search-form-el {
     max-width: 420px;
     margin: auto;
 }
 
 .st-banner-search-form.style_2 .st-search-form-el .button-search-wrapper {
     margin-left: 0px;
 }
  
 .st-banner-search-form.style_2 .st-search-form-el .st-search-el .search-form .destination-search.st-search-destination-tour {
      width: 65%;
  }

  /* END location activities search form mods */
 
  /* hide the author block under the configurator */
  .owner-info.d-none.d-sm-block.widget-box.st-border-radius{
     display:none !important;
}

/* hide breadcrumbs */
#st-content-wrapper > div.st-breadcrumb.hidden-xs.d-none.d-sm-block{
     display:none !important;
}

/* Tweak Mobile Nav */
@media screen and (max-width: 991px) {
    #st-content-wrapper .hotel-target-book-mobile {
        z-index: 1;
        bottom: -100px;
        transition: bottom 0.5s ease; /* Add transition property */
    }
    
    #st-content-wrapper .hotel-target-book-mobile.bdsg-show {
        bottom: 0; /* Adjust the final position */
    }
}

/* Traveler sets display:flex on this bar via inline style on scroll, but only
   clears it on the next scroll. Override so a mobile→desktop resize hides it. */
@media screen and (min-width: 992px) {
    #st-content-wrapper .hotel-target-book-mobile {
        display: none !important;
    }
}

/* testing for the bdsg shortcode filter page that is loaded into an iframe on RH etc. */
.bdsg-iframe-content #st-content-wrapper > div.banner,
body.bdsg-iframe-content  > header, .bdsg-iframe-content #st-content-wrapper > div.banner,
body.bdsg-iframe-content > #main-footer{
    display: none !important;
}

.woocommerce-cart #st-content-wrapper > div.st-breadcrumb{
    display: none;
}

/* Activity booking widget: extra options start expanded so they are not missed */
.single-st_activity #st-content-wrapper .form-more-extra .extras {
    display: block;
}

/* Extra qty select is inline-styled at 50px but flex-shrinks next to long titles,
   so padding clips the selected number (e.g. "0") when the widget narrows. */
.single-st_activity #st-content-wrapper .form-more-extra .extras .st-flex {
    gap: 8px;
    align-items: center;
}
.single-st_activity #st-content-wrapper .form-more-extra .extras .st-flex > span {
    flex: 1 1 auto;
    min-width: 0;
}
.single-st_activity #st-content-wrapper .form-more-extra .extras .select-wrapper {
    flex: 0 0 56px;
    width: 56px !important;
    min-width: 56px;
}
.single-st_activity #st-content-wrapper .form-more-extra .extras .extra-service-select {
    width: 100%;
    box-sizing: border-box;
    padding-left: 4px;
    padding-right: 4px;
    text-align: center;
}


/* FH activity singles: PHP outputs only the FareHarbor Book now link */
body.bdsg-activity-type-fh .st-form-booking-action a.bdsg-booknow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* RH handoff: Bela cross-site transition (ring + logo roll) */
body.bdsg-rh-redirect-screen {
    overflow: hidden;
    background-color: #16307a !important;
    background-image: radial-gradient(115% 85% at 50% 42%, #1d3d92 0%, #16307a 48%, #0e2154 100%) !important;
}
body.bdsg-rh-redirect-screen header,
body.bdsg-rh-redirect-screen footer,
body.bdsg-rh-redirect-screen #st-content-wrapper,
body.bdsg-rh-redirect-screen .hotel-target-book-mobile,
body.bdsg-rh-redirect-screen #gotop,
body.bdsg-rh-redirect-screen #wpadminbar {
    visibility: hidden !important;
    pointer-events: none;
}

.rbw-transition {
    --rbw-navy: #16307a;
    --rbw-navy-deep: #0e2154;
    --rbw-ring: clamp(230px, 62vmin, 400px);
    --rbw-ring-dur: 1100ms;
    --rbw-flip-delay: 300ms;
    --rbw-flip-dur: 650ms;

    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483000;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #16307a !important;
    background-image: radial-gradient(115% 85% at 50% 42%, #1d3d92 0%, #16307a 48%, #0e2154 100%) !important;
    color: #fff;
    visibility: visible !important;
    pointer-events: auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.bdsg-rh-redirect-screen .rbw-transition,
.rbw-transition.is-on,
.rbw-transition.is-active {
    display: flex !important;
}

.rbw-wrap {
    position: relative;
    width: var(--rbw-ring);
    height: var(--rbw-ring);
}

.rbw-transition.is-on .rbw-wrap,
.rbw-transition.is-active .rbw-wrap {
    animation: rbw-pop 600ms cubic-bezier(.2, .75, .3, 1) both;
}

@keyframes rbw-pop {
    from { opacity: 0; transform: scale(.94); }
    to   { opacity: 1; transform: none; }
}

.rbw-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.rbw-track {
    fill: none;
    stroke: rgba(255, 255, 255, .10);
    stroke-width: 3;
}

.rbw-live {
    fill: none;
    stroke: url(#rbwBrand);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1194;
    stroke-dashoffset: 1194;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, .28));
}

.rbw-transition.is-on .rbw-live,
.rbw-transition.is-active .rbw-live {
    animation: rbw-draw var(--rbw-ring-dur) cubic-bezier(.55, .02, .3, 1) forwards;
}

@keyframes rbw-draw {
    to { stroke-dashoffset: 0; }
}

.rbw-transition[data-dir="to-act"] .rbw-ring {
    transform: rotate(-90deg) scaleX(-1);
}

.rbw-scene {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 66%;
    aspect-ratio: 4.2 / 1;
    perspective: 1100px;
}

.rbw-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.rbw-transition.is-on .rbw-flipper,
.rbw-transition.is-active .rbw-flipper {
    animation: rbw-flip-fwd var(--rbw-flip-dur) cubic-bezier(.5, .05, .25, 1) var(--rbw-flip-delay) both;
}

.rbw-transition[data-dir="to-act"].is-on .rbw-flipper,
.rbw-transition[data-dir="to-act"].is-active .rbw-flipper {
    animation-name: rbw-flip-back;
}

@keyframes rbw-flip-fwd  { from { transform: rotateX(0); } to { transform: rotateX(-180deg); } }
@keyframes rbw-flip-back { from { transform: rotateX(0); } to { transform: rotateX(180deg); } }

.rbw-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.rbw-face img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.rbw-back {
    transform: rotateX(180deg);
}

.rbw-scene::after {
    content: "";
    position: absolute;
    inset: -6% -2%;
    pointer-events: none;
    background: #16307a;
    opacity: 0;
    border-radius: 6px;
}

.rbw-transition.is-on .rbw-scene::after,
.rbw-transition.is-active .rbw-scene::after {
    animation: rbw-shade var(--rbw-flip-dur) ease-in-out var(--rbw-flip-delay) both;
}

@keyframes rbw-shade {
    0%   { opacity: 0; }
    48%  { opacity: .55; }
    100% { opacity: 0; }
}

.bdsg-rh-redirect-overlay__message {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bdsg-rh-redirect-overlay__continue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-decoration: underline;
    font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
    .rbw-wrap,
    .rbw-live,
    .rbw-flipper,
    .rbw-scene::after {
        animation: none;
    }

    .rbw-live {
        stroke-dashoffset: 0;
    }

    .rbw-front {
        display: none;
    }

    .rbw-back {
        transform: none;
    }
}
