/* =========================
   WH Booking - Global Theme
   (Matches base.html)
   ========================= */

:root{
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --brand: #2563eb;
  --brand2: #06b6d4;
  --radius: 14px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Layout container (width only) */
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Main page padding */
.pagePad{
  padding-top: 18px;
  padding-bottom: 44px;
}

/* Flash spacing */
.flashWrap{
  padding-top: 12px;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar{
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 900;
  letter-spacing: .2px;
}

.brand-badge{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow);
}

.nav-toggle{
  display:none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 800;
}

.nav-links{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 10px;
  margin:0;
  padding:0;
}

.nav-links a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 12px;
  transition: .15s ease;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.nav-links a:hover{
  color: var(--text);
  background: rgba(37, 99, 235, .08);
}

.actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons (Note: this overrides Bootstrap .btn styles site-wide) */
.btn{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  cursor:pointer;
  transition: .15s ease;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  line-height: 1;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
}

.btn-primary{
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* User menu dropdown */
.userMenu{
  position: relative;
  display:flex;
  align-items:center;
}

.userMenuDropdown{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display:none;
  z-index: 999;
}
.userMenuDropdown.open{ display:block; }

.userMenuDropdown a{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration:none;
  color: var(--text);
  font-weight: 850;
}
.userMenuDropdown a:hover{
  background: rgba(2, 132, 199, .08);
}

.dropdown-sep{
  height: 1px;
  background: var(--border);
  margin: 6px;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 26px 0;
}

.footer-grid{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}

.site-footer h4{ margin: 0 0 10px; }
.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

.site-footer a{
  color: var(--muted);
  text-decoration:none;
  font-weight: 800;
}
.site-footer a:hover{
  color: var(--text);
  text-decoration: underline;
}

/* Mobile nav */
@media (max-width: 860px){
  .nav-toggle{ display:inline-flex; }

  .nav-links{
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    padding: 10px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display:none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open{ display:flex; }

  .footer-grid{ grid-template-columns: 1fr; }
}

/* =========================
   HERO fullscreen video
   ========================= */
.hero--full{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100vh;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.heroVideo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px){
  .hero--full{ height: 70vh; }
}

/* Toggle video vs image on mobile */
.hero-mobile-img {
  display: none;
}
.hero-desktop-video {
  display: block;
}

@media (max-width: 767px) {
  .hero-mobile-img {
    display: block;
  }
  .hero-desktop-video {
    display: none;
  }
}

/* =========================
   Search form layout
   ========================= */
.searchForm{
  width: min(1120px, 92vw);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label{
  font-size: 12px;
  color:#555;
}

.field input,
.field select{
  height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  font-size: 14px;
  background: #fff;
}

.searchBtn{
  height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

/* Intro section */
.intro{ padding: 46px 0 10px; }

.introTitle{
  text-align: center;
  letter-spacing: 2px;
  margin: 0 0 8px;
}

.introSubtitle{
  text-align: center;
  margin: 0 auto 18px;
  max-width: 720px;
  color:#444;
}

.introText{
  text-align: center;
  margin: 0 auto 28px;
  max-width: 820px;
  color:#555;
  line-height: 1.6;
}

/* Offers section spacing */
.offers{ padding: 38px 0 60px; }
.sectionTitle{ margin: 0 0 18px; }

/* Helper */
.link{ color:#111; text-decoration: underline; }

/* =========================
   Shared Card System
   ========================= */
.cardGrid3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card{
  display: block;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(0,0,0,0.10);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.14);
  text-decoration: none;
  color: var(--text);
}

.cardImg{
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
}

.cardBody{ padding: 16px 16px 18px; }
.cardTitle{ margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.cardText{ margin: 0 0 10px; color: #444; line-height: 1.45; }

.cardCta{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 800;
}

/* Offers countdown inside cards */
.offerCountdown{ margin: 0 0 12px; color: #555; }
.timerLabel{ font-size: 12px; color: #666; margin-right: 6px; }

/* Fallback block if an offer has no image_id */
.offerPhoto{
  height: 205px;
  background: #f2f2f2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  color:#666;
}

/* Responsive */
@media (max-width: 900px){
  .searchForm{ grid-template-columns: 1fr 1fr; }
  .searchBtn{ grid-column: 1 / -1; }
  .cardGrid3{ grid-template-columns: 1fr; }
  .cardImg{ height: 215px; }
  .offerPhoto{ height: 215px; }
}

/* =========================
   Auth (Login/Register)
   ========================= */
.authPage{
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 46px 0 70px;
  background: #f6f7f9;
}

.authCard{
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.10);
  padding: 22px 22px 18px;
}

.authTitle{
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: .2px;
}

.authSub{
  margin: 0 0 18px;
  color: #555;
}

.authForm{
  display: grid;
  gap: 12px;
}

.authField label{
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.authField input{
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d6d6d6;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.authField input:focus{
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.10);
}

.authRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.authCheck{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.authActions{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.authBtn{
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.authBtn:hover{ opacity: .92; }

.authLink{
  color: #111;
  text-decoration: none;
  font-weight: 700;
}
.authLink:hover{ text-decoration: underline; }

.authFooterText{
  margin: 14px 0 0;
  color: #555;
  font-size: 14px;
}

.authAlert{
  background: #fff4f4;
  border: 1px solid #ffd2d2;
  color: #8a1f1f;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.authAlert--success{ background:#ecfff1; border:1px solid #b7f5c4; color:#155724; }
.authAlert--error{ background:#fff4f4; border:1px solid #ffd2d2; color:#8a1f1f; }

/* =========================
   Booking receipt / confirm
   ========================= */
.receiptPage{
  background: #f6f7f9;
  padding: 40px 0 70px;
}

.receiptCard{
  width: min(720px, 92vw);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.10);
  padding: 22px;
}

.receiptHeader{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.receiptTitle{
  margin: 0 0 6px;
  font-size: 34px;
  letter-spacing: .2px;
}

.receiptSub{
  margin: 0;
  color: #555;
}

.badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  color: #111;
}

.badge--ok{
  background: #ecfff1;
  border-color: #b7f5c4;
  color: #155724;
}

.receiptDl{
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

.receiptDl dt{
  margin: 0;
  color: #6b7280;
  font-weight: 800;
}

.receiptDl dd{
  margin: 0;
  color: #111;
}

.receiptTotal{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.receiptTotal strong{
  font-size: 20px;
}

.receiptActions{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btnOutline{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration:none;
  border: 1px solid #d6d6d6;
  background:#fff;
  color:#111;
  font-weight: 800;
}

@media (max-width: 520px){
  .receiptDl{ grid-template-columns: 1fr; }
}

/* =========================
   Profile
   ========================= */
.profileHeader{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:16px;
}

.profileTitle{ margin:0 0 6px; }

.profileMeta{
  margin:0;
  color:#64748b;
}

.profileTabs{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.profilePanel{
  margin-top:12px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:16px;
}

.profileH3{ margin:0 0 6px; }

.profileText{ margin:0; color:#334155; }

.profileSuccess{
  margin:0 0 10px;
  color:#16a34a;
  font-weight:800;
}

.profileForm{
  display:grid;
  gap:10px;
  max-width:420px;
}

.profileTips{
  margin:12px 0 0;
  padding-left:18px;
  color:#64748b;
}

.faqList{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}

.faqItem{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
}

.faqItem summary{
  cursor:pointer;
  font-weight:800;
}

.faqBody{
  margin-top:6px;
  color:#334155;
}

.sectionDivider{
  border-top:1px solid #e5e7eb;
  padding-top:14px;
}

.profileFormWide{ max-width:520px; }

.tableWrap{
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:12px;
}

.simpleTable{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

.simpleTable thead tr{
  text-align:left;
  border-bottom:1px solid #e5e7eb;
}

.simpleTable th,
.simpleTable td{
  padding:10px 8px;
}

.simpleTable tbody tr{
  border-bottom:1px solid #f1f5f9;
}

.textMuted{ color:#64748b; margin:0; }

.card{
  background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;
}
.cardHeader{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.mt{margin-top:12px;}
.h1{margin:0;font-size:34px;line-height:1.1;}
.muted{margin:0;color:#64748b;}
.mono{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}

.tableWrap{overflow:auto;}
.table{width:100%;border-collapse:collapse;min-width:900px;}
.table th,.table td{padding:12px 10px;border-bottom:1px solid #f1f5f9;text-align:left;vertical-align:middle;}
.table th{font-size:13px;color:#475569;text-transform:uppercase;letter-spacing:.04em;}
.num{text-align:right;}

.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;}
.badge.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;}
.badge.danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;}

.btn{border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:8px 12px;font-weight:600;cursor:pointer;}
.btn:hover{background:#f8fafc;}
.btn.danger{border-color:#fecaca;color:#b91c1c;}
.btn.danger:hover{background:#fef2f2;}

.table td form { margin: 0; }

/* responsive switches */
.hideMobile{display:block;}
.showMobile{display:none;}
@media (max-width: 820px){
  .hideMobile{display:none;}
  .showMobile{display:block;}
}

/* mobile booking cards */
.mobileCards{display:flex;flex-direction:column;gap:12px;}
.bookingCard{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff;}
.bookingTop{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}
.bookingRef{font-weight:700;}
.bookingMeta{margin-top:4px;font-size:13px;}
.bookingGrid{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.bookingGrid .label{font-size:12px;color:#64748b;}
.bookingGrid .value{font-weight:700;margin-top:3px;}
.bookingActions{margin-top:12px;display:flex;justify-content:flex-end;}
.btn.full{width:100%;}
.table td form{margin:0;}

.bookingGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.bookingActions{margin-top:12px;}
