/* Import fonts: Playfair Display (for headings) and Open Sans (for body text) */

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

/* Reset all elements: remove default margin/padding and use border-box sizing */

:root {
  --gold: #c5a880;
  --black: #000;
  --white: #fff;
}

/* Define reusable theme color variables (gold, black, white) */

body,
html {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  background: #000000;
  color: #f0f0f0;
  overflow-x: hidden;
}

/* Set global styles: full height, dark background, light text, Open Sans font, prevent horizontal scroll */

/* Container for filter controls + grid layout */
.destination-filter {
  width: 100%;
  margin: 3rem auto 5rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Filters bar wrapper */
.filter-bar {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Style for filter dropdowns and buttons */
.filter-bar select,
.filter-bar button {
  background: transparent;
  border: 2px solid #f0f0f0;
  color: #f0f0f0;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 140px;
  text-align: center;
}

/* Hover effect: invert background and text color */
.filter-bar select:hover,
.filter-bar button:hover {
  background-color: #f0f0f0;
  color: #000000;
}

/* Grid layout for all destination cards */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  justify-items: center;
  /* REMOVE max-height + overflow */
}

/* Custom scrollbar styling for the destination grid */
.destination-grid::-webkit-scrollbar {
  width: 8px;
}

.destination-grid::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

/* Styling for individual destination cards with hover effect */
.destination-card {
  background: #111111;
  border: 2px solid #f0f0f0;
  width: 100%;
  max-width: 520px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(240, 240, 240, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
  transform: translateY(-8px);
}

/* Image styling inside destination cards */
.destination-card img {
  width: 100%;
  height: 180px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  object-fit: cover;
}

/* Text styling for destination card titles */
.destination-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #f0f0f0;
  padding: 1rem;
  text-align: center;
  flex-grow: 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .destination-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }

  .filter-bar {
    justify-content: space-around;
  }
}


/* Base styling for the top header section with background image */
.top-header {
  height: 65%;
  display: flex;
  align-items: flex-start;
  padding: 2rem 2rem 0 2rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Fade overlay at bottom of header for visual depth */
.top-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  /* adjust for stronger/weaker fade */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 100%);
  pointer-events: none;
}

/* Specific background images for different biomes */
.top-header.frost {
  background-image: url('biome-background/frost.webp');
}

.top-header.jungle {
  background-image: url('biome-background/jungle.webp');
}

.top-header.desert {
  background-image: url('biome-background/sunrise-desert.webp');
}

.top-header.waves {
  background-image: url('biome-background/waves.webp');
}


/* Logo Styling: container and hover effect for logo image */
.logo-container {
  display: flex;
  align-items: center;
  z-index: 70;
}

.logo-container a img {
  max-width: 220px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-container a img:hover {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

/* Navigation Styling: horizontal menu with spacing and hover effect */
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
  align-items: center;
  z-index: 2;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: rgb(240, 238, 238);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background-color: #ffffff;
  /* Highlight on hover */
  color: #000000;
}

/* Ensure logo and nav have proper stacking context */
.logo-container,
.nav-links {
  position: relative;
  z-index: 2;
}


/* Frost Biome Section: background container with luxury feel */
.frost-bg {
  background-color: #000;
  /* deep black for luxury feel */
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 4rem 2rem;
}

/* Hero Text Styling: large heading and supporting paragraph */
.frost-bg .hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.frost-bg .hero-text p {
  font-size: 1.3rem;
  color: #ccc;
  max-width: 600px;
  /* constrain width for readability */
}

/* Filter Bar Section: futuristic sharp container with subtle glow */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
  /* inner spacing */
  border: 2px solid #605c5c;
  /* sharp white border */
  border-radius: 4px;
  /* minimal rounding for sharp look */
  background: rgba(0, 0, 0, 0.2);
  /* subtle black overlay for depth */
  box-shadow: 0 0 15px rgba(240, 240, 240, 0.1);
  /* subtle glow for luxury feel */
  justify-content: center;
  align-items: center;
}

/* Filter Controls: select dropdowns and buttons styling */
.filter-bar select,
.filter-bar button {
  background: #111;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s all ease-in-out;
}

/* Hover effects: invert colors for interactivity */
.filter-bar select:hover,
.filter-bar button:hover {
  background: #fff;
  color: #000;
  border-color: #fcfbfb;
}

/* Destination Grid Section: sets up 2-column layout for destinations */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 per row */
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Individual Destination Cards: container, background, flex layout */
.destination-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Images inside cards: full width, fixed height, cover object-fit */
.destination-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-bottom: 2px solid #fff;
}

/* Card Titles */
.destination-card h3 {
  margin: 1rem 0;
  font-size: 1.4rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hover effect for luxury feel */
.destination-card:hover {
  transform: scale(1.02);
  /* subtle pop effect */
}

/* Decorative line under card titles */
.destination-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: #00aaff;
  /* subtle color accent */
  margin: 0.5rem auto 0 auto;
}

/* Abstract minimal shapes for design detail */
.destination-card::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid #fff;
  top: 10px;
  right: 10px;
  transform: rotate(45deg);
  opacity: 0.15;
  pointer-events: none;
}

/* Left vertical line for visual structure */
.destination-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #605c5c;
  /* subtle accent color */
  opacity: 1;
  pointer-events: none;
}

/* Footer Base: main styling for the footer container */
.site-footer {
  background: linear-gradient(180deg, #000 0%, #000000 100%);
  color: #eee;
  padding: 50px 20px 20px;
  font-family: 'playfair display', serif;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  /* ensures decorative shapes stay inside footer */
}

/* Abstract shapes: decorative elements inside footer */
.footer-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  /* shapes don't interfere with interaction */
}

/* Layering: ensures all main footer content sits above shapes */
.footer-container,
.footer-sponsors,
.footer-bottom {
  position: relative;
  z-index: 1;
}

/* Layout: grid structure for footer columns */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: left;
}

/* Logo & Tagline: styles for footer branding */
.footer-logo img {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-tagline {
  font-style: italic;
  color: #ccc;
  line-height: 1.6;
}

/* Links: styles for footer navigation links */
.footer-column h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Newsletter: input field and subscribe button styling */
.footer-newsletter {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.footer-newsletter input {
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  flex: 1;
  outline: none;
}

.footer-newsletter button {
  background: var(--gold);
  border: none;
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.footer-newsletter button:hover {
  background: var(--gold);
}

/* Social links: styling for footer social media icons/links */
.footer-social {
  margin-top: 10px;
}

.footer-social a {
  color: var(--gold);
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.7;
}

/* Sponsors: text and logos of footer sponsors */
.footer-sponsors {
  text-align: center;
  margin-bottom: 20px;
}

.footer-sponsors p {
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 10px;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.sponsor-logos img {
  max-height: 50px;
  transition: filter 0.3s;
}

/* Bottom credits: copyright and small footer info */
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 15px;
  text-align: center;
  font-size: 15px;
  color: #888;
}