/* Main Modal Container */
.room-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
  padding: 0;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  overflow: hidden; /* Prevent any scrolling on the modal itself */
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Modal Content Box */
.modal-content {
  position: relative;
  background: #1e1f22;
  color: white;
  padding: 30px;
  border-radius: 16px;
  width: 98vw;
  min-width: 98vw;
  max-height: 90vh;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Hide any overflow */
}

/* Room Cards Grid Container - SCROLLBARS REMOVED */
.room-grid {
  display: flex;
  gap: 25px;
  padding: 15px 30px;
  width: calc(100% - 60px);
  scroll-snap-type: x proximity;
  overflow: hidden; /* This removes the scrollbar */
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For IE/Edge */
}

/* Hide scrollbar for Chrome/Safari */
.room-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

/* Rest of your CSS remains exactly the same */
.modal-title {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.room-card {
  background: #2a2c31;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  border: 2px solid transparent;
  width: 23vw;
  min-width: 320px;
  height: 65vh;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.room-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.room-card img {
  width: 100%;
  height: 82%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.room-card:hover img {
  transform: scale(1.05);
}

.room-label {
  padding: 20px;
  font-weight: 700;
  background: #1b1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  height: 18%;
  border-top: 1px solid #333;
}

.room-card.selected {
  border: 3px solid #facc15;
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.4);
}

.room-card.selected img {
  transform: scale(1.04);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 30px;
  padding-top: 0px;
}

.modal-actions button {
  padding: 18px 45px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.modal-cancel {
  background: transparent;
  border: 2px solid #666;
  color: #ddd;
}

.modal-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #888;
  color: white;
  transform: translateY(-2px);
}

.modal-submit {
  background: #facc15;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.modal-submit:hover:not(:disabled) {
  background: #fcd34d;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.4);
}

.modal-submit:disabled {
  background: #555;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
  .room-card {
    width: 25vw;
  }
}

@media (max-width: 1200px) {
  .room-card {
    width: 30vw;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 20px;
  }
  
  .room-grid {
    padding: 10px 15px;
    width: calc(100% - 30px);
  }
  
  .room-card {
    width: 85vw;
    height: 60vh;
    min-width: 85vw;
  }
  
  .modal-title {
    font-size: 24px;
  }
  
  .modal-actions button {
    padding: 15px 35px;
    font-size: 16px;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.room-card.selected {
  animation: pulse 1s ease;
}