/* ─── GLOBAL VARIABLES ─────────────────────────────── */
:root {
  --logo-red: #E63946;
  --logo-blue: #003580;
  --brand-font: 'Montserrat', sans-serif;
}

/* ─── GLOBAL RESETS ───────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--brand-font);
}

/* ─── HEADER ─────────────────────────────── */
/* Header now draws the blue divider as a border so nothing can sit "behind" it */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  border-bottom: 6px solid var(--logo-blue); /* divider line */
  z-index: 1000; /* base layer above content; menus will go higher */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  overflow: visible; /* never clip dropdowns */
}

.header-image {
  height: 100%;
  width: auto;
}

header a {
  display: block;
  height: 100%;
}

header a img.header-image {
  height: 100%;
  width: auto;
  display: block;
}

/* ─── NAVIGATION ─────────────────────────── */
nav {
  overflow: visible; /* allow menus to render outside */
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--logo-blue);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

nav a:hover,
nav a:focus-visible {
  color: var(--logo-red);
}

.dropdown {
  position: relative;
  z-index: 2000;      /* above header base */
  overflow: visible;  /* never clip children */
}

/* Hidden by default; shown via :hover or JS toggle */
.dropdown-content {
  display: none;
  position: absolute; /* desktop/tablet: anchored to parent */
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-width: 150px;
  max-width: 90vw;
  overflow-wrap: break-word;
  z-index: 3000;      /* ensure on top of everything */
  border-radius: 10px;
}

.dropdown-content li { display: block; }

.dropdown-content li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  white-space: nowrap;
}

.dropdown-content li a:hover {
  background: #f0f0f0;
}

/* Optional: pure CSS hover for desktop (keep JS toggle for mobile) */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-content { display: block; }
}

/* ─── MAIN CONTENT ───────────────────────── */
main {
  margin-top: 100px; /* matches fixed header height */
  padding: 20px;
  line-height: 1.5;
}

main img {
  display: block;
  width: 80%;
  max-width: 700px;
  height: auto;
  margin: 1.5rem auto;
}

/* ─── RESPONSIVE (PHONES) ────────────────── */
@media (max-width: 600px) {
  /* If a legacy divider element exists in your HTML, hide it on mobile.
     Ideally, remove it entirely since header now draws the line */
  .lodging-divider { display: none !important; }

  /* Place the dropdown fixed under the header so it can't overlap the page title */
  .dropdown-content {
    position: fixed;
    top: calc(100px + 8px);  /* header height + small gap */
    right: 12px;
    left: auto;
    max-width: min(90vw, 420px);
    max-height: 70vh;        /* scroll if long */
    overflow: auto;
    display: none;           /* still controlled by hover/JS */
  }

  .header-image {
    height: 100%;
    width: auto;
  }

  header a { height: 100%; }

  nav a {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    padding: 0.75rem 0;
  }

  main {
    margin-top: 100px; /* keep equal to header height on mobile */
    font-size: 0.9rem;
    padding: 10px;
    line-height: 1.4;
  }

  main img {
    width: 100%;
    max-width: 300px;
  }
}
