/* Static, dependency-free styling for the room-customiser phone prototypes
   (bottom.html, full.html). Plain CSS + vanilla JS, no build step. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.proto-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Phone frame Ã¢â€â‚¬Ã¢â€â‚¬ */
.proto-phone {
  position: relative;
  width: 390px;
  aspect-ratio: 1 / 2.13;
  background: #f9fafb;
  border-radius: 35px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ iOS-style header Ã¢â€â‚¬Ã¢â€â‚¬ */
.proto-header {
  background: #003580;
  color: #fff;
  flex-shrink: 0;
}

.proto-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 4px;
}

.proto-statusbar-time {
  font-size: 13px;
  font-weight: 600;
}

.proto-statusbar-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.proto-nav {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  position: relative;
}

.proto-nav button {
  background: none;
  border: none;
  color: #fff;
  padding: 4px;
  display: flex;
  cursor: pointer;
}

.proto-nav-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  pointer-events: none;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Page content Ã¢â€â‚¬Ã¢â€â‚¬ */
.proto-page {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proto-page[hidden] {
  display: none;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Room card Ã¢â€â‚¬Ã¢â€â‚¬ */
.room-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  /* overflow: hidden; */
  padding: 16px;
}

.room-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 12px;
}

.room-card-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 16px;
  color: #374151;
}

.room-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0;
}

.room-card-amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}

.room-card-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.room-card-benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
}

.room-card-benefit.positive {
  color: #15803d;
  font-weight: 600;
}

.room-card-benefit.neutral {
  color: #374151;
}

.room-card-benefit.negative {
  color: #111827;
  font-weight: 600;
}

.room-card-discount {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.room-card-discount-badge {
  width: 20px;
  height: 20px;
  background: #facc15;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.room-card-discount-text {
  font-size: 16px;
  color: #111827;
  line-height: 1.3;
}

.room-card-discount-note {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.3;
}

.room-card-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.room-card-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.room-card-badge.discount {
  background: #16a34a;
}

.room-card-price-label {
  font-size: 16px;
  color: #374151;
  margin-bottom: 4px;
}

.room-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.room-card-price-original {
  font-size: 20px;
  color: #dc2626;
  text-decoration: line-through;
}

.room-card-price {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.room-card-price-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 16px;
}

.room-card-cta {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
}

.room-card-cta.selected {
  background: #2563eb;
  color: #fff;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Fixed bottom bar (room list reserve bar) Ã¢â€â‚¬Ã¢â€â‚¬ */
.proto-bottombar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.proto-bottombar.is-visible {
  transform: translateY(0);
}

.proto-bottombar-total {
  font-size: 18px;
  color: #1f2937;
}

.proto-bottombar-total strong {
  font-weight: 700;
}

.proto-btn-primary {
  background: #1d4ed8;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  flex-grow: 1;
  white-space: nowrap;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Slide-in detail / checkout page Ã¢â€â‚¬Ã¢â€â‚¬ */
.proto-slide {
  position: absolute;
  inset: 0;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 30;
}

.proto-slide.is-open {
  transform: translate3d(0, 0, 0);
}

/* Bed-preferences detail page must sit above the bottom sheet it was opened from */
#detailPage {
  z-index: 60;
}

.proto-slide-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px 90px;
}

.proto-slide-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.proto-slide-note {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.proto-radio-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proto-radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
  font-size: 16px;
}

.proto-radio-row input {
  width: 20px;
  height: 20px;
  accent-color: #1d4ed8;
  cursor: pointer;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Booking summary (checkout) Ã¢â€â‚¬Ã¢â€â‚¬ */
.summary-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}

.summary-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.summary-row-name {
  font-weight: 500;
}

.summary-row-count {
  font-size: 14px;
  color: #6b7280;
}

.summary-row-price {
  font-weight: 600;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Bottom Sheet (bottom.html) Ã¢â€â‚¬Ã¢â€â‚¬ */
.proto-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.proto-sheet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.proto-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  z-index: 51;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 78%;
  display: flex;
  flex-direction: column;
}

.proto-sheet.is-open {
  transform: translateY(0);
}

.proto-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}

.proto-sheet-handle span {
  width: 48px;
  height: 6px;
  background: #d1d5db;
  border-radius: 999px;
}

.proto-sheet-body {
  padding: 8px 20px 0;
  overflow-y: auto;
}

.proto-sheet-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.proto-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.proto-stepper-label {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
}

.proto-stepper-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.proto-stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #1d4ed8;
  background: #fff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.proto-stepper-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.proto-stepper-count {
  font-size: 20px;
  font-weight: 600;
  width: 24px;
  text-align: center;
}

.proto-room-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
}

.proto-room-entry {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.proto-room-entry h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.proto-room-entry-edit {
  background: none;
  border: none;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 4px;
}

.proto-room-entry p {
  font-size: 14px;
  color: #6b7280;
}

.proto-sheet-footer {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 64px;
}

.proto-sheet-footer-total {
  font-size: 16px;
  color: #1f2937;
  /* margin-bottom: 12px; */
  white-space: nowrap;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Full-screen customise panel (full.html) Ã¢â€â‚¬Ã¢â€â‚¬ */
.proto-fullpanel {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s ease-out;
}

.proto-fullpanel.is-open {
  transform: translate3d(0, 0, 0);
}

.proto-fullpanel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.room-config {
  padding-top: 8px;
  margin-bottom: 24px;
}

.room-config h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.room-config-block {
  border-radius: 16px;
  border: 1px solid rgba(128, 128, 128, 0.14);
  padding: 16px;
}

.room-config-block-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

/* Room preference dropdown trigger (opens the bed-choice lightbox) */
.room-config-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
}

.room-config-dropdown-label {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}

.room-config-dropdown-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

/* Bed-choice lightbox */
.room-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.room-lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.room-lightbox {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 300px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.room-lightbox-overlay.is-open .room-lightbox {
  transform: scale(1);
}

.room-lightbox-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
