:root {
  --teal: #0e4b5c;
  --teal-2: #12687e;
  --gold: #f0a51b;
  --ink: #17262b;
  --muted: #5b7078;
  --bg: #f4f7f8;
  --card: #ffffff;
  --line: #dfe8ea;
  --green: #1c9d5f;
  --red: #d64545;
  --amber: #d98e04;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(14, 75, 92, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.menu-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  user-select: none;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
}

/* ---------- side menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 60;
}
.menu-overlay.show { opacity: 1; visibility: visible; }
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #fff;
  z-index: 70;
  transform: translateX(-100%);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.2);
}
.side-menu.open { transform: none; }
.menu-head {
  padding: 20px 18px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 18px;
}
.menu-link {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: block;
}
.menu-link:active { background: var(--bg); }

/* ---------- layout ---------- */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 20px 6px 6px;
}
.hero h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--teal);
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- cards / forms ---------- */
.search-card, .hotel-card, .status-card, .checkout-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search-card { padding: 16px; margin-top: 16px; }
.hotel-card { overflow: hidden; margin: 16px 0; }
.status-card { padding: 18px; margin: 14px 0; }

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
input, select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #e09617; }
.btn-block { width: 100%; margin-top: 14px; }
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---------- hotel card ---------- */
.hotel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #dfe8ea;
}
.hotel-body { padding: 14px 16px; }
.hotel-name { margin: 0; font-size: 18px; font-weight: 700; }
.hotel-stars { color: var(--gold); letter-spacing: 2px; margin: 2px 0; font-size: 14px; }
.hotel-address { color: var(--muted); margin: 4px 0; font-size: 14px; }
.hotel-room { font-weight: 700; margin: 10px 0 2px; }
.hotel-price { margin: 2px 0; font-size: 15px; }
.price { font-size: 21px; font-weight: 800; color: var(--teal); }
.hotel-total { color: var(--muted); font-size: 14px; }
.hotel-cancel { color: var(--green); font-weight: 600; font-size: 14px; margin: 6px 0 0; }

/* ---------- page headings ---------- */
.page-head {
  text-align: center;
  padding: 6px 0 6px;
}
.page-head h2 {
  font-size: 20px;
  color: var(--teal);
  margin: 0;
}

/* ---------- messages ---------- */
.msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0;
}
.msg.error { background: #fde8e8; color: var(--red); border: 1px solid #f5c6c6; }
.msg.success { background: #e2f6ec; color: var(--green); border: 1px solid #b8e6d0; }
.msg.info { background: #e5f0f3; color: var(--teal); border: 1px solid #c8dce2; }
.results-msg { color: var(--muted); font-size: 14px; padding: 14px 2px 4px; }

/* ---------- order token display ---------- */
.token {
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 17px;
  font-weight: 800;
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
  word-break: break-all;
  color: var(--teal);
}

/* ---------- status rows ---------- */
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.status-row:last-child { border-bottom: none; }
.status-row .label { color: var(--muted); font-size: 14px; font-weight: 600; }
.status-row .value { font-weight: 700; font-size: 15px; }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.badge.ok { background: #e2f6ec; color: var(--green); }
.badge.wait { background: #fff4dd; color: var(--amber); }
.badge.bad { background: #fde8e8; color: var(--red); }

/* ---------- confirmation box ---------- */
.confirm-box {
  background: #e2f6ec;
  border: 2px solid var(--green);
  color: var(--green);
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-weight: 800;
  font-size: 16px;
}

/* ---------- payment info box ---------- */
.pay-info {
  background: #fffaf1;
  border: 1.5px solid #f5d68a;
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0;
}
.pay-info p { margin: 4px 0; font-size: 14px; }

/* ---------- divider ---------- */
.divider {
  border: none;
  border-top: 1.5px solid var(--line);
  margin: 16px 0;
}

/* ---------- booking summary ---------- */
.booking-summary {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 14px 0;
}
.booking-summary .bs-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.booking-summary .bs-row:last-child { border-bottom: none; }
.bs-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
}

/* ---------- footer ---------- */
.app-footer {
  text-align: center;
  padding: 18px 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- contact ---------- */
.contact-section {
  text-align: center;
  padding: 30px 0;
}
.contact-section h3 { color: var(--teal); margin: 0 0 6px; }

/* ---------- step containers ---------- */
.step { margin: 12px 0; }
.step-note {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.dev-hint {
  background: #fffbe5;
  border: 1px solid #f0d24d;
  color: #876a06;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0;
}

/* ---------- print ---------- */
#print-area { display: none; }
@media print {
  .no-print, .app-header, .side-menu, .menu-overlay, .app-footer,
  .menu-btn, .btn, nav, footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 14px; }
  main { max-width: 100%; padding: 20px !important; }
  #print-area { display: block !important; }
  #print-area .print-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 6px;
  }
  #print-area .print-subtitle {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  #print-area .print-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
  }
  #print-area .print-row .pl { font-weight: 600; }
}
