/* ── Kohr View Ranch — Shared Stylesheet ── */

:root {
  --cream: #f0efe8;
  --brown: #5a5c48;
  --dark-brown: #3d3e32;
  --tan: #b09b78;
  --sage: #6e8a72;
  --rust: #5b7a52;
  --gold: #8fa882;
  --white: #f7f8f5;
  --f-playfair: 'Playfair Display', serif;
  --f-josefin: 'Josefin Sans', sans-serif;
  --f-baskerville: 'Libre Baskerville', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark-brown);
  font-family: var(--f-baskerville);
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(240,239,232,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92,61,46,0.15);
  transition: all 0.3s;
}

.nav-brand {
  font-family: var(--f-playfair);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-brand span { color: var(--rust); font-style: italic; }

nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }

nav > ul > li > a {
  font-family: var(--f-josefin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s;
}

nav > ul > li > a:hover { color: var(--rust); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65em;
  vertical-align: middle;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.8rem;
  background: transparent;
  min-width: 170px;
  flex-direction: column;
  z-index: 200;
}

.dropdown-menu::before {
  content: '';
  display: block;
  background: rgba(240,239,232,0.97);
  border: 1px solid rgba(92,61,46,0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  position: absolute;
  inset: 0.8rem 0 0;
  z-index: -1;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: flex; }
.dropdown-menu li { list-style: none; }

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-family: var(--f-josefin);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid rgba(92,61,46,0.08);
  color: var(--brown);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu a:hover { background: var(--rust); color: var(--white); }

/* ── SHARED BUTTONS ── */
.btn-primary, .btn-outline {
  padding: 0.9rem 2.2rem;
  font-family: var(--f-josefin);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #f0efe8;
  transition: all 0.25s;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.btn-primary { background: #f0efe8; color: #2d3228; }
.btn-primary:hover { background: #2d3228; color: #f0efe8; border-color: #f0efe8; }
.btn-outline { background: rgba(0,0,0,0.3); color: #f0efe8; backdrop-filter: blur(4px); }
.btn-outline:hover { background: #f0efe8; color: #2d3228; }

.btn-dark {
  display: inline-block;
  background: var(--dark-brown);
  color: var(--cream);
  padding: 0.9rem 2.2rem;
  font-family: var(--f-josefin);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--dark-brown);
  transition: all 0.25s;
}

.btn-dark:hover { background: transparent; color: var(--dark-brown); }

/* ── SECTION BASE ── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--f-josefin);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--f-playfair);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark-brown);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.section-desc { font-size: 1rem; color: var(--brown); line-height: 1.9; max-width: 600px; }

.divider { width: 60px; height: 2px; background: var(--gold); margin: 1.2rem 0; }

/* ── PAGE HERO (animal pages) ── */
.page-hero {
  min-height: 0;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: 6rem 2rem 2.5rem;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45,50,40,0.3) 0%, rgba(45,50,40,0.6) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.page-hero-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease both;
}

.page-hero h1 {
  font-family: var(--f-playfair);
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: #f0efe8;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.page-hero h1 em { color: var(--gold); font-style: italic; }

.page-hero p {
  font-size: 1.05rem;
  color: rgba(240,239,232,0.88);
  max-width: 520px;
  line-height: 1.8;
  font-style: italic;
  animation: fadeUp 0.7s 0.2s ease both;
  margin-bottom: 1.8rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-josefin);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,239,232,0.7);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
  animation: fadeUp 0.7s ease both;
}

.back-link:hover { color: var(--gold); }

/* ── LISTINGS GRID ── */
.listings-section { background: var(--white); }

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

.listing-card {
  background: var(--cream);
  border: 1px solid rgba(92,61,46,0.12);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(92,61,46,0.12);
}

.listing-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.listing-body { padding: 1.6rem; }

.listing-badge {
  display: inline-block;
  font-family: var(--f-josefin);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.listing-body h3 {
  font-family: var(--f-playfair);
  font-size: 1.35rem;
  color: var(--dark-brown);
  margin-bottom: 0.6rem;
}

.listing-body p { font-size: 0.9rem; color: var(--brown); line-height: 1.8; margin-bottom: 1rem; }

.listing-price {
  font-family: var(--f-josefin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ── INFO SECTION ── */
.info-section { background: var(--cream); }

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

.info-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(92,61,46,0.1);
}

.info-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

.info-card h4 {
  font-family: var(--f-josefin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-brown);
  margin-bottom: 0.5rem;
}

.info-card p { font-size: 0.9rem; color: var(--brown); line-height: 1.8; }

/* ── CTA BAND ── */
.cta-band {
  background: #2d3228;
  color: var(--cream);
  text-align: center;
  padding: 5rem 2rem;
}

.cta-band h2 {
  font-family: var(--f-playfair);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.cta-band .btn-cta {
  display: inline-block;
  background: var(--gold);
  color: #2d3228;
  padding: 0.9rem 2.5rem;
  font-family: var(--f-josefin);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.25s;
}

.cta-band .btn-cta:hover { background: transparent; color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: #2d3228;
  color: rgba(245,240,232,0.5);
  text-align: center;
  padding: 2.5rem;
  font-family: var(--f-josefin);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer strong { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .listings-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.2rem; }
  nav > ul > li > a { font-size: 0.68rem; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ── FEATURED ANIMAL CARD (shared across sub-pages) ── */
.featured-section { background: var(--white); padding: 4rem 2rem 2.5rem; }

.featured-section .container { max-width: 1080px; margin: 0 auto; }

.featured-section .section-label {
  font-family: var(--f-josefin);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.6rem;
}

.featured-section .section-title {
  font-family: var(--f-playfair);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 1rem;
}

.featured-section .section-title em { font-style: italic; color: var(--sage); }

.featured-section .divider {
  width: 60px;
  height: 2px;
  background: var(--tan);
  margin: 0 0 1.2rem;
}

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

.featured-card {
  background: var(--cream);
  border: 1px solid rgba(60,40,30,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(45,40,28,0.18); }

.featured-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #d8d0c0, #c0b8a4);
}
.featured-photo {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.featured-photo-wrap:hover .featured-photo { transform: scale(1.04); }

.featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(20,15,8,0.88) 0%, rgba(20,15,8,0.45) 55%, transparent 100%);
  color: #fff;
  pointer-events: none;
}
.featured-name {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: #fff8e1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
  margin-bottom: 0.15rem;
}
.featured-type {
  font-family: var(--f-josefin);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

.featured-expand {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.featured-expand:hover { background: rgba(0,0,0,0.78); transform: scale(1.08); }

.featured-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 1rem 0;
  flex-wrap: wrap;
}
.featured-thumb {
  width: 50px; height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  background: #d4c8b4;
}
.featured-thumb:hover { opacity: 0.85; }
.featured-thumb.active { opacity: 1; border-color: var(--tan); }

.featured-meta { padding: 1rem 1.2rem 1.4rem; }
.featured-price {
  font-family: var(--f-josefin);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── LIGHTBOX (shared) ── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,15,8,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 92vw; max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  width: 48px; height: 48px;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.28); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.88);
  font-family: var(--f-josefin);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .featured-name { font-size: 2rem; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-prev  { left: 0.8rem; }
  .lightbox-next  { right: 0.8rem; }
}

/* ── Outline icon system ── */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg { width: 2.4em; height: 2.4em; stroke-width: 1.4; }
.icon-md { width: 1.6em; height: 1.6em; }

/* Page hero icons (large) */
.page-hero-emoji .icon { width: 4rem; height: 4rem; stroke-width: 1.3; }

/* Listing card emoji-spot icons (large, centered) */
.listing-img .icon { width: 4rem; height: 4rem; stroke-width: 1.3; opacity: 0.6; }

/* Nav dropdown icons */
.dropdown-menu a .icon { width: 1.05em; height: 1.05em; margin-right: 0.3em; opacity: 0.7; }

/* RV / amenity feature icons (homepage rv-feature, rv-feature-card, info cards) */
.rv-icon .icon, .rv-feature-icon .icon, .info-icon .icon, .why-icon .icon, .extra-icon .icon, .c-icon .icon {
  width: 2.2rem;
  height: 2.2rem;
  stroke-width: 1.4;
}

/* Animal-card emoji area */
.animal-img .icon { width: 4rem; height: 4rem; stroke-width: 1.3; opacity: 0.55; }

/* ── Animal cutout images (transparent PNGs used in place of icons) ── */

/* Inline cutout in the H1 of an animal sub-page hero */
.hero-icon-inline {
  display: inline-block;
  vertical-align: -0.18em;
  height: 0.95em;
  width: auto;
  margin-right: 0.25em;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.animal-cutout {
  display: block;
  max-height: 170px;
  max-width: 78%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(60,40,30,0.18));
}

/* Goat photo cutout used in place of icon-goat.
   Sized per context so it works at any scale. */
.goat-mini {
  display: inline-block;
  vertical-align: -0.2em;
  width: auto;
  height: 1.05em;
  margin-right: 0.3em;
}
.dropdown-menu a .goat-mini { height: 1.05em; opacity: 0.9; }
.animal-tab .goat-mini { height: 1.05em; }
.listing-img .goat-mini {
  max-height: 150px;
  max-width: 70%;
  width: auto;
  height: auto;
  margin: auto;
  filter: drop-shadow(0 6px 14px rgba(60,40,30,0.2));
}
.gallery-placeholder .goat-mini { height: 3.5rem; max-height: 3.5rem; max-width: 80%; }

/* Inline SVG icon next to a page-hero h1 (horses, dogs, chickens) */
.hero-inline-svg {
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.3em;
  vertical-align: -0.05em;
  stroke-width: 1.4;
  opacity: 0.92;
}

/* Hero icon AFTER the headline + subtitle (animal sub-pages) */
.hero-icon-after {
  display: block;
  margin: 1.4rem 0 0;
  width: auto;
  height: 9rem;
  fill: none;
  stroke: rgba(240, 239, 232, 0.75);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
  animation: fadeUp 0.7s 0.25s ease both;
}
img.hero-icon-after {
  /* The buck cutout — keep a softer drop shadow, no stroke */
  stroke: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}
@media (max-width: 600px) {
  .hero-icon-after { height: 6.5rem; }
}

/* Tighten hero spacing so the block isn't unnecessarily tall */
.page-hero p { margin-bottom: 0; }
.page-hero h1 { margin-bottom: 0.6rem; }
.back-link { margin-bottom: 1.2rem; }
