/* Guest reviews: customer form pages + admin moderation. */
.gr-page { max-width: 720px; padding-block: 32px 48px; }
.gr-page__title { font-size: 1.6rem; font-weight: 700; color: var(--primary, #1e3c72); margin-bottom: 12px; text-wrap: balance; }
.gr-badge-verified { color: #1a7f37; font-weight: 600; margin-bottom: 20px; }
.gr-form { display: grid; gap: 16px; }
.gr-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.gr-label { font-weight: 600; font-size: .95rem; margin: 0; }
.gr-optional { font-weight: 400; color: #6b7280; }
.gr-required { color: #b42318; }
.gr-hint { font-size: .85rem; color: #6b7280; margin: 0; }
.gr-section-title { font-weight: 700; color: var(--primary, #1e3c72); margin: 8px 0 0; border-top: 1px solid #e3e7ee; padding-top: 12px; }
.gr-agency-select { max-width: 220px; }
.gr-subscores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .gr-subscores { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gr-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gr-scale label { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d5dae3; border-radius: 8px; cursor: pointer; font-weight: 600; background: #fff; }
.gr-scale input:checked + label { background: var(--primary, #1e3c72); border-color: var(--primary, #1e3c72); color: #fff; }
.gr-scale input:focus-visible + label { outline: 2px solid var(--secondary, #2a5298); outline-offset: 2px; }
.gr-error { color: #b42318; font-size: .85rem; margin: 0; }
.gr-hp { position: absolute; left: -9999px; }
.gr-check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.gr-check input { margin-top: 4px; }
.gr-submit { justify-self: start; }
.gr-rules { font-size: .85rem; color: #6b7280; margin: 0; }

/* Admin */
.gr-admin-score { font-size: 1.6rem; font-weight: 700; color: var(--primary, #1e3c72); line-height: 1; }
.gr-admin-score small { font-size: .8rem; color: #6b7280; }
.gr-admin-body { white-space: pre-line; }
.gr-hotel-search { min-width: 280px; }
.gr-hotel-suggestions { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 280px; overflow-y: auto; cursor: pointer; }
.gr-link-cell { min-width: 150px; }
.gr-link-output { min-width: 260px; font-size: .75rem; }
.gr-ai-row { margin-bottom: 6px; }
.gr-ai-gist { flex: 1 1 320px; min-width: 0; }
.gr-thanks { border-top: 1px solid #e3e7ee; padding-top: 8px; }
.gr-thanks summary { cursor: pointer; }
.gr-thanks-label { min-width: 250px; }
.gr-thanks-url { flex: 1 1 320px; min-width: 0; }

/* Public section «Cosa dicono gli ospiti»: hotel pages and /viaggi sheets.
   Moved from hotel-detail.css on 24/09/2026, which /viaggi does not load. */
.hd-reviews { padding-block: 48px; background: var(--light-bg, #f8f9fa); }
.hd-reviews__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.hd-reviews__summary, .hd-reviews__main { min-width: 0; }
@media (min-width: 992px) { .hd-reviews__grid { grid-template-columns: 300px minmax(0, 1fr); } }
.hd-reviews__title { font-size: 1.35rem; font-weight: 700; color: var(--primary, #1e3c72); margin: 0 0 12px; }
.hd-reviews__score { font-size: 2.4rem; font-weight: 700; color: var(--primary, #1e3c72); line-height: 1; }
.hd-reviews__score small { font-size: .9rem; color: #6b7280; font-weight: 500; }
.hd-reviews__count { color: #5f6878; font-size: .9rem; margin: 6px 0 14px; }
.hd-reviews__subs { display: grid; gap: 8px; margin: 0 0 14px; }
.hd-reviews__sub { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: .85rem; }
.hd-reviews__sub dt { font-weight: 500; }
.hd-reviews__sub dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.hd-reviews__bar { flex: 1; height: 6px; border-radius: 3px; background: #e3e7ee; overflow: hidden; }
.hd-reviews__bar-fill { display: block; height: 100%; background: var(--primary, #1e3c72); transform-origin: left; transform: scaleX(0); }
.hd-reviews__sub-val { font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.hd-reviews__agency { font-size: .85rem; margin: 0 0 12px; }
.hd-reviews__agency-note { color: #5f6878; }
.hd-reviews__policy { font-size: .8rem; color: #5f6878; background: #fff; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.hd-reviews__list { display: grid; gap: 14px; }
@media (min-width: 768px) { .hd-reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .hd-reviews__list { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .hd-review { scroll-snap-align: start; }
}
.hd-review { background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.hd-review__head { display: flex; align-items: center; gap: 10px; }
.hd-review__avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #eef1f6; color: var(--primary, #1e3c72); font-weight: 600; display: grid; place-items: center; }
.hd-review__who { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.hd-review__when { font-size: .75rem; color: #5f6878; }
.hd-review__score { margin-left: auto; font-weight: 700; color: var(--primary, #1e3c72); white-space: nowrap; }
.hd-review__score small { font-weight: 500; color: #6b7280; }
.hd-review__title { font-size: .95rem; font-weight: 600; margin: 0; }
.hd-review__body { font-size: .88rem; color: #384152; margin: 0; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hd-review__body.is-expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hd-review__more { justify-self: start; background: none; border: 0; padding: 0; font-size: .82rem; font-weight: 600; color: var(--secondary, #2a5298); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hd-review__more:hover, .hd-review__more:focus-visible { color: var(--primary, #1e3c72); }
.hd-reviews__toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.hd-reviews__sort-label { font-size: .85rem; color: #5f6878; margin: 0; white-space: nowrap; }
.hd-reviews__sort { width: auto; min-width: 170px; }
.hd-reviews__list.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
.hd-review__foot { font-size: .75rem; color: #5f6878; border-top: 1px solid #f0f2f6; padding-top: 6px; }
.hd-review__badge--verified { color: #1a7f37; font-weight: 600; }
.hd-review__badge--invited { color: var(--primary, #1e3c72); font-weight: 600; }
.hd-review__reply { background: #f4f6fa; border-radius: 8px; padding: 8px 10px; font-size: .82rem; }
.hd-review__reply p { margin: 4px 0 0; white-space: pre-line; }
.hd-review__reply--hotel { background: #eef6f0; }
.hd-review__reply + .hd-review__reply { margin-top: 6px; }
.hd-reviews__empty { color: #5f6878; }
.hd-reviews__form { margin-top: 20px; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 18px; }
