/* Golfsetrið Akureyri — design tokens ported from golfsetridak (Next.js).
   Dark theme by default with the emerald/green brand. Hand-written component
   classes; atomic utilities come from the framework's CSS engine (/utilities.css). */

:root {
  /* Surfaces — dark, slightly green-tinted stone. */
  --bg: #0a0f0c;
  --surface: #121a15;
  --surface-2: #18221c;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text. */
  --text: #e9efe9;
  --muted: #9bb0a3;

  /* Brand — emerald family + lime accent (from globals.css / BrandMark SVG). */
  --brand: #059669;        /* emerald-600 */
  --brand-hover: #10b981;  /* emerald-500 */
  --brand-deep: #166534;   /* green-800 */
  --brand-darkest: #14532d;
  --accent: #a3e635;       /* lime-400 */

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 72rem;

  --font-heading: "Barlow Condensed", system-ui, "Segoe UI", sans-serif;
  --font-body: "Barlow", system-ui, "Segoe UI", sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(5, 150, 105, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-hover);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

.muted { color: var(--muted); }

/* ---- Layout --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 40px 24px 72px;
  flex: 1 0 auto;
}

/* ---- Header / nav --------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(10, 15, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}
.brand-place {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.7rem;
  color: var(--brand-hover);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: 8px;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--brand-hover); }

.nav-login { margin-left: auto; }

/* ---- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--brand-hover); color: var(--brand-hover); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* ---- Hero / placeholder --------------------------------------------- */

.hero {
  padding: 72px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--brand-hover);
  font-weight: 600;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 44ch;
}
.badge-soon {
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---- Content sections ----------------------------------------------- */

.content-section { padding: 16px 0 0; }
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--brand-hover);
  font-weight: 600;
  margin-bottom: 6px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

/* ---- News list ------------------------------------------------------ */

.news-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.news-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.news-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
}
.news-link:hover { color: var(--brand-hover); text-decoration: none; }
.news-summary { margin: 8px 0 0; color: var(--muted); }

/* ---- Handbook list -------------------------------------------------- */

.handbook-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 2px;
}
.handbook-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.handbook-item a { color: var(--text); font-weight: 500; }
.handbook-item a:hover { color: var(--brand-hover); }

/* ---- Prose (rendered markdown) -------------------------------------- */

.prose {
  max-width: 46rem;
}
.prose h1 { margin-bottom: 0.3em; }
.prose h2 {
  margin-top: 1.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: #d6e0d8; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.3rem 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-hover); }
.prose code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

/* ---- Footer --------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 28px;
}
.footer-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.footer-col p { margin: 0.2rem 0; color: var(--muted); }
.footer-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0.3rem 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand-hover); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav-login { margin-left: 0; }
}

/* ---- Booking calendar ----------------------------------------------- */

.calendar { padding: 8px 0 32px; }

.price-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 18px;
}
.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.price-chip-name { color: var(--text); font-weight: 600; }
.price-chip-range { color: var(--muted); }
.price-chip-price { color: var(--accent); font-weight: 600; }

.calendar-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}
.calendar-note a { color: var(--brand-hover); }

.calendar-days { display: grid; gap: 20px; }

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.day-weekday {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-hover);
  font-weight: 700;
}
.day-date { color: var(--muted); font-size: 0.95rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  min-height: 56px;
  text-align: center;
}
.slot-hour { font-weight: 600; color: var(--text); }
.slot-price { font-size: 0.8rem; color: var(--accent); }
.slot-tag { font-size: 0.72rem; color: var(--muted); }

.slot-available {
  border-color: var(--brand-deep);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.slot-available:hover {
  border-color: var(--brand-hover);
  transform: translateY(-1px);
}
.slot-booked { opacity: 0.55; }
.slot-booked .slot-hour { color: var(--muted); }
.slot-past { opacity: 0.3; }

/* ---- Shop / cart / admin ------------------------------------------- */

.shop-hero,
.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 34px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-filter,
.cart-summary,
.admin-form-card,
.admin-table-wrap,
.admin-list-row,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.shop-filter {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}

.filter-chip {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.filter-chip:hover {
  color: var(--brand-hover);
  border-color: var(--brand-deep);
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.16), rgba(163, 230, 53, 0.08));
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-placeholder {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.product-body { padding: 18px 18px 0; flex: 1; }
.product-body p { color: var(--muted); margin: 0.35rem 0 0; }
.product-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-hover) !important;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}
.product-footer strong,
.cart-total {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--accent);
}

.cart-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.cart-lines { display: grid; gap: 12px; }
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.cart-line h2 { margin-bottom: 0.15rem; }
.cart-line p { margin: 0; color: var(--muted); }
.cart-line-type {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--brand-hover) !important;
}
.cart-line-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 170px;
}
.cart-line input,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.cart-line label,
.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.cart-line input { max-width: 96px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.admin-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}
.table-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
}
.status-pill {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--brand-hover) !important;
  font-size: 0.82rem !important;
}
.status-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted) !important;
}

.admin-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.inline-form {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto auto;
  align-items: end;
  max-width: none;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}
.checkbox-row input {
  width: auto;
  accent-color: var(--brand);
}
.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 780px) {
  .shop-hero,
  .admin-head,
  .cart-line {
    display: grid;
    align-items: start;
  }
  .shop-layout,
  .cart-shell {
    grid-template-columns: 1fr;
  }
  .shop-filter { position: static; }
  .inline-form,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-table-wrap { overflow-x: auto; }
  .cart-line-actions { justify-items: start; }
}

/* ---- admin: nav, cards, banners, feed (booking/payment/user/settings pages) */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-weight: 500;
}

.admin-nav a.is-active {
  background: var(--brand);
  color: #04140c;
  border-color: var(--brand);
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.admin-card h2 {
  margin: 0 0 16px;
}

.admin-banner {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 500;
}

.admin-banner-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.admin-banner-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.admin-empty {
  padding: 18px 0 4px;
}

.admin-feed {
  display: grid;
  gap: 12px;
}

.admin-feed-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

/* ---- Marketing / rich content pages --------------------------------- */

/* Full-bleed hero band (bleeds past the .container 24px gutter + 40px top). */
.page-hero {
  position: relative;
  overflow: hidden;
  margin: -40px -24px 0;
  padding: 92px 24px 76px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(720px 340px at 84% -25%, rgba(5, 150, 105, 0.24), transparent 60%),
    radial-gradient(560px 320px at -5% 125%, rgba(163, 230, 53, 0.09), transparent 60%),
    var(--surface);
}
.page-hero-inner { position: relative; max-width: var(--maxw); margin-inline: auto; }
.page-hero h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 14px 0 0;
}
.page-hero .accent { color: var(--brand-hover); }
.page-hero .lede {
  margin: 20px 0 0;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Section rhythm. */
.section { padding: 60px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 34px; max-width: 56ch; }
.section-head h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 8px 0 0;
}
.section-prose { display: grid; gap: 14px; max-width: 62ch; }
.section-prose p { margin: 0; color: #d6e0d8; }

/* Two-column heading + body. */
.split { display: grid; gap: 36px; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Dark inset band for an inverted feature section. */
.band-dark {
  margin-inline: -24px;
  padding: 4px 24px;
  background: linear-gradient(180deg, #05080600, #060a07 12%, #060a07 88%, #05080600);
}

/* Feature / icon cards. */
.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--brand-deep); transform: translateY(-2px); }
.feature-card h3 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.icon-box {
  display: inline-flex;
  padding: 10px;
  width: fit-content;
  border-radius: 12px;
  background: rgba(5, 150, 105, 0.14);
  color: var(--brand-hover);
}
.icon-box svg { width: 22px; height: 22px; display: block; }

/* Icon + text checklist rows. */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.check-row .icon-box { padding: 8px; flex: none; }
.check-row span { color: #d6e0d8; }

/* Call-to-action card. */
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.cta-card h2 { font-weight: 700; text-transform: uppercase; margin: 8px 0 0; }
.cta-card p { color: var(--muted); max-width: 52ch; }
.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.cta-meta a { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.cta-meta a:hover { color: var(--brand-hover); text-decoration: none; }
.cta-meta svg { width: 18px; height: 18px; flex: none; }

/* News cards. */
.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 28px;
}
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.news-card:hover { border-color: var(--brand-deep); transform: translateY(-2px); }
.news-accent { height: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.news-card-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.news-card .news-date {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-hover);
  font-weight: 600;
}
.news-card h2 { font-size: 1.4rem; margin: 0; line-height: 1.2; }
.news-card h2 a { color: var(--text); }
.news-card h2 a:hover { color: var(--brand-hover); text-decoration: none; }
.news-card p { margin: 0; color: var(--muted); flex: 1; }
.news-more {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* Handbook grouped index. */
.handbook-grid {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.handbook-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.handbook-card.is-link:hover { border-color: var(--brand-deep); transform: translateY(-2px); }
.handbook-card .icon-box { padding: 8px; flex: none; }
.handbook-card a { color: var(--text); font-weight: 500; }
.handbook-card a:hover { color: var(--brand-hover); text-decoration: none; }
.handbook-card.is-muted span { color: var(--muted); }

/* Article detail hero header. */
.article-hero {
  margin: -40px -24px 36px;
  padding: 66px 24px 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(620px 300px at 86% -30%, rgba(5, 150, 105, 0.18), transparent 60%),
    var(--surface);
}
.article-hero-inner { max-width: 46rem; margin-inline: auto; }
.article-hero h1 { margin: 12px 0 0; text-transform: uppercase; font-weight: 700; }
.article-hero .article-meta { margin: 14px 0 0; }

/* ---- Home hero (marketing front-door above the calendar) ------------ */
.home-hero {
  position: relative;
  overflow: hidden;
  margin: -40px -24px 10px;
  padding: 76px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(940px 440px at 50% -28%, rgba(5, 150, 105, 0.30), transparent 62%),
    radial-gradient(720px 400px at 82% 124%, rgba(163, 230, 53, 0.10), transparent 60%),
    linear-gradient(180deg, #060a07, var(--bg));
}
.home-hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-hero-mark { width: clamp(72px, 16vw, 104px); height: auto; }
.home-hero-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 18px 0 0;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}
.home-hero-place {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--brand-hover);
  font-size: clamp(0.72rem, 2vw, 1rem);
  margin: 6px 0 0 0.5em;
}
.hero-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.home-hero .btn-row { justify-content: center; }
.home-hero .lede { max-width: 46ch; }

.offer-grid {
  display: grid;
  gap: 14px;
  margin: 38px auto 0;
  width: 100%;
  max-width: 58rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.offer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.offer-card:hover { border-color: var(--brand-deep); transform: translateY(-2px); text-decoration: none; }
.offer-card .icon-box { flex: none; }
.offer-copy { display: flex; flex-direction: column; gap: 2px; }
.offer-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.offer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--text);
}
.offer-arrow { margin-left: auto; color: var(--brand-hover); flex: none; }
.offer-arrow svg { width: 20px; height: 20px; display: block; }
.offer-card.offer-sun .icon-box { background: rgba(163, 230, 53, 0.16); color: var(--accent); }
.offer-card.offer-gift .icon-box { background: rgba(16, 185, 129, 0.16); color: var(--brand-hover); }

/* ==== Previously-undefined component layer (login, account, gift) ==== */

/* Generic section wrappers. */
.section-content { padding: 8px 0 0; }
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-header h2 { margin: 4px 0 0; }

/* Shared form field. */
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.form-field input,
.form-field select,
.form-field textarea,
.gift-form input,
.gift-form select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.gift-form input:focus { outline: none; border-color: var(--brand-hover); }

/* Button variants used by templates but never defined. */
.btn-small { padding: 0.5rem 0.95rem; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--brand-hover); }

/* Login / auth card. */
.login-card {
  max-width: 27rem;
  margin: 36px auto 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
}
.login-title { margin: 0; }
.login-form { display: grid; gap: 18px; margin-top: 20px; }
.login-form .btn { width: 100%; }
.login-hint { color: var(--muted); margin: 0; }
.login-hint strong { color: var(--text); }
.login-error {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  margin-top: 18px;
}
.login-back { display: inline-block; color: var(--muted); font-size: 0.9rem; text-align: center; }
.login-back:hover { color: var(--brand-hover); }

/* Account dashboard — stat cards. */
.dashboard-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 8px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(5, 150, 105, 0.14);
  flex: none;
}
.stat-info { display: flex; flex-direction: column; line-height: 1.25; }
.stat-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.stat-info strong { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--text); }
.stat-note { font-size: 0.8rem; color: var(--muted); }

/* Account tabs. */
.tab-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 4px; border-bottom: 1px solid var(--border); }
.tab-link {
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-link:hover { color: var(--text); text-decoration: none; }
.tab-link.active { color: var(--brand-hover); border-bottom-color: var(--brand-hover); }

/* Packages grid + progress. */
.packages-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.package-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.package-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.package-header h3 { margin: 0; font-size: 1.15rem; }
.package-percent { font-family: var(--font-heading); font-weight: 700; color: var(--accent); }
.package-progress { margin: 8px 0 12px; color: var(--muted); }
.package-remaining { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.package-total { color: var(--muted); }
.progress-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* Bookings table. */
.bookings-table { display: grid; gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.booking-header,
.booking-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; background: var(--surface); }
.booking-header { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.booking-row { background: rgba(255, 255, 255, 0.02); }

/* Status badges. */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.badge-confirmed { background: rgba(16, 185, 129, 0.16); color: var(--brand-hover); }
.badge-pending { background: rgba(163, 230, 53, 0.14); color: var(--accent); }
.badge-cancelled { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }

/* Loading / error states. */
.loading-state,
.error-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}
.error-state p { color: #fca5a5; }

/* Header auth cluster. */
.nav-auth { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-user { color: var(--muted); font-size: 0.92rem; }
.nav-logout { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

/* Gift cards (gjafabref). */
.gift-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.gift-perks li {
  position: relative;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: #d6e0d8;
}
.gift-perks li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(-45deg);
}
.gift-purchase,
.gift-redeem,
.gift-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 20px;
}
.gift-form { display: grid; gap: 14px; margin-top: 14px; }
.gift-form label { display: grid; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.gift-status { margin: 14px 0 0; color: var(--muted); }
.gift-note { color: var(--muted); font-size: 0.92rem; }
.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.detail-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-list li span:first-child { color: var(--muted); }
.admin-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}
