.booking-v2 {
  max-width: 1200px;
  padding: 34px;
  border-radius: 18px;
}

.booking-v2-form {
  display: grid;
  gap: 18px;
}

.booking-v2-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.booking-v2-title strong {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.6px;
}

.booking-v2-title span {
  color: #667085;
  font-size: 13px;
}

.booking-v2-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-v2-locations:has(#returnLocationWrap[hidden]) {
  grid-template-columns: 1fr;
}

.booking-v2-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.booking-v2-field > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.booking-v2-field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid #dce1e9;
  border-radius: 11px;
  padding: 0 15px;
  background: #fff;
  color: #182132;
  outline: none;
  font: inherit;
}

.booking-v2-field input:focus {
  border-color: #d71920;
  box-shadow: 0 0 0 3px #d7192017;
}

.booking-v2-field[hidden] {
  display: none !important;
}

.booking-v2-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.booking-v2-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #d71920;
}

.booking-v2-dates {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1.4fr .8fr;
  gap: 12px;
}

.booking-v2-submit {
  width: 100%;
  min-height: 56px;
  border-radius: 11px;
  background: #d52b2d;
  font-size: 15px;
}

.booking-v2 #notice {
  margin: 0;
  font-size: 12px;
  color: #bc1822;
}

@media(max-width: 850px) {
  .booking-v2-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 600px) {
  .booking-v2 {
    padding: 24px 15px;
  }

  .booking-v2-locations,
  .booking-v2-locations:has(#returnLocationWrap[hidden]) {
    grid-template-columns: 1fr;
  }

  .booking-v2-title strong {
    font-size: 19px;
  }
}

/* DOGUS FILO - KOMPAKT YATAY REZERVASYON V3 */

@media (min-width: 1101px) {

  .booking.booking-v2 {
    width: min(1460px, calc(100% - 80px));
    max-width: 1460px;
    padding: 24px 28px 18px;
    border-radius: 16px;
  }

  .booking-v2-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.7fr)
                           minmax(0, 1.9fr)
                           minmax(155px, .8fr);
    grid-template-areas:
      "title title title"
      "locations dates submit"
      "checkbox dates submit"
      "notice notice notice";
    gap: 10px 18px;
    align-items: center;
  }

  .booking-v2-title {
    grid-area: title;
    margin-bottom: 6px;
  }

  .booking-v2-title strong {
    font-size: 19px;
  }

  .booking-v2-title span {
    font-size: 11px;
  }

  .booking-v2-locations {
    grid-area: locations;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .booking-v2-locations:has(#returnLocationWrap[hidden]) {
    grid-template-columns: 1fr;
  }

  .booking-v2-checkbox {
    grid-area: checkbox;
    margin: 0;
    font-size: 11px;
  }

  .booking-v2-dates {
    grid-area: dates;
    display: grid;
    grid-template-columns: minmax(120px, 1.3fr)
                           minmax(85px, .7fr)
                           minmax(120px, 1.3fr)
                           minmax(85px, .7fr);
    gap: 8px;
  }

  .booking-v2-field {
    gap: 6px;
  }

  .booking-v2-field > span {
    font-size: 9px;
    letter-spacing: .5px;
  }

  .booking-v2-field input {
    height: 48px;
    padding: 0 10px;
    font-size: 11px;
  }

  .booking-v2-submit {
    grid-area: submit;
    min-height: 48px;
    padding: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .booking-v2 #notice {
    grid-area: notice;
  }

  .booking-v2 #notice:empty {
    display: none;
  }

}

/* TABLET */
@media (min-width: 701px) and (max-width: 1100px) {

  .booking.booking-v2 {
    padding: 24px 20px;
  }

  .booking-v2-title strong {
    font-size: 19px;
  }

  .booking-v2-dates {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

/* MOBIL */
@media (max-width: 700px) {

  .booking.booking-v2 {
    width: calc(100% - 24px);
    padding: 24px 14px 16px;
  }

  .booking-v2-form {
    gap: 13px;
  }

  .booking-v2-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .booking-v2-field input {
    height: 48px;
    font-size: 12px;
  }

  .booking-v2-submit {
    min-height: 50px;
  }

}

@media (min-width: 1101px) {

  .booking-v2-locations {
    position: relative;
  }

  .booking-v2-locations #returnLocationWrap:not([hidden]) {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 12px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
  }

}

/* DOGUS FILO - ALIS VE IADE LOKASYONLARI YAN YANA */

@media (min-width: 1101px) {

  .booking-v2-form {
    grid-template-columns:
      minmax(420px, 2.4fr)
      minmax(440px, 2fr)
      minmax(145px, .7fr) !important;
  }

  .booking-v2-locations,
  .booking-v2-locations:has(#returnLocationWrap[hidden]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    position: relative;
    min-width: 0;
  }

  /* Farklı yere iade seçilince iki eşit kutu */
  .booking-v2-locations:has(#returnLocationWrap:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Önceki açılır panel kurallarını iptal et */
  .booking-v2-locations #returnLocationWrap:not([hidden]) {
    position: static !important;
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0;
  }

  .booking-v2-locations #returnLocationWrap[hidden] {
    display: none !important;
  }

  .booking-v2-locations .booking-v2-field input {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 11px;
  }

}

/* Tabletlerde de yan yana */
@media (min-width: 701px) and (max-width: 1100px) {

  .booking-v2-locations:has(#returnLocationWrap:not([hidden])) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .booking-v2-locations #returnLocationWrap:not([hidden]) {
    position: static !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
  }

}

/* Mobilde ekran dar olduğu için alt alta */
@media (max-width: 700px) {

  .booking-v2-locations #returnLocationWrap:not([hidden]) {
    position: static !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
  }

}
