/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Generic container to centre content and limit width */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 1rem;
}

/* Simple typography adjustments */
h1, h2, h3 {
  margin-top: 0;
  color: #1f2933;
}

p {
  margin: 0 0 0.75rem 0;
}

/* Small helper text */
.small {
  font-size: 0.9rem;
  color: #64748b;
}

/* Header and footer using IDs */
#main-header,
#main-footer {
  background-color: #2E5A39;
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
}

/* Extra footer text styling */
.meta {
  font-size: 0.9rem;
}

/* Navigation (inside header) */
.site-header nav[aria-label="Primary"] ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0.5rem 0 0 0;
  justify-content: center;
}

.site-header nav[aria-label="Primary"] a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.site-header nav[aria-label="Primary"] a[aria-current="page"],
.site-header nav[aria-label="Primary"] a:hover {
  background: #56e268;
  border-color: #ffffff;
  color: #000000;
}

/* Hero / page headers */
.hero {
  text-align: center;
  margin: 1rem 0 2rem 0;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* If hero contains an image banner */
.hero img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Split layout used for page headers (e.g. Food & Culture, Gallery) */
.split {
  margin: 2rem 0;
}

/* Main content layout (per template) */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

.intro,
.benefits {
  max-width: 600px;
  text-align: center;
}

.benefits ul {
  list-style-type: square;
  padding-left: 1.5rem;
  text-align: left;
}

/* Grid + cards */
.grid {
  display: grid;
  gap: 1rem;
}

/* Responsive auto-fit grid for cards */
.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

.card p {
  margin-bottom: 0;
}

/* Global image styling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Gallery grid (Gallery page) */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.images-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.images-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.images-grid img:hover {
  transform: scale(1.03);
  cursor: pointer;
}

/* Embedded media (weather map on Tips page) */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
  margin: 1rem 0;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Form styling (Plan your trip page) */
.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font: inherit;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: none;
  background-color: #4f7a5a;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  justify-self: start;
}

.contact-form button:hover {
  background-color: #3e6247;
}

/* Responsive adjustments */
@media (min-width: 768px) {

  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
