/* MPV Holiday — shared review-card source badge + "Write Your Review" form.
   Loaded only on Home, Car Rental, and Tour Package (see functions.php),
   so pages without a review section never pay for this CSS. */

/* The three review-card classes are each defined with position:static in
   their own page stylesheet; the badge needs a positioned ancestor. */
.mpv-home-review,
.mpv-car-review,
.mpv-tour-review {
  position: relative;
}

.mpv-rev-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
}

.mpv-rev-badge svg { width: 15px; height: 15px; }

.mpv-rev-country {
  font-weight: 400;
  opacity: .7;
}

.mpv-rev-badge--ta svg { width: 16px; height: 16px; }

/* -------- Click-to-expand long site reviews (CSS-only) --------
   Only used for user-submitted reviews (no outbound link), so there's no
   conflict with cards that are themselves <a> tags to Google/TripAdvisor. */
.mpv-rev-expand-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.mpv-rev-expand-label {
  display: block;
  cursor: pointer;
}

.mpv-rev-readmore-more,
.mpv-rev-readmore-less {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--mpv-teal, #0F4C45);
}

.mpv-rev-readmore-less { display: none; }

.mpv-rev-expand-input:checked ~ .mpv-rev-expand-label p {
  display: block;
  -webkit-line-clamp: unset;
}

.mpv-rev-expand-input:checked ~ .mpv-rev-expand-label .mpv-rev-readmore-more { display: none; }
.mpv-rev-expand-input:checked ~ .mpv-rev-expand-label .mpv-rev-readmore-less { display: inline-block; }

.mpv-rev-badge--site {
  background: var(--mpv-teal, #0F4C45);
  color: #fff;
}

/* -------- Write Your Review -------- */
.mpv-rev-form-wrap {
  width: min(640px, calc(100% - 40px));
  margin: 28px auto 0;
  scroll-margin-top: 24px;
}

.mpv-rev-cta-wrap {
  text-align: center;
  margin-top: 28px;
}

.mpv-rev-notice {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .92rem;
  margin: 0 0 16px;
}

.mpv-rev-notice--ok {
  background: #eafaf3;
  color: #0f4c45;
  border: 1px solid #b7e4d3;
}

.mpv-rev-notice--err {
  background: #fdf1f0;
  color: #9a2b22;
  border: 1px solid #f3c6c1;
}

.mpv-rev-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1.5px solid var(--mpv-teal, #0F4C45);
  color: var(--mpv-teal, #0F4C45);
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--mpv-font-sans, inherit);
  transition: background .15s ease, color .15s ease;
}

.mpv-rev-form-btn:hover {
  background: var(--mpv-teal, #0F4C45);
  color: #fff;
}

.mpv-rev-form {
  text-align: left;
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--mpv-line, #D9D2C0);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mpv-rev-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mpv-rev-row .mpv-rev-field { flex: 1 1 160px; }

.mpv-rev-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--mpv-ink, #22291F);
}

.mpv-rev-field input[type="text"],
.mpv-rev-field textarea,
.mpv-rev-field input[type="file"] {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--mpv-line, #D9D2C0);
  border-radius: 8px;
  resize: vertical;
}

.mpv-rev-field input:focus,
.mpv-rev-field textarea:focus {
  outline: 2px solid var(--mpv-gold, #C9A227);
  outline-offset: 1px;
}

.mpv-rev-stars {
  border: 0;
  padding: 0;
  margin: 0;
}

.mpv-rev-stars legend {
  font-size: .88rem;
  font-weight: 600;
  color: var(--mpv-ink, #22291F);
  padding: 0 0 6px;
}

/* Classic CSS-only star picker: radios laid out last-to-first in the
   markup, displayed first-to-last via row-reverse, so the ~label
   sibling selector can light up every star up to the hovered/checked one. */
.mpv-rev-stars__input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.mpv-rev-stars__input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.mpv-rev-stars__input label {
  font-size: 28px;
  line-height: 1;
  color: var(--mpv-line, #D9D2C0);
  cursor: pointer;
}

.mpv-rev-stars__input input:checked ~ label,
.mpv-rev-stars__input label:hover,
.mpv-rev-stars__input label:hover ~ label {
  color: var(--mpv-gold, #C9A227);
}

.mpv-rev-submit {
  align-self: flex-start;
  background: var(--mpv-gold, #C9A227);
  color: var(--mpv-teal-deep, #0A342F);
  border: 0;
  border-radius: 10px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: .95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease;
}

.mpv-rev-submit:hover { background: var(--mpv-gold-soft, #E7CD6E); }

.mpv-rev-fineprint {
  margin: 0;
  font-size: .78rem;
  color: var(--mpv-muted, #5C5746);
}

/* Honeypot: present in the DOM for bots to fill, invisible and unreachable
   for real visitors — kept off-screen rather than display:none, since some
   spam scripts skip fields hidden that way. */
.mpv-rev-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
