/* ─────────────────────────────────────────────────────────────────
   kaupus.no — Kaupanger Næringsforening
   Design system: Scandinavian minimal, trustworthy, clean
   ──────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --bg:           #f5f4f1;
  --surface:      #ffffff;
  --surface-2:    #eeede9;
  --border:       #e0dfd9;
  --border-dark:  #cccbc4;
  --text:         #1a1916;
  --text-muted:   #6b6a64;
  --text-light:   #9e9d97;
  --accent:       #2d5a3d;
  --accent-light: #e8f0eb;
  --accent-hover: #234830;
  --accent-dim:   #4a7c5e;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.07), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg:    0 4px 16px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.08);

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;

  --max-width:    1140px;
  --font:         'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --nav-height:   64px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }
ul   { list-style: none; }
button { font-family: var(--font); }

/* ── LAYOUT HELPERS ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.divider {
  height: 1px;
  background: var(--border);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 1.07rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.muted { color: var(--text-muted); }

/* ── BADGE / TAG ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  line-height: 1;
}

.tag-green   { background: var(--accent); color: #fff; }
.tag-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.tag-soft    { background: var(--accent-light); color: var(--accent); }
/* Status badge colours */
.tag-status-available    { background: var(--accent); color: #fff; }
.tag-status-negotiation  { background: #2563a8; color: #fff; }
.tag-status-let          { background: #a37a10; color: #fff; }
/* .tag-id removed — ID is internal only */

.tag-surface { background: var(--surface); color: var(--text); }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.17s, border-color 0.17s, color 0.17s, transform 0.17s, box-shadow 0.17s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,90,61,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  font-size: 0.84rem;
  padding: 0.5rem 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

/* ── SECTION HEADER ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.section-header-text .label {
  display: block;
  margin-bottom: 0.5rem;
}

.section-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.17s;
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 0.15rem;
}
.section-link:hover { gap: 0.55rem; }

/* ── CARD BASE ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── NAV ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(245,244,241,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-logo-img {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.18s;
}
.nav-logo-img:hover { opacity: 0.8; }
.nav-logo-img img   { display: block; height: 76px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.16s, background 0.16s;
}
.nav-links a:hover                    { color: var(--text); background: var(--surface-2); }
.nav-links a.active                   { color: var(--accent); }
.nav-links a.btn-primary              { color: #fff; padding: 0.42rem 1rem; background: var(--accent); }
.nav-links a.btn-primary:hover        { background: var(--accent-hover); color: #fff; }
/* active marker must not bleed onto the CTA button */
.nav-links a.btn-primary.active       { color: #fff; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 4.5rem;
}

/* Layout columns — defined explicitly so they appear in DevTools */
.hero-text   { min-width: 0; }
.hero-visual { min-width: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-lead { margin-bottom: 2.2rem; }

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Hero visual card */
.hero-visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-map {
  height: 260px;
  background: #1a2e20; /* fallback while image loads */
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-map-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-map::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,20,12,0.65) 0%, rgba(10,20,12,0.15) 55%, transparent 100%);
}

.hero-map-text {
  position: relative;
  z-index: 2;
  text-align: left;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  padding: 0 1.4rem 1.3rem;
  width: 100%;
}

.hero-map-text strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: block;
}

.hero-map-text small {
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  font-family: var(--font);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  padding: 1.1rem 0;
}

.hero-stat strong {
  font-variant-numeric: tabular-nums;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.5rem;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }

/* Clickable stat variant */
.hero-stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
}
.hero-stat-link:hover strong {
  transform: translateY(-3px) scale(1.1);
  color: var(--accent-hover);
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--accent);
  display: block;
  line-height: 1.1;
  transition: transform 0.22s ease, color 0.22s ease;
}

.hero-stat span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── INTRO CARDS (home) ─────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.intro-card {
  padding: 1.75rem 1.6rem;
}

.intro-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.intro-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.intro-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── PROPERTY CARDS ─────────────────────────────────────────────── */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.prop-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.prop-thumb {
  height: 155px;
  background: linear-gradient(135deg, #d0e2d6, #b2c9b9);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.prop-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(45,90,61,0.12) 0%, transparent 60%);
}

.prop-thumb-icon {
  position: relative;
  font-size: 2rem;
  opacity: 0.4;
}

.prop-thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
}

.prop-body {
  padding: 1.35rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prop-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.prop-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-footer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-muted);
}

.prop-avatar {
  width: 28px;
  height: 28px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── FILTER BAR ─────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.38rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── MEMBER GRID ────────────────────────────────────────────────── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.member-card {
  padding: 1.3rem 1rem;
  text-align: center;
  cursor: pointer;
}
.member-card.has-site:hover { border-color: var(--accent); }

.member-monogram {
  width: 50px;
  height: 50px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.member-name {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

.member-logo-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.member-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.member-kategori {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.28rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-site {
  font-size: 0.73rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SEARCH ─────────────────────────────────────────────────────── */
.search-field {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 380px;
}

.search-field svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
}
.search-field input::placeholder { color: var(--text-light); }

/* ── MODAL ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,25,22,0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 96px rgba(0,0,0,0.22);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.22s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-top {
  padding: 1.8rem 1.8rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-close {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-body { padding: 1.4rem 1.8rem 1.8rem; }

.modal-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }

.modal-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-contact {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
}

.modal-contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.modal-contact-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}
.modal-contact-row:last-child { margin-bottom: 0; }
.modal-contact-row a { color: var(--accent); }
.modal-contact-row a:hover { text-decoration: underline; }
.modal-contact-row svg { flex-shrink: 0; opacity: 0.55; }

/* ── NEWS / FEED ────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card { overflow: hidden; }

.news-img {
  height: 165px;
  background: linear-gradient(135deg, var(--surface-2), var(--border));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img-placeholder { font-size: 1.8rem; opacity: 0.25; }

.news-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.45rem;
}

.news-title {
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-snippet {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.9rem;
  flex: 1;
}

.news-read-more {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.15s;
}
.news-read-more:hover { gap: 0.5rem; }

.feed-notice {
  grid-column: 1 / -1;
  padding: 2.5rem;
  text-align: center;
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.feed-notice strong { color: var(--text); display: block; margin-bottom: 0.4rem; }
.feed-notice code {
  font-size: 0.82rem;
  background: var(--surface-2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--accent-dim);
}



/* ── ABOUT PAGE ─────────────────────────────────────────────────── */
.about-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.about-body {
  max-width: 680px;
}

.about-body p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.about-sidebar h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-sidebar address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── CONTACT PAGE ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.contact-info-text p, .contact-info-text a {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.contact-info-text a:hover { color: var(--accent); text-decoration: underline; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
  background: var(--surface);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── PAGE HERO (inner pages) ────────────────────────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.page-hero .label { margin-bottom: 0.6rem; display: block; }

.page-hero p {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 0.75rem;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  margin-top: auto;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 0.75rem;
  display: block;
}
.footer-brand .nav-logo span { color: #7ea689; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 270px;
}

.footer-col h4 {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.79rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy { color: rgba(255,255,255,0.3); }


/* ── SKELETON / LOADING ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── EMPTY STATE ────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem;
  color: var(--text-muted);
}

.empty-state svg { opacity: 0.3; margin: 0 auto 1rem; }
.empty-state p { font-size: 0.92rem; }

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: fadeUp 0.55s ease both;
}


/* ── PROPERTY IMAGE GALLERY ─────────────────────────────────────── */
.prop-thumb-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prop-img-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Modal gallery */
#modal-gallery:empty { display: none; }

.gallery {
  border-bottom: 1px solid var(--border);
}

.gallery-main {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.2s;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover  { opacity: 0.9; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }


/* Gallery navigation arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 5;
  /* Hide on mobile — thumbs handle navigation there */
}

.gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

@media (max-width: 600px) {
  .gallery-arrow { display: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-grid       { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .contact-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container        { padding: 0 1.25rem; }
  .section          { padding: 3.5rem 0; }
  .hero             { padding: 3rem 0 2.5rem; }
  .page-hero        { padding: 3rem 0 2.5rem; margin-bottom: 3rem; }
  .intro-grid       { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.25rem 2rem; }
  .footer-bottom    { padding: 1rem 1.25rem; }
  .members-grid     { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }

  .nav-links        { display: none; }
  .nav-hamburger    { display: flex; }
}

/* Mobile nav open state */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  gap: 0.15rem;
  z-index: 99;
}
.nav-links.mobile-open a { padding: 0.6rem 0.75rem; }

/* ── IS-EVENT — tydeleg markering på arrangement-kort ───────────── */
.news-card.is-event {
  border: 2px solid var(--accent);
  background: #f4faf6;
}

/* Inline badge in the "Siste nytt" section heading */
.feed-event-badge-inline {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-left: 0.6rem;
  line-height: 1.4;
}

/* Badge øvst til høgre over biletet */
.news-event-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  line-height: 1.4;
  pointer-events: none;
  white-space: normal;
  text-align: center;
}
.news-event-badge__date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.1rem;
}

/* ── ROOM CARDS (møterom — no images) ──────────────────────────── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.room-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.room-card-body {
  padding: 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-card-header {
  margin-bottom: 0.75rem;
}

.room-card-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.room-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.room-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.room-meta-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.room-card-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-card-footer {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.room-card-cta {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
}

.room-card-cta-muted {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-light);
}

/* ── MØTEROM INTRO (editorial) ──────────────────────────────────── */
.meetingrooms-intro {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.meetingrooms-intro-inner {
  max-width: 620px;
}

.meetingrooms-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.meetingrooms-intro p {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ── MØTEROM CONTEXT ────────────────────────────────────────────── */
.meetingrooms-context {
  max-width: 540px;
  padding: 2rem 0;
}

.meetingrooms-context-label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.meetingrooms-context-text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ── FOOTER ADMIN LINK ──────────────────────────────────────────── */
.footer-admin-link {
  color: rgba(255,255,255,0.12);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
  text-align: center;
}
.footer-admin-link:hover { color: rgba(255,255,255,0.45); }

/* ── NEWS SKELETON ──────────────────────────────────────────────── */
.news-card-skeleton {
  height: 330px;
  border-radius: var(--radius);
}

/* ── ADMIN NAV FIX ──────────────────────────────────────────────── */
nav.nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#nav-placeholder nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--bg);
}