.guest-dropdown {
  position: relative;
}

.guest-toggle {
  padding: 0.75rem;
  font-family: Cambria, "Times New Roman", serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.guest-panel {
  position: absolute;
  top: calc(100% + 10px); 
  left: 0;
  width: 380px;
  background-color: #fff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 1000;
  padding: 1.2rem 1.5rem;
  display: none;
}

.guest-panel .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
}

.guest-panel .label {
  flex: 1;
  color: #000;
  font-weight: 500;
}

.guest-panel .sub-label {
  font-size: 0.8rem;
  color: #777;
}

.guest-panel .counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-panel .counter button {
  width: 36px;
  height: 36px;
  font-size: 20px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
}

.guest-panel .counter span {
  width: 30px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.guest-panel .buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.guest-panel .clear,
.guest-panel .apply {
  padding: 0.6rem 1.3rem;
  border: none;
  cursor: pointer;
  font-family: Cambria, "Times New Roman", serif;
  font-size: 1rem;
}

.guest-panel .clear {
  background-color: #fff;
  border: 1px solid #000;
}

.guest-panel .apply {
  background-color: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .guest-panel {
    width: 95vw; /* Responsive width for small screens */
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    border-radius: 8px;
  }

  .guest-panel .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .guest-panel .counter {
    justify-content: space-between;
    width: 100%;
  }

  .guest-panel .counter button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .guest-panel .counter span {
    font-size: 1rem;
    width: 28px;
  }

  .guest-panel .buttons {
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .guest-panel .clear,
  .guest-panel .apply {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}
