/* Theme Name: Traveler Childtheme
Description: Traveler Child Theme
Theme URI: https://travelerwp.com/
Author: the ShineTheme
Author URI: http://shinetheme.com
Version: 1.0
Template: traveler
*/

:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --text: #1B2632;
  --light: #f8fafc;
  --shadow: rgba(59,130,246,0.2);
}

.booking-quantity-input {
  width: 80px;
  margin-left: 10px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.booking-quantity-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--shadow);
  transform: scale(1.03);
}

.single .st-sent-mail-customer .form-st-send-mail .form-group {
  border-top: none !important;
  margin-top: 5px;
}

#header.header-style-4,
body .is-sticky .header-sticky-menu {
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

#header #topbar .topbar-items li a,
#header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
}

#header #topbar .topbar-items li a:hover,
#header.header-style-4 .header .header-right #st-main-menu .main-menu > li:hover > a {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--shadow);
}

#header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a,
#header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a:hover,
#header.header-style-4 .header .header-right #st-main-menu .main-menu > li:hover > a,
#header.header-style-4 .header .header-right #st-main-menu .main-menu li.current-menu-item > a {
  color: var(--text);
  position: relative;
}

#header.header-style-4 .header .header-right #st-main-menu .main-menu > li:hover > a,
#header.header-style-4 .header .header-right #st-main-menu .main-menu li.current-menu-item > a {
  text-decoration: underline;
  #text-decoration-thickness: 3px;
  #text-decoration-color: var(--primary);
  text-underline-offset: 6px;
}


.single .st-sent-mail-customer .form-st-send-mail .form-group input,
.single .st-sent-mail-customer .form-st-send-mail .form-group select {
  border: none;
  padding: 16px 8px;
  border-bottom: 2px solid #D7DCE3;
  border-radius: 0;
  background: var(--light);
  transition: all 0.3s ease;
  width: 100%;
}

.single .st-sent-mail-customer .form-st-send-mail .form-group input:focus,
.single .st-sent-mail-customer .form-st-send-mail .form-group select:focus {
  border-bottom-color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-1px);
}

.single .st-sent-mail-customer .form-st-send-mail .form-group select {
  padding: 12px 8px;
}

.search-result-page .search-form-wrapper .search-form {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-radius: 24px;
  background: white;
  transition: all 0.35s ease;
  backdrop-filter: blur(4px);
  padding: 16px;
}

.search-result-page .search-form-wrapper .search-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(59,130,246,0.18);
}

.form-booking-more.has-more {
    position: relative;
    max-height: 300px;
    overflow: hidden;
}

.form-booking-more.has-more::after {
    position: absolute;
    width: 100%;
    height: 100px;
    bottom: 0;
    content: '';
    display: block;
    background: linear-gradient(0deg, white, transparent);
    pointer-events: none;
}

#form-booking-show-more {
  display: none;
  margin-bottom: 20px;
  padding: 12px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #1e293b;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid transparent;
  cursor: pointer;
}

#form-booking-show-more:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.has-more + #form-booking-show-more {
    display: inline-block;
}

#header #topbar .topbar-items.languages {
  margin-left: 20px;
}

#header #topbar .topbar-items.languages li {
  padding: 0 5px;
}

.flex-row .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 16px;
}

.flex-row .row .wpb_column {
  background-size: cover;
  flex: 1 1 300px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.flex-row .row .wpb_column:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59,130,246,0.25);
}

.ovrscroll {
  height: 150px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
  padding: 8px;
}

.transfer-checkbox input {
  width: 20px;
  height: 20px;
  transition: all 0.25s ease;
  accent-color: var(--primary);
}

.transfer-checkbox input:checked {
  transform: scale(1.15);
}

/* Улучшенная адаптация для телефонов */
@media (max-width: 991px) {
  #header #topbar .topbar-items li a,
  #header .main-menu > li > a {
    padding: 10px 8px;
    font-size: 0.95rem;
  }

  .search-result-page .search-form-wrapper .search-form {
    padding: 16px;
    border-radius: 20px;
  }

  .flex-row .row .wpb_column {
    flex: 1 1 100%;
  }
}

@media (max-width: 767px) {
  #header #topbar,
  #header .main-menu {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #header #topbar .topbar-items,
  #header .main-menu > li {
    width: 100%;
  }

  #header #topbar .topbar-items li a,
  #header .main-menu > li > a {
    width: 100%;
    padding: 12px;
    text-align: center;
  }

  #header #topbar .topbar-items.languages {
    margin: 10px 0 0;
  }

  .search-result-page .search-form-wrapper .search-form {
    margin-top: 30px;
    padding: 20px;
  }

  .single .st-sent-mail-customer .form-st-send-mail .form-group input,
  .single .st-sent-mail-customer .form-st-send-mail .form-group select {
    padding: 16px 12px;
    font-size: 1rem;
  }

  #form-booking-show-more {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }

  .flex-row .row {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  h1, h2, h3 { font-size: 1.6rem; }

  .booking-quantity-input {
    width: 100%;
    margin: 10px 0;
  }

  .search-result-page .search-form-wrapper .search-form {
    border-radius: 16px;
    padding: 16px;
  }

  #form-booking-show-more {
    padding: 18px;
  }
}

.mailchimp .subcribe-form input[type=submit] {
  border-radius: 25px;
  text-transform: none;
}

.mailchimp .subcribe-form .form-control {
  border-radius: 25px;
}

#header.header-style-4 {
  background: transparent !important;
}

.search-result-page .search-form-wrapper .form-button button {
  background: linear-gradient(135deg, #00B9D5 0%, #3CE1D9 100%);
  border-radius: 25px;
}

@media (max-width: 767px) {
  .search-result-page .search-form-wrapper .search-form .col-md-3:last-child .form-button .advance {
    display: block;
    padding-left: 62px;
    padding-right: 30px;
  }

  #st-content-wrapper .search-form-wrapper .search-form .form-button .advance {
    text-align: left;
  }

  .search-form.hotel-search-form .form-button .advance .field-advance .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .search-form.hotel-search-form .form-button .advance .field-advance .dropdown-menu .item-title {
    display: none;
  }

  .search-result-page .search-form-wrapper .form-button .advance .field-advance .dropdown-menu .advance-item.facilities {
    margin-top: 10px;
  }

  .search-result-page .search-form-wrapper .search-form .col-md-3:nth-child(3) {
    border: none;
    border-bottom: 1px solid #dfdfdf !important;
  }
}

#header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a,
#header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a, #header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a:hover,
#header.header-style-4 .header .header-right #st-main-menu .main-menu li.current-menu-item > a,
#header.header-style-4 .header .header-right #st-main-menu .main-menu > li:hover > a {
  color: #fff;
}

#header.header-style-4 .header .header-right #st-main-menu .main-menu li.current-menu-item > a:after,
#header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a:hover:after {
  display: none;
}

#main-menu {
  border-top: 3px solid #ffffff66;
  border-bottom: 3px solid #ffffff19;
  border-radius: 30px;
}

#header.header-style-4 .header .header-right #st-main-menu .main-menu > li {
  padding: 10px 0 7px 0;
}

#header.header-style-4 .is-sticky .header-sticky-menu {
  border-radius: 0 0 25px 25px;
  /* padding-bottom: 16px; */
}

@media (min-width: 480px) {
  body:not(.page-template-template-home-modern) .header-sticky-menu #main-menu,
  .is-sticky .header-sticky-menu #main-menu {
    background: #00A7B2;
  }
}

@media (max-width: 480px) {
  #header .header .header-left .logo img {
    height: auto;
  }
}

body:not(.page-template-template-home-modern) #header.header-style-4 .header .toggle-menu .field-icon.fa svg g g,
#header.header-style-4 .is-sticky .header .toggle-menu .field-icon.fa svg g g {
  stroke: #00A7B2;
}

body:not(.page-template-template-home-modern) #header.header-style-4 #topbar a {
  color: #00A7B2 !important;
}

.header-right {
  flex-grow: 1;
  margin-left: 30px;
}

#st-main-menu {
  flex-grow: 1;
}

#main-menu {
  display: flex;
}

#header.header-style-4 .header .header-right #st-main-menu .main-menu > li {
  flex-grow: 1;
  margin: 0 auto;
  text-align: center;
}

#header.header-style-4 .header .header-right #st-main-menu .main-menu > li > a {
  margin-left: 0;
  margin-right: 0;
}
