/* ═══════════════════════════════════════════════════════
   BTravel — GoTrip Design System
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

:root {
  --blue-1: #3554d1;
  --blue-1-05: rgba(53, 84, 209, 0.05);
  --blue-2: #e5f0fd;
  --dark-1: #051036;
  --dark-2: #051036;
  --dark-3: #202641;
  --light-1: #697488;
  --light-2: #f5f5f5;
  --border: #e9ecef;
  --yellow-1: #f8d448;
  --green-2: #16a34a;
  
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  color: var(--dark-1);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography & Utilities ─────────────────────────── */
.text-12 { font-size: 12px; }
.text-14 { font-size: 14px; }
.text-15 { font-size: 15px; }
.text-16 { font-size: 16px; }
.text-18 { font-size: 18px; }
.text-20 { font-size: 20px; }
.text-22 { font-size: 22px; }
.text-30 { font-size: 30px; }
.text-60 { font-size: 60px; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.text-blue-1 { color: var(--blue-1); }
.text-dark-1 { color: var(--dark-1); }
.text-light-1 { color: var(--light-1); }
.text-white { color: #fff; }
.text-yellow-1 { color: var(--yellow-1); }
.text-green-2 { color: var(--green-2); }

.bg-blue-1 { background-color: var(--blue-1); }
.bg-blue-1-05 { background-color: var(--blue-1-05); }
.bg-blue-2 { background-color: var(--blue-2); }
.bg-light-2 { background-color: var(--light-2); }
.bg-dark-1 { background-color: var(--dark-1); }
.bg-dark-3 { background-color: var(--dark-3); }
.bg-white { background-color: #fff; }

.border-light { border: 1px solid var(--border); }
.border-top-light { border-top: 1px solid var(--border); }

.rounded-4 { border-radius: var(--radius-4); }
.rounded-8 { border-radius: var(--radius-8); }
.rounded-full { border-radius: var(--radius-full); }

.lh-1 { line-height: 1; }
.lh-12 { line-height: 1.2; }
.lh-15 { line-height: 1.5; }
.lh-16 { line-height: 1.6; }
.lh-17 { line-height: 1.7; }

/* ── Layout & Grid (flexbox based) ──────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-12 { width: 100%; padding: 0 15px; }
.col-md-6 { width: 50%; padding: 0 15px; }
.col-lg-3 { width: 25%; padding: 0 15px; }
.col-lg-4 { width: 33.333%; padding: 0 15px; }
.col-lg-8 { width: 66.666%; padding: 0 15px; }
.col-xl-3 { width: 25%; padding: 0 15px; }
.col-xl-5 { width: 41.666%; padding: 0 15px; }
.col-xl-7 { width: 58.333%; padding: 0 15px; }
.col-xl-9 { width: 75%; padding: 0 15px; }
.col-auto { flex: 0 0 auto; width: auto; padding: 0 15px; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Gaps (simulated with padding on children via .row, but also explicit gaps for .d-flex) */
.x-gap-5 { gap: 5px; }
.x-gap-10 { gap: 10px; }
.x-gap-15 { gap: 15px; }
.x-gap-20 { gap: 20px; }
.y-gap-5 { display: flex; flex-direction: column; gap: 5px; }
.y-gap-10 { display: flex; flex-direction: column; gap: 10px; }
.y-gap-20 { display: flex; flex-direction: column; gap: 20px; }
.y-gap-30 { display: flex; flex-direction: column; gap: 30px; }
.row.y-gap-20 { row-gap: 20px; }
.row.y-gap-30 { row-gap: 30px; }

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }
.mr-10 { margin-right: 10px; }

.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }
.pt-40 { padding-top: 40px; }
.pb-10 { padding-bottom: 10px; }
.pb-40 { padding-bottom: 40px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.px-30 { padding-left: 30px; padding-right: 30px; }
.px-50 { padding-left: 50px; padding-right: 50px; }
.py-15 { padding-top: 15px; padding-bottom: 15px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
.py-35 { padding-top: 35px; padding-bottom: 35px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }

.size-30 { width: 30px; height: 30px; }
.size-40 { width: 40px; height: 40px; }
.size-80 { width: 80px; height: 80px; }
.size-140 { width: 140px; height: 140px; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-1 { height: 1px; }
.h-50 { height: 50px; }
.h-60 { height: 60px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.underline { text-decoration: underline; }
.cursor-pointer { cursor: pointer; }
.shadow-1 { box-shadow: 0px 10px 30px 0px rgba(5, 16, 54, 0.05); }
.shadow-4 { box-shadow: 0px 10px 60px 0px rgba(5, 16, 54, 0.05); }

/* ── Forms ──────────────────────────────────────────── */
.form-input { position: relative; }
.form-input input, .form-input textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-4);
  padding: 25px 15px 10px; font-size: 15px; color: var(--dark-1); transition: var(--transition);
  background: transparent;
}
.form-input input:focus, .form-input textarea:focus { border-color: var(--blue-1); outline: none; }
.form-input label {
  position: absolute; top: 20px; left: 15px; color: var(--light-1);
  transition: var(--transition); pointer-events: none;
}
.form-input input:focus ~ label, .form-input input:valid ~ label, .form-input input.has-value ~ label,
.form-input textarea:focus ~ label, .form-input textarea:valid ~ label, .form-input textarea.has-value ~ label {
  top: 10px; font-size: 12px;
}

.form-checkbox input { display: none; }
.form-checkbox__mark {
  width: 20px; height: 20px; border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.form-checkbox__icon { opacity: 0; font-size: 10px; color: #fff; }
.form-checkbox input:checked ~ .form-checkbox__mark { background: var(--blue-1); border-color: var(--blue-1); }
.form-checkbox input:checked ~ .form-checkbox__mark .form-checkbox__icon { opacity: 1; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--radius-4); font-weight: 500;
  transition: var(--transition); cursor: pointer;
}
.button.-blue-1 { background-color: var(--blue-1); color: #fff; }
.button.-blue-1:hover { background-color: var(--dark-1); }
.button.-dark-1 { background-color: var(--dark-1); color: #fff; }
.button.-dark-1:hover { background-color: var(--blue-1); }
.button[disabled] { opacity: 0.5; pointer-events: none; }

/* ── SPA View System ────────────────────────────────── */
.view { display: none; min-height: 100vh; padding-top: 90px; }
.view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Header ─────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--border);
  transition: var(--transition); padding: 20px 0;
}
.header__container { display: flex; align-items: center; justify-content: space-between; }
.header-logo { font-size: 24px; font-weight: 700; color: var(--dark-1); display: flex; align-items: center; gap: 8px;}
.header-menu { display: flex; gap: 30px; font-weight: 500; }
.header-menu a:hover { color: var(--blue-1); }

/* ── Masthead ───────────────────────────────────────── */
.masthead { position: relative; height: 80vh; min-height: 500px; display: flex; align-items: center; }
.masthead__bg { position: absolute; inset: 0; z-index: -1; }
.masthead__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }

/* ── Search Box ─────────────────────────────────────── */
.mainSearch { background: #fff; border-radius: 8px; padding: 10px; display: flex; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.searchMenu-date, .searchMenu-guests { padding: 15px 20px; position: relative; flex: 1; min-width: 200px;}
.searchMenu-date::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--border); }
.mainSearch__submit { padding: 0 20px; display: flex; align-items: center; }

/* ── Hotel Cards ────────────────────────────────────── */
.hotelsCard { display: block; position: relative; }
.hotelsCard__image { position: relative; border-radius: var(--radius-4); overflow: hidden; }
.cardImage { padding-bottom: 100%; position: relative; }
.cardImage__content { position: absolute; inset: 0; }
.cardImage__content img { width: 100%; height: 100%; object-fit: cover; }
.cardImage__leftBadge { position: absolute; top: 20px; left: 0; }
.hotelsCard__content { padding-top: 15px; }
.hotelsCard__title { transition: var(--transition); }
.hotelsCard:hover .hotelsCard__title { color: var(--blue-1); }

/* ── Room Grid ──────────────────────────────────────── */
.roomGrid { border: 1px solid var(--border); border-radius: var(--radius-4); overflow: hidden; }
.roomGrid__header {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
  background: var(--dark-1); color: #fff; padding: 15px 20px; font-weight: 500; font-size: 15px;
}
.roomGrid__grid { display: grid; grid-template-columns: 2fr 5fr; border-top: 1px solid var(--border); }
.roomGrid__grid > div { padding: 20px; border-right: 1px solid var(--border); }
.roomGrid__grid > div:last-child { border-right: none; padding: 0; }
.roomGrid__content {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; border-bottom: 1px solid var(--border);
}
.roomGrid__content > div { padding: 20px; border-right: 1px solid var(--border); }
.roomGrid__content > div:last-child { border-right: none; }
.roomGrid__content:last-child { border-bottom: none; }
.img-ratio { width: 100%; height: 100%; object-fit: cover; }

/* ── Stepper ────────────────────────────────────────── */
.stepper-step {
  display: flex; align-items: center; cursor: pointer; transition: var(--transition);
}
.stepper-circle {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 500; transition: var(--transition);
}
.stepper-circle.active { background: var(--blue-1); color: #fff; }
.stepper-circle.inactive { background: var(--blue-1-05); color: var(--blue-1); }
.step-bar { height: 1px; background: var(--border); width: 100%; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn 0.4s ease; }

/* ── Utilities & Icons ──────────────────────────────── */
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--blue-1); border-radius: 50%; animation: spin 1s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--dark-1); color: #fff; padding: 1rem 2rem; border-radius: var(--radius-4); border-left: 4px solid var(--blue-1); transform: translateY(200%); transition: 0.3s; z-index: 10000; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.toast.show { transform: translateY(0); }

.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; }
.object-cover { object-fit: cover; }
