/**
 * City pages and their service pages: Google reviews + "Inside Our Sessions".
 *
 * Loaded only on pages that show those sections (partials/city-extras.php
 * adds the body class .tutorone-city-extras and enqueues this file). It is the
 * /lsat landing page's styling for the same two sections, re-scoped from
 * .tutorone-city-extras to .tutorone-city-extras:
 *   - section layout: lsat-landing.css ("GOOGLE REVIEWS", "Session Videos")
 *   - reviews-widget (GRW) overrides: tutorone_loc_grw_overrides() in
 *     tutorone-locations-plugin.php
 * If you change one of those, change this file the same way.
 */

/* ── Video carousel: same overflow clamp as /lsat (lsat-landing.css) ── */
.tutorone-city-extras .video-grid {
    overflow-y: hidden;
}

/* ── Google reviews: section + 2-up layout ───────────────────────── */
.tutorone-city-extras .lsat-reviews {
    padding: 64px 0 80px;
    background: #fff;
    overflow: hidden;
}

.tutorone-city-extras .lsat-reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.tutorone-city-extras .lsat-reviews__embed {
    min-width: 0;
}

@media (max-width: 900px) {
    .tutorone-city-extras .lsat-reviews__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}


/* ── Session Videos ───────────────────────────────────────────── */
.tutorone-city-extras .lsat-session-videos {
    padding: 80px 0;
    background: #fff;
}
.tutorone-city-extras .lsat-session-videos__header {
    text-align: center;
    margin-bottom: 40px;
}
.tutorone-city-extras .lsat-session-videos__header .section-subtext {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.tutorone-city-extras .lsat-session-videos__carousel {
    position: relative;
}
/* Card text must be dark on the white section background */
.tutorone-city-extras .lsat-session-videos .video-card__name {
    color: #0d1b2a;
}
.tutorone-city-extras .lsat-session-videos .video-card__label {
    color: #555;
}
/* Pagination dots — dark on white */
.tutorone-city-extras .lsat-session-videos .video-carousel__dot {
    background: rgba(13,27,42,0.15);
}
.tutorone-city-extras .lsat-session-videos .video-carousel__dot.active {
    background: #E75480;
}
@media (max-width: 768px) {
    .tutorone-city-extras .lsat-session-videos {
        padding: 56px 0;
    }
}

/* ── Reviews widget (GRW) overrides ─────────────────────────────── */
/* Card palette — locked light regardless of theme. */
.tutorone-city-extras .lsat-reviews__embed,
.tutorone-city-extras .lsat-reviews__embed .wp-gr,
.tutorone-city-extras .lsat-reviews__embed .rpi {
    --grw-card-bg: #ffffff;
    --grw-card-border: #e5e7eb;
    --grw-card-border-hover: #E75480;
    --grw-text-primary: #1a1a2e;
    --grw-text-secondary: #4b5563;
    --grw-text-muted: #6b7280;
    --grw-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    color-scheme: light !important;
    --slider-btn-bg: #ffffff !important;
    --slider-btn-bc: #e5e7eb !important;
    --slider-btn-bw: 1.5px !important;
    --slider-btn-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Force vertical stack: header on top, slider below. */
.tutorone-city-extras .lsat-reviews__embed .wp-gr,
.tutorone-city-extras .lsat-reviews__embed .grw-row {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* ---------- HEADER (business card on top) ---------- */
.tutorone-city-extras .lsat-reviews__embed .grw-header {
    background: var(--grw-card-bg) !important;
    border: 1.5px solid var(--grw-card-border) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    margin: 0 0 24px 0 !important;
    box-shadow: var(--grw-shadow) !important;
    width: 100% !important;
    max-width: none !important;
    color: var(--grw-text-primary) !important;
    transition: border-color 0.2s;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header:hover {
    border-color: var(--grw-card-border-hover) !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    flex-wrap: wrap;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .grw-img-wrap {
    flex: 0 0 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    overflow: hidden;
    border-radius: 50%;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .grw-img,
.tutorone-city-extras .lsat-reviews__embed .grw-header .grw-img-wrap img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid var(--grw-card-border);
    box-sizing: border-box;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .rpi-col8,
.tutorone-city-extras .lsat-reviews__embed .grw-header .rpi-flx {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: flex-start !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-name,
.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-name a {
    color: var(--grw-text-primary) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-name a:hover {
    color: #E75480 !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-based {
    color: var(--grw-text-secondary) !important;
    font-size: 0.88rem !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-powered {
    color: var(--grw-text-muted) !important;
    font-size: 0.78rem !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .rpi-stars {
    color: #E75480 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-wr {
    margin-top: 6px;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-wr a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #E75480 !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-wr a:hover {
    background: #C93B68 !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-header .wp-google-wr a svg {
    background: #fff;
    border-radius: 50%;
    padding: 1px;
}

/* ---------- SLIDER + REVIEW CARDS ---------- */
.tutorone-city-extras .lsat-reviews__embed .grw-content,
.tutorone-city-extras .lsat-reviews__embed .grw-content-inner {
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
    padding: 0 !important;
    position: relative;
}

.tutorone-city-extras .lsat-reviews__embed .rpi-slides {
    gap: 18px !important;
    background: transparent !important;
}

.tutorone-city-extras .lsat-reviews__embed .rpi-slide.grw-review {
    padding: 0 !important;
    background: transparent !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner,
.tutorone-city-extras .lsat-reviews__embed .grw-backgnd,
.tutorone-city-extras .lsat-reviews__embed .grw-round {
    background: var(--grw-card-bg) !important;
    border: 1.5px solid var(--grw-card-border) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: var(--grw-shadow) !important;
    color: var(--grw-text-primary) !important;
    height: 100%;
    min-height: 240px;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transition: border-color 0.2s;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner:hover,
.tutorone-city-extras .lsat-reviews__embed .grw-backgnd:hover {
    border-color: var(--grw-card-border-hover) !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .rpi-row12-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .grw-img-wrap {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    overflow: hidden;
    border-radius: 50%;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .grw-img,
.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .grw-img-wrap img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid var(--grw-card-border);
    box-sizing: border-box;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .wp-google-name,
.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .wp-google-name a {
    color: var(--grw-text-primary) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    background: transparent !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .wp-google-time {
    color: var(--grw-text-muted) !important;
    font-size: 0.78rem !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-review-inner .rpi-stars {
    color: #E75480 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

.tutorone-city-extras .lsat-reviews__embed .wp-google-feedback,
.tutorone-city-extras .lsat-reviews__embed .grw-scroll {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 140px;
    scrollbar-width: thin;
}

.tutorone-city-extras .lsat-reviews__embed .wp-google-text {
    color: var(--grw-text-secondary) !important;
    font-size: 0.93rem !important;
    line-height: 1.6 !important;
    background: transparent !important;
}

/* ---------- ARROWS ---------- */
body.tutorone-city-extras .lsat-reviews__embed .rpi-ltgt,
body.tutorone-city-extras .lsat-reviews__embed .rpi-lt,
body.tutorone-city-extras .lsat-reviews__embed .rpi-gt,
body.tutorone-city-extras .lsat-reviews__embed .grw-prev,
body.tutorone-city-extras .lsat-reviews__embed .grw-next,
body.tutorone-city-extras .lsat-reviews__embed button.rpi-ltgt,
body.tutorone-city-extras .lsat-reviews__embed button.grw-prev,
body.tutorone-city-extras .lsat-reviews__embed button.grw-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1.5px solid #e5e7eb !important;
    color: #1a1a2e !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    cursor: pointer;
    z-index: 10;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color-scheme: light !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

@media (prefers-color-scheme: dark) {
    body.tutorone-city-extras .lsat-reviews__embed .rpi-ltgt,
    body.tutorone-city-extras .lsat-reviews__embed .grw-prev,
    body.tutorone-city-extras .lsat-reviews__embed .grw-next {
        background: #ffffff !important;
        background-image: none !important;
        border: 1.5px solid #e5e7eb !important;
        color: #1a1a2e !important;
    }
}

.tutorone-city-extras .lsat-reviews__embed .grw-prev,
.tutorone-city-extras .lsat-reviews__embed .rpi-lt {
    left: 0 !important;
}

.tutorone-city-extras .lsat-reviews__embed .grw-next,
.tutorone-city-extras .lsat-reviews__embed .rpi-gt {
    right: 0 !important;
}

.tutorone-city-extras .lsat-reviews__embed .rpi-ltgt:hover,
.tutorone-city-extras .lsat-reviews__embed .grw-prev:hover,
.tutorone-city-extras .lsat-reviews__embed .grw-next:hover {
    background: #E75480 !important;
    border-color: #E75480 !important;
    color: #fff !important;
}

.tutorone-city-extras .lsat-reviews__embed .rpi-ltgt::before,
.tutorone-city-extras .lsat-reviews__embed .rpi-ltgt::after,
.tutorone-city-extras .lsat-reviews__embed .grw-prev::before,
.tutorone-city-extras .lsat-reviews__embed .grw-next::before {
    border-color: currentColor !important;
}

/* ---------- DOTS ---------- */
.tutorone-city-extras .lsat-reviews__embed .rpi-dots-wrap {
    margin-top: 20px !important;
    background: transparent !important;
}

.tutorone-city-extras .lsat-reviews__embed .rpi-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}

.tutorone-city-extras .lsat-reviews__embed .rpi-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(26, 26, 46, 0.2) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    transition: all 0.2s;
}

.tutorone-city-extras .lsat-reviews__embed .rpi-dot.active {
    background: #E75480 !important;
    transform: scale(1.3) !important;
}

/* ---------- MOBILE ---------- */
/* Phones: the review card gets the full width (the next one peeks in, so it
   reads as swipeable) and the arrows sit underneath instead of squeezing it.
   The /lsat copy of these rules padded both wrappers by 44px, which left
   cards about 120px wide. */
@media (max-width: 720px) {
    .tutorone-city-extras .lsat-reviews__embed .grw-content,
    .tutorone-city-extras .lsat-reviews__embed .grw-content-inner {
        padding: 0 !important;
    }
    .tutorone-city-extras .lsat-reviews__embed .grw-content-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 16px 12px !important;
    }
    .tutorone-city-extras .lsat-reviews__embed .rpi-slides {
        order: -1;
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 12px !important;
        -webkit-mask: none !important;
        mask: none !important;
    }
    .tutorone-city-extras .lsat-reviews__embed .rpi-slide {
        flex: 0 0 86% !important;
        width: 86% !important;
        max-width: none !important;
    }
    .tutorone-city-extras .lsat-reviews__embed .grw-header {
        padding: 16px !important;
    }
    /* button.* to outrank the desktop rule above. */
    body.tutorone-city-extras .lsat-reviews__embed button.rpi-ltgt,
    body.tutorone-city-extras .lsat-reviews__embed button.grw-prev,
    body.tutorone-city-extras .lsat-reviews__embed button.grw-next {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
    }
    .tutorone-city-extras .lsat-reviews__embed .grw-review-inner .wp-google-name,
    .tutorone-city-extras .lsat-reviews__embed .grw-review-inner .wp-google-name a {
        line-height: 1.25 !important;
        overflow-wrap: anywhere;
    }
    .tutorone-city-extras .lsat-reviews__embed .grw-review-inner,
    .tutorone-city-extras .lsat-reviews__embed .grw-backgnd {
        padding: 16px !important;
        min-height: 200px;
    }
}

/* One listing (a city with its own Google listing): one centred column. */
.tutorone-city-extras .lsat-reviews__grid--single {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}
