/* ==========================================================================
   Single Location — location-specific styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Description read more / read less toggle
   -------------------------------------------------------------------------- */

.item-details__long-description-wrapper {
    position: relative;
}

.item-details__long-description__full {
    display: none;
}

.truncation-text__read-more-button.truncation-text__read-less {
    display: none;
}

.item-details__long-description-wrapper--show-more .item-details__long-description__short {
    display: none;
}

.item-details__long-description-wrapper--show-more .item-details__long-description__full {
    display: block;
}

.item-details__long-description-wrapper--show-more .truncation-text__read-more {
    display: none;
}

.item-details__long-description-wrapper--show-more .truncation-text__read-less {
    display: inline-flex;
}

.truncation-text__read-more-button {
    align-items: center;
    color: var(--color-navy);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 6px;
    margin-top: 12px;
    text-decoration: underline;
}

.truncation-text__read-more-button:hover {
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   dm-map in location detail
   -------------------------------------------------------------------------- */

#location-map dm-map {
    display: block;
    height: 100%;
    width: 100%;
}

#location-map dm-map::part(toolbar) {
    display: none;
}

/* --------------------------------------------------------------------------
   Location body bottom spacing
   -------------------------------------------------------------------------- */

.item-details__location-details-body .item-details__bottom {
    padding-top: 30px;
}

/* --------------------------------------------------------------------------
   Splide carousel in header
   -------------------------------------------------------------------------- */

.item-carousel__track {
    height: 100%;
}

.item-carousel__list {
    height: 100%;
}

.item-carousel__item-container {
    height: 100%;
}

/* Splide arrows — transparent, bottom-positioned */

.item-carousel .splide__arrow {
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    height: 45px;
    padding: 0;
    bottom: 0;
    top: auto;
    width: 45px;
}

.item-carousel .splide__arrow svg {
    fill: var(--color-white);
    height: 20px;
    width: 20px;
}

.item-carousel .splide__arrow--prev svg {
    transform: scaleX(-1);
}

@media screen and (width >= 768px) {
    .item-carousel .splide__arrow {
        height: 54px;
        width: 54px;
    }
}

.item-carousel .splide__arrow:hover {
    opacity: 1;
}

.item-carousel .splide__arrow--prev {
    left: 8px;
}

.item-carousel .splide__arrow--next {
    right: 8px;
}

/* Splide pagination — bottom dots */

.item-carousel .splide__pagination {
    align-items: center;
    bottom: 8px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0 15px;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 1;
}

@media screen and (width >= 500px) {
    .item-carousel .splide__pagination {
        bottom: 9px;
    }
}

.item-carousel .splide__pagination > li {
    display: inline-block;
    line-height: 0;
    list-style-type: none;
    margin: 0;
}

.item-carousel .splide__pagination__page {
    background: transparent;
    border: 1px solid var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    height: 15px;
    margin: 0 3px 8px;
    padding: 0;
    pointer-events: all;
    width: 15px;
}

.item-carousel .splide__pagination__page.is-active {
    background: var(--color-white);
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
    .social-share,
    .back_link-wrapper,
    .item-map-wrapper,
    .item-carousel .splide__arrows,
    .item-carousel .splide__pagination {
        display: none;
    }
}
