/* ===== Root Variables ===== */
:root {
  --primary-color: #0077cc;
  --secondary-color: #005999;
  --text-color: #333;
  --background: #f8f9fa;
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Body ===== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-color);
  background: var(--background);
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

/* Shadow when scroll */
header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Hover underline effect */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffdd57;
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: #ffdd57;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: url("../img/hero.jpg") center/cover no-repeat;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: #ffdd57;
  color: var(--secondary-color);
}

/* ===== Features Section ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.features article {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.features article:hover {
  transform: translateY(-5px);
}

/* ===== Footer ===== */
footer {
  background: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer a {
  color: #ffdd57;
}

/* ===== About Page ===== */
.content {
  padding: 2rem;
  text-align: center;
}

.content img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.content h2 {
  color: var(--primary-color);
  margin-top: 1rem;
}

/* ===== Destinations Page ===== */
.destinations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.destinations figure {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.destinations img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.destinations figcaption {
  padding: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

.destinations p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

/* ===== Itinerary Page ===== */
.itinerary {
  padding: 2rem;
  text-align: center;
}

.itinerary table {
  width: 100%;
  max-width: 700px;
  margin: 1rem auto;
  border-collapse: collapse;
}

.itinerary th,
.itinerary td {
  border: 1px solid #ccc;
  padding: 0.8rem;
}

.itinerary th {
  background: var(--primary-color);
  color: white;
}

/* ===== Gallery Page ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.gallery figcaption {
  text-align: center;
  padding-top: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* ===== Contact Page ===== */
.form-section {
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

fieldset {
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 1.5rem;
}

legend {
  font-weight: bold;
  color: var(--primary-color);
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input[type="submit"],
input[type="reset"] {
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background: #ffdd57;
  color: var(--secondary-color);
}

/* ===== Map Page ===== */
.map-section {
  padding: 2rem;
  text-align: center;
}

.map-section iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
}

/* ===== Dark Mode ===== */
body.dark-mode {
  --background: #121212;
  --text-color: #f1f1f1;
  --primary-color: #3399ff;
  --secondary-color: #1a73e8;
  background: var(--background);
  color: var(--text-color);
}

body.dark-mode header,
body.dark-mode footer {
  background: var(--secondary-color);
}

body.dark-mode .features article,
body.dark-mode .destinations figure,
body.dark-mode .gallery figure {
  background: #1e1e1e;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .destinations,
  .gallery {
    grid-template-columns: 1fr;
  }

  .logo img {
    width: 100px;
  }
}
