/* SkySports Bookings — flat, editorial tourism-site design system */

:root {
  --ink: #191515;
  --ink-soft: #524d4d;
  --accent: #ff8900;
  --accent-dark: #d97300;
  --bg: #ffffff;
  --bg-muted: #f7f5f3;
  --border: #e1e1e1;
  --radius: 6px;
  --success: #1f7a3f;
  --danger: #b3261e;
  --warning: #a35b00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Icons ---------- */
.icon {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-accent { stroke: var(--accent-dark); }

/* ---------- SkySports site header (real logo/nav, lightweight recreation) ---------- */
.sky-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: relative;
  z-index: 100;
}
.sky-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: relative;
}
.sky-logo img { display: block; height: 58px; width: auto; }
.sky-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.sky-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.sky-nav ul a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.sky-nav ul a:hover { color: var(--accent-dark); }
.sky-nav-cta { flex-shrink: 0; }
.sky-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.sky-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
}

@media (max-width: 900px) {
  .sky-nav-toggle { display: flex; }
  .sky-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .sky-nav.open { display: flex; }
  .sky-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .sky-nav ul a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .sky-nav-cta { margin-top: 14px; text-align: center; justify-content: center; }
}

/* ---------- SkySports site footer (real content, lightweight recreation) ---------- */
.sky-footer {
  background: var(--ink);
  color: #cfcfcf;
  padding: 48px 0 24px;
  margin-top: 48px;
}
.sky-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.sky-footer-col h5 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
}
.sky-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sky-footer-col ul a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 14px;
}
.sky-footer-col ul a:hover { color: #fff; }
.sky-footer-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.sky-footer-socials a {
  color: #cfcfcf;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 5px 10px;
}
.sky-footer-socials a:hover { color: #fff; border-color: #666; }
.sky-footer-copyright {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #999;
}
.sky-footer-copyright a { color: #cfcfcf; }

@media (max-width: 780px) {
  .sky-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sky-footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: #201200;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled {
  background: #e8c39a;
  color: #6b5a3f;
  cursor: not-allowed;
}
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--bg-muted); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.52);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-content h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.hero-content p {
  font-size: 17px;
  margin: 0 0 26px;
  color: #f1efec;
}

/* ---------- Booking widget ---------- */
.booking-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow-x: auto;
}
.booking-widget.floating {
  position: relative;
  z-index: 2;
  margin: -64px auto 0;
  max-width: 960px;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
}
.field-help { font-size: 12px; color: var(--ink-soft); }
.field-error { font-size: 12px; color: var(--danger); }

.whatsapp-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.whatsapp-icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25d366;
  color: #05230f;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-btn:hover {
  background: #20bd5a;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .field-row { flex-direction: column; }
  /* !important overrides inline style="flex:0 0 Npx" (used for fixed-width fields like
     "People" or "Duration") — those Npx values are meant as a column WIDTH on desktop, but
     flex-basis applies to HEIGHT once flex-direction switches to column here. */
  .field-row .field { flex: 1 1 auto !important; }
  .booking-widget.floating { margin-top: -32px; }
  .hero-content h1 { font-size: 30px; }

  /* "Boxed" mobile treatment: the hero is the one full-bleed element on the page, so on
     small screens give it margin + rounded corners like a floating card instead of running
     edge-to-edge, matching the boxed/contained look of every other section. */
  .hero {
    margin: 12px;
    border-radius: 14px;
    overflow: hidden;
    min-height: 380px;
  }
  .booking-widget {
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .service-card, .split-media img {
    border-radius: 12px;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .booking-widget { padding: 18px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .hero { margin: 10px; min-height: 340px; }
}

/* ---------- Sections (editorial, image + text) ---------- */
/* Longhand top/bottom only — a shorthand here would zero out the left/right padding
   on elements that combine class="container section" (service/checkout/confirmation
   pages), since both classes set the same `padding` shorthand and this one is later
   in the cascade. That was causing images/text to bleed edge-to-edge on mobile. */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-muted { background: var(--bg-muted); }
.section-header { max-width: 640px; margin: 0 0 36px; }
.section-header h2 { font-size: 28px; margin: 0 0 10px; }
.section-header p { color: var(--ink-soft); margin: 0; }

.split {
  display: flex;
  align-items: center;
  gap: 48px;
}
.split.reverse { flex-direction: row-reverse; }
.split-media { flex: 1 1 45%; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.split-text { flex: 1 1 55%; }
.split-text h3 { font-size: 24px; margin: 0 0 12px; }
.split-text p { color: var(--ink-soft); margin: 0 0 18px; }

@media (max-width: 780px) {
  .split, .split.reverse { flex-direction: column; }
}

/* ---------- Service cards (grid, flat) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.service-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card-body h4 { margin: 0; font-size: 17px; }
.service-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Wraps as whole chips (icon + text stay together) instead of an inline text blob with
   middot separators, which fragments awkwardly onto multiple lines on narrow screens. */
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 4px 0 14px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 5px 10px;
  white-space: nowrap;
}
.meta-chip .icon { width: 15px; height: 15px; }
.service-card-price { font-weight: 700; color: var(--accent-dark); margin-top: auto; }

.service-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 18px 0 4px;
}
.service-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 4px 0 18px;
  max-width: 46ch;
}

.age-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--warning);
  background: #fff7ec;
  border: 1px solid #e8c39a;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 18px;
}
.age-notice .icon { stroke: var(--warning); width: 16px; height: 16px; margin-top: 1px; }

.price-tag {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fff3e2;
  border: 1px solid #f5d9ad;
  border-radius: var(--radius);
  padding: 8px 16px;
  margin: 4px 0 18px;
}

/* ---------- Practical info list ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; }
.info-list li span { color: var(--ink-soft); }

/* ---------- Time slot grid ---------- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}
.slot-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 6px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.slot-btn:hover { border-color: var(--ink); }
.slot-btn.selected { border-color: var(--accent-dark); background: #fff3e2; font-weight: 600; }
.slot-btn[disabled] { color: #b8b3ae; background: var(--bg-muted); cursor: not-allowed; text-decoration: line-through; }

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.stepper-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.stepper-circle .icon { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.5; }
.stepper-step.active .stepper-circle { background: var(--accent); color: #201200; border-color: var(--accent); }
.stepper-step.done .stepper-circle { background: var(--ink); border-color: var(--ink); }
.stepper-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.stepper-step.active .stepper-label, .stepper-step.done .stepper-label { color: var(--ink); }
.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
  min-width: 16px;
}
.stepper-line.done { background: var(--ink); }

@media (max-width: 480px) {
  .stepper-label { display: none; }
  .stepper-line { margin: 0 6px; }
}

/* ---------- Status badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.badge-pending { color: var(--warning); border-color: #e8c39a; background: #fff7ec; }
.badge-confirmed, .badge-paid, .badge-completed { color: var(--success); border-color: #b9dcc4; background: #f0f9f3; }
.badge-cancelled, .badge-no_show, .badge-refunded { color: var(--danger); border-color: #e5b8b4; background: #fdf1f0; }
.badge-cash_on_arrival, .badge-partially_paid { color: #1a5276; border-color: #b9d4e8; background: #eef6fc; }

/* ---------- Flash messages ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.flash-success { background: #f0f9f3; color: var(--success); border: 1px solid #b9dcc4; }
.flash-error { background: #fdf1f0; color: var(--danger); border: 1px solid #e5b8b4; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  border-right: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
}
.admin-sidebar a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
}
.admin-sidebar a.active, .admin-sidebar a:hover { color: var(--ink); background: var(--bg-muted); font-weight: 600; }
.admin-main { flex: 1; padding: 28px 32px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 22px; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-tile .value { font-size: 26px; font-weight: 700; }
.stat-tile .label { font-size: 13px; color: var(--ink-soft); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
table.data-table th { color: var(--ink-soft); font-weight: 600; font-size: 13px; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar select, .filter-bar input { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; }

.card-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; overflow-x: auto; }

.cover-upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cover-upload img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  flex-shrink: 0;
}

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-muted); padding: 20px; }
.login-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; width: 340px; max-width: 100%; }
.login-box h1 { font-size: 20px; margin: 0 0 20px; }

@media (max-width: 800px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 4px;
  }
  .admin-sidebar a { padding: 8px 12px; white-space: nowrap; }
  .admin-main { padding: 20px 16px; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
