/* Pradinė būsena – viskas paslėpta iki fono įkėlimo */
body {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Kai viskas paruošta */
body.loaded {
  opacity: 1;
}
/* ==========================
   BAZINIS STILIUS
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background: url("bg.jpg") center/cover no-repeat fixed;
  color: #fff;
  overflow-x: hidden;
}

/* ==========================
   HERO
========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
}

.title {
  font-size: 2.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 0 4px 14px rgba(0,0,0,0.85);
}

/* ==========================
   GRID
========================== */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  padding: 0 1rem 4rem;
}

/* ==========================
   KORTELĖ
========================== */
.tour-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  height: 200px;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  /* ↓ papildymai kad neliktų halo */
  will-change: transform;
  transform-origin: center center;
  contain: paint;
}

.tour-card::after {
  display: none;
}

.tour-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.92) saturate(0.9) blur(0.3px);
  will-change: transform, filter;
  border-radius: inherit;
  backface-visibility: hidden;
  transform-origin: center center;
  /* ↓ Ši eilutė visiškai pašalina baltą kraštą */
  mask-image: radial-gradient(circle at center, black 97%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 97%, transparent 100%);
}


.tour-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.55);
}

.tour-card:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1) blur(0);
}

.tour-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 80%);
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
}

.tour-info h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #f3f3f3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin: 0;
  transition: transform 0.35s ease;
}

.tour-card:hover .tour-info h2 {
  transform: scale(1.08);
}


/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .tours-grid {
    gap: 1.2rem;
  }

  .tour-card {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.6rem;
  }

  .tour-card {
    height: 160px;
  }

  .tour-info h2 {
    font-size: 1.05rem;
  }
}
