/*!
 * SONDAX TRAVEL - Guest reviews (gr-*): the review card, its dialog, the /reviews page, and the
 * platform logos and scores the homepage strip shares with it (Developer.Site.GuestReviews).
 */

/* ---- Logos, scores, arrows ---- */
.gr-logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.gr-logo img { display: block; height: 24px; width: auto; }
.gr-logo-mark img { height: 26px; width: 26px; }
.gr-logo b { font-family: var(--font-main); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; color: #111; }
.gr-logo-text b { color: var(--color-ink); font-size: .9375rem; }
.gr-stars, .gr-bubbles { display: inline-flex; gap: 2px; vertical-align: middle; }
.gr-stars svg { width: 14px; height: 14px; fill: var(--color-accent); }
.gr-bubbles { gap: 3px; }
.gr-bubbles i { width: 11px; height: 11px; border-radius: 50%; background: #00aa6c; }
.hp-score { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.hp-score b { font-family: var(--font-head); font-weight: 600; font-size: 1.375rem; color: var(--color-ink); font-variant-numeric: lining-nums; }
.hp-arrows { display: flex; gap: 10px; flex: none; }
.hp-arrow { width: 46px; height: 46px; display: grid; place-items: center; background: #fff; color: var(--color-ink); border: 1px solid var(--color-card-line-hover); border-radius: var(--radius); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.hp-arrow:hover, .hp-arrow:focus-visible { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

/* ---- Card ---- */
.gr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.gr-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; }
.gr-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-card-line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.gr-card[hidden] { display: none; }
.gr-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gr-card-src img { height: 16px; }
.gr-card-src.gr-logo-mark img { height: 18px; width: 18px; }
.gr-card-src b { font-size: .8125rem; }
.gr-body { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: var(--color-ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.gr-more { align-self: flex-start; margin-top: 10px; padding: 0; background: none; border: 0; cursor: pointer; font-family: var(--font-main); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-brand); text-decoration: underline; text-underline-offset: 4px; }
.gr-more[hidden] { display: none; }
.gr-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.gr-face { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.gr-face-ini { display: grid; place-items: center; background: var(--color-muted-bg); color: var(--color-brand); font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; }
.gr-who { min-width: 0; font-size: .75rem; color: var(--color-soft); line-height: 1.5; }
.gr-name { margin: 0; font-family: var(--font-main); font-size: .8125rem; font-weight: 600; color: var(--color-ink); line-height: 1.4; }
.gr-name span { font-weight: 400; color: var(--color-soft); }
.gr-meta { display: block; }
.gr-src { font-weight: 600; color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Dialog ---- */
.gr-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gr-modal[hidden] { display: none; }
.gr-modal-back { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(4, 29, 64, .6); }
.gr-modal-box { position: relative; width: 100%; max-width: 680px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff; border-radius: var(--radius); padding: 40px 36px 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); outline: none; }
.gr-modal-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--color-ink); cursor: pointer; }
.gr-modal-in .gr-card { border: 0; padding: 0; }
/* A whole review can run to several paragraphs: set it as reading text, not as a headline. */
.gr-modal-in .gr-body { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; font-family: var(--font-main); font-weight: 400; font-size: 1.0625rem; line-height: 1.75; color: var(--color-body, #3d4a5c); }
.gr-modal-in .gr-card-top { padding-right: 36px; }
.gr-modal-x { z-index: 1; }
.gr-modal-in .gr-more { display: none; }
body.gr-lock { overflow: hidden; }

/* ---- /reviews ---- */
.gr-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--color-border); background: #fff; }
.gr-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.gr-hero .st-sub-label::after { display: none; }
.gr-title { margin: 0; font-size: clamp(3.25rem, 9vw, 7rem); line-height: .95; color: var(--color-ink); }
.gr-hero-side p { margin: 0 0 22px; font-size: 1rem; max-width: 480px; }
.gr-scores { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.gr-scores a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; }
.gr-feature { background: var(--color-muted-bg); padding: 56px 0 0; overflow: hidden; }
.gr-feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gr-feature-mark { font-family: var(--font-head); font-size: 9rem; line-height: .7; height: 64px; color: var(--color-accent); }
.gr-slides { margin-top: 22px; }
.gr-slide { display: none; margin: 0; }
.gr-slide.is-on { display: block; }
.gr-slide blockquote { margin: 0 0 24px; max-width: 940px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.625rem, 3.4vw, 2.625rem); line-height: 1.22; color: var(--color-ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.gr-slide .gr-slide-more { display: inline-block; margin: -8px 0 22px; }
.gr-slide figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .8125rem; color: var(--color-soft); }
.gr-slide figcaption b { display: block; color: var(--color-ink); font-size: .9375rem; }
.gr-slide-src { display: inline-flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid var(--color-card-line-hover); }
.gr-slide-src img { height: 18px; }
.gr-slide-src .gr-logo-mark img { height: 20px; width: 20px; }
.gr-strip { --gr-gut: max(16px, calc((100vw - 1200px) / 2 + 16px)); display: flex; align-items: flex-end; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 48px var(--gr-gut) 0; }
.gr-strip::-webkit-scrollbar { display: none; }
.gr-thumb { flex: none; width: 96px; height: 96px; padding: 0; border: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #dfe5ec; transition: width .35s, height .35s; }
.gr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s; }
.gr-thumb span { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-head); font-weight: 600; font-size: 1.75rem; color: var(--color-soft); }
.gr-thumb.is-on { width: 176px; height: 176px; }
.gr-thumb.is-on img { filter: none; opacity: 1; }
.gr-thumb.is-on span { background: var(--color-brand); color: #fff; font-size: 2.75rem; }
.gr-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.gr-filter button { min-height: 40px; padding: 0 16px; background: #fff; color: var(--color-soft); border: 1px solid var(--color-card-line-hover); border-radius: var(--radius); font-family: var(--font-main); font-size: .75rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.gr-filter button.is-on { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.gr-empty { text-align: center; max-width: 560px; margin: 0 auto; color: var(--color-soft); }
.gr-write { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.gr-write .st-sub-label::after { display: none; }
.gr-write-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gr-write-btns a { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--color-card-line); border-radius: var(--radius); text-decoration: none; transition: border-color .25s, transform .25s; }
.gr-write-btns a:hover, .gr-write-btns a:focus-visible { border-color: var(--color-brand); transform: translateY(-3px); }
.gr-write-btns a > span:last-child { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-brand); }

@media (max-width: 1100px) {
    .gr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .gr-grid, .gr-grid-home { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .gr-card { padding: 20px; }
    .gr-hero { padding: 44px 0 40px; }
    .gr-hero-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .gr-feature { padding-top: 40px; }
    .gr-feature-mark { font-size: 6.5rem; height: 46px; }
    .gr-strip { padding-top: 34px; }
    .gr-thumb { width: 72px; height: 72px; }
    .gr-thumb.is-on { width: 124px; height: 124px; }
    .gr-write { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .gr-modal { padding: 0; align-items: flex-end; }
    .gr-modal-box { max-width: none; max-height: 88vh; max-height: 88dvh; padding: 44px 20px 28px; border-radius: 12px 12px 0 0; }
    .gr-feature .hp-arrows { display: flex; }
}
@media (max-width: 480px) {
    .gr-write-btns { grid-template-columns: minmax(0, 1fr); }
    .gr-slide-src { padding-left: 0; border-left: 0; width: 100%; }
}
/* "Read reviews" under each platform logo on /reviews, in place of the score (12 Nov 2026). */
.gr-score-go { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-brand); }
.gr-scores .gr-logo-tripadvisor img { height: 28px; }
