/* Unapproved public visual polish. Loaded only when preview_public_polish is on. */

@media (max-width: 991.98px) {
    .arrow-gradient.arrow-right.yfs-charter-carousel:not(.yfs-tournament-detail *) > .slick-prev {
        left: calc(50% - 48px);
        right: auto;
    }
    .arrow-gradient.arrow-right.yfs-charter-carousel:not(.yfs-tournament-detail *) > .slick-next {
        left: calc(50% + 4px);
        right: auto;
    }
    .arrow-gradient.arrow-right.yfs-charter-carousel:not(.yfs-tournament-detail *) > .slick-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 767.98px) {
    #yfs-home .property-4.yfs-peek-carousel:has(> .slick-arrow:not(.slick-hidden)),
    #yfs-home .property-4.yfs-peek-carousel:not(.slick-initialized):has(> :nth-child(2)) {
        padding-bottom: 56px;
    }
    #yfs-home .property-4.yfs-peek-carousel:not(.slick-initialized):has(> :nth-child(2)) {
        /* Slick leaves 24px of track and 5px of card margin on each side. */
        grid-template-columns: minmax(0, calc(100% - 58px));
        justify-content: center;
        margin-bottom: -6px;
    }
    #yfs-home .property-4.yfs-peek-carousel:has(> .slick-arrow:not(.slick-hidden)) > .slick-list {
        margin-inline: 0;
    }
    #yfs-home .property-4.yfs-peek-carousel:has(> .slick-arrow:not(.slick-hidden)) .slick-slide > div {
        margin-inline: 5px;
    }
    .arrow-gradient.arrow-right.property-4.yfs-peek-carousel > .slick-arrow {
        top: auto;
        bottom: 0;
        right: auto;
        width: 44px;
        height: 44px;
        transform: none;
    }
    .arrow-gradient.arrow-right.property-4.yfs-peek-carousel > .slick-prev { left: calc(50% - 48px); }
    .arrow-gradient.arrow-right.property-4.yfs-peek-carousel > .slick-next { left: calc(50% + 4px); }

    .service-slider.yfs-peek-carousel.slick-initialized {
        padding-inline: 0;
    }
    .service-slider.yfs-charter-carousel:not(.yfs-tournament-detail *) .slick-list .slick-slide > div {
        margin-block: 8px;
    }
    .service-slider.yfs-peek-carousel .slick-list .slick-slide > div {
        margin-inline: 5px;
    }
}

.yfs-peek-carousel .service-details h5 {
    color: var(--yfs-info);
}
.service-slider.yfs-peek-carousel .service-wrapper .service-details p {
    color: var(--yfs-muted);
    opacity: 1;
}
.service-slider .yfs-similar-destination-details {
    overflow-wrap: anywhere;
}
.service-slider .service-details.yfs-similar-destination-details > .yfs-similar-destination-action {
    display: flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    margin-inline-end: 45px;
    color: var(--yfs-info);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.service-slider .service-details.yfs-similar-destination-details > .yfs-similar-destination-action:is(:hover, :focus-visible) {
    text-decoration: underline;
}
.service-slider .service-details.yfs-similar-destination-details > .yfs-similar-destination-action::after {
    top: calc(50% - 1px);
}
.yfs-peek-carousel .yfs-whole-card:is(:hover, :focus-visible) h5 {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    /* Reserve the fixed controls' right-hand lane for section-level actions. */
    .service-section:not(.yfs-tournament-detail *) :is(.mt-3, .mt-4, .mt-5).text-center:has(> a.btn-pill) {
        padding-inline-end: calc(68px + env(safe-area-inset-right, 0px));
    }
    .service-section:not(.yfs-tournament-detail *) :is(.mt-3, .mt-4, .mt-5).text-center > a.btn-pill {
        min-height: 44px;
        min-width: 44px;
        max-width: 100%;
        white-space: normal;
        align-content: center;
    }
}

.yfs-peek-carousel > .slick-arrow:focus-visible {
    outline: 2px solid #001d3d;
    outline-offset: 2px;
}

/* Reserve the card photo space using the crop's aspect ratio. */
.service-slider.yfs-charter-cards .service-wrapper .top-img-box > .yfs-charter-card-photo,
.service-slider .service-wrapper .top-img-box > .yfs-related-card-photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 880 / 460;
  overflow: hidden;
  margin: 0;
  border-radius: 5px;
  background-image: var(--theme-gradient9);
}
.service-slider.yfs-charter-cards .service-wrapper .top-img-box .yfs-charter-card-photo img,
.service-slider .service-wrapper .top-img-box .yfs-related-card-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yfs-charter-cards .service-details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.yfs-charter-cards .service-details a { cursor: pointer; }
@media (max-width: 767.98px) {
  .service-slider.yfs-charter-cards.slick-initialized { padding-inline: 0; }
  .service-slider.yfs-charter-cards .service-details { padding: 1rem; }
}
.yfs-charter-cards .service-details .btn { min-height: 44px; }
.yfs-charter-cards .yfs-charter-card-excerpt,
.yfs-charter-list .yfs-charter-card-excerpt,
.esbc_charter-card .yfs-charter-card-excerpt,
.yfs-destination-list .yfs-destination-excerpt,
.service-slider .service-wrapper .service-details p,
.service-slider .service-wrapper:is(:hover, :focus-within) .service-details p,
.esbc_charter-card .yfs-charter-card-excerpt:is(:hover, :focus-within),
.yfs-charter-list .property-box:hover .yfs-charter-card-excerpt,
.yfs-destination-list .property-box:hover .yfs-destination-excerpt {
  color: var(--yfs-muted);
  opacity: 1;
}
.yfs-charter-cards .yfs-charter-card-excerpt,
.yfs-charter-list .yfs-charter-card-excerpt,
.esbc_charter-card .yfs-charter-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.yfs-charter-list .property-slider :is(.slick-list, .slick-track, .slick-slide > div) {
  height: 100%;
}
.yfs-charter-list .property-slider :is(a, img) {
  display: block;
  width: 100%;
  height: 100%;
}
.yfs-charter-list .property-slider img { object-fit: cover; }
.yfs-charter-list .list-view .property-slider img { aspect-ratio: 670 / 440; }

#gallery .gallery-for a.zoom,
.single-property-slider.zoom-image-box a.zoom {
  display: block;
  cursor: pointer;
}

#gallery .gallery-for a.zoom:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px #111;
}

.yfs-destination-copy {
  overflow-wrap: anywhere;
}

.yfs-tournament-detail .blog-single-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}
.yfs-tournament-detail .yfs-tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}
.yfs-tournament-detail .yfs-tournament-meta li {
  margin: 0;
  padding: 0;
  border: 0;
}
.yfs-tournament-detail .yfs-tournament-meta li::before { display: none; }
.yfs-tournament-detail .yfs-tournament-copy :is(img, iframe, video, table) {
  max-width: 100%;
}
.yfs-tournament-detail .yfs-tournament-copy img { height: auto; }
.yfs-tournament-detail .yfs-tournament-copy table {
  display: block;
  overflow-x: auto;
}
.yfs-tournament-detail .yfs-tournament-video {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .375rem;
  background: #142b47;
}
.yfs-tournament-detail .yfs-tournament-video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yfs-tournament-detail .yfs-tournament-video .icon-video > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

/* Keep the social links in the title card's flow when opened. */
.single-property-section .left-single .yfs-social-share summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
}
.yfs-social-share summary::-webkit-details-marker { display: none; }
.single-property-section .left-single .yfs-social-share ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .5rem 0 0;
    padding: 0;
}
.single-property-section .left-single .yfs-social-share li {
    margin: 0;
    padding: 0;
}
.yfs-social-share li a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #005f73;
    border: 1px solid currentColor;
    border-radius: .375rem;
}
.yfs-social-share li a :is(svg, i, [data-feather]) {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    overflow: visible;
}
.yfs-social-share li a:hover,
.yfs-social-share li a:focus-visible {
    color: #fff;
    background-color: #005f73;
}

/* Keep the amount together and the price basis on its own line. */
.single-property-section .yfs-offer-price small {
    display: block;
    line-height: 1.4;
}
.yfs-offer-price__amount { white-space: nowrap; }

.single-property-section .single-title .right-single .price .yfs-offer-price__amount {
    color: inherit;
    font: inherit;
}

/* Public date pickers share the booking calendar's seven 44px day targets.
   308px of days plus the calendar edges still leave room for phone gutters. */
body:not(.yfs-bo) .flatpickr-calendar {
  width: 310px;
  max-width: calc(100vw - 16px);
}
body:not(.yfs-bo) .flatpickr-calendar .flatpickr-days,
body:not(.yfs-bo) .flatpickr-calendar .dayContainer {
  width: 308px;
  min-width: 0;
  max-width: 308px;
  height: auto;
  overflow: visible;
}
body:not(.yfs-bo) .flatpickr-calendar .flatpickr-day {
  max-width: 44px;
  height: 44px;
  line-height: 44px;
  flex-basis: 44px;
}
body:not(.yfs-bo) .flatpickr-calendar .flatpickr-prev-month,
body:not(.yfs-bo) .flatpickr-calendar .flatpickr-next-month {
  min-width: 44px;
  min-height: 44px;
}

/* Unapproved public listing / sharing-trip quote and carousel polish. */
@media (max-width: 767.98px) {
  .service-slider.yfs-charter-carousel:not(.yfs-tournament-detail *):has(.yfs-trip-slider-card) {
    padding-inline: 0;
  }
  .yfs-sharing-trip-carousel .sharing-trip-box {
    margin-inline: auto;
    max-width: calc(100% - 104px - 2 * env(safe-area-inset-right, 0px));
  }
  :is(.yfs-sharing-trip-carousel, .service-slider:not(.yfs-tournament-detail *)) .yfs-trip-listing__places {
    margin-top: auto;
  }
  .property-section .yfs-sharing-trip-carousel .property-box .yfs-trip-listing > .yfs-quote-row,
  .service-slider:not(.yfs-tournament-detail *) .yfs-trip-listing > .yfs-quote-row {
    margin-top: 0;
    padding-top: 0;
  }
}
.yfs-trip-listing__link::before{z-index:2}

