/* Marilyn's RV Park Styles */

/* Import Fonts */
/* Self-hosted, Latin subset only.
 *
 * This was an @import of Google Fonts, which is the worst shape a font request
 * can take: the browser must fetch the HTML, then this stylesheet, then
 * Google's stylesheet, then the font files -- four round trips deep, across two
 * extra origins, before any text can render in the brand face. Serving them
 * from our own origin collapses that to one hop, and preloading (see the
 * layout) starts it during HTML parse rather than after CSS.
 *
 * Latin only: Google was offering 23 faces across cyrillic, greek and
 * vietnamese subsets that this site will never render.
 *
 * font-display: swap so text paints immediately in the fallback -- on a
 * text-LCP page the fallback paint IS the LCP, and blocking it on a font is how
 * a page reports 4s for content that was ready in 200ms. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pacifico-latin.woff2') format('woff2');
}

/* CSS Variables */
:root {
  --primary-color: #2B7C85;     /* Muted teal - Main brand color */
  --secondary-color: #87B6A7;   /* Sage green - Secondary elements */
  --accent-color: #F4C95D;      /* Warm yellow - Call to action elements */
  --dark-color: #34495E;        /* Deep blue-gray - Text and footer */
  --light-color: #F5F7FA;       /* Off-white - Backgrounds */
  --text-color: #2C3E50;        /* Rich dark blue-gray - Body text */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Layout */
.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

section {
  padding: 4rem 0;
}

/* Header */
header {
  background-color: var(--primary-color);
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: white;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Cards */
.card {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-primary:hover {
  background-color: #e9bc4e;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.btn-secondary:hover {
  background-color: #76a596;
  transform: translateY(-3px);
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

footer a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
}

textarea {
  height: 150px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Responsive Breakpoints */

/* Tablet */
@media (max-width: 999px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .navbar {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .navbar {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav li {
    margin: 0.5rem 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 4px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content,
.dropdown.show .dropdown-content {
    display: block;
}

.dropdown > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    margin-left: 5px;
}

/* Fallback for dropdown arrow if Font Awesome fails to load */
@supports not (font-family: "Font Awesome 6 Free") {
    .dropdown > a::after {
        content: "▼";
        font-size: 0.8em;
        margin-left: 5px;
        vertical-align: middle;
    }
}

@media screen and (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
        background-color: #f5f5f5;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
} 
/* ==========================================================================
   Added in the CMS port. Everything above is the delivered stylesheet, whose
   look the client approved; everything below fixes what it was missing.
   ========================================================================== */

/* Skip link — there was no way to bypass the nav by keyboard. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent-color);
  color: var(--dark-color);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Visible focus everywhere. The delivered CSS styled no focus state at all,
   so a keyboard user could not see where they were. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.preview-banner {
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  background: #34495E;
  color: #fff;
}
.preview-banner a { color: var(--accent-color); }

/* -------------------------------------------------------------- navigation */
/* The mobile menu _no-live/guides/navigation-header.md specified and the site
   never had. Below 900px the list collapses behind a toggle instead of
   wrapping into a stack of six items. */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.dropdown-toggle {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dropdown-toggle:hover { color: var(--accent-color); }
.dropdown-toggle .fa-chevron-down { font-size: 0.7em; }

/* aria-current stays for assistive tech, but the visual treatment is a quiet
   underline rather than the accent colour -- highlighting "Home" in yellow made
   it read as a warning rather than as the current page. */
nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  /* The stylesheet this inherits from sets flex-direction: column below 999px,
     which stacked the logo, the call button and the toggle onto three separate
     lines. The header is a single row with the menu unfolding beneath it. */
  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .logo { margin-right: auto; }
  .nav-call { margin-left: 0; margin-right: 0; }
  #site-nav {
    flex-basis: 100%;
    display: none;
  }
  #site-nav.is-open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  nav li { margin: 0; }
  nav a, .dropdown-toggle { display: block; width: 100%; padding: 0.85rem 0; }
  .dropdown-content { position: static; box-shadow: none; background: rgba(255,255,255,0.08); }
  .dropdown-content a { color: #fff; }
}

/* Hover-to-open is a mouse idiom; on touch it fires on tap and sticks. The
   toggle button drives it now, at every width. */
.dropdown-content { display: none; }
.dropdown.is-open .dropdown-content { display: block; }

/* ------------------------------------------------------------------ layout */
.container.narrow { max-width: 780px; }
.tint { background-color: var(--light-color); }
.muted { color: #6b7c8d; font-size: 0.92em; }
.rounded { border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.plain { list-style: none; padding: 0; }
.lede { font-size: 1.05rem; }
.price { font-size: 1.15rem; font-weight: 600; color: var(--primary-color); }

.cta {
  background-color: var(--primary-color);
  color: #fff;
}
.cta h2 { color: #fff; }

img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------- rates table */
/* Wide content scrolls in its own box rather than pushing the page sideways. */
.table-scroll { overflow-x: auto; margin-bottom: 2rem; }
.rates-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rates-table th, .rates-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}
.rates-table thead th { background: #f2f2f2; }
.rates-table tbody tr:nth-child(even) { background: #fafafa; }

/* -------------------------------------------------------------------- forms */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.req { color: #b3261e; }
.field-error { display: block; margin-top: 0.35rem; color: #b3261e; font-size: 0.875rem; font-weight: 600; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #b3261e;
  background: #fff8f8;
}

.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and screen readers are handled by aria-hidden on the wrapper. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------------------------------------- holding page */
body.holding {
  display: grid;
  place-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- page banner */
/* Inner pages. The old site wrote this inline on every page: a photograph at
   100px vertical padding under a 50% black overlay. It is NOT the 80vh hero --
   using the hero here is what rendered every inner page as a grey slab, because
   the overlay had no background image beneath it. */
.page-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-banner .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-banner h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
  margin-bottom: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------------- card links */
/* A card heading that happens to be a link must still look like a heading.
   Without this it renders as underlined browser-blue, which was the single most
   obvious difference from the old site. */
.card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus-visible {
  text-decoration: underline;
}

/* Contact details in a card are links for a reason (tap to call, tap to mail)
   but should read as text, not as browser-default anchors. */
.card p > a[href^="tel:"],
.card p > a[href^="mailto:"],
.quick-info a[href^="tel:"],
.quick-info a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
}

.card p > a[href^="tel:"]:hover,
.card p > a[href^="mailto:"]:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------- card feature list */
/* The old cards listed hookups and inclusions with an icon each. */
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.card-features li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.card-features i {
  color: var(--primary-color);
  width: 1.1em;
  flex: none;
}

/* A card is a column: the button sits at the bottom whatever the text above it,
   so a row of cards has its actions on one line. */
.grid .card,
.grid-2 .card {
  display: flex;
  flex-direction: column;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-img + h3 { margin-top: 1rem; }

/* ------------------------------------------------------------ section rhythm */
/* Consecutive sections need air between them. Without this a heading sits
   directly against the cards of the section above it. */
section + section { padding-top: 1rem; }

section > .container > h2 { margin-top: 0; }

.availability-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}

.mt-2 { margin-top: 2rem; }

/* A heading that follows a grid is starting a new block within the same
   section. The old site used a separate <section> per group, each with 4rem
   padding; rendering the groups in one loop collapsed that to nothing and left
   each heading jammed against the cards above it. */
.grid + h2,
.grid-2 + h2,
.table-scroll + h2 {
  margin-top: 4rem;
}

/* A trailing action under a grid needs air above it, or it reads as part of the
   last card rather than as the section's own call to action. */
.grid + .text-center { margin-top: 2.5rem; }

/* ------------------------------------------------------------- attraction cards */
.distance {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* The activity pills under each nearby attraction. */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  background: rgba(43, 124, 133, 0.12);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
}

.card h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--primary-color);
}

.lede { max-width: 780px; margin-left: auto; margin-right: auto; }

/* A full-width photograph introducing a section, as the store page uses. */
.feature-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
}

/* A single centred card, narrower than the grid it sits under. */
.card.callout {
  max-width: 640px;
  margin: 2rem auto 0;
  text-align: center;
}

.card.callout p:last-child { margin-bottom: 0; }

/* An icon leading a card heading needs a little separation from the text. */
.card h3 > .fas { margin-right: 0.5rem; }

/* Numbered directions inside a card need their markers back -- the global reset
   strips list padding, which leaves an <ol> with no visible numbers at all. */
.card ol {
  margin: 0 0 0 1.2rem;
  padding: 0;
}

.card ol li { margin-bottom: 0.4rem; }

.card ul.plain li { margin-bottom: 0.35rem; }

/* A card heading is left aligned even though h2 is centred globally, and it
   carries its icon inline. */
.card h3 { text-align: left; }
.card h3 > .fas,
.card h4 > .fas { color: var(--primary-color); margin-right: 0.5rem; }

/* The map is a fixed, sensible height rather than a 16:9 box that reserves half
   a screen on a wide viewport. */
.map-embed { padding-bottom: 0; height: 420px; }

/* ============================================================ UI corrections */

/* Standalone card icons were inheriting the body colour and rendering dark navy
   against teal headings. The old site set this inline on every single icon;
   doing it once here means a new card cannot be added without it. */
.card > .fas,
.card > .fab,
.card > .far {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

/* The Experience dropdown is a <button> among <a> siblings. Buttons do not
   inherit font metrics or line-height, so it sat a couple of pixels off the
   baseline of every other item in the row. */
nav ul {
  align-items: center;
}

nav ul > li {
  display: flex;
  align-items: center;
}

nav a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 0.5rem 0;
  margin: 0;
}

/* aria-current's underline must not shift the row either. */
nav a[aria-current="page"] { text-underline-offset: 6px; }

/* The footer credit was rendering at 180x70 -- far larger than the old site's,
   where only a height was set and the aspect ratio did the rest. */
.powered-by {
  width: auto;
  height: 44px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.powered-by:hover { opacity: 1; }

/* An action under the map needs separating from it. */
.map-embed + .text-center { margin-top: 2rem; }

/* -------------------------------------------------------- header call button */
/* Hidden on desktop, where the number is already in the footer and on the
   contact page; on a phone it is the fastest route to a booking. */
.nav-call {
  display: none;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  margin-left: auto;
  margin-right: 0.75rem;
  white-space: nowrap;
}

.nav-call:hover,
.nav-call:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-color);
}

@media (max-width: 900px) {
  .nav-call { display: inline-flex; }
}

/* Below ~420px the number itself is too wide beside the logo and the toggle;
   the icon alone still dials. */
@media (max-width: 420px) {
  .nav-call span { display: none; }
  .nav-call { padding: 0.5rem 0.75rem; }
}

/* The logo is Pacifico at 2rem, which is ~270px wide -- on a 390px phone that
   leaves no room for the call button and the menu toggle beside it, so the
   toggle wrapped to a second line. The navigation-header guide in _no-live
   specifies 1.6rem here for the same reason. */
@media (max-width: 900px) {
  .logo { font-size: 1.6rem; }
}

@media (max-width: 420px) {
  .logo { font-size: 1.35rem; }
  .navbar { gap: 0.4rem; }
}

/* ------------------------------------------------------------------- icons */
/* Inline SVG replacing the Font Awesome webfonts. Sized in em so an icon
   tracks the text beside it, exactly as the font-based glyphs did. */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex: none;
}

.icon-2x { width: 2em; height: 2em; }

/* The standalone card icons carried the brand colour and a little space below. */
.card > .icon-2x {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card h3 > .icon,
.card h4 > .icon { color: var(--primary-color); margin-right: 0.5rem; }

/* A social link with no brand glyph available carries its name instead. */
.social-text {
  font-size: 0.95rem;
  font-weight: 600;
  align-self: center;
}
