/* TEZ Tour module styles */

.teztour-page h1{margin-bottom:16px;}

.tez-status{
  padding:10px 12px;
  border-radius:10px;
  margin:12px 0;
  border:1px solid #ddd;
}
.tez-status-info{background:#f7f7f7;}
.tez-status-ok{background:#f0fff4; border-color:#b7f5c7;}
.tez-status-error{background:#fff5f5; border-color:#ffd0d0;}
.tez-status-searching{background:#f7f7f7;}
.tez-status-searching-label{
  margin-bottom:8px;
  font-weight:600;
  color:#333;
}
.tez-status-progress-wrap{
  position:relative;
  overflow:hidden;
  border-radius:3px;
}
.tez-status-progress{
  display:block;
  width:100%;
  height:20px;
  border:none;
  border-radius:3px;
  appearance:none;
  -webkit-appearance:none;
  background-color:whitesmoke;
  box-shadow:inset 2px 2px 3px rgba(0,0,0,.5);
  margin-bottom:0;
}
.tez-status-progress::-webkit-progress-bar{
  border:none;
  border-radius:3px;
  background-color:whitesmoke;
  box-shadow:inset 2px 2px 3px rgba(0,0,0,.5);
}
.tez-status-progress::-webkit-progress-value{
  background-color:#9ea4ab;
  border-radius:3px;
  box-shadow:inset 2px 2px 3px rgba(0,0,0,.5);
}
.tez-status-progress::-moz-progress-bar{
  background-color:#9ea4ab;
  border-radius:3px;
}
.tez-status-progress-overlay{
  position:absolute;
  inset:0;
  border-radius:3px;
  background-image:linear-gradient(-45deg, transparent 33%, rgba(0,0,0,.12) 33%, rgba(0,0,0,.12) 66%, transparent 66%);
  background-size:35px 20px;
  animation:tez-progress-indeterminate .5s linear infinite;
  pointer-events:none;
}
@keyframes tez-progress-indeterminate{
  from{background-position-x:0;}
  to{background-position-x:35px;}
}

.tez-note{
  margin:-4px 0 12px;
  font-size:12px;
  color:#666;
}

.tez-empty{
  grid-column: 1 / -1;
  padding:14px;
  border:1px dashed #ddd;
  border-radius:12px;
  color:#666;
  background:#fafafa;
}

.tez-pax{
  display:flex;
  gap:10px;
}
.tez-pax-item{flex:1;}
.tez-pax-label{
  display:block;
  font-size:12px;
  color:#666;
  margin-bottom:4px;
}
.tez-children-bdays{margin-top:10px;}
.tez-child-bday{margin-top:8px;}
.tez-child-bday label{font-size:12px;color:#666;margin-bottom:4px;display:block;}
.tez-hint{font-size:12px;color:#777;margin-top:6px;}

/* Tourists dropdown (UI like screenshots) */
.tez-tourists{ position:relative; }
.tez-tourists-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid #e3e3e3;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
}
.tez-tourists-title{ font-weight:700; color:#333; }
.tez-tourists-value{ font-weight:600; color:#111; }
.tez-tourists-caret{ color:#666; font-size:12px; }

.tez-tourists-pop{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:min(420px, 100vw);
  background:#fff;
  border:1px solid #e3e3e3;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  padding:14px;
  z-index:50;
}
.tez-tourists-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tez-tourists-label{ font-weight:700; color:#111; }
.tez-tourists-stepper{ display:flex; align-items:center; gap:10px; }
.tez-step{
  width:40px; height:40px;
  border:1px solid #cfcfcf;
  background:#fff;
  border-radius:8px;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.tez-step-value{ width:28px; text-align:center; font-weight:700; font-size:18px; }

.tez-children-list{ margin-top:12px; }
.tez-child-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-top:1px solid #f0f0f0;
}
.tez-child-title{ font-weight:600; color:#111; }
.tez-child-remove{
  width:28px; height:28px;
  border-radius:50%;
  border:1px solid #d6d6d6;
  background:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tez-tourists-add{ margin-top:12px; }
.tez-add-child-select{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #e0e0e0;
  background:#f3f3f3;
  cursor:pointer;
  font-weight:700;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
}
.tez-add-child-select:focus{ outline: none; box-shadow: 0 0 0 3px rgba(240,180,0,.25); }

.tez-btn{font-weight:700;border-radius:18px;}

.teztour-filter{
  padding:12px;
  border:1px solid #ddd;
  margin-bottom:16px;
  border-radius:10px;
}

.teztour-filter label{font-weight:600;}

.teztour-filter select,
.teztour-filter input[type="text"],
.teztour-filter input[type="date"]{
  padding:6px 8px;
  border:1px solid #ccc;
  border-radius:8px;
}

.teztour-filter button{
  padding:7px 14px;
  border:1px solid #f0b400;
  background:#f0b400;
  color:#fff;
  border-radius:18px;
  cursor:pointer;
  font-weight:700;
}

.teztour-filter-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.teztour-filter-note{
  margin-top:8px;
  color:#777;
  font-size:12px;
}

.teztour-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

.teztour-content{
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.teztour-sidebar{
  width:280px;
  border:1px solid #ddd;
  border-radius:10px;
  position:sticky;
  top:10px;
}

.teztour-sidebar-title{
  font-weight:800;
  margin-bottom:10px;
}

.teztour-content .teztour-grid{
  flex:1;
  min-width:0;
}

@media (max-width: 1200px){
  .teztour-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .teztour-content{ flex-direction:column; }
  .teztour-sidebar{ width:100%; position:static; }
  .teztour-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .teztour-grid{ grid-template-columns:repeat(1, minmax(0, 1fr)); }
}

.teztour-card{
  border:1px solid #e5e5e5;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.teztour-img{
  position:relative;
  aspect-ratio:4 / 3;
  background:#f3f3f3;
  overflow:hidden;
}

.teztour-no-image{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#999;
}

.teztour-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.teztour-price-badge{
  position:absolute;
  right:10px;
  bottom:10px;
  background:#f0b400;
  color:#fff;
  border-radius:28px;
  padding:10px 14px;
  text-align:center;
  min-width:120px;
  box-shadow:0 8px 18px rgba(0,0,0,.15);
}

.teztour-price-old{
  font-size:14px;
  text-decoration:line-through;
  opacity:.95;
  line-height:1.1;
}

.teztour-price-now{
  font-size:26px;
  font-weight:800;
  line-height:1;
}

.teztour-price-now small{
  font-size:14px;
  font-weight:800;
}

.teztour-body{padding:12px 12px 10px;}

.teztour-place{font-size:18px;}

.teztour-name{
  font-size:28px;
  font-weight:800;
  line-height:1.05;
  margin-top:6px;
}

.teztour-meta{
  margin-top:14px;
  font-size:18px;
  line-height:1.25;
  min-height:110px;
}

.teztour-u{text-decoration:underline;}

.teztour-actions{
  display:flex;
  justify-content:flex-end;
  padding:0 12px 12px;
}

.teztour-pagination{margin-top:16px;}

.teztour-btn{
  display:inline-block;
  padding:6px 14px;
  border:1px solid #f0b400;
  border-radius:20px;
  text-decoration:none;
  color:#f0b400;
  background:#fff;
}

.teztour-btn:hover{
  color:#c28e00;
  border-color:#c28e00;
}

.teztour-hotel-title{font-size:34px;font-weight:800;margin:0;}
.teztour-hotel-sub{margin-top:6px;color:#666;}
.teztour-hotel-layout{display:flex;gap:18px;margin-top:14px;}
.teztour-hotel-left{flex:1;min-width:0;}
.teztour-hotel-right{width:360px;}
@media (max-width: 1100px){ .teztour-hotel-layout{flex-direction:column;} .teztour-hotel-right{width:auto;} }

.teztour-gallery{background:#fff;border:1px solid #e7e7e7;border-radius:12px;overflow:hidden;}
.teztour-gallery-main img{width:100%;height:420px;object-fit:cover;display:block;}
@media (max-width: 700px){ .teztour-gallery-main img{height:260px;} }
.teztour-gallery-thumbs{display:flex;gap:8px;overflow:auto;padding:10px;background:#fafafa;border-top:1px solid #eee;}
.teztour-thumb{border:none;background:transparent;padding:0;cursor:pointer;flex:0 0 auto;border-radius:8px;overflow:hidden;}
.teztour-thumb img{width:86px;height:56px;object-fit:cover;display:block;}
.teztour-gallery-empty{padding:40px;text-align:center;color:#999;}

.teztour-tabs{display:flex;gap:18px;margin:14px 0 10px;border-bottom:1px solid #eee;}
.teztour-tab{background:transparent;border:none;padding:10px 0;font-weight:700;cursor:pointer;border-bottom:3px solid transparent;}
.teztour-tab.is-active{border-bottom-color:#f0b400;}
.teztour-tab-content{display:none;}
.teztour-tab-content.is-active{display:block;}
.teztour-html{line-height:1.5;color:#222;}
.teztour-note{margin-top:12px;padding:12px;border-left:4px solid #f0b400;background:#fff8e1;border-radius:10px;}
.teztour-warning{margin-top:12px;padding:12px;border-left:4px solid #e53935;background:#ffebee;border-radius:10px;}

.teztour-request-card{background:#fff;border:1px solid #e7e7e7;border-radius:12px;padding:14px;}
.teztour-request-title{font-size:18px;font-weight:800;margin-bottom:10px;}
.teztour-field{margin-bottom:10px;}
.teztour-field label{display:block;font-size:13px;font-weight:700;color:#b07e00;margin-bottom:6px;}
.teztour-field input,.teztour-field textarea{width:100%;border:2px solid #6b80c2;border-radius:16px;padding:10px 12px;outline:none;}
.teztour-field-row{display:flex;gap:10px;}
.teztour-actions{display:flex;justify-content:flex-start;margin-top:8px;}
.teztour-send-btn{background:#f0d000;border:none;border-radius:14px;padding:12px 16px;font-weight:800;cursor:pointer;width:100%;}
.teztour-h3{margin:14px 0 8px;font-size:20px;}
.teztour-attrs{margin:0;padding-left:18px;}
.teztour-muted{color:#777;}
.teztour-maplink{margin-top:10px;}


/* --- Align labels + controls on one level (Bootstrap 4 form-row) --- */
.teztour-filter .form-row .form-group{
  display:flex;
  flex-direction:column;
}

.teztour-filter .form-row .form-group > label{
  min-height:34px;      /* одинаковая высота для label (под 2 строки) */
  line-height:1.1;
  margin-bottom:.5rem;
}

/* стандартная высота контролов */
.teztour-filter .form-control{
  height:38px;
  padding:.375rem .75rem;   /* bootstrap-like */
  border-radius:.25rem;
}

/* DateRangePicker иногда добавляет свои классы — подстрахуем */
.teztour-filter input.form-control{
  height:38px;
}

/* кнопка "Туристы" как обычный form-control */
.teztour-filter .tez-tourists-btn{
  height:38px;
  padding:.375rem .75rem;
  border-radius:.25rem;
}

/* чуть стабилизируем внутренний текст, чтобы не плясал */
.teztour-filter .tez-tourists-title,
.teztour-filter .tez-tourists-value,
.teztour-filter .tez-tourists-caret{
  line-height:1;
}
/* --- /Align labels + controls --- */

.tez-hidden{display:none !important;}

/* -------------------------------
   Nights range picker
-------------------------------- */
.tez-nights{position:relative;}

.tez-nights .nightsCounterButton{
  border:1px solid #ced4da;
  border-radius:4px;
  background:#fff;
  padding:6px 10px;
  cursor:pointer;
  user-select:none;
  min-height:38px;
  display:flex;
  align-items:center;
}

.teztour-filter .drop_down.nights-range-drop{
  padding-bottom:0;
  width:387px;
  position:absolute;
  z-index:1000;
  margin-top:6px;
  background:#fff;
  border:1px solid #ced4da;
  border-radius:6px;
  box-shadow:0 6px 24px rgba(0,0,0,0.12);
}

.teztour-filter .nights-range-picker{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  padding:24px;
}

.teztour-filter .nights-range-picker .nights-range-picker-item{
  width:42px;
  height:42px;
  font-size:13px;
  padding:3px;
  position:relative;
  cursor:pointer;
}

.teztour-filter .nights-range-picker .nights-range-picker-num{
  width:36px;
  height:36px;
  line-height:36px;
  border-radius:50%;
  color:#4F4F4F;
  display:inline-block;
  text-align:center;
}

.teztour-filter .nights-range-picker .nights-range-picker-item.rangeChoose .nights-range-picker-num{
  background:#f0f0f0;
  font-weight:700;
}

.teztour-filter .nights-range-picker .nights-range-picker-item.rangeStart .nights-range-picker-num,
.teztour-filter .nights-range-picker .nights-range-picker-item.rangeEnd .nights-range-picker-num{
  background:#4F4F4F;
  color:#fff;
  font-weight:700;
}

.teztour-filter .nights-range-picker .nights-range-picker-item:hover:not(.rangeStart):not(.rangeEnd) .nights-range-picker-num{
  background-color:#f0f0f0;
}


/* ====================================================
   Hotel page (Bootstrap 4.6.2 friendly)
   ==================================================== */

.teztour-hotel-page .card { border-radius: 12px; }
.teztour-hotel-page .nav-tabs .nav-link { font-weight: 600; }
.teztour-hotel-page .nav-tabs .nav-link.active { border-bottom-color: #fff; }

.tez-hotel-main-img{
  height: 420px;
  object-fit: cover;
}
@media (max-width: 700px){
  .tez-hotel-main-img{ height: 260px; }
}

.tez-gallery-main-btn{
  display:block;
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor: zoom-in;
}

.tez-hotel-thumbs-row{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom: 2px;
}
.tez-thumb-btn{
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 0;
  border-radius: 8px;
  overflow:hidden;
  flex: 0 0 auto;
  cursor:pointer;
  transition: transform .08s ease, border-color .08s ease;
}
.tez-thumb-btn img{
  width: 90px;
  height: 60px;
  object-fit: cover;
  display:block;
}
.tez-thumb-btn:hover{ transform: translateY(-1px); }
.tez-thumb-btn.is-active{ border-color: rgba(0,0,0,.35); }

.tez-attr-line{
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.tez-attr-line:last-child{ border-bottom: 0; }

/* Amenities (Hotel attributes) */
.tez-amenities{
  padding-top: 6px;
}

/* Group "cards" inside the tab (Bootstrap v4-friendly) */
.tez-amenities .col-md-6.mb-4{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .5rem;
  padding: 1rem 1rem .75rem;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.04);
}

.tez-amenity-title{
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.tez-amenity-list{ margin: 0; }

.tez-amenity-item{
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .35rem 0;
}
.tez-amenity-item + .tez-amenity-item{
  border-top: 1px solid rgba(0,0,0,.04);
}

.tez-amenity-check{
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-top: .15rem;
  position: relative;
  flex: 0 0 18px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}
.tez-amenity-check:after{
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #28a745; /* Bootstrap success */
  border-bottom: 2px solid #28a745;
  transform: rotate(45deg);
}

.tez-amenity-text{ line-height: 1.35; color: #212529; }

/* Paid/free/deposit badges like UI chips */
.tez-badge-free,
.tez-badge-paid,
.tez-badge-deposit{
  display: inline-block;
  padding: .08rem .45rem;
  border-radius: 10rem;
  font-weight: 700;
  font-size: .85em;
  line-height: 1.2;
  vertical-align: baseline;
}
.tez-badge-free{ color: #155724; background: #d4edda; }
.tez-badge-paid{ color: #721c24; background: #f8d7da; }
.tez-badge-deposit{ color: #856404; background: #fff3cd; }

@media (max-width: 575.98px){
  .tez-amenities .col-md-6.mb-4{ padding: .85rem .85rem .6rem; }
}

.tez-sticky-card{
  top: 16px; /* works with .sticky-top */
}

.tez-hotel-modal-img{
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}
.tez-amenities .list-unstyled{
  padding-left: 9px!important;
}

/* ===== HOTEL STARS STYLE ===== */

.tez-stars {
    font-size: 20px;
    color: #f5a623;
    letter-spacing: 2px;
}

.tez-star-plus {
    font-weight: bold;
    color: #ff9800;
    margin-left: 2px;
}

.tez-deluxe {
    font-size: 12px;
    background: #212529;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.tez-apts {
    font-weight: 500;
    color: #495057;
}

/* Departure city select2 styles (to match TEZ mockup) */
#tez-search-form .form-group:first-child .select2-container{ width:100% !important; }
#tez-search-form .form-group:first-child .select2-container--default .select2-selection--single{
  min-height:46px;
  border:1px solid #bfc3c8;
  border-radius:0;
  background:#fff;
}
#tez-search-form .form-group:first-child .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height:44px;
  padding-left:10px;
  padding-right:28px;
  font-size:14px;
  color:#3f3f3f;
}
#tez-search-form .form-group:first-child .select2-container--default .select2-selection--single .select2-selection__arrow{
  height:44px;
  right:8px;
}
#tez-search-form .form-group:first-child .select2-container--open .select2-selection--single{
  border-color:#8f949a;
}

.tez-departure-dropdown .select2-results__group{
  background:#d9d9db;
  color:#454545;
  font-size:13px;
  font-weight:700;
  padding:8px 14px;
}
.tez-departure-dropdown .select2-results__option{
  font-size:14px;
  color:#4f4f4f;
  padding:10px 14px;
}
.tez-departure-dropdown .select2-results__option[aria-selected=true]{
  background:#ece39d;
}

.tez-checkins-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.tez-checkin-item{
  display:grid;
  grid-template-columns:minmax(220px, 1.3fr) minmax(220px, 1.6fr) minmax(150px, 1fr);
  gap:16px;
  align-items:center;
  border:1px solid #e1e1e1;
  background:#f8f8f8;
  padding:14px 18px;
  background-image: url(https://discovery.ee/img/plane_bg.jpg);
  background-position: center;
  background-position-y: 419px;
  background-position-x: 0px;
  background-size: 102%;
}

.tez-checkin-room{
  font-size:28px;
  font-weight:700;
  line-height:1.1;
  text-transform:uppercase;
}

.tez-checkin-meta{
  color:#3f3f3f;
  font-size:20px;
  line-height:1.35;
}

.tez-checkin-price-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.tez-checkin-price{
  font-size:34px;
  color:#2749a5;
  font-weight:700;
  line-height:1;
}

@media (max-width: 991px){
  .tez-checkin-item{
    grid-template-columns:1fr;
    align-items:flex-start;
  }
  .tez-checkin-price-wrap{
    align-items:flex-start;
  }
  .tez-checkin-room{font-size:22px;}
  .tez-checkin-meta{font-size:16px;}
  .tez-checkin-price{font-size:24px;}
}
