/* ============================================================
   Sandpiper Resort Co-Op - Design System
   "Bradenton Beach Old Florida" palette by designer research
   Benjamin Moore + Sherwin-Williams coastal references
   55+ accessible (WCAG AA) | Mobile-first
   ============================================================ */

/* --- CSS Variables --- */
/* Designer palette: Gulf sunset coral + Hale Navy + warm neutrals */
:root {
  /* === PRIMARY BRAND: Gulf Sunset Coral === */
  --color-primary: #D9766C;         /* SW Coral Reef - signature color */
  --color-primary-dark: #C4635A;    /* Darker coral for hover/active */
  --color-primary-light: #E89990;   /* Light coral for subtle tints */

  /* === SECONDARY: Hale Navy (warm dark anchor) === */
  --color-secondary: #434C56;       /* BM Hale Navy - replaces black */
  --color-secondary-light: #5A6575; /* Lighter navy */

  /* === ACCENT: Gulf Aqua === */
  --color-accent: #ADBCB3;          /* BM Wythe Blue - muted aqua */
  --color-accent-dark: #8FA69A;     /* Deeper aqua */
  --color-accent-light: #CDD2CA;    /* SW Sea Salt */

  /* === WARM GOLD: Sandy Dune === */
  --color-gold: #C4A882;            /* Tags, dividers, ratings */
  --color-gold-dark: #A8905E;
  --color-gold-light: #D4BC9A;

  /* === STATUS === */
  --color-success: #5A9E6F;
  --color-warning: #D4A04A;
  --color-error: #C54B4B;

  /* === BACKGROUNDS (warm neutrals, never cool) === */
  --bg-body: #F7F4EF;              /* Warm linen */
  --bg-white: #FDFCFA;             /* Warm white cards */
  --bg-light: #EFEEE5;             /* BM White Dove */
  --bg-sand: #DDD9CE;              /* BM Pale Oak */
  --bg-dark: #434C56;              /* Hale Navy */
  --bg-hero: linear-gradient(135deg, #353D47 0%, #434C56 40%, #4D5969 100%);
  --bg-shell: #F5EDE0;             /* Shell pink tint */

  /* === TEXT (all WCAG AA) === */
  --text-dark: #2C2C2C;            /* Headings - 17:1 on white */
  --text-body: #3A3A3A;            /* Body - 14:1 on white */
  --text-muted: #5C5C5C;           /* Captions - 7.4:1 on white */
  --text-light: #8A8A8A;
  --text-white: #FDFCFA;
  --text-on-dark: #E8E4DD;

  /* === BORDERS === */
  --border-light: #E5DDD3;
  --border-medium: #D1C7B8;        /* SW Accessible Beige */

  /* === SHADOWS (navy-based) === */
  --shadow-sm: 0 1px 3px rgba(67,76,86,0.06);
  --shadow-md: 0 4px 12px rgba(67,76,86,0.08);
  --shadow-lg: 0 10px 30px rgba(67,76,86,0.1);
  --shadow-xl: 0 20px 50px rgba(67,76,86,0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --nav-height: 76px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;                  /* 55+ readability: larger base */
  line-height: 1.8;                 /* More generous line height */
  color: var(--text-body);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;           /* Slight letter spacing for clarity */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2.1rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.1rem; }

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-white);
}

.section-dark p {
  color: var(--text-on-dark);
}

.section-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(217, 118, 108, 0.08);
  border: 1px solid rgba(217, 118, 108, 0.2);
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-dark .section-tag {
  background: rgba(196, 168, 130, 0.15);
  border-color: rgba(196, 168, 130, 0.3);
  color: var(--color-gold-light);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 12px;
}

.section-dark .section-subtitle {
  color: rgba(232, 228, 221, 0.7);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.top-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-icon svg {
  width: 36px;
  height: 36px;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.nav-brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 10px 14px;
  min-height: 44px;                /* Accessible tap target */
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: rgba(217, 118, 108, 0.06);
}

.nav-links a.active {
  color: var(--color-primary);
  background: rgba(217, 118, 108, 0.08);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white) !important;
  background: var(--color-primary) !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--color-primary-dark) !important;
  color: var(--text-white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-body) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: var(--text-white);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
}

.hero h1 {
  font-size: 3.25rem;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-gold-light);
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.hero-image-placeholder svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.hero-image-placeholder p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 32px;              /* Larger tap targets for 55+ */
  min-height: 48px;                /* WCAG minimum touch target */
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 118, 108, 0.3);
}

.btn-accent {
  background: var(--color-secondary);
  color: var(--text-white);
}

.btn-accent:hover {
  background: #353D47;
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 76, 86, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 10px 20px;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 16px 36px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 118, 108, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================================
   AMENITIES PREVIEW
   ============================================================ */
.amenity-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.amenity-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(173, 188, 179, 0.15);
  border-radius: 50%;
  color: var(--color-secondary);
  font-size: 1.75rem;
}

.amenity-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.amenity-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-body);
  font-size: 1.05rem;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: rgba(217, 118, 108, 0.06);
  border: 1px solid rgba(217, 118, 108, 0.15);
  padding: 10px 18px;
  border-radius: 50px;
}

/* ============================================================
   LISTINGS PREVIEW
   ============================================================ */
.listing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.listing-image {
  aspect-ratio: 16/10;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 50px;
}

.listing-badge.rental {
  background: var(--color-primary);
  color: var(--text-white);
}

.listing-badge.sale {
  background: var(--color-gold);
  color: var(--text-dark);
}

.listing-body {
  padding: 20px;
}

.listing-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.listing-price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.listing-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.listing-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.listing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: var(--bg-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 130, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #353D47;
  color: var(--text-on-dark);
  padding: 60px 0 0;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-gold-light);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.1rem;               /* Larger for readability */
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
  min-height: 56px;                /* Easy to tap on mobile */
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;              /* Larger form text for 55+ */
  color: var(--text-dark);
  background: var(--bg-white);
  border: 2px solid var(--border-medium);  /* Thicker borders for visibility */
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 48px;                /* WCAG touch target */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 118, 108, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   WAVE DIVIDER
   ============================================================ */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
}

.wave-divider.flip svg {
  top: 0;
  bottom: auto;
  transform: scaleY(-1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 18px;
    font-size: 1.1rem;              /* Larger text on mobile for 55+ */
    width: 100%;
    text-align: left;
    border-radius: var(--radius-sm);
    min-height: 48px;
  }

  .nav-cta {
    text-align: center !important;
    margin-top: 8px;
  }

  .hamburger {
    display: flex;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 32px 16px 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.fade-in-up:nth-child(6) { animation-delay: 0.5s; }

/* ============================================================
   LISTING DETAIL CARDS (Rentals & Sales pages)
   ============================================================ */
.listing-detail-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}

.listing-detail-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Photo gallery */
.listing-gallery {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-light);
  overflow: hidden;
}

.listing-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.listing-gallery img.active {
  opacity: 1;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 2;
  font-size: 16px;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.listing-gallery:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-dot.active {
  background: #fff;
}

.listing-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Card header bar */
.listing-detail-header {
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-detail-header.rental-header {
  background: var(--color-primary);
  color: var(--text-white);
}

.listing-detail-header.sale-header {
  background: var(--color-gold);
  color: var(--text-dark);
}

.listing-detail-unit {
  font-weight: 700;
  font-size: 1.1rem;
}

.listing-detail-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.listing-detail-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 50px;
}

/* Card body */
.listing-detail-body {
  padding: 24px;
}

.listing-detail-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.listing-detail-description {
  margin-bottom: 0;
  line-height: 1.7;
}

.listing-detail-availability {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.listing-detail-contact {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.listing-detail-contact a {
  color: var(--color-primary);
}

.listing-detail-contact a:hover {
  color: var(--color-primary-dark);
}

/* Loading state */
.listings-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.listings-loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .listing-gallery {
    aspect-ratio: 4/3;
  }
  .listing-detail-body {
    padding: 20px;
  }
  .listing-detail-contact {
    flex-direction: column;
    gap: 8px;
  }
}
