:root {
  --quote-lines: 3;
  --quote-line-height: 1.6;
  --quote-lh: 1.6;
  --sb-width: 6px;
  /* độ rộng thanh cuộn nhỏ */
  --sb-thumb: rgba(0, 0, 0, .35);
  /* màu “ngón” */
  --sb-thumb-hover: rgba(0, 0, 0, .5);
  --sb-track: transparent;
  /* nền rãnh */
  --rev-thumb-size: 48px;
  /* đổi 48/52/60 tuỳ ý */
  --rev-thumb-radius: 10px;
  --rev-thumb-gap: 8px;
  --rev-photos-h: var(--rev-thumb-size);
  --author-size: 76px;
  --card-pad: 20px;
}

body {
  overflow-x: hidden;
}

.main-header--five .main-header__logo,
.solox-btn--icon,
.main-slider-five__carousel.owl-carousel .owl-dots button::after,
.why-choose-four__list__icon,
.main-header--five .main-header__logo::after,
.main-header--five__toggler:hover span {
  background-color: #74502c;
}

a,
.sec-title-two__tagline,
.membership-three__item__price,
.why-choose-four__content__title,
.main-slider-five__sub-title,
.main-header--five .main-menu .main-menu__list>li.current>a,
.main-header--five .main-menu .main-menu__list>li:hover>a,
.sidebar-one__info li span,
.membership-three__item__title a:hover {
  color: #74502c;
}

.btn-book {
  background-color: #74502c !important;
  border-color: #74502c !important;
}

.btn-book-outline {
  border: 1px solid #74502c;
  color: #74502c;
}

.btn-book-outline:hover {
  background-color: #74502c;
  color: #fff;
}

.form-select {
  padding-top: .2rem;
  padding-bottom: .2rem;
  border-radius: 0;
  border: 1px solid #eceae0;
}

#bookingForm .row .col-6 {
  padding-right: calc(var(--bs-gutter-x) / 2);
  padding-left: calc(var(--bs-gutter-x) / 2);
}

.service-element {
  margin-bottom: .5rem;
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
}

#bookingModal .select2-results__option {
  white-space: normal;
}

.service-element .service-item {
  flex: 0 0 100%;
  margin-bottom: .5rem;
  overflow: hidden;
}

.select2-container {
  width: 100% !important;
}

.select2-results__option small {
  display: block;
  color: gray;
  font-size: 11px;
}

.select2-container .select2-selection--single {
  height: 32px;
  border: 1px solid #eceae0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  padding: 0;
}

.tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.tag {
  background: #e0f3ff;
  padding: 5px 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.tags .tag .remove-btn {
  background: #ff4d4d;
  border: none;
  border-radius: 50%;
  width: 18px !important;
  height: 18px !important;
  color: white;
  font-size: 12px !important;
  cursor: pointer;
  line-height: 16px;
  padding: 0 0 12px !important;
  flex: 0 0 18px;
}

.time-display {
  margin-top: .5rem
}

.service-element .service-item {
  border: 1px solid #cdcdcd;
  border-radius: 5px;
  padding: 5px 10px;
}

.select2-selection__clear {
  display: none;
}

.modal-open .modal {
  overflow: scroll;
}

.btn-toggle-service {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--size);
  line-height: 1;
  min-width: 0;
}

.input-people {
  flex: 0 0 45%;
  height: 32px;
}

.select-service-box {
  display: grid;
  grid-template-columns:
    minmax(64px, max-content) minmax(0, 1fr) minmax(0, max-content);
  column-gap: .5rem;
  align-items: center;
}

.select-service-box .input-people {
  width: auto;
  min-width: 0;
}

.select-service-box .btn-select-service {
  white-space: nowrap;
  justify-self: stretch;
  min-width: 0;
}

.select-service-box .btn-toggle-service {
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 1;
}

#bookingModal .modal-body {
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

#bookingModal .modal-dialog {
  max-height: calc(100dvh - 2rem);
  display: flex;
}

#bookingModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

#bookingModal .modal-header,
#bookingModal .modal-footer {
  flex: 0 0 auto;
}

#bookingModal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 400px;
}

/* Cố định 3 dòng + cuộn dọc, luôn chừa chỗ cho scrollbar */
.testimonials-four__quote {
  line-height: var(--quote-line-height);
  height: calc(1em * var(--quote-line-height) * var(--quote-lines));
  overflow-y: auto;
  /* hiện khi cần (không ẩn theo hover) */
  overflow-x: hidden;
  white-space: normal;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  /* tránh giật layout khi hiện scrollbar */

  /* Firefox */
  scrollbar-width: thin;
  /* mảnh */
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}

/* Chrome/Edge/Safari */
.testimonials-four__quote::-webkit-scrollbar {
  width: var(--sb-width);
}

.testimonials-four__quote::-webkit-scrollbar-track {
  background: var(--sb-track);
}

.testimonials-four__quote::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb);
  border-radius: 999px;
  /* Bo viền trong để nhìn mảnh hơn */
  border: 2px solid transparent;
  background-clip: padding-box;
}

.testimonials-four__quote::-webkit-scrollbar-thumb:hover {
  background-color: var(--sb-thumb-hover);
}

.testimonials-four__ratings span:last-child {
  color: var(--solox-base, #c2a74e);
}

.testimonials-four__ratings {
  margin-bottom: 20px;
}

.testimonials-four__photos {
  display: flex;
  gap: var(--rev-thumb-gap);
  align-items: center;
  height: var(--rev-photos-h);
  /* <- quan trọng: luôn chừa chiều cao */
  margin-top: 12px;
}

.testimonials-four__photos .thumb {
  position: relative;
  width: var(--rev-thumb-size);
  height: var(--rev-thumb-size);
  flex: 0 0 var(--rev-thumb-size);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
}

.testimonials-four__photos .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonials-four__photos .thumb.more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, .45);
}

.testimonials-four__quote,
.testimonials-four__photos {
  margin-bottom: 12px;
}

.rev-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rev-lightbox .rev-img {
  max-width: 90vw;
  max-height: 80vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  border-radius: 8px;
}

.rev-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.rev-prev {
  left: 24px;
}

.rev-next {
  right: 24px;
}

.rev-close {
  top: 24px;
  right: 24px;
  transform: none;
  font-size: 26px;
}

.rev-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, .35);
  padding: 4px 10px;
  border-radius: 999px;
}

.testimonials-four__title {
  font-size: 16px;
}

.testimonials-four__designation {
  font-size: 14px;
}

.testimonials-four--home-five .testimonials-four__carousel.owl-carousel .owl-nav {
  top: -70px;
}

.testimonials-four__carousel.owl-carousel .owl-nav button {
  width: 40px;
  height: 40px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.block {
  height: 34px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.green {
  background-color: #28a745;
}

.yellow {
  background-color: #ffc107;
  color: #212529;
}

.red {
  background-color: #dc3545;
}

.testimonials-four__author {
  width: 60px;
  height: 60px;
}

.main-menu .main-menu__list li ul {
  top: 80%;
}

.testimonials-four__quote {
  height: 100px;
  line-height: 1.6;
}

.sidebar-one__title {
  color: inherit;
  font-size: 15px;
}

.main-header__right .solox-btn, .main-slider-five__btn .solox-btn, .footer-widget .solox-btn {
  border-radius: 6px;
}

.main-slider-five__social {
  z-index: 10;
}

.title-location {
  display: inline;
}

@media (max-width: 768px) {
  .swal2-html-container {
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
  }

  .swal2-title {
    padding-top: 15px;
  }

  .swal2-actions {
    margin-top: 15px;
  }
}

@media (min-width: 768px) {
  .main-slider-five__text {
    max-width: 50%;
  }
}

/* =============================
   Mobile Language Picker
   ============================= */

.mobile-lang-picker {
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px;
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.mobile-lang-btn:hover {
  background: rgba(255,255,255,0.12);
}

.mobile-lang-btn .fa-globe {
  font-size: 16px;
  color: #c7a870;
  flex-shrink: 0;
}

.mobile-lang-btn #mobileLangLabel {
  flex: 1;
}

.mobile-lang-btn .fa-chevron-right {
  font-size: 11px;
  opacity: 0.6;
  margin-left: auto;
}

/* =============================
   Language Select Modal
   ============================= */

.lang-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lang-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.lang-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.lang-modal-overlay.is-open .lang-modal {
  transform: translateY(0);
}

.lang-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f0ebe3;
  flex-shrink: 0;
}

.lang-modal__title {
  font-size: 16px;
  font-weight: 600;
  color: #2c1a0e;
}

.lang-modal__title .fa-globe {
  color: #74502c;
}

.lang-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
  padding: 0;
}

.lang-modal__close:hover {
  background: #f5f0ea;
  color: #333;
}

.lang-modal__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}

.lang-modal__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 15px;
  color: #333;
  border-radius: 0;
  position: relative;
}

.lang-modal__list li:hover {
  background: #fdf8f3;
}

.lang-modal__list li.active {
  background: #fdf5eb;
  color: #74502c;
  font-weight: 600;
}

.lang-modal__list li.active::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  color: #74502c;
  font-size: 13px;
}

.lang-flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.lang-name {
  flex: 1;
}

/* =============================
   Desktop Header Language Button
   ============================= */

.header-lang-wrap {
  align-items: center;
  margin-right: 10px;
}

.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 6px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-lang-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}

.header-lang-btn .fa-globe {
  font-size: 14px;
  opacity: 0.85;
}

/* When header is scrolled/sticky it may have white bg — invert colors */
.main-header--five.sticky-header--cloned .header-lang-btn,
.main-header--five.sticky-header .header-lang-btn {
  border-color: rgba(116,80,44,0.4);
  color: #74502c;
}

.main-header--five.sticky-header--cloned .header-lang-btn:hover,
.main-header--five.sticky-header .header-lang-btn:hover {
  background: rgba(116,80,44,0.08);
  border-color: #74502c;
}