* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #8B1A1A;   /* Falurød */
  --red-light: #b52a2a;
  --green:  #3a5c28;   /* skovgrøn */
  --green-light: #4e7a35;
  --blue:   #1a4a7a;   /* svensk blå */
  --cream:  #f7f2eb;
  --warm:   #ede5d8;
  --border: #d5c9b8;
  --text:   #1e1a14;
  --muted:  #7a6e60;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
}

/* SWEDISH FOLK PATTERN — SVG inline divider */
.folk-divider {
  text-align: center;
  margin: 0.5rem 0 1.5rem;
  color: var(--red);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  opacity: 0.6;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
nav .brand {
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
nav .links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
nav .links a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-family: sans-serif;
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}
nav .links a:hover, nav .links a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  height: 100svh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
}
.hero-content .label {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.75rem;
  font-family: sans-serif;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: normal;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.hero-content .tagline {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 1rem;
}
.hero-content .dates {
  display: inline-block;
  font-size: 0.95rem;
  font-family: sans-serif;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  padding: 0.45rem 1.25rem;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #fff;
  opacity: 0.6;
  font-size: 0.8rem;
  font-family: sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* PAGE HEADER */
.page-header {
  background: var(--red);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0, #fff 20px, transparent 20px, transparent 30px);
  opacity: 0.2;
}
.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: normal;
  margin-bottom: 0.4rem;
}
.page-header p { opacity: 0.8; font-size: 0.95rem; font-family: sans-serif; }

/* SECTIONS */
section {
  max-width: 880px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
section + section {
  border-top: 1px solid var(--border);
}
h2 {
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 0.3rem;
  color: var(--red);
}
h3 {
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--red);
  margin-bottom: 0.4rem;
}
p { line-height: 1.8; font-size: 1.05rem; }

/* FAMILIES */
.families {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.family-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.family-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.family-card h3 { font-size: 0.95rem; color: var(--text); }

/* HOUSE PHOTOS */
.house-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.house-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.house-photos img:first-child {
  grid-column: 1 / -1;
  height: 300px;
}

/* FACTS */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.fact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  text-align: center;
}
.fact .number { font-size: 1.9rem; color: var(--red); display: block; margin-bottom: 0.2rem; }
.fact .desc { font-size: 0.82rem; color: var(--muted); font-family: sans-serif; }

/* INFO LIST */
.info-list { list-style: none; margin-top: 1rem; }
.info-list li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--warm);
  font-size: 1rem;
  line-height: 1.6;
}
.info-list li:last-child { border-bottom: none; }
.info-list .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }

/* MAP CARD */
.map-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}
.map-card h3 { color: var(--green); }
.map-card p { font-size: 0.95rem; }
.map-card a {
  display: inline-block;
  margin-top: 0.9rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: sans-serif;
  transition: background 0.15s;
}
.map-card a:hover { background: var(--green-light); }

/* SIMULATOR */
.simulator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.sim-family {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.sim-family label {
  display: block;
  font-size: 0.75rem;
  font-family: sans-serif;
  color: var(--muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sim-family .fam-name { font-size: 0.95rem; color: var(--text); margin-bottom: 0.75rem; }
.sim-family input[type="time"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: sans-serif;
  background: var(--cream);
  color: var(--text);
}
.sim-note { font-size: 0.85rem; color: var(--muted); font-family: sans-serif; margin-bottom: 1.25rem; }

.arrival-list { list-style: none; margin-top: 1rem; }
.arrival-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  font-family: sans-serif;
  transition: all 0.3s;
}
.arrival-item.first { border-left: 4px solid #c4a020; background: #fffdf0; }
.arrival-item .pos { font-size: 1.4rem; width: 2rem; text-align: center; flex-shrink: 0; }
.arrival-item .name { flex: 1; font-size: 0.95rem; color: var(--text); }
.arrival-item .time { font-size: 1.1rem; font-weight: bold; color: var(--red); }
.arrival-item .duration { font-size: 0.78rem; color: var(--muted); }

/* ACTIVITIES */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.activity-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.activity-card .tag {
  display: inline-block;
  font-family: sans-serif;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  background: var(--warm);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.activity-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.activity-card p { font-size: 0.9rem; line-height: 1.65; color: #5a4a38; }
.activity-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-family: sans-serif;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

/* TRAILS */
.trail-list { list-style: none; margin-top: 1rem; }
.trail-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.65rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.trail-item .trail-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.trail-item .trail-info h3 { margin-bottom: 0.2rem; }
.trail-item .trail-info p { font-size: 0.88rem; color: #5a4a38; }
.trail-badge {
  display: inline-block;
  font-family: sans-serif;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  margin-right: 0.3rem;
  margin-top: 0.4rem;
}
.badge-easy { background: #dff0d8; color: #2a6a2a; }
.badge-medium { background: #fef3cd; color: #7a5a00; }

/* MEALS */
.meal-grid { margin-top: 1rem; }
.meal-day { margin-bottom: 2rem; }
.meal-day-title {
  font-family: sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.meal-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--warm);
  flex-wrap: wrap;
}
.meal-row:last-child { border-bottom: none; }
.meal-type { font-size: 1rem; width: 150px; flex-shrink: 0; }
.meal-claim {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.claim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-family: sans-serif;
  font-size: 0.83rem;
  color: var(--red);
}
.claim-badge button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0;
  line-height: 1;
}
.claim-badge button:hover { color: #c0392b; }
.claim-btn {
  background: none;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-family: sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.claim-btn:hover { border-color: var(--red); color: var(--red); background: #fff8f8; }

/* HUSKELISTE */
.check-list { list-style: none; margin-top: 0.5rem; }
.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--warm);
  flex-wrap: wrap;
}
.check-item:last-child { border-bottom: none; }
.check-item .item-name { flex: 1; font-size: 1rem; min-width: 150px; }
.check-item.done .item-name { text-decoration: line-through; color: var(--muted); }
.check-item .assignee {
  font-family: sans-serif;
  font-size: 0.8rem;
  color: var(--green);
  background: #eaf3e4;
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ADD ITEM */
.add-item-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.add-item-row input {
  flex: 1;
  min-width: 140px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: sans-serif;
  background: #fff;
  color: var(--text);
}
.add-item-row select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: sans-serif;
  background: #fff;
  color: var(--text);
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-family: sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--green-light); }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 320px;
  width: 90%;
  text-align: center;
  border-top: 4px solid var(--red);
}
.modal h3 { margin-bottom: 1rem; color: var(--red); }
.modal-btns { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.modal-btns button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  font-family: sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}
.modal-btns button:hover { background: var(--warm); }
.modal-btns .cancel { color: var(--muted); border: none; background: none; }

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-family: sans-serif;
  letter-spacing: 0.05em;
}

/* WEATHER BOX */
.weather-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
