/* GeoTech Business Carousel - based on the supplied original widget CSS */

.bc-carousel {
    --bc-card-width: 25vw;
    --bc-card-height: 35vw;
    --bc-image-height: 18vw;
    --bc-gap: 2vw;

    --bc-inactive-scale: 0.88;
    --bc-inactive-opacity: 0.45;

    --bc-bg: #ffb881;
    --bc-radius: 15px;
    --bc-border-width: 2px;
    --bc-border-color: #000000;
    --bc-shadow-blur: 15px;
    --bc-shadow-spread: 2px;
    --bc-shadow-opacity: 10%;

    --bc-image-name-gap: 3vw;
    --bc-name-rating-gap: 2vw;
    --bc-rating-location-gap: 2vw;
    --bc-content-position: 2vw;
    --bc-text-align: left;
    --bc-content-padding: 1.2vw;

    --bc-name-size: 2.5vw;
    --bc-name-weight: 500;
    --bc-name-color: #000000;

    --bc-rating-size: 2vw;
    --bc-star-size: 3vw;
    --bc-star-color: #FFD700;
    --bc-rating-color: #000000;

    --bc-location-size: 2vw;
    --bc-location-weight: 300;
    --bc-location-color: #000000;

    --bc-arrow-color: #000000;
    --bc-arrow-size: 1.2vw;
    --bc-arrow-offset: -1vw;
    --bc-arrow-bg: transparent;
    --bc-arrow-border-width: 0px;
    --bc-arrow-border-color: transparent;
    --bc-arrow-radius: 50px;

    --bc-dot-size: 0.3vw;
    --bc-dot-gap: 0.6vw;
    --bc-dot-bg: #000000;
    --bc-dot-opacity: 0.3;
    --bc-dot-active-bg: #934600;
    --bc-dot-active-opacity: 1;

    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-top: 1vw;
    padding-bottom: 4vw;
    overflow: visible;
}

.bc-carousel.bc-hide-arrows .bc-arrow { display: none !important; }
.bc-carousel.bc-hide-dots .bc-pagination { display: none !important; }

.bc-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.bc-track {
    display: flex;
    align-items: center;
    gap: var(--bc-gap);
    width: max-content;
    will-change: transform;
    transition: transform 0.7s ease;
    padding-top: 1vw;
    padding-bottom: 1vw;
}

.bc-slide {
    flex: 0 0 var(--bc-card-width);
    width: var(--bc-card-width);
    height: var(--bc-card-height);
    box-sizing: border-box;
    transform: scale(var(--bc-inactive-scale));
    opacity: var(--bc-inactive-opacity);
    transition: transform 0.7s ease, opacity 0.7s ease;
    transform-origin: center center;
    position: relative;
}

.bc-slide.bc-active {
    transform: scale(1);
    opacity: 1;
    z-index: 5;
}

.bc-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--bc-bg);
    border: var(--bc-border-width) solid var(--bc-border-color);
    border-radius: var(--bc-radius);
    box-shadow: 2px 2px var(--bc-shadow-blur) var(--bc-shadow-spread)
        rgba(0, 0, 0, calc(var(--bc-shadow-opacity) / 100));
}

.bc-card-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.bc-card-link:hover,
.bc-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.bc-image-wrap {
    width: 100%;
    height: var(--bc-image-height);
    flex: 0 0 var(--bc-image-height);
    overflow: hidden;
    display: block;
    position: relative;
    background: #eeeeee;
}

.bc-business-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0.2px !important;
    border: 0 !important;
    outline: none !important;
    object-fit: cover;
    object-position: center;
    box-sizing: border-box;
}

.bc-image-placeholder {
    width: 100%;
    height: 100%;
    background: #eeeeee;
}

.bc-content {
    width: calc(100% - var(--bc-content-position));
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: var(--bc-text-align);
    padding: var(--bc-content-padding);
    transform: translateX(var(--bc-content-position));
}

.bc-business-name {
    width: 100%;
    margin: 0;
    padding: 0;
    margin-top: var(--bc-image-name-gap);
    margin-bottom: var(--bc-name-rating-gap);
    color: var(--bc-name-color);
    font-family: Inter, sans-serif;
    font-size: var(--bc-name-size);
    font-weight: var(--bc-name-weight);
    line-height: 1.15;
    text-align: var(--bc-text-align);
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.bc-rating-row {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-bottom: var(--bc-rating-location-gap);
    box-sizing: border-box;
    gap: 0.4vw;
    text-align: var(--bc-text-align);
}

.bc-carousel[style*="--bc-text-align: left"] .bc-rating-row,
.bc-content[style*="--bc-text-align: left"] .bc-rating-row {
    justify-content: flex-start;
}

.bc-carousel[style*="--bc-text-align: center"] .bc-rating-row,
.bc-content[style*="--bc-text-align: center"] .bc-rating-row {
    justify-content: center;
}

.bc-carousel[style*="--bc-text-align: right"] .bc-rating-row,
.bc-content[style*="--bc-text-align: right"] .bc-rating-row {
    justify-content: flex-end;
}

.bc-stars {
    display: inline-flex;
    color: var(--bc-star-color);
    font-size: var(--bc-star-size);
    line-height: 1;
    letter-spacing: 0.05vw;
    white-space: nowrap;
}

.bc-star-empty { opacity: 0.3; }
.bc-star-half { opacity: 0.65; }

.bc-rating-number {
    display: inline-block;
    color: var(--bc-rating-color);
    font-family: Inter, sans-serif;
    font-size: var(--bc-rating-size);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.bc-location {
    width: 100%;
    color: var(--bc-location-color);
    font-family: Inter, sans-serif;
    font-size: var(--bc-location-size);
    font-weight: var(--bc-location-weight);
    line-height: 1.25;
    text-align: var(--bc-text-align);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.bc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.2vw;
    height: 3.2vw;
    min-width: 34px;
    min-height: 34px;
    max-width: 55px;
    max-height: 55px;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--bc-arrow-bg) !important;
    border: var(--bc-arrow-border-width) solid var(--bc-arrow-border-color) !important;
    border-radius: var(--bc-arrow-radius) !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--bc-arrow-color) !important;
    cursor: pointer;
    z-index: 50;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bc-arrow:hover,
.bc-arrow:focus,
.bc-arrow:active {
    border: var(--bc-arrow-border-width) solid var(--bc-arrow-border-color) !important;
    outline: none !important;
    box-shadow: none !important;
    background: var(--bc-arrow-bg) !important;
    color: var(--bc-arrow-color) !important;
}

.bc-arrow-prev { left: var(--bc-arrow-offset); }
.bc-arrow-next { right: var(--bc-arrow-offset); }

.bc-arrow span {
    display: block;
    width: var(--bc-arrow-size);
    height: var(--bc-arrow-size);
    max-width: 20px;
    max-height: 20px;
    box-sizing: border-box;
    border-color: var(--bc-arrow-color);
}

.bc-arrow-prev span {
    border-left: max(2px, calc(var(--bc-arrow-size) * 0.18)) solid var(--bc-arrow-color);
    border-bottom: max(2px, calc(var(--bc-arrow-size) * 0.18)) solid var(--bc-arrow-color);
    transform: rotate(45deg) translate(10%, -10%);
}

.bc-arrow-next span {
    border-right: max(2px, calc(var(--bc-arrow-size) * 0.18)) solid var(--bc-arrow-color);
    border-top: max(2px, calc(var(--bc-arrow-size) * 0.18)) solid var(--bc-arrow-color);
    transform: rotate(45deg) translate(-10%, 10%);
}

.bc-arrow:hover {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.05);
}

.bc-pagination {
    position: absolute;
    left: 50%;
    bottom: 0.8vw;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bc-dot-gap);
    z-index: 20;
}

.bc-dot {
    width: var(--bc-dot-size);
    height: var(--bc-dot-size);
    min-width: 10px;
    min-height: 10px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    border-radius: 50% !important;
    background: var(--bc-dot-bg);
    opacity: var(--bc-dot-opacity);
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.bc-dot.bc-dot-active {
    background: var(--bc-dot-active-bg);
    opacity: var(--bc-dot-active-opacity);
    transform: scale(1.2);
}

.bc-no-listings .bc-viewport {
    min-height: 120px;
}

@media (max-width: 1024px) {
    .bc-carousel {
        padding-bottom: 6vw;
        --bc-arrow-offset: 0.5vw;
    }

    .bc-arrow {
        width: 4.5vw;
        height: 4.5vw;
    }
}

@media (max-width: 767px) {
    .bc-carousel {
        padding-top: 2vw;
        padding-bottom: 10vw;
        --bc-arrow-offset: 1vw;
    }

    .bc-arrow {
        width: 8vw;
        height: 8vw;
    }

    .bc-pagination {
        bottom: 2vw;
    }

    .bc-dot {
        min-width: 12px;
        min-height: 12px;
    }
}
