.badge-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 0;
  border-color: rgb(74, 194, 86) rgb(74, 194, 86) transparent transparent;
  border-style: solid;
  border-width: 6px;
  border-radius: 4px;
}

/* Датапикер */
.date-picker-wrapper {
  position: relative;
}

/* Стилизация */
.flatpickr-calendar {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background-color: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.flatpickr-day.inRange {
  background: #e6f7ff;
  color: #000;
}

.flatpickr-months .flatpickr-month {
  color: #333;
}

.flatpickr-weekday {
  color: #fa8c16;
  font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 600;
  font-size: 16px;
}

/* КОличество лудей */
.custom-people-selector {
  position: relative;
}

.custom-people-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 120%;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: none;
  z-index: 1000;
}

.custom-people-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.custom-people-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #fa8c16;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-people-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 105px;
}

.custom-people-counter button {
  width: 28px;
  height: 28px;
  border: none;
  background: #fa8c16;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-people-counter span {
  min-width: 20px;
  text-align: center;
}
.custom-people-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.custom-remove {
  background: none;
  color: #aaa;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  margin-right: 5px;
  align-self: flex-start;
}

.custom-people-child-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.custom-people-child-label {
  display: flex;
  flex-direction: column;
}

.custom-people-child-label span {
  font-weight: 500;
}

.custom-people-child-label small {
  font-size: 12px;
  color: #999;
  font-weight: normal;
}

/* раскрыть текст */
.collapse-text {
  position: relative;
  overflow: hidden;
  max-height: 160px;
  transition: max-height 0.5s ease;
  padding-right: 1rem;
}
.collapse-text.show {
  max-height: 1000px;
}

.collapse-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3rem;
  background: linear-gradient(to top, white, transparent);
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.collapse-text.show::after {
  opacity: 0;
  display: none;
}

#toggleBtn .uil-angle-up {
  display: none;
}
#toggleBtn.open .uil-angle-down {
  display: none;
}
#toggleBtn.open .uil-angle-up {
  display: inline-block;
}

/* иконки на главной */
.main_icons {
  cursor: pointer;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
  position: relative;
}

.main_icons:hover {
  filter: brightness(1);
}

.main_icons span {
  color: #676767;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.main_icons:hover span {
  color: #ef3340;
}

.sun {
  position: absolute;
  top: 6px;
  right: -12px;
  width: 23px;
  offset-path: path("M0,0 C-20,30 -40,30 -60,0");
  offset-rotate: 0deg;
  offset-distance: 0%;
  transition: offset-distance 0.5s ease-in-out;
}

.main_icons:hover .sun {
  offset-distance: 100%;
}

/* triangle */
.indicator {
  background: linear-gradient(228.21deg, #fd8817 -131.14%, #ef3340 155.93%);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: -70px;
  z-index: -1;
  transform: rotate(45deg);
  transition: left 0.5s ease-out;
  left: 15%;
}

.row .icon_hover_1:hover ~ .position-relative .indicator {
  left: 49%;
}
.row .icon_hover_2:hover ~ .position-relative .indicator {
  left: 82%;
}

/* автокомплит */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  border-radius: 0 0 8px 8px;
}

.suggestions div {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestions div:hover {
  background: #f5f5f5;
}

/* табы в бронировании */
.nav-pills .nav-item .nav-link.active {
  background-color: #f5f5f5 !important;
}

/* табы в кабинете */
.profile-tabs .nav-item .nav-link.active {
  background-color: #fa8c16 !important;
  color: #fff;
}
.profile-tabs .nav-item .nav-link:hover {
  background-color: #fa8c16;
  color: #fff;
}

/* страница брони */
.inline-booking-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.inline-booking-adults,
.inline-booking-children {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-booking-adults button,
.inline-booking-counter button {
  width: 28px;
  height: 28px;
  border: none;
  color: black;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.inline-booking-add-child {
  color: #fa8c16;
  cursor: pointer;
  font-size: 14px;
}

.inline-booking-child {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.inline-booking-remove {
  background: none;
  border: none;
  color: rgb(139, 139, 139);
  font-size: 20px;
  cursor: pointer;
}

.inline-booking-child-info {
  display: flex;
  flex-direction: column;
}

.inline-booking-child-label span {
  font-weight: bold;
}

.inline-booking-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-booking-extra {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* search */
.filter-container.no-active .with-border {
  border: none !important;
  padding: 0 !important;
  height: 0;
  overflow: hidden;
}

.with-border {
  transition: height 0.3s ease;
}

/* profile */
.carousel-item .carousel-img {
  width: 750px;
  height: 300px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
}

#carouselExampleIndicators {
  position: relative;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.custom-prev,
.custom-next {
  top: 50%;
  transform: translateY(-50%);
}
