/* Local Living - Kauppinen
   Swedish Lapland Cabin & Activities */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* Colors */
  --cream: #F5F0E6;
  --cream-dark: #EBE4D6;
  --charcoal: #1A1A1A;
  --black: #000000;
  --white: #FFFFFF;
  --red: #C4463A;
  --red-dark: #A63A30;
  --muted: #8B8680;
  --warm-gray: #6B6560;

  /* Typography */
  --font-handwritten: 'Caveat', cursive;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: var(--white);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 240, 230, 0.95);
  backdrop-filter: blur(10px);
}

.nav__logo {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--duration) var(--ease-out);
}

.nav__link:hover {
  color: var(--red);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width var(--duration) var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile Nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
}

/* Hamburgarmeny — öppet tillstånd */
.nav__hamburger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__links--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(245, 240, 230, 0.98);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  gap: var(--space-md);
  z-index: 999;
  border-top: 1px solid var(--cream-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  background: var(--cream);
  overflow: hidden;
  z-index: 1;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__background::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 25%,
    rgba(0, 0, 0, 0.1) 45%,
    transparent 60%
  );
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.hero__content > * {
  pointer-events: auto;
}

.hero__tagline {
  position: absolute;
  top: 100px;
  left: var(--space-lg);
  text-align: left;
  max-width: 420px;
}

.hero__tagline p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6),
               2px 2px 8px rgba(0, 0, 0, 0.4),
               0 0 40px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero__handwritten {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__arrow {
  display: inline-block;
  transform: rotate(45deg);
}

/* LOCAL ROOMS Card */
.rooms-card {
  position: absolute;
  right: var(--space-md);
  bottom: 15%;
  width: 340px;
  background: rgba(200, 180, 160, 0.9);
  backdrop-filter: blur(8px);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.rooms-card__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  color: var(--charcoal);
}

.rooms-card__subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.rooms-card__text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--charcoal);
  opacity: 0.85;
  margin-bottom: var(--space-md);
}

.rooms-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.rooms-card__rope {
  width: 80px;
  height: auto;
  opacity: 0.7;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--charcoal);
  z-index: 100;
  cursor: pointer;
}

.scroll-indicator__text {
  font-family: var(--font-handwritten);
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border: 2px solid var(--charcoal);
  background: var(--white);
}

.scroll-indicator__arrow {
  font-size: 1.5rem;
}

.scroll-indicator:hover .scroll-indicator__text {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

@media (max-width: 900px) {
  .rooms-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 350px;
    margin: var(--space-lg) auto;
    background: rgba(200, 180, 160, 0.95);
  }

  .rooms-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.btn:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--white {
  background: var(--white);
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn--white:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--outline-white {
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* ===== LOCAL ACTIVITIES SECTION ===== */
.activities {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  z-index: 10;
}

.activities__fullscreen {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.activities__image {
  width: 100%;
  height: auto;
  display: block;
  /* Parallax effect */
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Title at top */
.activities__title {
  position: absolute;
  top: var(--space-lg);
  left: 47%;
  transform: translateX(-50%);
  font-family: var(--font-handwritten);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--white);
  text-align: center;
  z-index: 10;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Booking button positioned above snowmobile windshield */
.activities__book-btn {
  position: absolute;
  top: 63%;
  left: 47%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  z-index: 10;
}

.activities__book-label {
  font-family: var(--font-handwritten);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.activities__book-btn .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  transition: all var(--duration) var(--ease-out);
}

.activities__book-btn:hover .btn {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

/* Clickable area over the MORE text in the image */
.activities__more-link {
  position: absolute;
  bottom: 8%;
  left: 47%;
  transform: translateX(-50%);
  width: 180px;
  height: 70px;
  z-index: 10;
  cursor: pointer;
  border-radius: 4px;
  transition: box-shadow var(--duration) var(--ease-out);
}

.activities__more-link:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
              0 0 40px rgba(255, 255, 255, 0.3);
}

/* ===== OTHER SERVICES SECTION (SKIING) ===== */
.other-services {
  position: relative;
  background: var(--cream);
  color: var(--charcoal);
  overflow: hidden;
  z-index: 20;
}

.other-services__wrapper {
  position: relative;
  width: 100%;
}

/* Background image - full width */
.other-services__bg-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Video area - positioned over the right side (photo portion) */
.other-services__video-area {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.other-services__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

/* Hover effect - show video */
.other-services__video-area:hover .other-services__video {
  opacity: 1;
}

/* Left content overlay - fully opaque to hide image text */
.other-services__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}

.other-services__title {
  font-family: var(--font-handwritten);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.other-services__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.other-services__option {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.other-services__option-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.other-services__option-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--warm-gray);
  max-width: 280px;
}

.other-services__option .btn {
  align-self: flex-start;
  margin-top: var(--space-xs);
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .other-services__wrapper {
    display: flex;
    flex-direction: column;
  }

  .other-services__bg-image {
    display: none;
  }

  .other-services__content {
    position: relative;
    width: 100%;
    height: auto;
    padding: var(--space-lg) var(--space-md);
    order: 2;
  }

  .other-services__video-area {
    position: relative;
    width: 100%;
    height: 50vh;
    order: 1;
    background: var(--cream);
  }

  .other-services__video {
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .other-services__title {
    margin-bottom: var(--space-md);
  }

  .other-services__option-text {
    max-width: 100%;
  }
}

/* ===== ROOMS/BOOKING PAGE ===== */
.rooms-hero {
  width: 100%;
  height: 50vh;
  min-height: 350px;
  overflow: hidden;
}

.rooms-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.rooms-details {
  padding: var(--space-lg) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
}

.rooms-info__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.rooms-info__amenities {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.rooms-info__amenity {
  padding: var(--space-xs) 0;
  font-size: 0.95rem;
  color: var(--charcoal);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.rooms-info__amenity::before {
  content: '•';
  color: var(--red);
}

@media (max-width: 900px) {
  .rooms-details {
    grid-template-columns: 1fr;
  }
}

/* ===== CALENDAR ===== */
.calendar {
  background: var(--white);
  padding: var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--cream-dark);
}

.calendar__month {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.calendar__nav {
  display: flex;
  gap: var(--space-xs);
}

.calendar__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--charcoal);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.calendar__btn:hover {
  background: var(--charcoal);
  color: var(--white);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--space-xs);
  text-align: center;
}

.calendar__weekday {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--space-xs);
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: none;
  background: var(--cream);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  padding: 4px;
}

.calendar__day:hover:not(.calendar__day--disabled):not(.calendar__day--empty) {
  background: var(--charcoal);
  color: var(--white);
}

.calendar__day--disabled {
  color: var(--muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar__day--booked {
  background: var(--red);
  color: var(--white);
  opacity: 0.7;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar__day--booked .calendar__day-price {
  display: none;
}

.calendar__day--selected {
  background: var(--red) !important;
  color: var(--white) !important;
}

.calendar__day--in-range {
  background: var(--red) !important;
  color: var(--white) !important;
}

.calendar__day--empty {
  background: transparent;
  cursor: default;
}

.calendar__day-price {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 2px;
}

.calendar__day:hover .calendar__day-price,
.calendar__day--selected .calendar__day-price {
  color: inherit;
  opacity: 0.8;
}

.calendar__loading {
  text-align: center;
  padding: var(--space-sm);
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.calendar__loading.hidden {
  display: none;
}

.calendar__legend {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--cream-dark);
}

.calendar__legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.calendar__legend-color {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.calendar__legend-color--booked {
  background: var(--red);
  opacity: 0.7;
}

.calendar__legend-color--selected {
  background: var(--red);
}

.calendar__legend-text {
  font-size: 0.75rem;
  color: var(--muted);
}

.calendar__total {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar__total-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.calendar__total-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.calendar__book-btn {
  width: 100%;
  margin-top: var(--space-md);
}

/* ===== OTHER SERVICES SECTION ===== */
.services {
  background: var(--cream-dark);
  padding: var(--space-xl) var(--space-md);
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: var(--space-md);
  text-align: center;
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.service-card__text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-xl) var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
  text-align: center;
}

.about__text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--warm-gray);
  text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-xl) var(--space-md);
}

.contact__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.contact__item {
  text-align: center;
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.contact__value {
  font-size: 1rem;
}

.contact__value a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.contact__value a:hover {
  color: var(--red);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: var(--space-md);
  text-align: center;
}

.footer__text {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ===== SNOWMOBILE ANIMATION ===== */
.snowmobile-animation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.snowmobile-animation.active {
  display: flex;
}

/* Snow canvas */
.snowmobile-animation__snow {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease-in;
}

.snowmobile-animation.active .snowmobile-animation__snow {
  opacity: 1;
}

/* Frame wrappers for Ken Burns effect */
.snowmobile-animation__frame-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.snowmobile-animation__frame-wrapper.visible {
  opacity: 1;
}

/* First frame appears instantly for seamless transition from homepage */
.snowmobile-animation__frame-wrapper.instant {
  transition: none;
  opacity: 1;
}

/* After initial appearance, restore transitions for smooth crossfades */
.snowmobile-animation__frame-wrapper.instant.fade-enabled {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.snowmobile-animation__frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

/* Gradient overlay to blend edges into black */
.snowmobile-animation__frame-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.95) 8%,
      rgba(0, 0, 0, 0.7) 15%,
      rgba(0, 0, 0, 0.3) 25%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0) 65%,
      rgba(0, 0, 0, 0.3) 75%,
      rgba(0, 0, 0, 0.7) 85%,
      rgba(0, 0, 0, 0.95) 92%,
      rgba(0, 0, 0, 1) 100%
    );
}

.snowmobile-animation__frame-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.8) 5%,
      rgba(0, 0, 0, 0.3) 15%,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 0) 75%,
      rgba(0, 0, 0, 0.3) 85%,
      rgba(0, 0, 0, 0.8) 95%,
      rgba(0, 0, 0, 1) 100%
    );
}

/* Third frame - subtle gradients only */
#animFrame3::before,
#animFrame3::after {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0) 20%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, 0.6) 100%
    );
}

/* Subtle Ken Burns - very gentle movement */
#animFrame1.visible .snowmobile-animation__frame {
  animation: kenBurns1 3s ease-out forwards;
}

#animFrame2.visible .snowmobile-animation__frame {
  animation: kenBurns2 3s ease-out forwards;
}

#animFrame3.visible .snowmobile-animation__frame {
  animation: kenBurns3 3.5s ease-out forwards;
}

@keyframes kenBurns1 {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes kenBurns2 {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

@keyframes kenBurns3 {
  from {
    transform: scale(1);
    filter: brightness(1);
  }
  to {
    transform: scale(1.04);
    filter: brightness(0.6);
  }
}

/* Cinematic vignette */
.snowmobile-animation__vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

.snowmobile-animation.active .snowmobile-animation__vignette {
  opacity: 1;
}

/* Subtle scanlines for cinematic effect */
.snowmobile-animation__scanlines {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0;
  transition: opacity 2s ease-in;
}

.snowmobile-animation.active .snowmobile-animation__scanlines {
  opacity: 0.5;
}

/* Progress bar */
.snowmobile-animation__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 25;
}

.snowmobile-animation__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Fade overlay */
.snowmobile-animation__fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 30;
  pointer-events: none;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.snowmobile-animation__fade.fade-in {
  opacity: 1;
}

/* ===== MOBILANPASSNINGAR ===== */

/* Hero-text och tagline */
@media (max-width: 768px) {
  /* Dölj tagline på mobil — texten finns redan i rooms-kortet */
  .hero__tagline {
    display: none;
  }

  /* Justera hero content padding */
  .hero__content {
    padding: var(--space-sm);
    justify-content: flex-end;
    padding-bottom: var(--space-xl);
  }

  /* Rooms-kort — full bredd på mobil */
  .rooms-card {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Activities — centrera absoluta element */
  .activities__title {
    left: 50%;
    top: var(--space-md);
    width: 90%;
    text-align: center;
  }

  .activities__book-btn {
    left: 50%;
    top: 55%;
  }

  .activities__more-link {
    left: 50%;
  }

  /* Bokningsformuläret — bryt tvåkolumnslayout */
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Bokningssummering — minska padding */
  .booking-page__header {
    padding: var(--space-lg) var(--space-sm) var(--space-md);
  }

  .booking-form__section {
    padding: var(--space-md) var(--space-sm);
  }

  /* Kalender — något mindre text på riktigt små skärmar */
  .calendar__day {
    font-size: 0.75rem;
  }

  .calendar__day-price {
    font-size: 0.5rem;
  }
}
