/* === BASLAYOUT === */
html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #222;
}

section {
  scroll-margin-top: 80px; /* så ankarna hamnar rätt under headern */
}

/* === HEADER / NAVBAR === */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-bottom: none; /* 🔥 tar bort den vita linjen helt */
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  border-bottom: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1); /* diskret skugga under navbaren */
}

header.scrolled {
  background: rgba(255,255,255,0.3);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* === NAVBAR INNEHÅLL === */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* === LOGO (vänster) === */
.logo {
  position: absolute;
  left: 2rem;
  font-weight: 700;
  color: #dbdbdb;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.4px;
}

/* === CENTRERAD NAV === */
nav.center-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transition: all 0.3s ease;
}

nav.center-nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav.center-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #0077cc, #00aaff);
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav.center-nav a:hover {
  color: #7e7e7e;
  transform: translateY(-2px);
  text-shadow: 0 0 6px rgba(0,119,204,0.25);
}

nav.center-nav a:hover::after {
  width: 100%;
}

/* === HAMBURGERKNAPP === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  transition: transform 0.3s ease;
  position: absolute;
  right: 1rem;
}

.bar {
  width: 26px;
  height: 2px;
  background-color: #333;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.menu-toggle:hover .bar {
  background-color: #0077cc;
}

/* ====== MOBILMENY (<= 768px) ====== */
@media (max-width: 768px) {
   /* Dimma innehållet bakom menyn tydligare */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);   /* mer dimning */
    backdrop-filter: blur(3px);
    z-index: 110;                   /* under header/nav som har högre z-index */
  }
  .menu-toggle { display: flex; }

  .nav-container {
    justify-content: flex-start;
    position: relative;
  }

  .logo {
    position: static;
    transform: none;
    margin-left: 1rem;
  }

  nav.center-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    padding-top: 0.5rem;
    background: transparent;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    z-index: 1200;
  }

  nav.center-nav.show {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

   nav.center-nav a {
    font-size: 1.2rem;
    color: #000;                    /* svart text */
    padding: 0.55rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.85);  /* mycket tydligare bakgrund */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease, background .3s ease;
  }

  nav.center-nav a:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px);
  }

  nav.center-nav.show a {
    transform: translateY(0);
    opacity: 1;
  }

  nav.center-nav.show a:nth-child(1) { transition-delay: 0.05s; }
  nav.center-nav.show a:nth-child(2) { transition-delay: 0.10s; }
  nav.center-nav.show a:nth-child(3) { transition-delay: 0.15s; }
  nav.center-nav.show a:nth-child(4) { transition-delay: 0.20s; }
  nav.center-nav.show a:nth-child(5) { transition-delay: 0.25s; }

  .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 110;
    animation: fadeIn 0.3s ease forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* === HERO / FÖRSTA SEKTION === */
#home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

body {
  scroll-behavior: smooth;
}
  /* === SEKTIONER (full bredd/height) === */
  .section {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
  }
  
/* === HERO SEKTION === */
#home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* ===== Desktop (delad vy: vänster text, höger bild) ===== */
@media (min-width: 992px) {
  #home {
    flex-direction: row;
  }

  .home-left,
  .home-right {
    flex: 1;
    height: 100vh;
  }

  /* Vänster halva */
  .home-left {
    background: #f7f3ec;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Textinnehåll i mitten av vänstra halvan */
  .hero-content {
    max-width: 480px;
    text-align: left;
    padding: 2rem 3rem;
  }

  /* Höger halva: bakgrundsbild */
  .home-right {
    background:
      linear-gradient(to bottom, rgba(10,20,40,.25), rgba(10,20,40,.4)),
      url("/Images/stugbild.png") center center / cover no-repeat;
  }

  /* Typografi */
  #home h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #111;
  }

  #home h3 {
    font-size: 1.4rem;
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
  }

  #home p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #444;
  }

  /* Knappar */
  .button-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }

  .btn {
    background: #0077cc;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .btn:hover {
    background: #005fa3;
  }
}

@media (max-width: 991px) {
  #home {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
  }

  /* Bakgrundsbild */
  #home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(10,20,40,.45), rgba(10,20,40,.45)),
      url("/Images/stugbild.png") center center / cover no-repeat;
    z-index: 0;
  }

  /* Textinnehåll ovanpå bilden */
  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 2rem;
  }

  #home h1 {
    color: #fff;
  }

  #home h3 {
    color: #eee;
  }

  #home p {
    color: #f5f5f5;
  }

  /* Knappar under texten */
  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .btn {
    background: #0077cc;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .btn:hover {
    background: #005fa3;
  }
}
  
  #information {
    background:
      linear-gradient(to bottom, #ffffff 0%, #f8fbff 100%);
    color: #222;
    max-width: 100vw;
    margin: 0 auto;
    text-align: left;
    padding: 8rem 2rem 4rem;
  }
  
  #weeks {
    background:
      radial-gradient(1200px 600px at 50% 0%, rgba(0,119,204,0.12), transparent 60%),
      #f0f4ff;
  }
  
  #contact {
    background:
      radial-gradient(900px 500px at 20% 10%, rgba(0,0,0,0.04), transparent 60%),
      #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    color: #111;
    max-width: 100%;
    padding: 8rem 2rem 5rem;
  }
  
  #location {
    background:
      linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  }
  
  /* === KNAPPAR === */
  .button-container { margin-top: 2rem; }
  .btn {
    display: inline-block;
    background: #0077cc;
    color: #fff;
    padding: .8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    margin: 0 .5rem;
    transition: background .2s;
  }
  .btn:hover { background: #005fa3; }
  
  /* === FOOTER === */
  footer {
    text-align: center;
    padding: 1.5rem;
    background: #eee;
    font-size: .9rem;
  }
  
  /* === RUBRIK-IKONER === */
  .section-icon {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #2e2e2e;
  }
  .section-icon svg {
    width: 24px; height: 24px;
    stroke: currentColor; stroke-width: 1.6; fill: none;
  }
  
  /* === STUGINFO-INNEHÅLL === */
  #information h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  #information .intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: center;
  }
  .info-block {
    margin-bottom: 2.5rem;
    background: #f7f9fc;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
  }
  .info-block h3 {
    font-size: 1.3rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
    border-left: 4px solid #a0a0a0;
    padding-left: .5rem;
  }
  .info-block ul { list-style: none; margin: 0; padding-left: 0; }
  .info-block li {
    position: relative;
    margin-bottom: .6rem;
    padding-left: 1.8rem;
    line-height: 1.6;
  }
  .info-block li::before {
    content: "•";
    position: absolute;
    left: .6rem;
    color: #a0a0a0;
    font-size: 1.2rem;
  }
  .sublist { margin: .4rem 0 .6rem 1rem; }
  .sublist li::before { color: #a0a0a0; font-size: 1rem; }
  #information strong { color: #cc0000; }
  

/* === MEDIA GALLERY === */
.media-gallery {
  margin-top: 2rem;
}

.media-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #a0a0a0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.media-item {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .2s ease;
}

.media-thumb:hover {
  transform: scale(1.03);
}

/* === Video-kort: använder placeholder-bilden === */
.video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.video-thumb img.placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(92%);
}

/* Play-ikon */
.play-icon {
  position: absolute;
  font-size: 3rem;
  color: rgba(0,0,0,0.7);
  top: 42%;               /* tidigare 50% */
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Text över bilden */
.video-overlay-text {
  position: absolute;
  bottom: 14px;           /* lite mer marginal */
  left: 50%;              /* centrerat */
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 1.rem;
  white-space: nowrap;
}
/* Bildkort */
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover highlight i mitten */
.media-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.media-item:hover .media-thumb::after {
  opacity: 1;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 960px);
  max-height: 90vh;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 90vh;
  display: none;
}

.lightbox img.is-visible,
.lightbox video.is-visible {
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);

  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* === VECKOR/PRIS === */
/* LEGEND */
.week-legend {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-box.available {
  background: #ffffff;
  border: 1px solid #ccc;
}

.legend-box.booked {
  background: #111;
  
}

/* GRID */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 2rem auto 0;
  max-width: 1000px; /* <-- viktigt */
  padding: 0 1rem;
}

/* CARD */
.week-card {
  position: relative;
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.week-card h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.week-card p {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* STATUS */
.week-status {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* AVAILABLE */
.week-card.available {
  background: #ffffff;
  color: #000;
  border: 1px solid #e0e0e0;
}

.week-card.available .week-status {
  background: #2ecc71;
}

/* BOOKED */
.week-card.booked {
  background: #111;
  color: #fff;
}
.week-card.booked p {
  color: #111;
}

.week-card.booked .week-status {
  background: #e74c3c;
}

/* HOVER */
.week-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* MOBIL – 2 kolumner */
@media (max-width: 640px) {
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* TABLET (iPad Air / Pro) – 4 kolumner */
@media (min-width: 641px) and (max-width: 1024px) {
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* DESKTOP – auto */
@media (min-width: 1025px) {
  .week-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
  /* === KONTAKT === */
  #contact h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }
  #contact .lead {
    max-width: 700px;
    margin: 0 auto 2.2rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
  }
  .contact-info {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 3rem; margin-bottom: 2rem;
  }
  .ci-item { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; }
  .ci-item svg { width: 22px; height: 22px; stroke: #0077cc; stroke-width: 1.8; fill: none; }
  .ci-item a { text-decoration: none; color: #111; transition: color .2s; }
  .ci-item a:hover { color: #0077cc; }
  
  .contact-form {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    text-align: left;
    width: 100%;
    max-width: 700px;           /* bredare och responsiv */
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
  }
  .form-field { display: flex; flex-direction: column; }
  .form-field-full { grid-column: 1 / -1; }
  .form-field label { font-size: .95rem; margin-bottom: .4rem; color: #333; }
  .form-field input, .form-field textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    padding: .7rem .9rem;
    font-size: .95rem;
    color: #111;
    outline: none;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
  }
  .form-field input:focus, .form-field textarea:focus {
    border-color: #0077cc; background: #fff;
    box-shadow: 0 0 0 3px rgba(0,119,204,.12);
  }
  textarea { resize: vertical; min-height: 160px; }
  
  .form-actions {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 1.2rem; gap: 1rem; flex-wrap: wrap;
  }
  .thanks-note { color: #555; font-size: .9rem; }
  .btn-ghost {
    background: #f6f7f9; border: 1px solid #ddd; color: #222;
    border-radius: 6px; padding: .6rem 1.4rem; font-size: .95rem;
    cursor: pointer; transition: all .2s;
  }
  .btn-ghost:hover { background: #eceff3; border-color: #ccc; }
  
  /* === ANIMATIONER === */
  .fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
  }
  .fade-in-section.is-visible { opacity: 1; transform: none; }
  
  .fade-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .fade-in-section.is-visible .fade-child { opacity: 1; transform: translateY(0); }
  
  /* sekvens (rubrik -> text -> knappar/form) */
  .fade-child:nth-child(1) { transition-delay: .1s; }
  .fade-child:nth-child(2) { transition-delay: .3s; }
  .fade-child:nth-child(3) { transition-delay: .5s; }
  .fade-child:nth-child(4) { transition-delay: .7s; }
  

/* === KARTA / LOCATION === */
.map-button {
  display: inline-block;
  background: #adadad;
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1.2rem;
  transition: background .3s ease;
}

.map-button:hover {
  background: #d2d3d3;
}
/* === HERO-BUTTONS: glass / blur (override) === */
#home .btn {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: #ffffff;
  font-weight: 600;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

#home .btn:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
@media (min-width: 992px) {
  #home .btn {
    background: rgba(255, 255, 255, 0.55);
    color: #5b5b5c;
  }
}
  /* === RESPONSIVT === */
  @media (max-width: 900px) {
    #home h1 { font-size: 2.4rem; }
  }
  @media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { max-width: 95%; padding: 1.5rem; }
    #information { padding: 6rem 1rem 3rem; }
    .info-block { padding: 1rem 1.2rem; }
  }
  