:root {
    --primary-color: #0067ae;
    --white: #fff;
    --gold: #f5bc29;
}

/*
 * Default / Search Results
 */

.csn-loc-stars {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;

    .csn-gstars {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        line-height: 1;
    }

    small {
        font-size: 0.6rem;
        color: #aaa;
        margin-left: 3px;
    }
}

.csn-gstars__svg {
    width: 90px;
    height: 18px;
    display: block;
}

.csn-gstars__bg use {
    fill: #d0d0d0;
}

.csn-gstars__fg use {
    fill: var(--primary-color);
}

/* .csn-gstars__rating {
    font-weight: 600;
    color: #111;
} */

.csn-gstars__count {
    color: #666;
    font-size: 12px;
}

/*
 * Single Location
 */

.csn-gstars.csn-single-location {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .csn-gstars__svg {
        height: 32px;
        width: 159px;
        margin-bottom: 10px;
    }

    .csn-gstars__fg use {
        fill: var(--gold);
    }

    .csn-gstars__summary {
        color: #888;
        font-size: 1.125rem;
        font-weight: 700;
        text-align: center;
	line-height: 1.2;
        margin-top: 8px;
    }

    .csn-gstars__title,
    .csn-gstars__rating {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.5rem;
    }

    .csn-gstars__title {
        margin: -12px 0;
    }
}

/*
 * Single Location next to Carousel
 */
.csn-gstars.csn-single-location.csn-single-location-testimonials {
    align-items: start;

    .csn-gstars__svg {
        height: 25px;
        width: 125px;
        margin-top: 4px;
        margin-bottom: 10px;
    }

    .csn-gstars__summary {
        color: var(--white);
        font-weight: 200;
    }

    .csn-gstars__title,
    .csn-gstars__rating {
        color: var(--white);
    }
}

/*
 * Testimonial Carousel
 */
/* --- Carousel wrapper --- */
.csn-grc {
    position: relative;
    color: var(--white);
}

/* Hide any native scrollbars */
.csn-grc__track {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
}
.csn-grc__track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Viewport shows exactly one slide */
.csn-grc__viewport {
    overflow: hidden;
}

/* Track: horizontal scroll, one slide width at a time */
.csn-grc__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Each slide takes full viewport width */
.csn-grc__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;

    /* simplified layout: text stacked */
    margin: 0;
    padding: 18px 70px; /* leave room for overlay buttons */
    background: transparent;
    border: 0;
}

.csn-grc__quote {
    margin: 0 !important;
    padding: 0 !important;
    background-color: unset !important;
    color: var(--white) !important;
    border-left: none !important;
    font-style: unset !important;
    line-height: 1.5 !important;
    font-weight: 200 !important;
}

.csn-grc__more {
    display: inline-block;
    font-style: italic;
    color: var(--white);
    font-weight: 100;
}

.csn-grc__more:hover {
    color: var(--white) !important;
}

.csn-grc__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.5;

    .csn-grc__name {
        font-weight: 600;
    }

    .csn-grc__date {
        font-style: italic;
        font-weight: 200;
    }
}

/* --- Overlay buttons --- */
.csn-grc__controls {
    pointer-events: none; /* let buttons opt-in */
}

.csn-grc__btn {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;
    border-radius: 999px;

    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

.csn-grc__btn--prev {
    left: 10px;
}
.csn-grc__btn--next {
    right: 10px;
}

.csn-grc__btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
