/* ==========================================================================
   WAC Locations - Embla card slider
   ========================================================================== */

.wac-locations {
    --wac-loc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --wac-loc-title-size: 40px;
    --wac-loc-slides: 3;
    --wac-loc-gap: 24px;
    --wac-loc-card-radius: 16px;
    --wac-loc-image-width: 40%;
    --wac-loc-image-min-height: 420px;
    --wac-loc-icon-color: #111111;
    --wac-loc-icon-size: 16px;
    --wac-loc-map-height: 140px;
    --wac-loc-map-radius: 10px;
    --wac-loc-btn-radius: 40px;
    --wac-loc-btn1-color: #ffffff;
    --wac-loc-btn1-bg: #3ea832;
    --wac-loc-btn1-bg-hover: #348a2a;
    --wac-loc-btn2-color: #ffffff;
    --wac-loc-btn2-bg: #2a17a8;
    --wac-loc-btn2-bg-hover: #1f1180;
    --wac-loc-arrow-color: #111111;
    --wac-loc-arrow-bg: #ffffff;
    --wac-loc-arrow-size: 44px;
    --wac-loc-dot-color: #d6d6d6;
    --wac-loc-dot-active-color: #2a17a8;

    position: relative;
    font-family: var(--wac-loc-font);
}

.wac-locations__title,
.wac-locations__desc,
.wac-location-card__title,
.wac-location-card__label,
.wac-location-card__value,
.wac-location-card__value a,
.wac-location-card__btn,
.wac-locations__dot {
    font-family: var(--wac-loc-font);
}

/* --------------------------------------------------------------------------
   Section heading
   -------------------------------------------------------------------------- */
.wac-locations__head {
    margin-bottom: 32px;
}

.wac-locations__title {
    margin: 0 0 12px;
    font-size: var(--wac-loc-title-size);
    line-height: 1.2;
    font-weight: 500;
}

.wac-locations__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Slider shell
   -------------------------------------------------------------------------- */
.wac-locations__slider {
    position: relative;
}

.wac-locations__viewport {
    overflow: hidden;
}

.wac-locations__container {
    display: flex;
    align-items: stretch;
    backface-visibility: hidden;
    touch-action: pan-y pinch-zoom;
    margin-left: calc(var(--wac-loc-gap) * -1);
}

/* Slides are sized against the content container, not the track: the track
   is widened by the bleed, so that width is subtracted back out here. With
   no bleed (--wac-loc-bleed: 0) this is a plain 100% / slides. */
.wac-locations__slide {
    flex: 0 0 calc((100% - var(--wac-loc-bleed, 0px)) / var(--wac-loc-slides, 3));
    min-width: 0;
    padding-left: var(--wac-loc-gap);
    display: flex;
}

/* Before Embla boots the container is a plain flex row - keep it from
   overflowing the page. */
.wac-locations__slider:not(.is-embla-ready) .wac-locations__viewport {
    overflow: hidden;
}

/* Edge bleed - the track runs past the container to the right edge of the
   screen, so the next card is cut off by the screen instead of by the
   container. --wac-loc-bleed is the measured distance to that edge; until
   the script sets it the slider simply renders at container width. */
.wac-locations--bleed .wac-locations__viewport {
    width: calc(100% + var(--wac-loc-bleed, 0px));
}

/* The bleeding track has to be able to leave the widget box. */
.elementor-widget-wac-locations .elementor-widget-container {
    overflow: visible;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.wac-location-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    background-color: #ffffff;
    border-radius: var(--wac-loc-card-radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

.wac-location-card__media {
    flex: 0 0 var(--wac-loc-image-width);
    max-width: var(--wac-loc-image-width);
    min-height: var(--wac-loc-image-min-height);
    overflow: hidden;
}

.wac-location-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--wac-loc-image-min-height);
    object-fit: cover;
    object-position: center;
}

.wac-location-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* --------------------------------------------------------------------------
   Card title
   -------------------------------------------------------------------------- */
.wac-location-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #111111;
}

.wac-location-card__title-media,
.wac-location-card__row-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--wac-loc-icon-color);
    font-size: var(--wac-loc-icon-size);
    line-height: 1;
}

.wac-location-card__title-media svg,
.wac-location-card__row-media svg {
    width: var(--wac-loc-icon-size);
    height: var(--wac-loc-icon-size);
    fill: currentColor;
}

.wac-location-card__title-media img,
.wac-location-card__row-media img {
    display: block;
    width: var(--wac-loc-icon-size);
    height: var(--wac-loc-icon-size);
    object-fit: contain;
}

.wac-location-card__row-media {
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Info rows
   -------------------------------------------------------------------------- */
.wac-location-card__info {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wac-location-card__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.wac-location-card__row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wac-location-card__label {
    font-size: 12px;
    line-height: 1.4;
    color: #9a9a9a;
}

.wac-location-card__value {
    font-size: 14px;
    line-height: 1.5;
    color: #2b2b2b;
    word-break: break-word;
}

.wac-location-card__value a {
    color: inherit;
    text-decoration: none;
}

.wac-location-card__value a:hover,
.wac-location-card__value a:focus {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Card map
   -------------------------------------------------------------------------- */
.wac-location-card__map {
    position: relative;
    margin: auto 0 16px;
    height: var(--wac-loc-map-height);
    border-radius: var(--wac-loc-map-radius);
    overflow: hidden;
    background-color: #eef1f5;
}

/* Sits on top of a non-interactive embed so dragging the slider works over
   the map, and a click opens the map link when there is one. */
.wac-location-card__map-cover {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}

.wac-location-card__map a {
    display: block;
    height: 100%;
}

.wac-location-card__map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wac-location-card__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wac-location-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.wac-location-card__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: var(--wac-loc-btn-radius);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background-color .25s ease;
}

.wac-location-card__btn:hover,
.wac-location-card__btn:focus {
    text-decoration: none;
}

.wac-location-card__btn--primary {
    color: var(--wac-loc-btn1-color);
    background-color: var(--wac-loc-btn1-bg);
}

.wac-location-card__btn--primary:hover,
.wac-location-card__btn--primary:focus {
    color: var(--wac-loc-btn1-color);
    background-color: var(--wac-loc-btn1-bg-hover);
}

.wac-location-card__btn--secondary {
    color: var(--wac-loc-btn2-color);
    background-color: var(--wac-loc-btn2-bg);
}

.wac-location-card__btn--secondary:hover,
.wac-location-card__btn--secondary:focus {
    color: var(--wac-loc-btn2-color);
    background-color: var(--wac-loc-btn2-bg-hover);
}

/* --------------------------------------------------------------------------
   Arrows
   -------------------------------------------------------------------------- */
.wac-locations__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--wac-loc-arrow-size);
    height: var(--wac-loc-arrow-size);
    padding: 0;
    transform: translateY(-50%);
    color: var(--wac-loc-arrow-color);
    background-color: var(--wac-loc-arrow-bg);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(16, 24, 40, .14);
    cursor: pointer;
    transition: opacity .25s ease, transform .25s ease;
}

.wac-locations__arrow:hover {
    transform: translateY(-50%) scale(1.05);
}

.wac-locations__arrow[disabled] {
    opacity: .35;
    cursor: default;
}

.wac-locations__arrow--prev {
    left: calc(var(--wac-loc-arrow-size) / -2);
}

.wac-locations__arrow--next {
    right: calc(var(--wac-loc-arrow-size) / -2);
}

/* In edge-bleed mode the track ends at the screen edge, so the next arrow
   has to sit inside it. */
.wac-locations--bleed .wac-locations__arrow--next {
    right: 16px;
}

/* --------------------------------------------------------------------------
   Dots
   -------------------------------------------------------------------------- */
.wac-locations__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.wac-locations__dots:empty {
    display: none;
}

.wac-locations__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--wac-loc-dot-color);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.wac-locations__dot.is-active {
    width: 22px;
    border-radius: 4px;
    background-color: var(--wac-loc-dot-active-color);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .wac-locations__arrow--prev {
        left: 8px;
    }

    .wac-locations__arrow--next {
        right: 8px;
    }
}

@media (max-width: 767px) {
    .wac-location-card {
        flex-direction: column;
    }

    .wac-location-card__media {
        flex: 0 0 auto;
        max-width: 100%;
        min-height: 0;
        height: 220px;
    }

    .wac-location-card__media img {
        min-height: 0;
        height: 220px;
    }
}
