/**
 * Search Tabs - Parcials component stilleri
 * Label üstte, input altta, hizalı
 */
.shp {
  width: 100%;
  margin-top: 6px;
}
.slider .shp,
.slider #search-tabs-wrapper {
  margin-top: 0;
  margin-bottom: 0;
}

/* Eski anasayfa arama kutusu görünümü (syhbg22 / hefo / lblhe benzeri) */
.slider .shp__box {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px 20px 20px;
}
.slider .shp__form,
.slider .shp__form.syhbg22 {
  background: #fff;
  border-radius: 4px;
  padding: 16px 16px 12px 16px !important;
}
.slider .shp-field__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #212529;
  margin-bottom: 4px;
}
.slider .shp-field__input {
  height: 44px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 14px;
}
.slider .shp-field__icon {
  font-size: 22px;
  color: #495057;
}
.slider .shp-field__btn {
  border-radius: 4px;
  font-weight: 600;
}

.shp__box {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  padding: 12px 20px 20px;
}
.shp__form {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px 20px !important;
}
.shp__form.syhbg22 {
  padding: 16px 20px 20px !important;
}
.shp__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}
.shp__col {
  flex: 1;
  min-width: 0;
}

/* Her alan: label üstte, input altta - alt hizalı */
.shp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shp-field__icon {
  font-size: 18px;
  color: #495057;
  margin-bottom: 0;
  line-height: 1;
}
.shp-field__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #495057;
  display: block;
}
.shp-field__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  box-sizing: border-box;
}
.shp-field__input:focus {
  outline: none;
  border-color: #6c757d;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.15);
}
.shp-field__input.odavemisafir,
.shp-field__input.pax-misafir-display {
  cursor: pointer;
}
.shp-field__input::placeholder {
  color: #adb5bd;
}
.shp-field__wrap {
  position: relative;
}
.shp-field select.shp-field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.shp-field__btn {
  height: 44px;
  padding: 0 24px;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}
.shp-field__btn:hover {
  background: linear-gradient(135deg, #c1121f 0%, #a4161a 100%);
  color: #fff;
  transform: translateY(-1px);
}

/* Tab pills */
.shp__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.shp__tab {
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.shp__tab:hover {
  background: #f8f9fa;
  color: #000;
}
.shp__tab.active {
  background: #e63946;
  color: #fff;
  box-shadow: 0 2px 12px rgba(230, 57, 70, 0.4);
}

/* Tüm autocomplete dropdown'ları - carousel/banner üstünde görünsün */
.liveresult,
.liveresult2,
.liveresult3,
.liveresultotel,
.liveresultotel1,
.liveresultucak,
.liveresultucak2,
.liveresultucak21,
.liveresultucak22,
.pax-liveresult {
  z-index: 99999 !important;
}

/* Arama alanı stacking - carousel/slider görseli altında kalmasın (global) */
.slider {
  position: relative;
  z-index: 100;
}
.slider .container {
  position: relative;
  z-index: 101;
}
#search-tabs-wrapper,
.slider .shp__box,
.slider .shp__form {
  position: relative;
  z-index: 102;
}
/* Slider'dan sonra gelen ana içerik (carousel, slideshow) - arama dropdown'ının altında kalsın */
.slider ~ .container,
.container-below-hero {
  position: relative;
  z-index: 1;
}

/* Boş/seçim sonrası dropdown - beyaz alan kalmasın */
.liveresult:empty,
.liveresult2:empty,
.liveresult3:empty,
.liveresultotel:empty,
.liveresultotel1:empty,
.liveresultucak:empty,
.liveresultucak2:empty,
.pax-liveresult:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  min-height: 0 !important;
}

/* Dropdown/popup görünürlük - overflow kaldır, z-index yükselt */
#search-tabs-wrapper,
#search-tabs-wrapper .shp__box,
#search-tabs-wrapper .shp__form,
#search-tabs-wrapper .shp__row,
#search-tabs-wrapper .shp__col,
#search-tabs-wrapper .tab-content,
#search-tabs-wrapper .tab-pane {
  overflow: visible !important;
}
#search-tabs-wrapper .shp-field {
  position: relative;
  overflow: visible;
}

/* Autocomplete list */
.shp-field .liveresult,
.shp-field .liveresult2,
.shp-field .liveresultotel,
.shp-field .liveresultotel1,
.shp-field .liveresultucak,
.shp-field .liveresultucak2,
.shp-field .pax-liveresult {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 99999 !important;
  margin-top: 4px;
  list-style: none;
  padding: 6px 0;
}
.shp-field .list-group-item {
  padding: 10px 14px;
  cursor: pointer;
  border: none;
  font-size: 14px;
}
.shp-field .list-group-item:hover {
  background: #f8f9fa;
}

/* Trip type (uçak) */
.shp-triptype {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.shp-triptype label {
  background: #f1f1f1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shp-triptype input {
  margin: 0;
}

/* Paximum / Otel guest panel */
.shp-field .dac,
.shp-field .pax-guest-panel {
  margin-top: 10px;
}

/* Tablet */
@media (max-width: 991px) {
  .shp__row {
    flex-wrap: wrap;
  }
  .shp__col {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }
  .shp__col[style*="flex: 0 0 auto"] {
    flex: 1 1 100%;
  }
}

/* Mobil: tablar her zaman görünsün, sadece form alanı scroll olsun (Transfer vb. uzun formlar) */
@media (max-width: 767px) {
  /* Hero/slider (arama formu) her zaman alttaki mini slider'ın üstünde kalsın */
  .slider {
    z-index: 110;
    position: relative;
  }
  .container-below-hero {
    z-index: 0;
    position: relative;
  }
  #search-tabs-wrapper {
    max-height: 78vh;
    height: 78vh;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #search-tabs-wrapper .shp__tabs {
    flex-shrink: 0;
  }
  #search-tabs-wrapper .tab-content {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  #search-tabs-wrapper .tab-pane {
    min-height: min-content;
  }
  .slider .container {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .slider .container .shp {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .shp {
    margin-top: 4px;
  }
  .shp__box {
    padding: 10px 12px 16px;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
  }
  .shp__form,
  .shp__form.syhbg22 {
    padding: 12px 14px 16px !important;
  }
  /* Eski mobil tab tasarımı: 2x2 grid, pasif koyu teal/gri, aktif kırmızı (görsel referans) */
  #search-tabs-wrapper .shp__tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
  }
  #search-tabs-wrapper .shp__tab {
    min-height: 50px;
    margin: 0;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    font-size: 12px;
    color: #fff;
    background: #2d3e50;
    border-radius: 10px;
    min-width: 0;
  }
  #search-tabs-wrapper .shp__tab:hover {
    background: #3d5266;
    color: #fff;
  }
  #search-tabs-wrapper .shp__tab.active {
    background: #e63946;
    color: #fff;
    box-shadow: 0 2px 12px rgba(230, 57, 70, 0.4);
  }
  #search-tabs-wrapper .shp__tab .yicon {
    font-size: 16px;
    margin-right: 6px;
  }
  /* Önceki mobil tab stili (beyaz pasif) – geri dönmek için yorumu kaldırıp yukarıdaki bloku yoruma alın
  #search-tabs-wrapper .shp__tabs {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }
  #search-tabs-wrapper .shp__tab {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    justify-content: center;
    padding: 10px 8px;
    font-size: 11px;
  }
  #search-tabs-wrapper .shp__tab .yicon {
    font-size: 14px;
    margin-right: 4px;
  }
  */
  .shp__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .shp__col {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .shp__col[style*="flex: 0 0 auto"] {
    flex: 1 1 100% !important;
  }
  .shp-field {
    min-height: auto;
    align-items: stretch;
    width: 100%;
  }
  .shp-field__wrap {
    width: 100%;
  }
  .shp-field__input {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .shp-field select {
    width: 100% !important;
    max-width: 100%;
  }
  .shp-field__btn {
    width: 100% !important;
    justify-content: center;
  }
}

/* Küçük mobil – tablar aynı 2x2 / koyu teal–kırmızı, sadece boyut küçülür */
@media (max-width: 480px) {
  .shp__box {
    padding: 8px 10px 14px;
  }
  .shp__form,
  .shp__form.syhbg22 {
    padding: 10px 12px 14px !important;
  }
  #search-tabs-wrapper .shp__tab {
    min-height: 46px;
    padding: 10px 8px;
    font-size: 11px;
  }
  .shp-triptype {
    margin-bottom: 10px;
    gap: 8px;
  }
  #search-tabs-wrapper .shp-field__input,
  #search-tabs-wrapper .shp-field select,
  #search-tabs-wrapper .shp-field input {
    width: 100% !important;
    max-width: 100%;
  }
}
/* Parcials kullanıldığında masaustutab gizleme kuralını geçersiz kıl */
#search-tabs-wrapper .shp__box {
  display: block !important;
}

/* Transfer form: kolon daralmasını önle (5 Yc vb. truncation) */
#shp-transfer-form .shp__col {
  min-width: 90px;
}

/* Transfer ara sayfası: form sol hizalı, inputlar eski yerinde (sağa atılmamış) */
.slider2 #shp-transfer-form {
  width: 100%;
}
.slider2 #shp-transfer-form .shp__row {
  justify-content: flex-start;
}

/* Responsive: container taşmasını önle - overflow visible (dropdown/popup görünsün) */
#search-tabs-wrapper {
  width: 100%;
  max-width: 100%;
}
.shp-field__wrap {
  max-width: 100%;
}

/* Kişi Bilgileri panel - ortak tasarım: beyaz modal, Misafir/Yolcular alanının hemen altında */
.kisi-bilgileri-panel,
#search-tabs-wrapper .shp-field .dac,
#search-tabs-wrapper .shp-field .pax-guest-panel,
#search-tabs-wrapper .shp__col--guest .dac,
#search-tabs-wrapper .shp__col--guest .pax-guest-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 280px;
  width: 100%;
  max-width: 340px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1100;
}
#search-tabs-wrapper .shp-field .dac h5,
#search-tabs-wrapper .shp-field .pax-guest-panel h5,
.kisi-bilgileri-panel h5 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #212529;
}
#search-tabs-wrapper .shp-field .pax-room-block,
#search-tabs-wrapper .shp-field .pax-guest-panel .pax-room-block,
.kisi-bilgileri-panel .oda-block {
  background: #f1f3f5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
#search-tabs-wrapper .shp-field .pax-room-block .small,
.kisi-bilgileri-panel .oda-label {
  font-size: 11px;
  color: #868e96;
  font-weight: 500;
  margin-bottom: 10px;
}
#search-tabs-wrapper .shp-field .dac1,
#search-tabs-wrapper .shp-field .pax-guest-panel .dac1,
.kisi-bilgileri-panel .dac1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: nowrap;
  gap: 12px;
}
#search-tabs-wrapper .shp-field .dac1:last-child {
  margin-bottom: 0;
}
#search-tabs-wrapper .shp-field .dac2,
#search-tabs-wrapper .shp-field .pax-guest-panel .dac2,
.kisi-bilgileri-panel .dac2 {
  font-size: 12px;
  font-weight: 700;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  flex-shrink: 0;
}
#search-tabs-wrapper .shp-field .dac3,
#search-tabs-wrapper .shp-field .pax-guest-panel .dac3,
.kisi-bilgileri-panel .dac3 {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
#search-tabs-wrapper .shp-field .btn11,
#search-tabs-wrapper .shp-field .pax-guest-panel .btn11,
.kisi-bilgileri-panel .btn11 {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}
#search-tabs-wrapper .shp-field .btn11:hover,
.kisi-bilgileri-panel .btn11:hover,
.shp-field .pax-guest-panel .btn11:hover {
  background: #dee2e6;
}
#search-tabs-wrapper .shp-field .dac3in,
#search-tabs-wrapper .shp-field .pax-guest-panel .dac3in,
.shp-field .pax-guest-panel .dac3in,
.kisi-bilgileri-panel .dac3in {
  width: 44px;
  text-align: center;
  border: none;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
}

/* Misafir/Yolcu kolonu - panel bu kolona göre konumlansın (sol alta düşmesin) */
.shp__col--guest {
  position: relative !important;
}

/* Paximum otel arama sayfası (search_otel_list) - wrapper yok */
.shp-field.has-guest-panel {
  position: relative;
  overflow: visible;
}
.slider2 .container,
.shp-otel-list,
.shp-otel-list .shp__form {
  overflow: visible !important;
}
.shp-field .dac.pax-guest-panel,
.shp-otel-list .shp-field .dac,
.shp-otel-list .shp-field .pax-guest-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 280px;
  max-width: 340px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1100;
}

/* Mobil: Kişi Bilgileri popup - fixed ile viewport ortasında, hiçbir container kesmesin */
@media (max-width: 767px) {
  #search-tabs-wrapper .shp-field .dac,
  #search-tabs-wrapper .shp-field .pax-guest-panel,
  #search-tabs-wrapper .shp-field .dac.kisi-bilgileri-panel,
  #search-tabs-wrapper .shp__col--guest .dac,
  #search-tabs-wrapper .shp__col--guest .pax-guest-panel {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 20px 18px !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    max-height: 85vh;
    overflow-y: auto;
  }
  #search-tabs-wrapper .shp-field .dac .oda-block,
  #search-tabs-wrapper .dac.kisi-bilgileri-panel .oda-block {
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  #search-tabs-wrapper .shp-field .dac1,
  #search-tabs-wrapper .shp-field .pax-guest-panel .dac1,
  #search-tabs-wrapper .dac.kisi-bilgileri-panel .dac1,
  #search-tabs-wrapper .dac .oda-block .dac1 {
    gap: 14px !important;
    margin-bottom: 12px !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }
  #search-tabs-wrapper .shp-field .dac2,
  #search-tabs-wrapper .shp-field .pax-guest-panel .dac2,
  #search-tabs-wrapper .dac.kisi-bilgileri-panel .dac2,
  #search-tabs-wrapper .dac .oda-block .dac2 {
    min-width: 92px !important;
    flex-shrink: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  #search-tabs-wrapper .shp-field .dac3,
  #search-tabs-wrapper .shp-field .pax-guest-panel .dac3,
  #search-tabs-wrapper .dac.kisi-bilgileri-panel .dac3,
  #search-tabs-wrapper .dac .oda-block .dac3 {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }
  #search-tabs-wrapper .shp-field .dac3in,
  #search-tabs-wrapper .shp-field .pax-guest-panel .dac3in,
  #search-tabs-wrapper .dac.kisi-bilgileri-panel .dac3in {
    width: 38px !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
  }
  #search-tabs-wrapper .shp-field .btn11,
  #search-tabs-wrapper .shp-field .pax-guest-panel .btn11,
  #search-tabs-wrapper .dac.kisi-bilgileri-panel .btn11,
  #search-tabs-wrapper .dac .oda-block .btn11 {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-shrink: 0 !important;
  }
}
