/* Booking Widget - Componente de reserva estilo Airbnb */

.booking-widget {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 2;
}

.booking-widget__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.booking-widget__highlight {
  color: #FFC23F;
  font-weight: 800;
  text-decoration: underline;
}

.booking-widget__subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.booking-widget__dates {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.booking-widget__date-col {
  flex: 1;
  padding: 0.5rem 1rem;
  border-right: 1px solid #ddd;
}

.booking-widget__date-col:last-child {
  border-right: none;
}

.booking-widget__date-field {
  width: 100%;
  padding: 0.25rem 0;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
}

.booking-widget__date-field:focus {
  outline: none;
}

.booking-widget__date-field::placeholder {
  color: #999;
}

.booking-widget__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.booking-widget__guests {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.booking-widget__guests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-widget__guests-summary {
  font-size: 0.95rem;
  color: #222;
}

.booking-widget__guests-chevron {
  width: 20px;
  height: 20px;
  color: #666;
  transition: transform 0.2s;
}

.booking-widget__guests.open .booking-widget__guests-chevron {
  transform: rotate(180deg);
}

.booking-widget__guests-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.booking-widget__guests.open .booking-widget__guests-panel {
  display: block;
}

.booking-widget__guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.booking-widget__guest-row:last-child {
  border-bottom: none;
}

.booking-widget__guest-info {
  flex: 1;
}

.booking-widget__guest-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
}

.booking-widget__guest-desc {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.15rem;
}

.booking-widget__guest-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.booking-widget__btn-counter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.booking-widget__btn-counter:hover:not(:disabled) {
  border-color: #222;
  background: #f5f5f5;
}

.booking-widget__btn-counter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.booking-widget__guest-count {
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.booking-widget__max-info {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.75rem;
}

.booking-widget__btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: #FFC23F;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.booking-widget__btn-submit:hover {
  background: #e6ae38;
}

.booking-widget__btn-submit:active {
  transform: scale(0.98);
}

/* Mobile - filtro abaixo do botão */
@media (max-width: 768px) {
  .right-section:not(.right-section--casas) .booking-widget {
    padding: 1.25rem 1.5rem;
    overflow: visible;
  }

  .right-section:not(.right-section--casas) .booking-widget__title {
    font-size: 1.05rem;
    overflow: visible;
  }

  .right-section:not(.right-section--casas) .booking-widget__subtitle {
    font-size: 0.85rem;
    overflow: visible;
  }
}
