/* ============================================================
   Sleepy Willow Retreat — theme
   Palette lifted from the original site: near-black base,
   deep navy panels (#011627), rustic red accent (#d94948),
   warm cream text.
   ============================================================ */

:root {
  --sw-bg:        #0b0b0b;
  --sw-surface:   #161412;
  --sw-surface-2: #011627;
  --sw-accent:    #d94948;
  --sw-accent-dk: #b83a39;
  --sw-cream:     #f5f1ea;
  --sw-muted:     #b9b1a6;
  --sw-line:      #2c2823;
  --sw-pending:   #d9a441;
  --sw-ok:        #6fae7c;
}

/* ------------------------------------------------------------
   Glass theme (Apple frosted glass): the property photo is the
   fixed page background; all content sits on translucent DARK
   glass sheets matching the header. <body class="sw-theme-glass">
   ------------------------------------------------------------ */
body.sw-theme-glass {
  --sw-surface: rgba(51, 51, 51, .55);
  --sw-line:    rgba(255, 255, 255, .18);
  --sw-muted:   #d6cfc4;
  background-color: #4a4f55;          /* fallback while the photo loads */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* the frosted sheets — same tint as the header */
body.sw-theme-glass .sw-glass {
  background: rgba(51, 51, 51, .55);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  padding-left: 2rem;
  padding-right: 2rem;
  margin-top: 2.75rem;
  margin-bottom: 2.75rem;
}
@media (max-width: 991.98px) {
  body.sw-theme-glass { background-attachment: scroll; }
  body.sw-theme-glass .sw-glass { border-radius: .75rem; padding-left: 1rem; padding-right: 1rem; }
}

/* header: translucent dark gray like the WordPress site */
body.sw-theme-glass .sw-navbar {
  background: rgba(51, 51, 51, .55);
  border-bottom: none;
}

/* booking panel: a slightly deeper pane of the same glass */
body.sw-theme-glass .sw-panel {
  background: rgba(38, 38, 38, .5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .25);
}
body.sw-theme-glass .form-control, body.sw-theme-glass .form-select {
  background: rgba(20, 20, 20, .55);
  border-color: rgba(255, 255, 255, .28);
  color: var(--sw-cream);
}

/* hero: light shade up top for the navbar, clear below */
body.sw-theme-glass .sw-hero-video::after {
  /* video hero blends into the photo background instead of solid black */
  background: linear-gradient(180deg, rgba(5,5,5,.42) 0%, rgba(5,5,5,.28) 55%, rgba(0,0,0,.12) 100%);
}
body.sw-theme-glass .sw-hero-parallax::after {
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 100%);
}
body.sw-theme-glass .sw-parallax::after { background: none; }
body.sw-theme-glass .sw-parallax { border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }

/* footer: translucent dark glass, matching the header */
body.sw-theme-glass .sw-footer {
  background: rgba(51, 51, 51, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: none;
}
body.sw-theme-glass .sw-footer-bottom { border-top-color: rgba(255, 255, 255, .25); color: #eaf1f7; }
body.sw-theme-glass .sw-footer-tagline { color: #f0f5fa; }
body.sw-theme-glass .sw-footer-links a,
body.sw-theme-glass .sw-footer-contact,
body.sw-theme-glass .sw-footer-contact a { color: #f4f8fb; }
body.sw-theme-glass .sw-footer-links a:hover,
body.sw-theme-glass .sw-footer-contact a:hover { color: #ffffff; }
body.sw-theme-glass .sw-admin-link { color: #eaf1f7; }

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

body {
  background: var(--sw-bg);
  color: var(--sw-cream);
  font-family: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, .sw-serif {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--sw-cream);
}

a { color: var(--sw-accent); }
a:hover, a:focus { color: #e56a69; }

::selection { background: var(--sw-accent); color: #fff; }

.text-muted, .sw-muted { color: var(--sw-muted) !important; }

/* ---------- Buttons ---------- */
.btn-sw-accent {
  --bs-btn-bg: var(--sw-accent);
  --bs-btn-border-color: var(--sw-accent);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--sw-accent-dk);
  --bs-btn-hover-border-color: var(--sw-accent-dk);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--sw-accent-dk);
  --bs-btn-active-border-color: var(--sw-accent-dk);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 217, 73, 72;
  font-weight: 600;
  letter-spacing: .02em;
}
.btn-sw-outline {
  --bs-btn-color: var(--sw-cream);
  --bs-btn-border-color: var(--sw-cream);
  --bs-btn-hover-bg: var(--sw-cream);
  --bs-btn-hover-color: #111;
  --bs-btn-hover-border-color: var(--sw-cream);
  --bs-btn-focus-shadow-rgb: 245, 241, 234;
}

/* ---------- Navbar ---------- */
.sw-navbar {
  background: rgba(6, 6, 6, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sw-line);
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.sw-navbar .nav-link {
  color: var(--sw-cream);
  font-weight: 500;
  letter-spacing: .02em;
  margin-inline: .15rem;
  transition: color .2s ease;
}
.sw-navbar .nav-link:hover,
.sw-navbar .nav-link:focus { color: var(--sw-accent); }
.sw-navbar .nav-link.active {
  color: var(--sw-accent);
}
.sw-logo { height: 44px; width: auto; }

/* ---------- Hero ---------- */
.sw-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.sw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.65) 60%, var(--sw-bg) 100%);
  z-index: -1;
}
.sw-hero-inner { position: relative; text-align: center; width: 100%; padding: 6rem 1rem; }
.sw-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
.sw-hero .sw-hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--sw-cream);
  max-width: 46rem;
  margin: 1rem auto 2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
}
.sw-hero-small { min-height: 42vh; }

/* Full-screen background-video hero (home page) */
.sw-hero-video { min-height: calc(100vh - 76px); overflow: hidden; }
.sw-hero-video::after {
  /* lighter overlay than the photo heroes so the video shows through */
  background: linear-gradient(180deg, rgba(5,5,5,.42) 0%, rgba(5,5,5,.30) 55%, rgba(11,11,11,.85) 100%);
}
.sw-hero-bgvid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;               /* under the ::after gradient overlay */
}
/* phones keep the poster photo instead (same as the old WordPress site) */
@media (max-width: 767.98px) {
  .sw-hero-bgvid { display: none; }
}
.sw-hero-logo { height: clamp(56px, 9vw, 96px); width: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.8)); }
.sw-hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sw-cream);
  font-size: 1.75rem;
  opacity: .8;
  transition: opacity .2s ease, transform .2s ease;
  animation: sw-bounce 2.4s infinite;
}
.sw-hero-scroll:hover, .sw-hero-scroll:focus { color: #fff; opacity: 1; }
@keyframes sw-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Property-page hero: image stays fixed while the page scrolls over it */
.sw-hero-parallax {
  min-height: 62vh;
  background-attachment: fixed;
}
.sw-hero-parallax::after {
  /* barely-there shade — let the photo shine */
  background: linear-gradient(180deg, rgba(5,5,5,.14) 0%, rgba(5,5,5,.03) 45%, rgba(11,11,11,.32) 100%);
}

/* Full-bleed parallax reveal bands between sections (WordPress-style) */
.sw-parallax {
  position: relative;
  min-height: 58vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
}
.sw-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,.08) 0%, rgba(11,11,11,0) 20%, rgba(11,11,11,0) 80%, rgba(11,11,11,.14) 100%);
  z-index: -1;
}
.sw-parallax-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0,0,0,.85);
}
/* fixed backgrounds are unreliable on mobile browsers — fall back gracefully */
@media (max-width: 991.98px) {
  .sw-hero-parallax, .sw-parallax { background-attachment: scroll; }
  .sw-parallax { min-height: 42vh; }
}

/* ---------- Section rhythm ---------- */
.sw-section { padding: 4.5rem 0; }
.sw-section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.sw-section-title h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.sw-section-title .sw-rule {
  width: 72px; height: 3px; background: var(--sw-accent);
  margin: 1rem auto 0; border-radius: 2px;
}

/* ---------- Feature cards (Relax / Unwind / Enjoy) ---------- */
.sw-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: .75rem;
  height: 100%;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sw-card:hover { border-color: var(--sw-accent); box-shadow: 0 10px 34px rgba(0,0,0,.45); }
.sw-card .sw-card-icon {
  font-size: 2rem;
  color: var(--sw-accent);
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center; justify-content: center;
  border: 1px solid var(--sw-line);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  background: rgba(217, 73, 72, .08);
}
.sw-card h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.sw-card p { color: var(--sw-muted); margin-bottom: 0; }

/* ---------- Property teaser / detail ---------- */
.sw-property-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: .75rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sw-property-card:hover { border-color: var(--sw-accent); box-shadow: 0 10px 34px rgba(0,0,0,.45); }
.sw-property-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.sw-property-card .card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.sw-property-card .card-body p { color: var(--sw-muted); }
.sw-facts { color: var(--sw-muted); font-size: .95rem; }
.sw-facts i { color: var(--sw-accent); margin-right: .35rem; }
.sw-facts span + span { margin-left: 1rem; }

.sw-prose p { color: #ddd6cb; }
.sw-prose strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--sw-cream);
  margin-top: 1.5rem;
}
.sw-amenities { list-style: none; padding-left: 0; columns: 1; }
@media (min-width: 768px) { .sw-amenities { columns: 2; column-gap: 2.5rem; } }
.sw-amenities li {
  padding: .4rem 0 .4rem 1.75rem;
  position: relative;
  color: #ddd6cb;
  break-inside: avoid;
}
.sw-amenities li::before {
  content: "\F26B"; /* bootstrap-icons check2 */
  font-family: "bootstrap-icons";
  position: absolute; left: 0; top: .42rem;
  color: var(--sw-accent);
}

.sw-safety {
  background: rgba(217, 164, 65, .07);
  border: 1px solid rgba(217, 164, 65, .35);
  border-radius: .75rem;
  padding: 1.5rem 1.75rem;
}
.sw-safety h3 { color: var(--sw-pending); font-size: 1.25rem; }

/* ---------- Gallery ---------- */
.sw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.sw-gallery a {
  display: block; border-radius: .5rem; overflow: hidden;
  border: 1px solid var(--sw-line);
  cursor: pointer;
}
.sw-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .3s ease, opacity .3s ease;
}
.sw-gallery a:hover img, .sw-gallery a:focus img { transform: scale(1.04); opacity: .85; }

.sw-lightbox .modal-content { background: #000; border: none; }
.sw-lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.sw-lightbox .btn-close { filter: invert(1); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: #191714;
  border-color: var(--sw-line);
  color: var(--sw-cream);
}
.form-control:focus, .form-select:focus {
  background: #191714;
  color: var(--sw-cream);
  border-color: var(--sw-accent);
  box-shadow: 0 0 0 .25rem rgba(217, 73, 72, .2);
}
.form-control::placeholder { color: #7d766c; }
.form-label { color: var(--sw-cream); font-weight: 500; }
.form-text { color: var(--sw-muted); }
.sw-panel {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  border-radius: .75rem;
  padding: 2rem;
}

/* honeypot field — hidden from humans, present for bots */
.sw-website-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Availability calendar ---------- */
.sw-cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sw-cal-month h3 { font-size: 1.35rem; margin: 0; }
.sw-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: .75rem;
}
.sw-cal .sw-cal-dow {
  text-align: center;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sw-muted);
  padding: .25rem 0;
}
.sw-cal-day {
  position: relative;
  min-height: 62px;
  border: 1px solid var(--sw-line);
  border-radius: .4rem;
  background: var(--sw-surface);
  padding: .3rem .4rem;
  font-size: .9rem;
  text-align: left;
  color: var(--sw-cream);
  width: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.sw-cal-day .sw-price { display: block; font-size: .72rem; color: var(--sw-muted); margin-top: .35rem; }
.sw-cal-day.is-available { cursor: pointer; }
.sw-cal-day.is-available:hover, .sw-cal-day.is-available:focus-visible { border-color: var(--sw-accent); }
.sw-cal-day.is-empty { background: transparent; border-color: transparent; min-height: 0; }
.sw-cal-day.is-past, .sw-cal-day:disabled { opacity: .35; cursor: default; }
.sw-cal-day.is-booked {
  background: repeating-linear-gradient(45deg, #201a19, #201a19 6px, #241211 6px, #241211 12px);
  color: #7d6a68;
  cursor: not-allowed;
}
.sw-cal-day.is-booked .sw-price { visibility: hidden; }
.sw-cal-day.is-pending {
  background: rgba(217, 164, 65, .12);
  border-color: rgba(217, 164, 65, .5);
}
.sw-cal-day.is-pending .sw-price { color: var(--sw-pending); }
.sw-cal-day.is-selected {
  background: var(--sw-accent);
  border-color: var(--sw-accent);
  color: #fff;
}
.sw-cal-day.is-selected .sw-price { color: rgba(255,255,255,.85); }
.sw-cal-day.is-inrange {
  background: rgba(217, 73, 72, .18);
  border-color: rgba(217, 73, 72, .45);
}
.sw-cal-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .85rem; color: var(--sw-muted); }
.sw-cal-legend .swatch {
  display: inline-block; width: 14px; height: 14px; border-radius: 3px;
  margin-right: .4rem; vertical-align: -2px; border: 1px solid var(--sw-line);
}
.swatch-available { background: var(--sw-surface); }
.swatch-booked { background: repeating-linear-gradient(45deg, #201a19, #201a19 4px, #241211 4px, #241211 8px); }
.swatch-pending { background: rgba(217, 164, 65, .35); border-color: rgba(217,164,65,.6); }
.swatch-selected { background: var(--sw-accent); }

.sw-quote-box { position: sticky; top: 92px; }
.sw-quote-box .sw-quote-row { display: flex; justify-content: space-between; padding: .3rem 0; color: #ddd6cb; }
.sw-quote-box .sw-quote-total { border-top: 1px solid var(--sw-line); margin-top: .5rem; padding-top: .75rem; font-weight: 700; font-size: 1.15rem; color: var(--sw-cream); }

/* ---------- Footer ---------- */
.sw-footer {
  background: var(--sw-surface-2);
  border-top: 1px solid #0a2b42;
  color: var(--sw-cream);
  margin-top: 4rem;
}
.sw-footer-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.sw-footer-tagline { color: #9fb4c4; font-style: italic; }
.sw-footer-links li { margin-bottom: .45rem; }
.sw-footer-links a { color: #c4d3df; text-decoration: none; transition: color .2s ease; }
.sw-footer-links a:hover, .sw-footer-links a:focus { color: var(--sw-accent); }
.sw-footer-contact { color: #c4d3df; font-style: normal; }
.sw-footer-contact a { color: #c4d3df; text-decoration: none; }
.sw-footer-contact a:hover { color: var(--sw-accent); }
.sw-footer-contact i { color: var(--sw-accent); }
.sw-footer-bottom { border-top: 1px solid #0a2b42; color: #7f96a8; }
.sw-admin-link { color: #7f96a8; text-decoration: none; }
.sw-admin-link:hover, .sw-admin-link:focus { color: var(--sw-accent); }

/* ---------- Alerts on dark ---------- */
.alert-sw {
  background: var(--sw-surface);
  border: 1px solid var(--sw-line);
  color: var(--sw-cream);
}
.alert-sw.alert-success { border-color: var(--sw-ok); }
.alert-sw.alert-danger { border-color: var(--sw-accent); }
.alert-sw.alert-warning { border-color: var(--sw-pending); }

/* ---------- Misc ---------- */
img { max-width: 100%; }
.sw-map-frame { border: 1px solid var(--sw-line); border-radius: .75rem; overflow: hidden; }
:focus-visible { outline: 2px solid var(--sw-accent); outline-offset: 2px; }
