/* ========================================================================
   ekko Booking Tool — shared styles
   Used by every template (directory, booking, login, error, privacy, guide).
   ======================================================================== */

:root {
  --navy:        #1B1E64;
  --navy-90:     rgba(27,30,100,0.90);
  --navy-8:      rgba(27,30,100,0.08);
  --navy-4:      rgba(27,30,100,0.04);
  --cyan:        #009BE7;
  --cyan-soft:   #E6F5FD;
  --green:       #50FF78;
  --muted:       #7678A2;
  --border:      #E4E4EC;
  --border-soft: #EDEDF3;
  --bg:          #F6F6F9;
  --panel:       #FFFFFF;
  --panel-soft:  #FAFBFC;
  --danger:      #FF2181;
  --success:     #35DB9F;

  --shadow-card:
    0 0 0 1px rgba(0,0,0,0.06),
    0 1px 2px rgba(0,0,0,0.05),
    0 2px 4px rgba(0,0,0,0.05),
    0 3px 6px rgba(0,0,0,0.05),
    0 8px 16px -4px rgba(0,0,0,0.05);
  --shadow-card-lift:
    0 0 0 1px rgba(0,0,0,0.06),
    0 2px 4px rgba(0,0,0,0.05),
    0 8px 16px rgba(0,0,0,0.06),
    0 20px 40px -8px rgba(27,30,100,0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Hero — overridable per-page or via JS tweaks */
  --hero-img:   url('/static/hero-turtle.jpg');
  --hero-pos-x: 25%;
  --hero-pos-y: 50%;
  --hero-tint:  0.35;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); }

/* ---- Staging banner ---- */
.staging-banner {
  background: #F59E0B;
  color: #1C1004;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.staging-banner .staging-dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: #1C1004;
  opacity: 0.5;
}

/* ---- Cookie strip ---- */
.cookie-strip {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  letter-spacing: 0.005em;
}
.cookie-strip span { opacity: 0.85; }
.cookie-strip a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.cookie-strip button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 9999px;
  padding: 3px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.cookie-strip button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

/* ---- Page shell ---- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.shell {
  flex: 1;
  padding: 40px 24px 48px;
  display: flex;
  justify-content: center;
}
.card {
  width: 100%;
  max-width: 1040px;
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card--narrow { max-width: 720px; }
.card--mid    { max-width: 880px; }

/* ---- Header bar (logo left, content centre, aux right) ---- */
.header {
  position: relative;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 22px 32px 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header::after {
  content: "";
  position: absolute;
  left: 32px; right: 32px; bottom: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 26px; width: auto; display: block; }
.header-centre {
  text-align: center;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.header-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.header-aux {
  justify-self: end;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-aux .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--success);
  margin-right: 6px;
  transform: translateY(-1px);
  vertical-align: middle;
}
.header-aux a {
  color: var(--muted);
  text-decoration: none;
}
.header-aux a:hover { color: var(--navy); }

/* Pill member chip used in header-centre for booking pages */
.member-avatar {
  width: 44px; height: 44px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.member-text { text-align: left; line-height: 1.25; }

/* ---- Hero banner ---- */
.hero {
  position: relative;
  height: 180px;
  background-color: #0A1F3A;
  background-image: var(--hero-img);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--hero-pos-x) var(--hero-pos-y);
  /* overflow visible so dropdowns inside the hero are not clipped;
     corner clipping is handled by the parent .card { overflow: hidden } */
  overflow: visible;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27,30,100, calc(var(--hero-tint) * 0.85)) 0%, rgba(27,30,100, calc(var(--hero-tint) * 0.25)) 40%, rgba(0,155,231, calc(var(--hero-tint) * 0.45)) 100%),
    linear-gradient(180deg, rgba(27,30,100,0) 55%, rgba(27,30,100, calc(var(--hero-tint) * 0.75)) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
}
.hero-inner {
  position: relative;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero-copy { color: #fff; max-width: 420px; }
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow .ek-dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(80,255,120,0.25);
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.30);
  margin: 0;
}

/* Glass card */
.glass-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 8px 32px -8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);
  color: #fff;
  max-width: 420px;
}
.glass-avatar {
  width: 52px; height: 52px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 70%, var(--navy) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 0 0 2px rgba(255,255,255,0.9);
}
.glass-text { min-width: 0; }
.glass-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.glass-title {
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  margin-top: 2px;
  line-height: 1.3;
}
.glass-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.32);
  letter-spacing: 0.01em;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
}
.glass-chip .chip-dot {
  width: 5px; height: 5px;
  border-radius: 9999px;
  background: var(--green);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  letter-spacing: -0.005em;
  line-height: 1;
}
.btn svg { width: 14px; height: 14px; stroke-width: 2.5; }
.btn--primary {
  background: var(--green);
  color: var(--navy);
}
.btn--primary:hover { background: #3BF263; transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(80,255,120,0.55); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #252A7F; }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--navy); }
.btn--full { width: 100%; padding: 15px 24px; font-size: 15px; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Footer ---- */
.page-footer {
  text-align: center;
  padding: 24px 20px 32px;
  font-size: 12px;
  color: var(--muted);
}
.page-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.page-footer a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.page-footer .sep { margin: 0 10px; opacity: 0.5; }

/* ---- Eyebrow labels ---- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .shell { padding: 20px 12px 32px; }
  .header {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 20px 22px;
  }
  .header::after { left: 20px; right: 20px; }
  .header-logo { justify-content: center; }
  .header-centre { justify-content: center; }
  .header-aux { justify-self: center; }
  .hero { height: auto; }
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }
  .hero-title { font-size: 22px; }
  .glass-card { max-width: none; }
  .cookie-strip { flex-wrap: wrap; text-align: center; padding: 8px 16px; gap: 10px; }
}
