
/* OZI MOBILE SEARCH DESIGN V3 - HOTELS ONLY */

#hotel-search.ozi-unified-search {
  direction: rtl;
  background: #fff !important;
  border: 1px solid #d6e6f4 !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8,47,89,.09) !important;
}

#hotel-search .budget-heading {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px !important;
  min-height: 88px;
  padding: 18px 22px;
  background: linear-gradient(120deg,#082f59,#10588a);
  color: #fff;
}

#hotel-search .budget-heading > div {
  flex: 1 1 auto;
  min-width: 0;
}

#hotel-search .budget-heading h2 {
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

#hotel-search .budget-heading .muted {
  color: #c7e6fa !important;
  font-size: 12px !important;
  line-height: 1.7;
  margin: 4px 0 0 !important;
}

#hotel-search .budget-chip {
  display: none !important;
}

#hotel-search .ozi-search-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-radius: 12px !important;
  padding: 10px 15px !important;
  background: #1788c9 !important;
  color: #fff !important;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease;
}

#hotel-search .ozi-search-toggle:hover {
  background: #0874b3 !important;
}

#hotel-search .ozi-search-toggle:focus-visible {
  outline: 3px solid #80d3ff;
  outline-offset: 3px;
}

#hotel-search .ozi-search-toggle-arrow {
  font-size: 19px;
  line-height: 1;
}

#hotel-search #ozi-hotel-search-form {
  margin: 0 !important;
  padding: 22px !important;
  background: #fff;
}

#hotel-search #ozi-hotel-search-form[hidden] {
  display: none !important;
}

#hotel-search #ozi-hotel-search-form:not([hidden]) {
  border-top: 0 !important;
}

#hotel-search #ozi-hotel-search-form fieldset {
  min-width: 0;
}

#hotel-search #ozi-hotel-search-form .fields {
  display: grid !important;
  grid-template-columns: repeat(6,minmax(0,1fr)) !important;
  gap: 14px !important;
  align-items: end;
}

#hotel-search #ozi-hotel-search-form .fields > label {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0 !important;
  color: #123b63 !important;
  font-size: 13px !important;
  font-weight: 750;
  line-height: 1.5;
  grid-column: span 2;
}

#hotel-search #ozi-hotel-search-form .fields > label:nth-child(1),
#hotel-search #ozi-hotel-search-form .fields > label:nth-child(2) {
  grid-column: span 3;
}

#hotel-search #ozi-hotel-search-form .fields > label:nth-child(3) {
  grid-column: span 6;
}

#hotel-search #ozi-hotel-search-form .fields > label:nth-child(7),
#hotel-search #ozi-hotel-search-form .fields > label:nth-child(8),
#hotel-search #ozi-hotel-search-form .fields > label:nth-child(9) {
  grid-column: span 2;
}

#hotel-search #ozi-hotel-search-form input,
#hotel-search #ozi-hotel-search-form select {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 49px;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #d7e6f2 !important;
  border-radius: 12px !important;
  background: #f2f8fd !important;
  color: #10395f !important;
  font: inherit;
  font-size: 14px !important;
  outline: none;
}

#hotel-search #ozi-hotel-search-form input:focus,
#hotel-search #ozi-hotel-search-form select:focus {
  border-color: #188ccc !important;
  box-shadow: 0 0 0 3px rgba(24,140,204,.12);
  background: #fff !important;
}

#hotel-search #ozi-hotel-search-form .budget-actions {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

#hotel-search #ozi-hotel-search-form
.budget-actions button[type="submit"] {
  flex: 1 1 240px;
  min-height: 50px;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(110deg,#087fc2,#16a0df) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(8,127,194,.17);
  cursor: pointer;
}

#hotel-search #ozi-hotel-search-form .budget-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #cbdfee;
  border-radius: 12px;
  background: #fff;
  color: #19547f !important;
  font-weight: 750;
  text-decoration: none;
}

#hotel-search .budget-error {
  margin: 14px 18px 0;
}

@media (max-width: 600px) {

  #hotel-search.ozi-unified-search {
    border-radius: 17px !important;
  }

  #hotel-search .budget-heading {
    min-height: 74px;
    padding: 15px !important;
    gap: 9px !important;
    flex-wrap: nowrap !important;
  }

  #hotel-search .budget-heading > div {
    flex: 1 1 auto !important;
    min-width: 0;
  }

  #hotel-search .budget-heading h2 {
    font-size: 17px !important;
  }

  #hotel-search .budget-heading .muted {
    font-size: 10px !important;
  }

  #hotel-search .ozi-search-toggle {
    width: auto !important;
    min-width: 95px;
    min-height: 40px;
    padding: 8px 10px !important;
    font-size: 12px;
  }

  #hotel-search #ozi-hotel-search-form {
    padding: 15px !important;
  }

  #hotel-search #ozi-hotel-search-form .fields {
    grid-template-columns: repeat(6,minmax(0,1fr)) !important;
    gap: 12px 9px !important;
  }

  #hotel-search #ozi-hotel-search-form .fields > label {
    grid-column: span 3;
    font-size: 12px !important;
    gap: 6px;
  }

  /* City: full width, displayed first */
  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(7) {
    grid-column: span 6;
    grid-row: 1;
  }

  /* Arrival and departure */
  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(1) {
    grid-column: span 3;
    grid-row: 2;
  }

  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(2) {
    grid-column: span 3;
    grid-row: 2;
  }

  /* Room types */
  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(4),
  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(5),
  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(6) {
    grid-column: span 2;
    grid-row: 3;
  }

  /* Budget */
  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(3) {
    grid-column: span 6;
    grid-row: 4;
  }

  /* Stars and hotel name */
  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(8) {
    grid-column: span 3;
    grid-row: 5;
  }

  #hotel-search #ozi-hotel-search-form
  .fields > label:nth-child(9) {
    grid-column: span 3;
    grid-row: 5;
  }

  #hotel-search #ozi-hotel-search-form input,
  #hotel-search #ozi-hotel-search-form select {
    min-height: 46px;
    padding: 9px 8px !important;
    font-size: 13px !important;
  }

  #hotel-search #ozi-hotel-search-form
  .budget-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-top: 17px;
  }

  #hotel-search #ozi-hotel-search-form
  .budget-actions button[type="submit"] {
    flex: none;
    width: 100%;
    min-height: 49px;
  }

  #hotel-search #ozi-hotel-search-form
  .budget-reset {
    width: 100%;
    min-height: 42px;
    border: 0;
  }
}

@media (max-width: 360px) {
  #hotel-search .budget-heading h2 {
    font-size: 15px !important;
  }

  #hotel-search .ozi-search-toggle {
    min-width: 83px;
    padding: 7px !important;
  }

  #hotel-search #ozi-hotel-search-form {
    padding: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hotel-search *,
  #hotel-search *::before,
  #hotel-search *::after {
    transition-duration: 0.01ms !important;
  }
}
