: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 span.is-off {
  color: var(--solox-text, #838184);
}

/* (Tùy chọn) màu tối */
@media (prefers-color-scheme: dark) {
  :root {
    --sb-thumb: rgba(255, 255, 255, .35);
    --sb-thumb-hover: rgba(255, 255, 255, .55);
    --sb-track: transparent;
  }
}

.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;
}

@media (max-width: 767px) {
    .testimonials-four--home-five .testimonials-four__carousel.owl-carousel .owl-nav {
        top: 0;
    }
	
	.testimonials-four__carousel.owl-carousel .owl-nav button {
		width: 56px;
		height: 56px;
	}
}

@media (max-width: 768px) {
  .btn-select-service {
    padding: .2rem .3rem;
  }
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .swal2-actions {
	  flex-direction: column;
  }
}

@media (min-width: 769px) {
  .service-element {
    gap: 10px;
  }

  .service-element .service-item {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (min-width: 1024px) {
  .btn-select-service {
    padding-top: .2rem;
    padding-bottom: .2rem;
    flex: 0 0 40%;
  }
}