/* ============================================================
   Mixit7 Structured Data — Reviews frontend styles
   Default styles for [m7sd_reviews] shortcode templates.
   Override per-site via Elementor custom CSS or child theme.
   ============================================================ */

/* ----------------------------------------------------------
   Shared — stars (same colour in all layouts)
   ---------------------------------------------------------- */
.m7sd-star--full  { color: #FBBC04; font-size: 1.3rem; }
.m7sd-star--empty { color: #e0e0e0; font-size: 1.3rem; }

/* ----------------------------------------------------------
   Shared — language badge
   ---------------------------------------------------------- */
.m7sd-review__lang-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #666;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ----------------------------------------------------------
   Shared — "read more" trigger (cards + carousel) and the
   full-review modal it opens
   ---------------------------------------------------------- */
button.m7sd-review__more-btn {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #1565C0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-transform: none !important;
}
button.m7sd-review__more-btn:hover,
button.m7sd-review__more-btn:focus,
button.m7sd-review__more-btn:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0d47a1 !important;
}
button.m7sd-review__more-btn:focus-visible {
    outline: 2px solid #1565C0 !important;
    outline-offset: 2px !important;
}

.m7sd-review-modal {
    max-width: 480px;
    width: calc(100% - 2rem);
    padding: 2rem 1.75rem 1.75rem;
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.m7sd-review-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
button.m7sd-review-modal__close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    color: #1a1a1a !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
button.m7sd-review-modal__close:hover,
button.m7sd-review-modal__close:focus,
button.m7sd-review-modal__close:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
}

.m7sd-review--modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}
.m7sd-review--modal .m7sd-review__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}
.m7sd-review--modal .m7sd-review__rating {
    display: flex;
    justify-content: center;
    gap: 2px;
}
.m7sd-review--modal .m7sd-review__body {
    margin: 0;
    padding: 0;
    border: none;
}
.m7sd-review--modal .m7sd-review__body p {
    margin: 0;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
}
.m7sd-review--modal .m7sd-review__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
}
.m7sd-review--modal .m7sd-review__author {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}
.m7sd-review--modal .m7sd-review__date {
    font-size: 0.78rem;
    color: #9e9e9e;
}

/* ==========================================================
   CARDS layout  (.m7sd-reviews--cards)
   ========================================================== */

/* Grid */
.m7sd-reviews--cards .m7sd-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) {
    .m7sd-reviews--cards .m7sd-reviews__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .m7sd-reviews--cards .m7sd-reviews__grid { grid-template-columns: 1fr; }
}

/* Card box */
.m7sd-reviews--cards .m7sd-review--card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.25rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin: 0;
}

/* Avatar circle */
.m7sd-reviews--cards .m7sd-review__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-bottom: 0.25rem;
}

/* Name + date */
.m7sd-reviews--cards .m7sd-review__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
}
.m7sd-reviews--cards .m7sd-review__author {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}
.m7sd-reviews--cards .m7sd-review__date {
    font-size: 0.78rem;
    color: #9e9e9e;
}
.m7sd-reviews--cards .m7sd-review__source { display: none; }

/* Stars */
.m7sd-reviews--cards .m7sd-review__rating {
    display: flex;
    justify-content: center;
    gap: 2px;
}
.m7sd-reviews--cards .m7sd-review__score { display: none; }

/* Review text */
.m7sd-reviews--cards .m7sd-review__body {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}
.m7sd-reviews--cards .m7sd-review__body p {
    margin: 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.55;
}

/* Source logo (e.g. Google) */
.m7sd-reviews--cards .m7sd-review__source-logo {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* Aggregate summary */
.m7sd-reviews--cards .m7sd-reviews__aggregate {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}
.m7sd-reviews--cards .m7sd-reviews__aggregate-score { font-size: 2rem; font-weight: 700; color: #222; }
.m7sd-reviews--cards .m7sd-reviews__aggregate-max   { color: #888; }
.m7sd-reviews--cards .m7sd-reviews__aggregate-source { margin-left: 0.4rem; }
.m7sd-reviews--cards .m7sd-reviews__aggregate-count  { margin-left: 0.4rem; color: #888; font-size: 0.9rem; }


/* ==========================================================
   LIST layout  (.m7sd-reviews--list)
   ========================================================== */

.m7sd-reviews--list .m7sd-reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* List item box */
.m7sd-reviews--list .m7sd-review--list-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
}

/* Avatar */
.m7sd-reviews--list .m7sd-review__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

/* Header row: author — stars — meta */
.m7sd-reviews--list .m7sd-review__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.m7sd-reviews--list .m7sd-review__author {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}
.m7sd-reviews--list .m7sd-review__rating {
    display: flex;
    gap: 2px;
}
.m7sd-reviews--list .m7sd-star--full  { font-size: 1.1rem; }
.m7sd-reviews--list .m7sd-star--empty { font-size: 1.1rem; }
.m7sd-reviews--list .m7sd-review__meta {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.m7sd-reviews--list .m7sd-review__date,
.m7sd-reviews--list .m7sd-review__source {
    font-size: 0.78rem;
    color: #9e9e9e;
}

/* Review text */
.m7sd-reviews--list .m7sd-review__body p {
    margin: 0;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.6;
}

/* Aggregate */
.m7sd-reviews--list .m7sd-reviews__aggregate {
    margin-bottom: 1.5rem;
    color: #555;
}
.m7sd-reviews--list .m7sd-reviews__aggregate-score { font-weight: 700; color: #222; }


/* ==========================================================
   CAROUSEL layout  (.m7sd-reviews--carousel)
   ========================================================== */

.m7sd-reviews--carousel .m7sd-reviews__aggregate {
    text-align: center;
    margin-top: 2rem;
    color: #555;
}
.m7sd-reviews--carousel .m7sd-reviews__aggregate-score { font-size: 2rem; font-weight: 700; color: #222; }
.m7sd-reviews--carousel .m7sd-reviews__aggregate-max   { color: #888; }
.m7sd-reviews--carousel .m7sd-reviews__aggregate-source { margin-left: 0.4rem; }
.m7sd-reviews--carousel .m7sd-reviews__aggregate-count  { margin-left: 0.4rem; color: #888; font-size: 0.9rem; }

.m7sd-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Scroll-snap track — one review "spotlight" per view, swipeable natively.
   overflow-x: auto also computes overflow-y to auto (not visible), which
   clips the cards' box-shadow at top/bottom — padding gives it room,
   negative margin cancels the size increase so layout doesn't shift.
   No horizontal padding here on purpose: adding any pushes the visible
   window further along the track (eating into its own width), which
   exposes more of the next not-yet-navigated-to card on the right — see
   the reduced box-shadow blur on .m7sd-review--carousel below instead,
   which fits inside the existing card margin without needing any. */
.m7sd-reviews--carousel .m7sd-reviews__track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    margin: -12px 0;
}
.m7sd-reviews--carousel .m7sd-reviews__track::-webkit-scrollbar { display: none; }

/* Slides visible at once: 1 on mobile (<700px), 2 on tablet (700-1099px),
   3 on desktop (>=1100px). Arrows/dots handle scrolling — this only
   controls how many are visible side by side per breakpoint.

   Sizing lives on .m7sd-carousel__slot (an exact 100%/50%/33.3333% share
   of the track — no subtracted margin, so no rounding drift), NOT on the
   visible card. The card sits inset inside the slot's own padding, which
   both creates the visual gap AND gives its box-shadow full room on every
   side — since the shadow never needs to bleed past the slot's own exact
   boundary, a sub-pixel rounding gap between slots is just invisible empty
   space, never a sliver of the next (not-yet-navigated-to) card. */
.m7sd-reviews--carousel .m7sd-carousel__slot {
    box-sizing: border-box;
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 12px 8px;
}
@media (min-width: 700px) and (max-width: 1099px) {
    .m7sd-reviews--carousel .m7sd-carousel__slot { flex: 0 0 50%; }
}
@media (min-width: 1100px) {
    .m7sd-reviews--carousel .m7sd-carousel__slot { flex: 0 0 33.3333%; }
}

.m7sd-reviews--carousel .m7sd-review--carousel {
    box-sizing: border-box;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}
@media (min-width: 700px) and (max-width: 1099px) {
    .m7sd-reviews--carousel .m7sd-review--carousel { padding: 1.5rem 1.5rem; }
}
@media (min-width: 1100px) {
    .m7sd-reviews--carousel .m7sd-review--carousel { padding: 1.5rem 1.25rem; }
}

.m7sd-reviews--carousel .m7sd-review__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.m7sd-reviews--carousel .m7sd-review__rating {
    display: flex;
    justify-content: center;
    gap: 2px;
}
.m7sd-reviews--carousel .m7sd-review__score { display: none; }

.m7sd-reviews--carousel .m7sd-review__body {
    margin: 0.25rem 0;
    padding: 0;
    border: none;
}
.m7sd-reviews--carousel .m7sd-review__body p {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.65;
}

.m7sd-reviews--carousel .m7sd-review__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
}
.m7sd-reviews--carousel .m7sd-review__author {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}
.m7sd-reviews--carousel .m7sd-review__date {
    font-size: 0.78rem;
    color: #9e9e9e;
}
.m7sd-reviews--carousel .m7sd-review__source { display: none; }
.m7sd-reviews--carousel .m7sd-review__source-logo { margin-top: 0.5rem; }

/* Arrows */
/* Colors/shape come from --m7sd-arrow-* custom properties, set inline on
   the wrapper by the template from the Reviews admin settings — the
   fallback values here only apply if that inline style is ever missing. */
.m7sd-carousel__arrow {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--m7sd-arrow-radius, 50%);
    border: 1px solid var(--m7sd-arrow-border, transparent);
    background: var(--m7sd-arrow-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--m7sd-arrow-icon, #444);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s ease;
}
.m7sd-carousel__arrow:hover { filter: brightness(0.93); }
.m7sd-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: none;
}

/* Two arrow layouts, one shown per breakpoint:
   - "below" (mobile <700px): sits in the nav row with the counter/dots —
     fixed position regardless of review text length.
   - "side" (tablet/desktop >=700px): floats outside the track on each side,
     vertically centered on the track's own height. */
.m7sd-carousel__arrow--side { display: none; }

@media (min-width: 700px) {
    .m7sd-carousel__arrow--below { display: none; }
    .m7sd-carousel__arrow--side {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    /* Tighter offset on tablet (700-1099px) — some themes/booking widgets
       (e.g. a fixed "Book Now" side ribbon) sit right at the viewport edge
       there, and -56px collides with it. Desktop has more clearance. */
    .m7sd-carousel__arrow--side.m7sd-carousel__arrow--prev { left: -20px; }
    .m7sd-carousel__arrow--side.m7sd-carousel__arrow--next { right: -20px; }
}
@media (min-width: 1100px) {
    .m7sd-carousel__arrow--side.m7sd-carousel__arrow--prev { left: -56px; }
    .m7sd-carousel__arrow--side.m7sd-carousel__arrow--next { right: -56px; }
}

/* Nav row: prev/next arrows, mobile only (see .m7sd-carousel__arrow--below
   above). Fixed height regardless of review text length (unlike putting
   arrows beside the track, which drift wherever a tall card's vertical
   center happens to land). */
.m7sd-reviews--carousel .m7sd-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

/* ==========================================================
   MINIMAL / QUOTES layout  (.m7sd-reviews--minimal)
   ========================================================== */

.m7sd-reviews--minimal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Quote figure */
.m7sd-reviews--minimal .m7sd-review--quote {
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #e0e0e0;
    background: #ffffff;
    border-radius: 0 8px 8px 0;
}

/* Avatar */
.m7sd-reviews--minimal .m7sd-review__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

/* Review text */
.m7sd-reviews--minimal .m7sd-review__body {
    margin: 0 0 0.75rem;
    padding: 0;
    border: none;
}
.m7sd-reviews--minimal .m7sd-review__body p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    font-style: italic;
}

/* Figcaption row */
.m7sd-reviews--minimal .m7sd-review__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.m7sd-reviews--minimal .m7sd-review__author {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a1a;
}
.m7sd-reviews--minimal .m7sd-review__score,
.m7sd-reviews--minimal .m7sd-review__date,
.m7sd-reviews--minimal .m7sd-review__source {
    font-size: 0.78rem;
    color: #9e9e9e;
}
.m7sd-reviews--minimal .m7sd-review__score::before { content: "— "; }

/* Aggregate */
.m7sd-reviews--minimal .m7sd-reviews__aggregate {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}
.m7sd-reviews--minimal .m7sd-reviews__aggregate strong { color: #222; }
