/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/
/* Make the select look like the existing input and keep the search icon aligned */
/* Make the first column behave like the old input */
.custom-search-input .form-group.has-icon {
  position: relative;               /* fixes the misaligned little icon */
}

.custom-search-input .form-select {
  height: 50px;                     /* match template input height */
  padding-right: 40px;              /* room for the icon on the right */
  border-radius: 5px 0 0 5px;       /* left rounded like the first input */
  -webkit-appearance: none;         /* consistent look across browsers */
  -moz-appearance: none;
  appearance: none;
}

/* Align the icons inside both fields */
.custom-search-input .form-group.has-icon > i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: .7;
  pointer-events: none;
}

/* On small screens stack nicely */
@media (max-width: 992px) {
  .custom-search-input .form-select {
    border-radius: 5px; /* when stacked, keep full rounding */
  }
}

/*-------- COLOR BEIGE --------*/
/*General links color*/
a {
  color: #bea882;
}
a:hover, a:focus {
  color: #111;
  text-decoration: none;
  outline: none;
}

/* Main navigation */
header.sticky .main-menu > ul > li > a, header.header_in .main-menu > ul > li > a {
  color: #444;
}
header.sticky .main-menu > ul > li:hover > a, header.header_in .main-menu > ul > li:hover > a {
  color: #bea882;
}

@media only screen and (min-width: 992px) {
  /* Submenu*/
  .main-menu ul ul {
    border-top: 2px solid #bea882;
  }
  .main-menu ul ul:before {
    border-bottom-color: #bea882;
  }

  .main-menu ul ul li:hover > a {
    color: #bea882;
  }

  /* Submenu 3rd level */
  .main-menu ul ul li.third-level > a:hover {
    color: #bea882;
  }
}
@media only screen and (max-width: 991px) {
  #header_menu {
    background-color: #bea882;
  }
}
@media only screen and (max-width: 991px) {
  .main-menu ul li a:hover,
  a.show-submenu:hover {
    color: #bea882 !important;
  }

  .main-menu > ul > li.submenu:hover > a:after {
    color: #bea882;
  }
}
/*-------- 1.3 Structure --------*/
.custom-search-input input[type='submit'] {
  background-color: #bea882;
}

.hero_in.detail_page .wrapper .buttons a.btn_hero:hover {
  color: #bea882 !important;
}

.detail_page_head ul.tags li a:hover {
  color: #bea882;
}

@media (max-width: 767px) {
  .page_header.sticky {
    background-color: #bea882;
  }
}

.breadcrumbs ul li a:hover {
  color: #bea882;
}

.search_bar_list input[type='submit'] {
  background-color: #bea882;
}

/*============================================================================================*/
/* 2.  CONTENT */
/*============================================================================================*/
.main_title span em {
  background-color: #bea882;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  border: 2px solid #bea882;
}

.owl-theme .owl-dots .owl-dot span::before {
  background-color: #bea882 !important;
}

.owl-theme.categories_carousel .owl-nav .owl-prev i:hover,
.owl-theme.categories_carousel .owl-nav .owl-next i:hover {
  color: #bea882;
}

.banner.version_2 {
  background: #bea882 url(../img/pattern.svg) repeat;
}

.list_home ul li a:hover h3 {
  color: #bea882;
}

/*============================================================================================*/
/* 3.  COMMON */
/*============================================================================================*/
a.btn_1,
.btn_1 {
  color: #fff;
  background: #bea882;
}
a.btn_1.outline:hover,
.btn_1.outline:hover {
  border-color: #bea882;
  color: #bea882 !important;
}

/* Forms styles */
.container_check input:checked ~ .checkmark {
  background-color: #bea882;
}

.container_radio .checkmark:after {
  background: #bea882;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  border-bottom: 2px solid #bea882;
  color: #bea882;
}

#newsletter button[type='submit'] {
  background-color: #bea882;
}

/* Scroll top button */
#toTop:hover {
  background-color: #bea882;
}

#cookie-bar .cb-policy {
  background: #bea882;
}

.box_topic h3 {
  color: #bea882;
}

.accordion_2 .card-header h5 a i.indicator {
  color: #bea882;
}

/*============================================================================================*/
/* DETAIL PAGE */
/*============================================================================================*/
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
  background: #bea882 !important;
  color: #fff !important;
}
.ui-state-active:after,
.ui-widget-content .ui-state-active:after,
.ui-widget-header .ui-state-active:after {
  color: #ffff66;
}

a.show_hide:focus {
  color: #bea882;
}
a.show_hide:focus:hover {
  color: #111;
}

.reviews .progress-bar {
  background-color: #bea882;
}

.review_card .review_content .rating {
  color: #bea882;
}
.review_card .review_content ul li a:hover {
  background-color: #bea882;
  color: #fff;
}

.radio_select input[type="radio"]:focus + label {
  background-color: #bea882;
}
.radio_select input[type="radio"]:checked + label {
  background-color: #bea882;
}

.follow_us_detail a:hover {
  color: #bea882;
}

.dropdown-options > a {
  color: #bea882;
}

#message {
  background-color: #bea882;
}

/*============================================================================================*/
/* LISTINGS */
/*============================================================================================*/
.switch-field label:hover {
  cursor: pointer;
  color: #bea882;
}

a.address:hover {
  color: #bea882;
}

.rangeslider__fill {
  background: #bea882;
}

.rangeslider__handle {
  background: white;
  border: 2px solid #bea882;
}

.cluster-visible {
  background-color: #bea882 !important;
}

.cluster-visible:before {
  border: 7px solid #bea882;
  box-shadow: inset 0 0 0 4px #bea882;
}

a.btn_infobox_detail:before {
  color: #ccc;
}
a.btn_infobox_detail:before:hover {
  color: #bea882;
}

.btn_infobox_get_directions, a.btn_infobox_phone {
  color: #bea882;
}

/*-------- Leaflet cluster --------*/
.marker-cluster div {
  background-color: #bea882;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: #bea882;
}

.marker-cluster div:before {
  border: 7px solid #bea882;
  box-shadow: inset 0 0 0 4px #bea882;
}

/*============================================================================================*/
/* BLOG */
/*============================================================================================*/
article.blog .post_info h2 a:hover {
  color: #bea882;
}

.comments-list h3 a:hover {
  color: #bea882;
}

.widget ul.cats a:hover {
  color: #bea882;
}

.tags a:hover {
  background-color: #bea882;
}

.postmeta ul li a:hover {
  color: #bea882;
}

.dropcaps p:first-child::first-letter {
  color: #fff;
  background-color: #bea882;
}

/*============================================================================================*/
/* BOOKING, SIGN UP */
/*============================================================================================*/
.box_booking_2 .head, .sign_up .head {
  background-color: #bea882;
}

/*============================================================================================*/
/* CONTACTS */
/*============================================================================================*/
.box_contacts i {
  color: #bea882;
}

/*============================================================================================*/
/* ERROR */
/*============================================================================================*/
.search_bar input[type='submit'] {
  background-color: #bea882;
}

/*============================================================================================*/
/* HELP */
/*============================================================================================*/
a.box_topic i {
  color: #bea882;
}

.list_articles ul li a:hover {
  color: #bea882;
}

/*============================================================================================*/
/* REVIEW */
/*============================================================================================*/
input[type=file]::-webkit-file-upload-button, input[type=file].invalid::-webkit-file-upload-button, input[type=file].valid::-webkit-file-upload-button {
  color: #fff;
  background: #bea882 url(../img/camera.svg) 8px center no-repeat;
}

/*============================================================================================*/
/* SUBMIT */
/*============================================================================================*/
.box_about h2, .box_about h3 {
  color: #bea882;
}

.plan-tall .plan-title {
  background-color: #bea882;
}

.plan-tall {
  border: solid #bea882;
}

.plan-tall > .plan-price {
  background: #bea882;
}

/* ===== Booking dropdown: robust layout & scrolling ===== */
#sidebar_fixed,
#sidebar_fixed .theiaStickySidebar,
#sidebar_fixed .box_booking {
  overflow: visible !important;     /* prevent clipping by sticky wrappers */
  contain: none;
}

.box_booking .dropdown { position: relative; }

/* Panel floats over content and scrolls internally if tall */
.box_booking .dropdown-menu {
  display: none;                    /* hidden until .show */
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 100%;
  max-height: 360px;                /* << give the panel its own scroll */
  overflow: auto;
  z-index: 1060;                    /* above sidebar/calendar */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

/* Show when Bootstrap adds .show */
.box_booking .dropdown.show > .dropdown-menu,
.box_booking .dropdown-menu.show { display: block; }

.box_booking .dropdown-menu .dropdown-menu-content { padding: 18px; }

/* Tile layout – readable widths */
.box_booking .radio_select ul {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px,1fr));
  margin: 0;
  padding: 0;
}
@media (max-width: 575.98px) {
  .box_booking .radio_select ul { grid-template-columns: 1fr; }
}
.box_booking .radio_select ul li { list-style: none; }
.box_booking .radio_select input[type="radio"] { display: none; }
.box_booking .radio_select ul li label {
  display: block;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  line-height: 1.35;
  text-align: center;
  background: #fff;
  word-break: break-word;
}
.box_booking .radio_select input[type="radio"]:checked + label {
  border-color: #2a9d55;
  box-shadow: 0 0 0 3px rgba(42,157,85,.12);
}

/* Make sure time/calendar rows are not overlapped on small screens */
@media (max-width: 991.98px) {
  #sidebar_fixed { overflow: visible !important; }
}

/* === Fix service/stylist dropdown tiles going vertical === */

/* Make the panel float and scroll inside, keep from clipping */
#sidebar_fixed,
#sidebar_fixed .theiaStickySidebar,
#sidebar_fixed .box_booking { overflow: visible !important; }

.box_booking .dropdown { position: relative; }
.box_booking .dropdown-menu {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  margin-top: 8px; width: 100%;
  max-height: 360px; overflow: auto;
  z-index: 1060; background: #fff;
  border: 1px solid #eee; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.box_booking .dropdown.show > .dropdown-menu,
.box_booking .dropdown-menu.show { display: block; }

/* TILE LAYOUT: at least 220px wide so text doesn't stack vertically */
.box_booking .radio_select ul {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0; padding: 0;
}
.box_booking .radio_select ul li { list-style: none; }

/* Make labels behave like normal blocks with readable wrapping */
.box_booking .radio_select ul li label {
  display: block;
  min-width: 220px;              /* <- key fix */
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  line-height: 1.35;
  text-align: left;
  white-space: normal !important; /* ensure normal lines */
  word-break: normal !important;
  overflow-wrap: break-word;      /* only break long tokens */
  hyphens: auto;
  writing-mode: horizontal-tb;    /* guard against any theme overrides */
  transform: none;
}

.box_booking .radio_select input[type="radio"] { display: none; }
.box_booking .radio_select input[type="radio"]:checked + label {
  border-color: #2a9d55;
  box-shadow: 0 0 0 3px rgba(42,157,85,.12);
}

/* Small screens: single column */
@media (max-width: 575.98px) {
  .box_booking .radio_select ul {
    grid-template-columns: 1fr;
  }
}

#submit_review {
  margin-top: 10px;
}

/* --- Fix: Rating badge overlap on detail page --- */
.detail_page_head .rating {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.detail_page_head .rating .score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 55px;
}

.detail_page_head .rating .score span {
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
  margin-right: 6px;
  color: #555;
}

.detail_page_head .rating .score strong {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

/* For small screens */
@media (max-width: 576px) {
  .detail_page_head .rating {
    justify-content: flex-start;
    margin-top: 5px;
  }
}

/* --- Fix overlap of rating text and badge on detail page --- */
.detail_page_head .rating .score{
  display:flex !important;
  align-items:center;
  gap:10px;
  position: static !important;   /* cancel theme's absolute layout */
}

.detail_page_head .rating .score span{
  display:flex;
  flex-direction:column;
  margin:0 !important;            /* cancel theme margins */
  line-height:1.2;
}

.detail_page_head .rating .score span em{
  font-size:12px;
  opacity:.75;
}

.detail_page_head .rating .score strong{
  position: static !important;    /* was absolute in theme */
  padding:6px 10px;
  min-width:48px;
  text-align:center;
  background:#f3f3f3;
  border-radius:8px;
  font-size:16px;
  font-weight:600;
  color:#222;
}

/* Small screens: keep it tidy */
@media (max-width: 576px){
  .detail_page_head .rating{
    justify-content:flex-start;
  }
}

/* ===== FINAL FIX: detail header rating layout (no overlap) ===== */
.detail_page_head .rating { display:flex; align-items:center; gap:10px; }

.detail_page_head .rating .score{
  /* kill template layout */
  position:static !important;
  float:none !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
  align-items:center;
  gap:10px;
  width:auto !important;
}

.detail_page_head .rating .score > span{
  display:block !important;
  margin:0 !important;
  line-height:1.2 !important;
  text-align:left !important;
  white-space:normal !important;
}

.detail_page_head .rating .score > strong{
  /* kill absolute badge */
  position:static !important;
  right:auto !important;
  top:auto !important;
  transform:none !important;
  float:none !important;

  display:inline-flex !important;
  align-items:center; justify-content:center;
  min-width:44px; padding:6px 10px;
  background:#f3f3f3; border-radius:8px;
  font-size:16px; font-weight:600; color:#222;
}

/* small screens tidy */
@media (max-width:576px){
  .detail_page_head .rating{ justify-content:flex-start; flex-wrap:wrap; }
}

/* --- Rating pill: stop overlap on detail page --- */
.detail_page_head .rating { float: right; padding-top: 8px; } /* keep theme intent */
@media (max-width: 767px){
  .detail_page_head .rating { float: none; padding-top: 0; }
}

/* Make the score a small flex row: [text] [pill] */
.detail_page_head .rating .score{
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

/* Reset the theme offsets that shove text into the pill */
.detail_page_head .rating .score > span{
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  line-height: 1.15;
  display: inline-flex;
  flex-direction: column;
  text-align: right;
}

/* Tidy the two lines (word + reviews) */
.detail_page_head .rating #rating_word{ font-size: 14px; }
.detail_page_head .rating #reviews_count{ font-size: 12px; opacity: .75; }

/* Keep the numeric badge a neat pill, not a background for the text */
.detail_page_head .rating .score > strong{
  display: inline-block !important;
  position: static !important;
  padding: 6px 10px !important;
  line-height: 1 !important;
  min-width: 44px;
  text-align: center;
  background: #f0f0f0;          /* same as theme */
  border-radius: 6px;            /* small pill */
  font-size: 16px;               /* a touch smaller so it aligns nicely */
  font-weight: 600;
  color: #222;
}
/* Detail page rating: keep text separate from the badge */
.detail_page_head .rating .score{ 
  display: inline-grid !important;
  grid-auto-flow: column;
  align-items: center;
  column-gap: 10px;
}
.detail_page_head .rating .score > span{ position: static !important; margin: 0 !important; background: transparent !important; }
.detail_page_head .rating .score > strong{ position: static !important; padding: 6px 10px !important; background:#f0f0f0 !important; border-radius:6px !important; line-height:1 !important; flex-shrink:0; }

/* keep cards solid while images load/fallback */
.strip figure { background:#f2f2f2; }
.strip figure > img,
img.salon-cover {
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  aspect-ratio: 460 / 310;
}

.strip figure { background:#f2f2f2; }
.strip figure > img,
img.salon-cover { display:block; width:100%; height:auto; object-fit:cover; aspect-ratio:460/310; }