/* ========================================
   MODAL DE RESERVA
======================================== */

.reservation-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.72);

  overflow-y: auto;
}

.reservation-modal.active {
  display: flex;
}

.reservation-box {
  position: relative;

  width: min(560px, 100%);

  max-height: 92vh;
  overflow-y: auto;

  padding: 35px;

  background: var(--white);

  border-radius: 18px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.reservation-close {
    position: absolute;
    top: 15px;
    right: 18px;

    width: 40px;
    height: 40px;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;

    background: #f1f1f1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0;
    line-height: 0;
    color: transparent;

    overflow: hidden;

    transition: 0.2s ease;
}

.reservation-close::before,
.reservation-close::after {
    content: "";
    position: absolute;

    width: 19px;
    height: 2px;

    background: var(--green-dark);

    border-radius: 2px;

    pointer-events: none;
}

.reservation-close::before {
    transform: rotate(45deg);
}

.reservation-close::after {
    transform: rotate(-45deg);
}

.reservation-close:hover {
    background: var(--green-dark);
}

.reservation-close:hover::before,
.reservation-close:hover::after {
    background: var(--white);
}

.reservation-header {
  margin-bottom: 25px;
  padding-right: 40px;
}

.reservation-header h2 {
  margin: 5px 0 8px;
}

.reservation-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.reservation-field {
  display: flex;
  flex-direction: column;
  gap: 7px;

  margin-bottom: 17px;
}

.reservation-field label {
  color: var(--green-dark);

  font-size: 13px;
  font-weight: 700;
}

.reservation-field input,
.reservation-field select,
.reservation-field textarea {
  width: 100%;

  padding: 12px 13px;

  border: 1px solid #d9d9d9;
  border-radius: 9px;

  background: #fff;

  color: #333;

  font-family: inherit;
  font-size: 14px;

  outline: none;

  transition: border-color 0.2s ease;
}

.reservation-field input:focus,
.reservation-field select:focus,
.reservation-field textarea:focus {
  border-color: var(--green);
}

.reservation-field input[readonly] {
  background: #f5f5f5;
  font-weight: 600;
  color: var(--green-dark);
}

.reservation-field textarea {
  resize: vertical;
}

.reservation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.children-ages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.children-ages:empty {
  display: none;
}

.children-ages .reservation-field {
  margin-bottom: 17px;
}

.camping-options {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.camping-options.active {
  display: grid;
}

.reservation-submit {
  width: 100%;

  margin-top: 8px;
  padding: 14px 20px;

  border: none;
  border-radius: 30px;

  background: var(--green);
  color: var(--white);

  font-family: inherit;
  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}

.reservation-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
  .reservation-modal {
    padding: 10px;
  }

  .reservation-box {
    padding: 28px 20px;
    max-height: 95vh;
  }

  .reservation-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .children-ages {
    grid-template-columns: 1fr 1fr;
  }

  .camping-options {
    grid-template-columns: 1fr;
    gap: 0;
  }
}