/* RESET */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

/* LOADER */
#page-loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  transition: opacity 0.8s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* HERO */

.video-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;

  filter: brightness(0.8);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
}

.fleet-section {
  background: url('img/DJI_0179.webp') center/cover no-repeat;
  background-attachment: fixed;
  padding: 6rem 1.5rem;
}

/* CRUISE CARDS (UPGRADED) */
.cruise-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cruise-card img {
  width: 100%;
  transition: transform 0.5s ease;
}

.cruise-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.cruise-card:hover img {
  transform: scale(1.08);
}

/* OVERLAY */
.overlay-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

/* TRIP GRID */
.trip-gallery-section {
  background: #f9fafb;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.trip-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.trip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trip-item:hover img {
  transform: scale(1.06);
}

.trip-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.trip-item.wide {
  grid-column: span 2;
}

/* OVERLAY */
.trip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 20px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* MOBILE */
@media (max-width: 768px) {
  .trip-grid {
    grid-template-columns: 1fr;
  }
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #ccc;
  border-radius: 999px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked+.slider {
  background-color: #3e8ed0;
}

.switch input:checked+.slider::before {
  transform: translateX(20px);
}

.switch-label {
  font-size: 0.95rem;
}

li {
  color: red;
}


/* SLIDER */
.slider-text {
  position: absolute;
  right: 0;
  bottom: 0
}

#slider .card-content {
  max-width: 50%;
}

#slider {
  overflow: hidden;
}

@media screen and (max-width: 1023px) {
  #slider .card-content {
    display: none;
  }
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}


.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  right: 0;
  top: 0;
}

.item-slide img {
  max-width: 1200px;
}

.caption-container {
  color: white;
}