/* ==========================================================================
   Bentonville Lodging Co - design tokens
   Palette:
     --stone     #EDE7DA  page background, warm stone (not cream/#F4F1EA)
     --ink       #2A2620  primary text
     --pine      #1E3226  header/footer/dark sections
     --pine-2    #2A4535  pine, one step lighter (hovers on dark)
     --clay      #B06B2C  single accent - CTAs, active states, links on dark
     --creek     #3E5C68  secondary accent - badges, quiet links on light
     --line      #D9D2C2  hairline borders/dividers
     --paper     #FBF9F4  card/surface background, lighter than page bg
   ========================================================================== */

/* Fonts are loaded via <link> tags in each page's <head> instead of
   @import here - @import is render-blocking and was likely delaying
   layout enough to affect third-party scripts (like the Guesty
   widget) that measure element sizes on load. */

:root {
  --stone: #ede7da;
  --ink: #2a2620;
  --pine: #1e3226;
  --pine-2: #2a4535;
  --clay: #b06b2c;
  --clay-dark: #8f551f;
  --creek: #3e5c68;
  --line: #d9d2c2;
  --paper: #fbf9f4;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", -apple-system, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--pine);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }

.lede {
  font-size: 1.15rem;
  color: #4a453c;
  max-width: 54ch;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Homepage hero: a real property photo sits underneath, faint, with a
   heavy pine wash layered on top so it reads as texture rather than
   competing with the headline. */
.hero-photo {
  position: relative;
  background: var(--pine);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://assets.guesty.com/image/upload/w_1800,q_auto,f_auto/v1753821175/production/64dce90d2c2f9ae2069eb6fc/ss0zm9qbl1ptp1fyaxfl.jpg");
  background-size: cover;
  background-position: center 40%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 39, 30, 0.88) 0%, rgba(23, 39, 30, 0.94) 100%);
}
.hero-photo > .wrap {
  position: relative;
  z-index: 1;
}
.topo-bg {
  background-color: var(--pine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23335444' stroke-width='1' opacity='0.6'%3E%3Cpath d='M-20 60 C 80 20, 160 100, 260 40 S 420 60, 460 20'/%3E%3Cpath d='M-20 120 C 80 80, 160 160, 260 100 S 420 120, 460 80'/%3E%3Cpath d='M-20 180 C 80 140, 160 220, 260 160 S 420 180, 460 140'/%3E%3Cpath d='M-20 240 C 80 200, 160 280, 260 220 S 420 240, 460 200'/%3E%3Cpath d='M-20 300 C 80 260, 160 340, 260 280 S 420 300, 460 260'/%3E%3Cpath d='M-20 360 C 80 320, 160 400, 260 340 S 420 360, 460 320'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 480px auto;
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--clay);
  color: var(--paper);
}
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-ghost.on-light:hover { background: rgba(30,50,38,0.06); }

/* ---------------------------- Nav ---------------------------- */
.site-header {
  background: var(--pine);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark-icon {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.wordmark-text {
  display: block;
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: #b7c4ba;
  letter-spacing: 0.08em;
  text-transform: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}
.nav-links a {
  text-decoration: none;
  color: #d9e0da;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--clay);
}
.nav-cta {
  background: var(--clay);
  color: var(--paper) !important;
  padding: 0.55em 1.1em;
  border-radius: var(--radius);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pine);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------------------------- Hero ---------------------------- */
.hero {
  color: var(--paper);
  padding: 96px 0 72px;
}
.hero .eyebrow {
  color: #9fb3a5;
  font-size: 0.95rem;
  margin-bottom: 1em;
}
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero .lede { color: #d9e0da; }
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 1.6em;
  flex-wrap: wrap;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
}
.hero-logo {
  height: 150px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.92;
}
@media (max-width: 880px) {
  .hero-logo { height: 110px; }
}
@media (max-width: 640px) {
  .hero-top { flex-wrap: wrap; gap: 20px; }
  .hero-logo { height: 90px; order: -1; }
}

/* --------------------------- Search bar (custom, ours) --------------------------- */
.custom-search {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 44px;
}
.cs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 160px;
  min-width: 140px;
}
.cs-field-narrow {
  flex: 0 1 90px;
  min-width: 80px;
}
.cs-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paper);
  opacity: 0.85;
}
.cs-field input,
.cs-field select {
  width: 100%;
  padding: 0.65em 0.7em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.cs-submit {
  flex: 0 0 auto;
  height: 42px;
  align-self: end;
}
@media (max-width: 780px) {
  .custom-search { padding: 16px; }
  .cs-field, .cs-field-narrow { flex: 1 1 100%; }
  .cs-submit { width: 100%; justify-content: center; }
}

/* --------------------------- Sections --------------------------- */
section { padding: 72px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* --------------------------- Property cards --------------------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
@media (max-width: 980px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .property-grid { grid-template-columns: 1fr; } }

.property-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.property-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 14px;
}
.property-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.property-card:hover .thumb img { transform: scale(1.04); }
.property-card .kind {
  font-size: 0.78rem;
  color: var(--creek);
  font-weight: 600;
  margin-bottom: 4px;
}
.property-card h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}
.property-card .meta {
  font-size: 0.88rem;
  color: #5c574c;
  margin-bottom: 6px;
}
.property-card .price {
  font-weight: 700;
  color: var(--pine);
}
.property-card .price span {
  font-weight: 400;
  color: #5c574c;
  font-size: 0.85rem;
}

.grid-status {
  padding: 40px 0;
  color: #5c574c;
  font-style: italic;
}
.grid-status.error { color: #9c3d2e; }

/* --------------------------- Feature list (icons + text) --------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid .feature h3 { margin-bottom: 0.4em; }
.feature-grid .feature p { color: #4a453c; }

/* --------------------------- Steps (real sequence -> numbered) --------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  border-left: 2px solid var(--clay);
  padding-left: 20px;
}
.step .num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--clay);
  margin-bottom: 6px;
}
.step .num::before { content: counter(step); }

/* --------------------------- Testimonials --------------------------- */
.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .testimonial-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testimonial-row { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
}
.testimonial p { margin-bottom: 0.8em; color: #3a352c; font-size: 0.96rem; }
.testimonial .name { font-weight: 600; color: var(--pine); font-size: 0.9rem; }

/* --------------------------- Management packages --------------------------- */
.package-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 780px) { .package-row { grid-template-columns: 1fr; } }
.package-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
}
.package-card.popular { border-color: var(--clay); }
.package-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 12px;
}
.package-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.package-card li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}
.package-card li:first-child { border-top: none; }

/* --------------------------- FAQ --------------------------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pine);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--clay);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; color: #4a453c; }

/* --------------------------- Attraction cards --------------------------- */
.attraction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .attraction-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .attraction-grid { grid-template-columns: 1fr; } }
.attraction-card {
  border-top: 2px solid var(--clay);
  padding-top: 14px;
}
.attraction-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.attraction-card h3 a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.attraction-card h3 a:hover {
  border-bottom-color: var(--clay);
}
.attraction-card p { font-size: 0.92rem; color: #4a453c; margin-bottom: 0; }

/* --------------------------- Forms --------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--creek);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.form-row textarea { min-height: 120px; resize: vertical; }

/* --------------------------- Dark CTA band --------------------------- */
.cta-band {
  color: var(--paper);
  text-align: left;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #d9e0da; }
.cta-actions { display: flex; gap: 14px; margin-top: 1.4em; flex-wrap: wrap; }

/* --------------------------- Footer --------------------------- */
.site-footer {
  background: var(--pine);
  color: #cfd8d1;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a { text-decoration: none; color: #cfd8d1; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid #33493c;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #97a89d;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #97a89d; }

/* --------------------------- Property detail page --------------------------- */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.gallery-thumb { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 780px) {
  .detail-gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-thumb:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumb:nth-child(n+3) { display: none; }
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-address {
  margin-bottom: 18px;
}

.detail-meta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.detail-meta-item {
  font-size: 0.88rem;
  color: var(--creek);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4em 0.9em;
}

.detail-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.detail-section:first-of-type {
  padding-top: 28px;
}
.detail-section h3 {
  margin-bottom: 0.6em;
}

.amenity-list {
  columns: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}
.amenity-list li {
  padding: 6px 0;
  font-size: 0.92rem;
  break-inside: avoid;
  padding-left: 1.4em;
  position: relative;
}
.amenity-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 700;
}
@media (max-width: 480px) {
  .amenity-list { columns: 1; }
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.booking-widget-card {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
}
.availability-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
}
.availability-card .cal-wrap {
  grid-template-columns: 1fr;
  gap: 24px;
}
.widget-placeholder {
  border: 1px dashed var(--creek);
  padding: 20px;
  font-size: 0.85rem;
  color: var(--creek);
  background: #f1f4f2;
}

/* --------------------------- Availability calendar --------------------------- */
.cal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 640px) {
  .cal-wrap { grid-template-columns: 1fr; }
}
.cal-month-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pine);
  margin-bottom: 12px;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--creek);
  padding-bottom: 4px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  border-radius: 3px;
}
.cal-day-empty { visibility: hidden; }
.cal-day-available {
  background: #eaf1ea;
  color: var(--pine);
  font-weight: 600;
}
.cal-day-booked {
  background: transparent;
  color: #c2bcae;
  text-decoration: line-through;
}
.cal-day-past {
  background: transparent;
  color: #d9d2c2;
}
.cal-day-unknown {
  background: transparent;
  color: #b5afa1;
}
.cal-day-today {
  box-shadow: inset 0 0 0 2px var(--clay);
  font-weight: 700;
}
.cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #5c574c;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cal-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  font-style: normal;
}
.cal-swatch-available { background: #eaf1ea; border: 1px solid #b9d1b9; }
.cal-swatch-booked { background: #f1eee6; border: 1px solid var(--line); }

/* --------------------------- Lightbox --------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #d9e0da;
  font-size: 0.85rem;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.8rem; }
}
