/* ========== CSS Reset / Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
:root {
  /* Colours – tuned for a clean lodge/holiday vibe */
  --bg: #ffffff;
  --text: #1b1b1b;
  --muted: #6b7280;
  --brand: #652f8c; /* royal purple */
  --brand-2: #a1c4c7; /* soft accent */
  --accent: #0f766e; /* button hover */
  --surface: #f6f8f9;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --container: 1600px;
  --space: clamp(12px, 1.6vw, 24px);
}
html {
  color-scheme: light;
}

/* Global heading styling */
h1,
h2,
h3 {
  color: #652f8c;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* ========== Layout ========== */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.section-block:last-child {
  border-bottom: none;
}
.section-block h2 {
  margin-top: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.logo img {
  height: 80px;
  width: auto;
}
.tel {
  font-weight: 600;
  white-space: nowrap;
}

/* Nav */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  transform: translateY(-100%);
  transition: 0.25s ease;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav.open {
  transform: translateY(0);
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--text);
}
.nav a:hover {
  background: var(--surface);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #652f8c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after,
.nav a:focus::after {
  transform: scaleX(1);
}
/* Close button inside mobile nav */
.nav-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #652f8c;
  cursor: pointer;
  z-index: 1001;
}

/* Desktop nav overrides */
@media (min-width: 900px) {
  .nav-toggle,
  .nav-close {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    transform: none !important;
    transition: none;
    background: transparent;
    border: 0;
  }

  .nav ul {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .nav a::after {
    bottom: -6px;
  }

  .header-bar {
    gap: 1.5rem;
    padding: 0.8rem 0;
  }
}

/* Footer links underline */
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #652f8c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.footer-links a:hover::after,
.footer-links a:focus::after {
  transform: scaleX(1);
}

/* Footer reviews */
.footer-reviews {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1rem auto 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(68, 68, 68, 0.85);
  flex-wrap: wrap;
  text-align: center;
}
.footer-reviews span {
  position: relative;
  padding: 0 1rem;
}
.footer-reviews span:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -1rem;
  color: rgba(101, 47, 140, 0.6);
  font-style: normal;
}
@media (max-width: 600px) {
  .footer-reviews {
    font-size: 0.8rem;
    gap: 1rem;
  }
}

/* Visit image utility */
.visit-img {
  margin-top: 0.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons – unified CTA style */
.btn,
.btn--ghost,
.btn--primary,
.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--brand);
  background: #ffffff;
  color: var(--brand);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.12s ease;
}

/* Hover / focus state */
.btn:hover,
.btn:focus-visible,
.btn--ghost:hover,
.btn--ghost:focus-visible,
.btn--primary:hover,
.btn--primary:focus-visible,
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* Small buttons */
.btn--small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* Plan caption in cards */
.card .plan-caption {
  margin-bottom: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--surface);
}
.hero img {
  width: 100%;
  height: clamp(260px, 40vh, 520px);
  object-fit: cover;
  filter: saturate(0.98) contrast(1.02);
}
.hero__content {
  position: static;
  margin: 1rem auto 0 auto;
  padding: 1rem;
  text-align: center;
}
.hero__text {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 650px;
  margin-inline: auto;
}
.hero__cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
@media (min-width: 900px) {
  .hero__content {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    margin: 0;
    padding: 0;
    text-align: left;
    margin-top: -6rem;
  }
  .hero__cta {
    justify-content: flex-start;
  }
}

/* ===== Prose typography ===== */
.prose {
  max-width: 150ch;
  margin-inline: auto;
  font-size: 1.025rem;
}
.prose h1,
.prose h2,
.prose h3 {
  line-height: 1.2;
  margin: 1.6rem 0 0.6rem;
}
.prose h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.prose h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}
.prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
}
.prose p {
  margin: 0.75rem 0;
}
.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0.6rem 0;
}
.prose li {
  margin: 0.35rem 0;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
}
.prose .lede {
  font-size: 1.08rem;
  color: var(--muted);
}

/* Why-book list tweak */
.why-book {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Cards wrapper */
.cards {
  display: grid;
  gap: var(--space);
  grid-template-columns: 1fr;
  padding: calc(var(--space) * 1.5) 0;
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card styles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.card-body > *:first-child {
  margin-top: 0;
}
.card-body h3 {
  margin: 0.9rem 0 0 0;
  color: #652f8c;
}
.card-body p {
  margin: 0.4rem 0 1rem 0;
  color: var(--muted);
}
.card-body .details {
  margin: 0 0 0.5rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.card-body .details li {
  margin: 0.25rem 0;
}

/* Actions area in cards */
.card-actions {
  margin: 0;
  padding: 0 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card-actions .btn {
  flex: 0 0 auto;
  width: auto;
}

/* Rental cards equal height + bottom-aligned button */
.rental-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rental-card .card-bottom {
  margin-top: auto;
}

/* Sales + Fees combo */
.sales-fees-inner {
  display: grid;
  gap: 1.5rem;
}
.sales-fees-text h3 {
  color: #652f8c;
}
.sales-fees-image img {
  margin-top: 20%;
  width: 70%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
@media (min-width: 900px) {
  .sales-fees-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* Feature list */
.feature-list {
  padding: 1rem 0 2rem;
}
.feature-list h2 {
  margin: 0 0 0.5rem;
}
.features {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  max-width: 320px;
  margin: 0 auto;
}
.features li:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  .features li {
    width: 100%;
    max-width: 280px;
    margin: 0;
  }
  .features li:nth-last-child(2) {
    grid-column: 1 / 2;
  }
  .features li:last-child {
    grid-column: 3 / 4;
  }
}

/* Footer layout */
.site-footer {
  margin-top: 1rem;
  padding-top: 0.5rem;
}
.site-footer .footer-grid {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem 0;
}
.site-footer .footer-grid > div {
  flex: 1 1 0;
}
.site-footer .footer-grid > div:first-child {
  text-align: left;
}
.site-footer .footer-grid > div:last-child {
  text-align: right;
}

/* Social icons */
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.socials i {
  font-size: 48px;
  transition: transform 0.2s ease;
}
.socials a:nth-child(1) i {
  color: #ff0000;
} /* YouTube */
.socials a:nth-child(2) i {
  color: #0a66c2;
} /* LinkedIn */
.socials a:nth-child(3) i {
  color: #e4405f;
} /* Instagram */
.socials a:nth-child(4) i {
  color: #1877f2;
} /* Facebook */
.socials a:hover i {
  transform: scale(1.15);
}
.site-footer .footer-grid .socials img,
.site-footer .footer-grid .socials svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Footer links list */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

/* Footer credits */
.credit {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.1rem;
  padding: 0.25rem 0;
}

/* Footer column ordering on wider screens */
@media (min-width: 800px) {
  .site-footer .footer-grid > div:nth-child(1) {
    order: 1;
    text-align: left;
  }
  .site-footer .footer-grid > div:nth-child(2) {
    order: 2;
    display: flex;
    justify-content: center;
  }
  .site-footer .footer-grid > div:nth-child(3) {
    order: 3;
    text-align: right;
  }
}

/* Utilities */
.section {
  padding: 2rem 0;
}
.utilities-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .utilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.utilities-grid h3 {
  margin-top: 0;
}

/* Visually hidden */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* === Index-only card fixes (section.cards) === */

/* add side padding to everything except the image */
section.cards .card > :not(img) {
  padding-left: 1rem;
  padding-right: 1rem;
}
.cards .card ul.why-book,
.cards .card ul.ownership-benefits {
  padding-left: 2rem;
  margin: 0.5rem 0 1rem;
  list-style: disc;
}

/* tidy vertical rhythm */
section.cards .card h3 {
  margin: 0.9rem 0 0.25rem;
}
section.cards .card p {
  margin: 0.4rem 0;
}
section.cards .card p:last-child {
  margin-bottom: 1rem;
}

/* stop the CTA from stretching full width */
section.cards .card .btn {
  align-self: flex-start;
  width: auto;
  flex: 0 0 auto;
  display: inline-block;
  margin: 0 1rem 0.75rem;
}

/* === Nearby Attractions only === */
.cards--attractions .card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.cards--attractions .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.cards--attractions .card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  margin: 0;
  padding: 0;
}
.cards--attractions .card > a img {
  display: block;
  transition: transform 0.4s ease;
}
.cards--attractions .card:hover > a img {
  transform: scale(1.05);
}
.cards--attractions .card > a h3,
.cards--attractions .card > a p {
  padding: 0 1rem;
}
.cards--attractions .card > a h3 {
  margin: 0.9rem 0 0.25rem;
}
.cards--attractions .card > a p {
  margin: 0.4rem 0 1rem;
}
.cards--attractions .card > a:focus-visible {
  outline: 3px solid #652f8c;
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Portrait (mobile-style) footer: show only reviews + credit */
@media (orientation: portrait), (max-width: 700px) {
  .site-footer .footer-grid {
    display: none !important;
  }
  .site-footer {
    padding-top: 0.25rem;
  }
  .footer-reviews {
    margin: 0.25rem auto;
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  .credit {
    padding: 0.25rem 0;
    font-size: 0.85rem;
  }
}

/* === Holiday rentals: move CTAs to bottom-right === */
.cards.cards--rentals .card .card-actions {
  justify-content: flex-end;
  padding: 0 1.5rem 1.25rem;
  padding-top: 0.75rem;
}
.cards.cards--rentals .card .card-actions .btn {
  margin: 0;
}

/* "Good to know" – Hoseasons button + content */
.cards.cards--rentals .good-to-know .card-body {
  display: flex;
  flex-direction: column;
}
.cards--rentals .good-to-know ul {
  margin-bottom: 0.75rem !important;
  padding-bottom: 2rem !important; /* nudged line down */
  border-bottom: 1px solid #e5e7eb;
}
.cards--rentals .good-to-know img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.cards.cards--rentals .good-to-know .card-body p:last-of-type {
  margin-top: 0;
  text-align: right;
  padding: 0 1.5rem 1.25rem 1.5rem;
}
.cards.cards--rentals .good-to-know .card-body p:last-of-type .btn {
  margin: 0;
}
.card.good-to-know .card-body img {
  margin-top: 5rem !important;
}

/* === Lodges for Sale: right-align CTAs in cards === */
.cards--sales .btn-row {
  text-align: right;
}
.cards--sales .card-actions {
  justify-content: flex-end;
}

/* Lodges for Sale: Ready to Visit block */
.cards--sales .ready-to-visit.card .card-body {
  display: flex;
  flex-direction: column;
}
.cards--sales .ready-to-visit ul {
  margin-bottom: 0.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.cards--sales .ready-to-visit img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.cards--sales .ready-to-visit .card-actions {
  justify-content: flex-end;
  padding: 0 1.5rem 1.25rem;
}
.cards--sales .ready-to-visit .card-actions .btn {
  margin: 0;
}
.cards--sales .ready-to-visit.card .intro-text {
  margin: 0 1rem 0.75rem 1rem;
  color: var(--muted);
  line-height: 1.55;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cards--sales .ready-to-visit.card .visit-img {
  margin-top: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
/* Make card content stretch so CTA can sit at the bottom */
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 3rem; /* ensures space so CTA never overlaps text */
}

/* Push CTA to the bottom-right */
.card .card-actions {
  margin-top: auto; /* pushes CTA to bottom */
  display: flex;
  justify-content: flex-end; /* moves CTA to right */
  width: 100%;
  padding-top: 1rem;
}

/* Optional: shrink button for nicer positioning */
.card .card-actions .btn--small {
  align-self: flex-end;
}
