/* =========================
   RESET / GRUNNLEGGENDE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: white;
  color: #111;
  line-height: 1.6;
}

/* =========================
   TYPOGRAFI
========================= */

h1, h2, h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

p {
  line-height: 1.65;
}

a {
  text-decoration: none;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-bottom: 1px solid #eee;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #8B4A2B;
}

/* =========================
   HERO
========================= */

.hero {
  height: 85vh;
  background: url("images/snøbildehytte2.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  background: rgba(255,255,255,0.9);
  padding: 50px;
  text-align: center;
  border-radius: 10px;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 40px;
}

.hero-text p {
  font-size: 18px;
}

/* =========================
   KNAPPER
========================= */

.btn, .btn-contact {
  background: #8B4A2B;
  color: white;
  padding: 12px 28px;
  display: inline-block;
  margin-top: 20px;
  border-radius: 6px;
  transition: 0.2s;
}

.btn:hover, .btn-contact:hover {
  background: #6e3820;
}

/* =========================
   GENERELT SIDEOPPSETT
========================= */

.page {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

section {
  margin-bottom: 50px;
}

/* =========================
   CARDS
========================= */

.cards {
  display: flex;
  gap: 20px;
  padding: 40px;
}

.card {
  flex: 1;
  transition: 0.3s;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-6px);
}

/* =========================
   GALLERI
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.04);
}

/* =========================
   BOOKING KALENDER
========================= */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.day {
  padding: 14px;
  text-align: center;
  border-radius: 8px;
  background: #e8f5e9;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  min-height: 95px;
}

.day:hover {
  transform: scale(1.05);
}

.booked { background: #ffcdd2; cursor: not-allowed; }

.half-start {
  background: linear-gradient(to right, #e8f5e9 50%, #ffcdd2 50%);
}

.half-end {
  background: linear-gradient(to right, #ffcdd2 50%, #e8f5e9 50%);
}

.selected {
  border: 3px solid #1976d2;
}

/* =========================
   ADMIN STATUS
========================= */

.foresporsel { border-left: 6px solid orange; }
.godkjent   { border-left: 6px solid green; }
.avslatt    { border-left: 6px solid red; }

/* =========================
   MELDINGSBOKS
========================= */

.message-success {
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.message-error {
  background: #f8d7da;
  color: #721c24;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* =========================
   RESPONSIVE - MOBIL
========================= */

@media (max-width: 900px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text {
    padding: 30px 25px;
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .page {
    padding: 40px 15px;
  }

  .nav-links {
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 10px 15px;
  }

  .logo img {
    height: 48px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.95em;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .day {
    padding: 8px 4px;
    min-height: 80px;
    font-size: 0.9em;
  }
}