/* =============================================================
   Aurora Sauna — Shared Stylesheet
   /_includes/styles.css
   ============================================================= */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:       #0b0d10;
  --card:     #12161b;
  --text:     #e8edf2;
  --muted:    #a9b5c1;
  --line:     rgba(255,255,255,.10);
  --line-hard:#26303a;
  --accent:   #d8b15c;
  --accent2:  #ff6a00;
  --good:     #26d07c;
  --good-alt: #7CFFB2;
  --warn:     #f6c343;
  --bad:      #ff5a67;
  --shadow:   0 10px 30px rgba(0,0,0,.35);
  --radius:   18px;
  --radius2:  14px;
  --pad:      18px;
  --maxw:     1100px;
  --font:     ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%,  rgba(216,177,92,.13),  transparent 55%),
    radial-gradient(1000px 700px at 90% 30%,  rgba(255,106,0,.10),   transparent 55%),
    var(--bg);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px 44px;
}

/* ── Navigation / Header ────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 18px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.brand-name { font-size: 15px; }

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
}

.navlinks a {
  color: var(--muted);
  font-weight: 600;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 700;
  gap: 10px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: background .15s, border-color .15s;
}

.btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1b1200;
}

.btn.primary:hover { filter: brightness(1.08); }

.btn2 {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn3 {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:disabled, .btn2:disabled, .btn3:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}

.hcard {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}

/* ── Typography helpers ─────────────────────────────────────── */
.kicker {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .3px;
}

h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); }
h2 { margin: 8px 0 14px; font-size: 24px; }
h3 { margin: 0 0 8px; font-size: 17px; }

.sub { margin: 0 0 18px; color: var(--muted); }
.muted { color: var(--muted); }
.tiny  { font-size: 12px; }

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.badge.default {
  background: rgba(216,177,92,.10);
  border: 1px solid rgba(216,177,92,.22);
  color: var(--accent);
}

.badge.good {
  background: rgba(124,255,178,.10);
  border: 1px solid rgba(124,255,178,.22);
  color: var(--good-alt);
}

.badge.warn {
  background: rgba(246,195,67,.10);
  border: 1px solid rgba(246,195,67,.22);
  color: var(--warn);
}

.badge.bad {
  background: rgba(255,90,103,.10);
  border: 1px solid rgba(255,90,103,.22);
  color: var(--bad);
}

/* ── Message / info boxes ───────────────────────────────────── */
.msg {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 12px;
  background: rgba(255,255,255,.02);
}

.msg.ok   { border-color: rgba(38,208,124,.35); }
.msg.bad  { border-color: rgba(255,90,103,.35); }
.msg.warn { border-color: rgba(246,195,67,.40); }

.msg b { display: block; margin-bottom: 4px; }

/* ── Pills / Tags ───────────────────────────────────────────── */
.pill {
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

/* ── Grid helpers ───────────────────────────────────────────── */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* ── Form inputs ────────────────────────────────────────────── */
input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  font-family: var(--font);
  font-size: 14px;
}

input::placeholder { color: rgba(159,176,189,.7); }

select {
  appearance: auto;
  background-color: rgba(0,0,0,.28);
}

option { background-color: #0b0f12; color: #e8eef3; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 30px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ── Row utility ────────────────────────────────────────────── */
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

/* ── CTA row ────────────────────────────────────────────────── */
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── Line items (checkout summary) ─────────────────────────── */
.lineitem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.lineitem b { color: var(--text); font-weight: 700; }

/* ── FAQ / Info sections ────────────────────────────────────── */
.faq { margin-top: 10px; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item:first-child { border-top: none; padding-top: 0; }

.faq-q {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.faq-a { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ── Booking page — Calendar ────────────────────────────────── */
.cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cal-top .month { font-weight: 800; letter-spacing: .2px; }

.cal-nav { display: flex; gap: 8px; }

.iconbtn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 42px;
  font-family: var(--font);
}

.iconbtn:active, .iconbtn.is-pressed {
  border-color: rgba(216,177,92,.85);
  box-shadow: 0 0 0 3px rgba(216,177,92,.18), 0 10px 18px rgba(216,177,92,.10);
  background: rgba(216,177,92,.10);
  transform: translateY(1px);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lg {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255,255,255,.02);
}

.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot.av  { background: rgba(38,208,124,.85); }
.dot.bk  { background: rgba(255,90,103,.90); }
.dot.hd  { background: rgba(246,195,67,.90); }
.dot.bl  { background: rgba(107,122,134,.90); }

.cal {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  overflow: hidden;
  background: rgba(0,0,0,.12);
}

.dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}

.dow div {
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .3px;
}

.days { display: grid; grid-template-columns: repeat(7, 1fr); }

.day {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 58px;
  padding: 8px;
  position: relative;
  cursor: pointer;
  user-select: none;
  background: rgba(255,255,255,.015);
  transition: background .12s ease, box-shadow .12s ease;
}

.day:nth-child(7n) { border-right: 0; }

.num { font-size: 12px; color: var(--muted); pointer-events: none; }

.tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0,0,0,.18);
  pointer-events: none;
}

.day.disabled  { opacity: .35; cursor: not-allowed; background: rgba(255,255,255,.01); }
.day.booked    { background: rgba(255,90,103,.12); }
.day.hold      { background: rgba(246,195,67,.12); }
.day.block     { background: rgba(107,122,134,.14); }

.day.sel-start,
.day.sel-end {
  background: rgba(216,177,92,.24) !important;
  box-shadow: inset 0 0 0 2px rgba(216,177,92,1), 0 4px 14px rgba(216,177,92,.22);
}

.day.sel-start .num,
.day.sel-end .num { color: #fff; font-weight: 800; }

.day.sel-mid { background: rgba(216,177,92,.09) !important; }

.day:active, .day.is-pressed {
  box-shadow: inset 0 0 0 2px rgba(216,177,92,.95), 0 10px 18px rgba(216,177,92,.10);
  background: rgba(216,177,92,.10);
}

/* ── Booking page — KPI chips ───────────────────────────────── */
.kpi { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 10px; }

.chip {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 10px 12px;
  background: rgba(255,255,255,.02);
}

.chip b      { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.chip span   { display: block; margin-top: 4px; font-weight: 700; }
.chip .subline { margin-top: 4px; color: var(--muted); font-size: 12px; }

/* ── Booking page — Package selector ───────────────────────── */
.pkgWrap {
  margin-top: 14px;
  display: none;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.02);
}

.pkgWrap .pkgTitle { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text); }

.pkgGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pkgBtn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius2);
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}

.pkgBtn b    { display: block; }
.pkgBtn .sub { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.pkgBtn.active {
  border-color: rgba(216,177,92,.65);
  background: rgba(216,177,92,.12);
  box-shadow: 0 6px 16px rgba(216,177,92,.12);
}

.pkgNote { margin-top: 8px; color: var(--muted); font-size: 12px; }

/* ── Booking page — Radio rows ──────────────────────────────── */
.radrow { display: flex; gap: 10px; align-items: center; margin-top: 10px; }

.rad {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  user-select: none;
}

.rad input { width: auto; }

/* ── Booking page — Add-on line ─────────────────────────────── */
.addonline {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--text);
}

.addonline input { width: auto; }

.footer-note { margin-top: 14px; color: var(--muted); font-size: 12px; }

/* ── Home page specific ─────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  padding: 22px 0 10px;
}

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.price { font-size: 28px; font-weight: 900; margin: 8px 0 10px; }

/* ── Booking page layout ────────────────────────────────────── */
.booking-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

/* ── Pay page ───────────────────────────────────────────────── */
.pay-card { max-width: 780px; margin: 0 auto; }

/* ── COD / Confirmed page — info blocks ─────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.info-block {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 16px;
}

.info-block h4 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.info-block p  { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero       { grid-template-columns: 1fr; }
  .grid3      { grid-template-columns: 1fr; }
  .packages   { grid-template-columns: 1fr; }
  .navlinks   { display: none; }
  .info-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .booking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .split    { grid-template-columns: 1fr; }
  .pkgGrid  { grid-template-columns: 1fr; }
  .kpi      { grid-template-columns: 1fr; }

  /* ── Mobile calendar improvements ──────────────────────────── */

  /* Larger tap-friendly nav buttons */
  .iconbtn { min-width: 48px; min-height: 48px; font-size: 18px; }

  /* Single-letter day-of-week headers */
  .dow div { padding: 6px 2px; font-size: 11px; }
  .dow div .dow-full { display: none; }
  .dow div .dow-short { display: inline; }

  /* Calendar cells: tighter, tappable, no text tags */
  .day { min-height: 44px; padding: 6px 4px; }
  .day .num { font-size: 14px; font-weight: 600; text-align: center; display: block; }
  .day .tag { display: none; }

  /* Compact legend */
  .legend { gap: 6px; }
  .lg { padding: 4px 8px; font-size: 11px; gap: 5px; }

  /* Inline selection prompt (hidden on desktop) */
  #calPrompt { display: block !important; }

  /* Sticky mobile bottom bar — visible only when .mb-show is added by JS */
  #mobileBar.mb-show {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  }
  #mobileBar .mb-info { flex: 1; min-width: 0; }
  #mobileBar .mb-dates { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #mobileBar .mb-price { font-size: 12px; color: var(--muted); margin-top: 2px; }
  #mobileBar .mb-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1b1200;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
  }
  #mobileBar .mb-btn:disabled { opacity: .45; cursor: not-allowed; }

  /* Padding at bottom of main so sticky bar doesn't cover content */
  main { padding-bottom: 80px; }
}

/* Hide mobile-only elements on desktop */
#calPrompt { display: none; }
#mobileBar { display: none; }

/* ── Minimal header (payment pages) ────────────────────────── */
.nav-minimal {
  justify-content: center;
  padding: 18px 0 22px;
}

.brand-centered {
  justify-content: center;
}
