/* =========================================================
   Surfespots – carousel (forside)
   Matcher shortcoden + surfespot.css-look (Roboto + star-rating)
   ========================================================= */

:root{
  --sn-accent:#F3C845;
  --sn-ink:#0A0A0A;
}

/* --- Seksjon --- */
.sn-spots-carousel{
  margin: 60px 0;
}

/* Tittelrad */
.sn-spots-carousel .sn-title-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.sn-spots-carousel .sn-title{
  margin:0;
  font-family:"Roboto",sans-serif;
  font-weight:700;
  font-size:40px;
  line-height:1.05;
  color:#111;
}

.sn-spots-carousel .sn-cta-all{
  font-family:"Roboto",sans-serif;
  font-weight:600;
  text-decoration:none;
  color:#111;
  opacity:.9;
  white-space:nowrap;
}
.sn-spots-carousel .sn-cta-all:hover{ opacity:1; text-decoration:underline; }

/* Split */
.sn-spots-carousel .sn-spots-split{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:22px;
  align-items:start;
}

.sn-spots-carousel .sn-spots-swiper-wrap{
  min-width:0;
}

/* --- HERO (MAIN) --- */
.sn-spots-carousel .sn-spots-main{
  border-radius:20px;
  overflow:hidden;
}

/* Mindre hero (mer “magasin”) */
.sn-spots-carousel .sn-spots-hero{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio: 16 / 7;      /* <- lavere hero på desktop */
  background-size:cover;
  background-position:center;
  border-radius:20px;
  overflow:hidden;
}

/* overlay mørklegging */
.sn-spots-carousel .sn-spots-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.22);
  pointer-events:none;
}

/* Meta-boks nederst */
.sn-spots-carousel .sn-spots-hero-meta{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:2;

  background:rgba(0,0,0,.46);
  padding:16px 16px;
  border-radius:14px;
  color:#fff;
  backdrop-filter: blur(2px);
}

/* Tittel i overlay */
.sn-spots-carousel .sn-spots-hero-title{
  font-family:"Roboto",sans-serif !important;
  font-weight:700 !important;
  font-size:30px;
  line-height:1.1;
  margin:0 0 6px 0;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}

/* Stjerner i overlay */
.sn-spots-carousel .sn-spots-hero-stars{
  color:var(--sn-accent);
  font-size:28px;
  line-height:1;
  letter-spacing:1px;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}

/* Piler */
.sn-spots-carousel .sn-spots-main .swiper-button-prev,
.sn-spots-carousel .sn-spots-main .swiper-button-next{
  color:#fff;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(0,0,0,.40);
  backdrop-filter: blur(2px);
}

.sn-spots-carousel .sn-spots-main .swiper-button-prev:hover,
.sn-spots-carousel .sn-spots-main .swiper-button-next:hover{
  background:rgba(0,0,0,.55);
}

.sn-spots-carousel .sn-spots-main .swiper-button-prev{ left:14px; }
.sn-spots-carousel .sn-spots-main .swiper-button-next{ right:14px; }

.sn-spots-carousel .sn-spots-main .swiper-button-prev:after,
.sn-spots-carousel .sn-spots-main .swiper-button-next:after{
  font-size:18px;
  font-weight:800;
}

/* --- THUMBS --- */
.sn-spots-carousel .sn-spots-thumbs{
  margin-top:14px;
}

/* litt mer “kort”-følelse */
.sn-spots-carousel .sn-spots-thumbs .swiper-slide{
  opacity:.58;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

.sn-spots-carousel .sn-spots-thumbs .swiper-slide-thumb-active{
  opacity:1;
  transform: translateY(-2px);
}

/* Thumb-bilde */
.sn-spots-carousel .sn-spots-thumb{
  width:100%;
  height:92px;
  border-radius:14px;
  background-size:cover;
  background-position:center;
  cursor:pointer;

  box-shadow:0 6px 18px rgba(0,0,0,.08);
  outline:2px solid transparent;
  outline-offset:2px;
}

/* Gul markering på aktiv thumb */
.sn-spots-carousel .sn-spots-thumbs .swiper-slide-thumb-active .sn-spots-thumb{
  outline-color: var(--sn-accent);
}

/* Thumb label */
.sn-spots-carousel .sn-spots-thumb-label{
  font-family:"Roboto",sans-serif;
  font-size:13px;
  line-height:1.2;
  margin-top:7px;
  color:#111;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: 2.4em;
}

/* --- Sidecard --- */
.sn-spots-carousel .sn-spots-sidecard{
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 34px rgba(0,0,0,.07);
  padding:18px 18px;
  font-family:"Roboto",sans-serif;
  position: sticky;          /* gjør den “sitter” fint på desktop */
  top: 120px;
}

.sn-spots-carousel .sn-spots-sidecard h3{
  margin:0 0 10px 0;
  font-size:22px;
  line-height:1.2;
  color:#111;
}

.sn-spots-carousel .sn-spots-sidecard p{
  margin:0 0 16px 0;
  color:#333;
  line-height:1.55;
}

.sn-spots-carousel .sn-btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:999px;
  background:var(--sn-accent);
  color:#000;
  font-weight:700;
  text-decoration:none;
}
.sn-spots-carousel .sn-btn:hover{ opacity:.92; }

/* --- Responsiv --- */
@media (max-width: 980px){
  .sn-spots-carousel .sn-spots-split{
    grid-template-columns: 1fr;
  }

  .sn-spots-carousel .sn-spots-sidecard{
    position: static; /* sticky av på mobil/tablet */
  }

  .sn-spots-carousel .sn-title{
    font-size:32px;
  }

  /* litt høyere hero når vi går ned i bredde */
  .sn-spots-carousel .sn-spots-hero{
    aspect-ratio: 16 / 9;
  }

  .sn-spots-carousel .sn-spots-hero-title{
    font-size:26px;
  }

  .sn-spots-carousel .sn-spots-hero-stars{
    font-size:26px;
  }
}

@media (max-width: 600px){
  .sn-spots-carousel{
    margin: 44px 0;
  }

  .sn-spots-carousel .sn-title-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .sn-spots-carousel .sn-spots-hero-meta{
    left:12px;
    right:12px;
    bottom:12px;
    padding:14px;
  }

  .sn-spots-carousel .sn-spots-hero-title{
    font-size:22px;
  }

  .sn-spots-carousel .sn-spots-hero-stars{
    font-size:22px;
  }

  .sn-spots-carousel .sn-spots-thumb{
    height:84px;
  }
}

/* --- LAYOUT: main + sidecard --- */
.sn-spots-carousel .sn-spots-split{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px){
  .sn-spots-carousel .sn-spots-split{
    grid-template-columns: 1fr;
  }
}

/* --- MAIN HERO: sørg for at den får høyde --- */
.sn-spots-carousel .sn-swiper-spots-main{
  border-radius: 18px;
  overflow: hidden;
}

.sn-spots-carousel .sn-spot-hero{
  position: relative;
  display: block;
  width: 100%;

  /* Velg én av disse:
     A) fast høyde
     height: 420px;

     B) responsiv ratio (anbefalt) */
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.sn-spots-carousel .sn-spot-hero-img{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
}

/* overlay */
.sn-spots-carousel .sn-spot-hero-overlay{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;

  background: rgba(0,0,0,.45);
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
}

.sn-spots-carousel .sn-spot-hero-title{
  margin: 0 0 6px 0;
  font-size: 32px;
  line-height: 1.1;
  color: #fff;
}

.sn-spots-carousel .sn-spot-hero-stars{
  font-size: 22px;
  letter-spacing: 1px;
}

/* Nav-piler litt penere over hero */
.sn-spots-carousel #sn-spots-1 .sn-swiper-spots-main .swiper-button-prev,
.sn-spots-carousel #sn-spots-1 .sn-swiper-spots-main .swiper-button-next{
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* --- THUMBS: gi dem en “kort”-følelse --- */
.sn-spots-carousel .sn-swiper-spots-thumbs{
  margin-top: 12px;
}

.sn-spots-carousel .sn-spot-thumb{
  border-radius: 12px;
  overflow: hidden;
}

.sn-spots-carousel .sn-spot-thumb img{
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.sn-spots-carousel .sn-spot-thumb-title{
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.2;
}

/* Stars = gold */
.sn-spots-carousel .sn-spot-hero-stars{
  color: rgb(243, 200, 69);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* Thumbs: ikke klipp i bunn */
.sn-spots-carousel .sn-swiper-spots-thumbs{
  margin-top: 12px;
  padding-bottom: 8px; /* gir litt luft */
}

.sn-spots-carousel .sn-spot-thumb{
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.sn-spots-carousel .sn-spot-thumb img{
  display: block;
  width: 100%;
  height: 120px; /* var 110px */
  object-fit: cover;
}

.sn-spots-carousel .sn-spot-thumb-title{
  padding: 10px 10px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sn-spots-carousel .sn-cta-all{
  display: none !important;
}

/* ---- FIX: thumbs blir kuttet i bunn ---- */

/* 1) Sørg for at ingen foreldre klipper */
.sn-spots-carousel,
.sn-spots-carousel .sn-spots-split,
.sn-spots-carousel .sn-spots-swiper-wrap,
.sn-spots-carousel .sn-swiper-spots-thumbs,
.sn-spots-carousel .sn-swiper-spots-thumbs .swiper-wrapper{
  overflow: visible !important;
}

/* 2) Gi litt luft under hele carousel-seksjonen */
.sn-spots-carousel{
  padding-bottom: 14px;
}

/* 3) Sørg for at thumbs-swiperen faktisk får høyde nok */
.sn-spots-carousel .sn-swiper-spots-thumbs{
  height: auto !important;
  padding-bottom: 12px; /* viktig */
}

/* 4) Sørg for at slide og innhold kan være høyere enn bildet */
.sn-spots-carousel .sn-swiper-spots-thumbs .swiper-slide{
  height: auto !important;
  display: flex;           /* gjør at thumb-kortet kan “strekke” seg */
}

.sn-spots-carousel .sn-spot-thumb{
  height: auto;
  width: 100%;
}

/* Noen temaer setter fast høyde på .swiper / wrapper */
.sn-spots-carousel .swiper{
  height: auto !important;
}

/* =========================
   FIX: thumbs blir kuttet i bunn (shadow/tekst)
   ========================= */

/* 1) Swiper klipper som standard. Overstyr kun thumbs-swiperen */
#sn-spots-1 .sn-swiper-spots-thumbs.swiper{
  overflow: visible !important;          /* viktig */
}

/* 2) Sørg for at wrapper/slide ikke klipper (Swiper kan sette ting) */
#sn-spots-1 .sn-swiper-spots-thumbs .swiper-wrapper,
#sn-spots-1 .sn-swiper-spots-thumbs .swiper-slide{
  overflow: visible !important;
}

/* 3) Gi “luft” under hver slide så skygge/tekst ikke treffer bunnkanten */
#sn-spots-1 .sn-swiper-spots-thumbs .swiper-slide{
  padding-bottom: 8px;                   /* dette er ofte nøkkelen */
  box-sizing: border-box;
}

/* 4) Flytt clipping fra hele kortet til bare bildet */
#sn-spots-1 .sn-spot-thumb{
  overflow: visible !important;          /* så label + shadow ikke kuttes */
}

#sn-spots-1 .sn-spot-thumb img{
  border-radius: 12px;
  display: block;
}

/* 5) Litt mer line-height i label så “g/j/y/p/q” ikke klippes */
#sn-spots-1 .sn-spot-thumb-title{
  line-height: 1.25;
  padding-bottom: 2px;
}

.sn-spots-carousel { outline: 6px solid red !important; }
.sn-spots-carousel .sn-spots-hero { filter: grayscale(100%) !important; }