/* =========================================================
   FRONT PAGE – RESDESTINATIONER
   SEO-first / Premium layout
========================================================= */
/* =========================================================
   HERO – Premium Cinematic (Final Version)
========================================================= */

.front-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--color-bg);
}

/* =========================
   Background Image (IMG)
========================= */

.front-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;

  transform: scale(1);
  animation: heroZoom 25s ease-out forwards;
  will-change: transform;
}

/* Subtil cinematic zoom */
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* =========================
   Overlay (Gradient för mer djup)
========================= */

.front-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.45) 40%,
    rgba(0,0,0,.7) 100%
  );
  z-index: 2;
}

/* =========================
   Content
========================= */

.front-hero .container {
  position: relative;
  z-index: 3;

  opacity: 0;
  transform: translateY(20px);
  animation: heroTextFade 1.2s ease-out 0.3s forwards;
}

/* =========================
   Typography
========================= */

.front-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.front-hero p {
  font-size: 1.35rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: .95;
}

/* =========================
   Text Fade-in
========================= */

@keyframes heroTextFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Reduced Motion Support
========================= */

@media (prefers-reduced-motion: reduce) {
  .front-hero__bg,
  .front-hero .container {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

/* =========================================================
   WORLD SECTION – Refined Hybrid
========================================================= */

.front-world {
  background: var(--color-bg);
}

/* Rubrik */

.front-world h2 {
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.front-world .section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* =========================
   Grid
========================= */

.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

/* =========================
   WORLD MAP INSIDE SECTION
========================= */

.world-map-block {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(0,0,0,.06);
}

.world-map-block svg {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Cards
========================= */

.world-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .35s ease, box-shadow .35s ease;
}

.world-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Bild */

.world-card__image {
  height: 220px;
  overflow: hidden;
}

.world-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.world-card:hover img {
  transform: scale(1.08);
}

/* Content */

.world-card__content {
  padding: 2rem;
}

.world-card h3 {
  margin-bottom: .6rem;
  font-size: 1.5rem;
  letter-spacing: -0.3px;
}

.world-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Hela kortet klickbart */

.world-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   WORLD MAP – Premium Aligned
========================================================= */

.front-map {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f4f7fa 100%
  );
}

/* SVG responsiv */
.svg-map-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Kontinentfärger */
#europe { fill: #7CAFC2; }
#asia { fill: #D4A373; }
#africa { fill: #E4CDA1; }
#north_america { fill: #A2D2FF; }
#south_america { fill: #81B29A; }
#australia { fill: #F28482; }

/* Hover */
path.land {
  transition: all .2s ease;
}

path.land:hover {
  cursor: pointer;
  fill-opacity: 0.85;
}

a:hover path.land {
  stroke: rgba(0,0,0,.6);
  stroke-width: 1;
  fill-opacity: 0.9;
}

/* Ta bort blå highlight på mobil */
svg a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================
   THEMES
========================= */

.theme-card {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.theme-card a {
  display: block;
  height: 100%;
  position: relative;
}

.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.theme-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.theme-card:hover .theme-card__image {
  transform: scale(1.05);
}

.theme-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.2));
}

.theme-card__content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: var(--color-bg);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   GUIDES – 2 Large + 3 Small Layout (Clean Version)
========================================================= */

.guides-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

/* Large cards ska ligga i vänster kolumn */
.guide-card--large {
  grid-column: 1;
}

/* Small cards ska ligga i höger kolumn */
.guide-card--small {
  grid-column: 2;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

  .guides-layout {
    grid-template-columns: 1fr;
  }

  .guide-card--large,
  .guide-card--small {
    grid-column: auto;
  }

}

/* =========================
   CARD BASE
========================= */

.guide-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.guide-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* =========================
   IMAGE
========================= */

.guide-card__image {
  overflow: hidden;
}

.guide-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.guide-card:hover img {
  transform: scale(1.05);
}

/* =========================
   LARGE CARDS
========================= */

.guide-card--large .guide-card__image {
  height: 300px;
}

.guide-card--large h3 {
  font-size: 1.35rem;
}

/* =========================
   SMALL CARDS
========================= */

.guide-card--small .guide-card__image {
  height: 160px;
}

.guide-card--small h3 {
  font-size: 1rem;
}

/* =========================
   CONTENT
========================= */

.guide-card__content {
  padding: 1.5rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

  .guides-layout {
    grid-template-columns: 1fr;
  }

  .guide-card--large .guide-card__image {
    height: 260px;
  }

  .guide-card--small .guide-card__image {
    height: 200px;
  }

}


/* =========================
   CTA FILTER
========================= */

.front-cta-filter {
}

.cta-filter-card {
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-xxl);
  text-align: center;

  background: linear-gradient(135deg, #0f3d5e, #174e7c);
  color: var(--color-bg);

  box-shadow: var(--shadow-xxl);
}

.cta-filter-card h2 {
  margin-bottom: 1rem;
}

.cta-filter-card p {
  margin-bottom: 2rem;
  opacity: .9;
}


/* =========================
   SEO BLOCK
========================= */

.front-seo {
  background: var(--color-bg-alt);
}

.front-seo .container {
  margin: 0 auto;
}

.front-seo h2 {
  margin-top: 3rem;
  font-size: 1.9rem;
}

.front-seo h3 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.front-seo p {
  margin-bottom: 1.4rem;
  line-height: 1.75;
  color: var(--color-text);
}

.front-seo ul {
  margin: 1.2rem 0 1.8rem;
  padding-left: 1.2rem;
}

.front-seo a {
  color: #0f3d5e;
  font-weight: 500;
}


/* =========================
   NARROW SECTIONS
========================= */

.front-hero .container,
.front-seo .container,
.front-cta-filter .container {
  max-width: 880px;
}

/* =========================
   GLOBAL SECTION SPACING
========================= */

.front-page section {
  padding: var(--spacing-xl) 0;
}

@media (min-width: 1440px) {

  .container {
    max-width: 1320px;
  }

  .themes-grid {
    gap: 36px;
  }

  .world-grid {
    gap: 4rem;
  }

  .guides-layout {
    gap: 3rem;
  }

}

/* =========================================================
   FRONT PAGE – Section Headings Only
========================================================= */

body.home section > .container > h2,
body.front-page section > .container > h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 3.5rem;
  position: relative;
}

body.home section > .container > h2::after,
body.front-page section > .container > h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--color-primary);
  margin-top: 14px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  body.home section > .container > h2,
  body.front-page section > .container > h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1440px) {
  body.home section > .container > h2,
  body.front-page section > .container > h2 {
    font-size: 3rem;
    margin-bottom: 3.5rem;
  }
}

.front-page .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}