/* ==========================================================
   reviews.css — Google Reviews Slider Section
    The Mount View Castle Hotels & Resorts
   Used in: index.html (and any future pages)
   ========================================================== */

/* ----------------------------------------------------------
   SECTION WRAPPER
   ---------------------------------------------------------- */
.reviews-section {
  background: var(--green-mid, #1C3530);
  padding: 75px 0;
  overflow: hidden;
}

/* Section tag + heading */
.reviews-section .section-tag   { color: #e0b54a; }
.reviews-section .section-heading { color: #ffffff; font-size: clamp(28px, 4vw, 38px); }

/* ----------------------------------------------------------
   GOOGLE BADGE (overall rating pill)
   ---------------------------------------------------------- */
.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 40px;
  padding: 10px 20px;
  margin-top: 18px;
}

.google-rating-badge .g-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.google-rating-badge .g-score {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.google-rating-badge .g-stars {
  display: flex;
  gap: 2px;
}

.google-rating-badge .g-stars span {
  color: #fbbc04;
  font-size: 16px;
  line-height: 1;
}

.google-rating-badge .g-count {
  font-size: 13px;
  color: rgba(255,255,255,.70);
}

.google-rating-badge .g-sep {
  color: rgba(255,255,255,.25);
  font-size: 14px;
}

/* ----------------------------------------------------------
   SLIDER CONTAINER
   ---------------------------------------------------------- */
.reviews-slider-outer {
  position: relative;
  overflow: hidden;
  /* Side fade masks */
  /*-webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );*/
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* ----------------------------------------------------------
   REVIEW CARD
   ---------------------------------------------------------- */
.review-card-slide {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 24px;
  /* width driven by JS */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Hover lift */
  transition: transform .22s, box-shadow .22s;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.review-card-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

/* Card header row */
.rc-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar initials */
.rc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  font-family: var(--font-body, 'Lato', sans-serif);
}

.rc-meta { flex: 1; min-width: 0; }

.rc-name {
  font-size: 15px;
  font-weight: 700;
  color: #173f35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}

.rc-date {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* Google icon top-right */
.rc-google-icon {
  flex-shrink: 0;
  opacity: .65;
  margin-left: auto;
}

.rc-google-icon svg { width: 18px; height: 18px; display: block; }

/* Stars */
.rc-stars {
  display: flex;
  gap: 3px;
}

.rc-star {
  color: #fbbc04;
  font-size: 18px;
  line-height: 1;
  display: inline-block;
}

.rc-star.empty { color: #e0e0e0; }

/* Review text */
.rc-text {
  font-size: 14.5px;
  color: #444;
  line-height: 1.75;
  flex: 1;
  margin: 0;
  /* Clamp to 4 lines to keep cards uniform */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Posted on Google footer */
.rc-footer {
  font-size: 12px;
  color: #aaa;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ----------------------------------------------------------
   SLIDER CONTROLS
   ---------------------------------------------------------- */
.reviews-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.rv-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  flex-shrink: 0;
}

.rv-arrow:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.08);
}

.rv-arrow i { font-size: 20px; }

/* Dot indicators */
.rv-dots-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rv-dot-btn {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.rv-dot-btn.active {
  background: #c99b37;
  transform: scale(1.35);
}

/* Write a review CTA */
.rv-write-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  font-family: var(--font-body, 'Lato', sans-serif);
}

.rv-write-review:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  color: #ffffff;
}

.rv-write-review i { font-size: 16px; color: #e0b54a; }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .reviews-section { padding: 58px 0; }
  .reviews-slider-outer {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  }
}

@media (max-width: 767.98px) {
  .reviews-section { padding: 52px 0; }
  .rc-text { -webkit-line-clamp: 6; }
}

/* ==========================================================
   REVIEW MODAL — Bootstrap dialog extension
   ========================================================== */

/* "Read full review" hint on card */
.rc-read-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gold, #c99b37);
  font-weight: 700;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.07);
  transition: gap .2s;
}

.review-card-slide:hover .rc-read-hint { gap: 7px; }
.rc-read-hint i { font-size: 14px; }

/* Card cursor */
.review-card-slide { cursor: pointer; }

/* ------ Modal header (dark green brand bar) ------ */
.modal-header-custom {
  background: var(--green-primary, #173f35);
  border-radius: calc(var(--bs-modal-border-radius, .5rem) - 1px) calc(var(--bs-modal-border-radius, .5rem) - 1px) 0 0;
  padding: 22px 28px 20px;
  border-bottom: none;
  position: relative;
}

/* Close button override */
.modal-header-custom .btn-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.32);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: invert(1) brightness(2);
  transition: background .2s;
  padding: 0;
}

.modal-header-custom .btn-close:hover {
  background: rgba(255,255,255,.32);
}

/* Reviewer info in header */
.modal-reviewer-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  font-family: var(--font-body, 'Lato', sans-serif);
  border: 2.5px solid rgba(255,255,255,.25);
}

.modal-reviewer-name {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 3px;
  letter-spacing: .3px;
}

.modal-reviewer-date {
  font-size: 13px;
  color: rgba(255,255,255,.62);
  margin: 0;
}

/* Stars in modal header */
.modal-star-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.modal-star {
  color: #fbbc04;
  font-size: 22px;
  line-height: 1;
}

.modal-star.empty { color: rgba(255,255,255,.22); }

.modal-rating-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  margin-left: 4px;
}

/* Modal Google icon top-right of header */
.modal-g-icon {
  position: absolute;
  bottom: 18px;
  right: 56px;
  opacity: .70;
}

.modal-g-icon svg { width: 22px; height: 22px; display: block; }

/* ------ Modal body ------ */
.modal-body-custom {
  padding: 28px 30px 10px;
}

/* Full review text */
.modal-review-text {
  font-size: 15.5px;
  color: #333;
  line-height: 1.88;
  font-style: italic;
  margin-bottom: 22px;
  position: relative;
  padding-left: 18px;
}

.modal-review-text::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 0;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 52px;
  color: rgba(201,155,55,.22);
  line-height: 1;
  font-style: normal;
}

/* Meta tags row */
.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.modal-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light-bg, #edf5f1);
  color: var(--green-primary, #173f35);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 40px;
  font-family: var(--font-body, 'Lato', sans-serif);
}

.modal-meta-tag i { font-size: 14px; color: var(--gold, #c99b37); }

/* ------ Modal footer ------ */
.modal-footer-custom {
  padding: 16px 30px 24px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-modal-helpful {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-light-bg, #edf5f1);
  border: 1.5px solid #c8e4d5;
  color: var(--green-primary, #173f35);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 40px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: var(--font-body, 'Lato', sans-serif);
}

.btn-modal-helpful:hover {
  background: #d5ebe1;
  border-color: #9fcab5;
  color: var(--green-primary, #173f35);
}

.btn-modal-helpful.voted {
  background: #c8e4d5;
  border-color: #9fcab5;
  color: var(--green-primary, #173f35);
}

.btn-modal-helpful i { font-size: 16px; }

.btn-modal-google {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold, #c99b37);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 40px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--font-body, 'Lato', sans-serif);
}

.btn-modal-google:hover {
  background: #b8891e;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-modal-google i { font-size: 16px; }

/* Share button */
.btn-modal-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1.5px solid rgba(0,0,0,.14);
  color: #5a5a5a;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 40px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: var(--font-body, 'Lato', sans-serif);
}

.btn-modal-share:hover { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.22); }
.btn-modal-share i { font-size: 16px; }

/* Navigation arrows inside modal footer */
.modal-nav-arrows {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.modal-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-light-bg, #edf5f1);
  border: 1.5px solid #c8e4d5;
  color: var(--green-primary, #173f35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  font-size: 0; /* hide text, use icon */
}

.modal-nav-arrow:hover { background: #c8e4d5; }
.modal-nav-arrow i { font-size: 18px; }

/* ------ Review counter badge in modal ------ */
.modal-counter-badge {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: .5px;
}

/* Responsive */
@media (max-width: 575.98px) {
  .modal-body-custom { padding: 22px 20px 8px; }
  .modal-footer-custom { padding: 14px 20px 20px; gap: 8px; }
  .modal-header-custom { padding: 18px 20px 16px; }
  .modal-avatar { width: 46px; height: 46px; font-size: 17px; }
  .modal-reviewer-name { font-size: 16px; }
  .modal-review-text { font-size: 14.5px; padding-left: 14px; }
  .modal-nav-arrows { margin-left: 0; }
  .btn-modal-share { display: none; }
}
