/* ==========================================================================
   Sunview RV Park — Mountain theme design system
   Primary: deep pine green · Secondary: warm sand · Background: cream
   ========================================================================== */

:root {
  --pine: #1f3d2b;
  --pine-dark: #152a1d;
  --pine-light: #2f5a40;
  --sand: #c8a97a;
  --sand-light: #e7d9bf;
  --cream: #faf6ee;
  --cream-deep: #f1e9da;
  --charcoal: #2b2b2b;
  --gray: #5c5c5c;
  --white: #ffffff;
  --status-available: #3a7d44;
  --status-occupied: #8c3a32;
  --status-reserved: #c98f1b;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(31, 61, 43, 0.12);
  --shadow-lg: 0 12px 32px rgba(31, 61, 43, 0.18);
  --font-serif: Georgia, "Times New Roman", "Playfair Display", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--pine);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--pine-light); }
a:hover { color: var(--pine); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section-alt { background: var(--cream-deep); }

.lead {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 46rem;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--pine);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pine);
  color: var(--white);
}
.btn-primary:hover { background: var(--pine-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--pine);
}
.btn-outline:hover { background: var(--pine); color: var(--white); }

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--pine);
}
.btn-light:hover { background: var(--sand-light); border-color: var(--sand-light); color: var(--pine-dark); }

.btn-outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--pine); }

.btn-small { padding: 0.45rem 1.1rem; font-size: 0.92rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.btn-row.center { justify-content: center; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pine);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand span { color: var(--sand); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sand); }

.site-nav a.btn {
  color: var(--white);
  border-color: var(--sand);
  background: transparent;
}
.site-nav a.btn:hover { background: var(--sand); color: var(--pine-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .site-nav { gap: 0.8rem; font-size: 0.9rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--pine-dark);
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 1.25rem; font-size: 1.05rem; }
  .site-nav a.btn { margin: 0.6rem 1.25rem 0; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #8fa8b8 0%, #b9c4bf 34%, #d9cdb4 62%, #1f3d2b 100%);
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 5.5rem 1.25rem 10rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-shadow: 0 2px 14px rgba(21, 42, 29, 0.55);
}

.hero .tagline {
  font-size: 1.25rem;
  max-width: 40rem;
  margin: 0 auto 0.5rem;
  text-shadow: 0 1px 8px rgba(21, 42, 29, 0.5);
}

.hero .military-note {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.hero .hero-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 58%;
  z-index: 1;
  display: block;
}

.hero .btn-row { justify-content: center; margin-top: 1.8rem; }

/* Smaller banner for interior pages */
.page-banner {
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-light) 70%, #4a7256 100%);
  color: var(--white);
  padding: 3.2rem 0;
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 0.3rem; }
.page-banner p { color: var(--sand-light); max-width: 44rem; margin: 0 auto; }

/* ---------- Cards & grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.8rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Availability / lot map ---------- */

.lot-summary {
  display: inline-block;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  color: var(--pine);
  margin: 1rem 0 1.5rem;
}

.lot-map {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.lot-row-label {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--pine);
  font-size: 1.05rem;
  margin: 1.1rem 0 0.5rem;
}
.lot-row-label:first-child { margin-top: 0; }

.lot-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}

.lot {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  cursor: default;
}

.lot-available { background: var(--status-available); }
.lot-occupied { background: var(--status-occupied); }
.lot-reserved { background: var(--status-reserved); }

.lot.interactive { cursor: pointer; }
.lot.interactive:hover { filter: brightness(1.12); }
.lot.interactive:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
}

.lot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--cream-deep);
  font-size: 0.95rem;
}
.lot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.lot-legend .swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}
.swatch-available { background: var(--status-available); }
.swatch-occupied { background: var(--status-occupied); }
.swatch-reserved { background: var(--status-reserved); }

/* ---------- Rates ---------- */

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}
.rate-table th, .rate-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-deep);
}
.rate-table th {
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
}
.rate-table tr:last-child td { border-bottom: none; }
.rate-note {
  font-size: 0.92rem;
  color: var(--gray);
  margin-top: 0.8rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--status-available);
  font-weight: 700;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.gallery-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery-tile svg,
.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-tile img {
  object-fit: cover;
}
.gallery-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(transparent, rgba(21, 42, 29, 0.8));
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
}

.video-slot {
  margin-top: 2.5rem;
  border: 2px dashed var(--sand);
  border-radius: var(--radius);
  background: var(--cream-deep);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--gray);
}
.video-slot strong { color: var(--pine); display: block; margin-bottom: 0.4rem; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 2rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.6rem;
  margin-bottom: 1rem;
}
.faq-item h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.faq-item p { margin-bottom: 0; color: var(--gray); }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pine);
  margin-bottom: 0.3rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfc4ae;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--pine-light);
  border-color: var(--pine-light);
}
textarea { min-height: 120px; resize: vertical; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  display: none;
}
.form-status.success {
  display: block;
  background: #e4f2e6;
  border: 1px solid var(--status-available);
  color: var(--pine-dark);
}
.form-status.error {
  display: block;
  background: #f7e6e4;
  border: 1px solid var(--status-occupied);
  color: var(--status-occupied);
}

.form-alt {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--gray);
}

/* ---------- Contact ---------- */

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.contact-callout {
  background: var(--pine);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
}
.contact-callout h3 { color: var(--white); }
.contact-callout .phone-big {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--sand);
  text-decoration: none;
  margin: 0.4rem 0 1rem;
}
.contact-callout .phone-big:hover { color: var(--white); }

/* ---------- Admin ---------- */

.admin-banner {
  background: #fff7e0;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0 1.5rem;
}

.admin-count {
  font-weight: 700;
  color: var(--pine);
  font-size: 1.05rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--pine);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--sand-light); max-width: 40rem; margin: 0 auto; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine-dark);
  color: var(--cream);
  padding: 2.8rem 0 1.6rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  color: var(--sand);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
}
.footer-nav li { margin-bottom: 0.35rem; break-inside: avoid; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.7);
  text-align: center;
}

/* ---------- Utilities ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pine-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 2.5rem 0; }
  .hero .hero-content { padding: 3.5rem 1.25rem 8rem; }
}
