/* ===== WHATSAPP BOOKING MODAL ===== */

[data-booking-open],
[data-search-booking],
[data-room-booking],
[data-whatsapp-template] {
  cursor: pointer;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.booking-modal.is-open {
  display: block;
}

.booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.58);
  backdrop-filter: blur(8px);
}

.booking-panel {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  padding: 28px;
}

.booking-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f4f4f4;
  color: #111;
  font-size: 24px;
  cursor: pointer;
}

.booking-header {
  padding-right: 56px;
  margin-bottom: 22px;
}

.booking-header h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: #111;
  margin: 12px 0 10px;
}

.booking-header p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  max-width: 760px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

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

.booking-room-card {
  position: relative;
  min-height: 180px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  border: 1px solid #ececec;
  transition: transform 0.2s, box-shadow 0.2s, outline-color 0.2s;
}

.booking-room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.booking-room-card.is-selected {
  outline: 2px solid #f5a623;
  outline-offset: 0;
}

.booking-room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}

.booking-room-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.1), rgba(17, 17, 17, 0.78));
}

.booking-room-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 16px;
  color: #fff;
}

.booking-room-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.booking-room-title h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.booking-room-badge {
  font-size: 12px;
  color: #111;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.booking-room-content p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.booking-form {
  background: #f8f8f6;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 20px;
}

.booking-form h3 {
  font-size: 24px;
  color: #111;
  line-height: 1.2;
  margin: 10px 0 16px;
}

.booking-form label {
  display: block;
  margin-bottom: 14px;
}

.booking-form span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  padding: 13px 15px;
  font: inherit;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-preview {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 14px;
  margin: 8px 0 16px;
}

.booking-preview strong {
  display: block;
  font-size: 13px;
  color: #111;
  margin-bottom: 8px;
}

.booking-preview p {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  white-space: pre-wrap;
}

.booking-actions {
  display: flex;
  gap: 12px;
}

.booking-submit,
.booking-secondary {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}

.booking-submit {
  background: #111;
  color: #fff;
}

.booking-submit:hover {
  background: #333;
}

.booking-secondary {
  background: #fff;
  color: #111;
  border: 1px solid #e4e4e4;
}

.booking-secondary:hover {
  border-color: #bdbdbd;
}

.booking-note {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .booking-panel {
    padding: 18px;
    width: calc(100% - 20px);
  }

  .booking-layout,
  .booking-form-grid,
  .booking-room-grid {
    grid-template-columns: 1fr;
  }

  .booking-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .booking-panel {
    border-radius: 18px;
    padding: 14px;
    width: calc(100% - 14px);
    max-height: calc(100vh - 14px);
  }

  .booking-header {
    padding-right: 44px;
  }

  .booking-header h2 {
    font-size: 24px;
  }

  .booking-actions {
    flex-direction: column;
  }

  .booking-submit,
  .booking-secondary {
    width: 100%;
  }

  .booking-room-card {
    min-height: 220px;
  }
}
