/* style.css — Oregon Furnished Rentals Design System + Components */

/* ========================
   DESIGN TOKENS
   ======================== */
:root {
  /* TYPE SCALE */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* FONTS */
  --font-display: 'Lora', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* 4px SPACING */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* RADIUS */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* TRANSITIONS */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* CONTENT WIDTHS */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ========================
   OREGON GREEN PALETTE — LIGHT MODE
   ======================== */
:root, [data-theme="light"] {
  --color-bg:               #f5f1ea;
  --color-surface:          #faf7f2;
  --color-surface-2:        #fdfcf9;
  --color-surface-offset:   #ede8df;
  --color-surface-offset-2: #e6e1d7;
  --color-surface-dynamic:  #ddd8cd;
  --color-divider:          #d4cfc4;
  --color-border:           #cbc5b9;

  --color-text:             #2c2518;
  --color-text-muted:       #726b5e;
  --color-text-faint:       #b0a898;
  --color-text-inverse:     #faf7f2;

  --color-primary:          #2d5016;
  --color-primary-hover:    #1f3a0e;
  --color-primary-active:   #152808;
  --color-primary-highlight:#d4e0cc;

  --color-amber:            #b5750a;
  --color-amber-hover:      #8f5c08;
  --color-amber-active:     #6a4406;
  --color-amber-highlight:  #e5d9c4;

  --color-error:            #9b2c2c;
  --color-error-hover:      #742020;
  --color-error-highlight:  #e2cece;

  --color-success:          #2d6a28;
  --color-success-highlight:#cddccb;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 70 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 70 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 70 / 0.12);
}

/* ========================
   DARK MODE
   ======================== */
[data-theme="dark"] {
  --color-bg:               #1a1814;
  --color-surface:          #211f1a;
  --color-surface-2:        #27241e;
  --color-surface-offset:   #1e1c17;
  --color-surface-offset-2: #2a2721;
  --color-surface-dynamic:  #343028;
  --color-divider:          #2e2b24;
  --color-border:           #403c33;

  --color-text:             #d8d2c8;
  --color-text-muted:       #8a8377;
  --color-text-faint:       #5e5850;
  --color-text-inverse:     #2c2518;

  --color-primary:          #6aad4a;
  --color-primary-hover:    #4d8f30;
  --color-primary-active:   #387220;
  --color-primary-highlight:#2e3a28;

  --color-amber:            #dda040;
  --color-amber-hover:      #c48b30;
  --color-amber-active:     #a87520;
  --color-amber-highlight:  #3d3428;

  --color-error:            #e06060;
  --color-error-hover:      #c44848;
  --color-error-highlight:  #3d2828;

  --color-success:          #5cb455;
  --color-success-highlight:#2e3a28;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:#1a1814;--color-surface:#211f1a;--color-surface-2:#27241e;
    --color-surface-offset:#1e1c17;--color-surface-offset-2:#2a2721;
    --color-surface-dynamic:#343028;--color-divider:#2e2b24;--color-border:#403c33;
    --color-text:#d8d2c8;--color-text-muted:#8a8377;--color-text-faint:#5e5850;
    --color-text-inverse:#2c2518;
    --color-primary:#6aad4a;--color-primary-hover:#4d8f30;
    --color-primary-active:#387220;--color-primary-highlight:#2e3a28;
    --color-amber:#dda040;--color-amber-hover:#c48b30;
    --color-amber-active:#a87520;--color-amber-highlight:#3d3428;
    --color-error:#e06060;--color-error-hover:#c44848;--color-error-highlight:#3d2828;
    --color-success:#5cb455;--color-success-highlight:#2e3a28;
    --shadow-sm:0 1px 2px oklch(0 0 0/0.2);--shadow-md:0 4px 12px oklch(0 0 0/0.3);
    --shadow-lg:0 12px 32px oklch(0 0 0/0.4);
  }
}

/* ========================
   LAYOUT
   ======================== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-narrow {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ========================
   HEADER / NAV
   ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  padding: var(--space-3) var(--space-4);
}

.nav-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-interactive);
}
.nav-logo:hover { color: var(--color-primary); }

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-interactive);
}
.theme-toggle:hover { background: var(--color-surface-dynamic); }

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 200;
  flex-direction: column;
  padding: var(--space-4);
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav-links a {
  display: block;
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: var(--color-surface-offset);
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.15 0.02 70 / 0.55) 0%,
    oklch(0.12 0.02 70 / 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-8) var(--space-4);
  padding-top: var(--space-16);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: 1.1;
  text-shadow: 0 2px 8px oklch(0 0 0 / 0.3);
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: oklch(1 0 0 / 0.9);
  margin-bottom: var(--space-4);
  text-shadow: 0 1px 4px oklch(0 0 0 / 0.2);
  max-width: 100%;
}

.hero .value-prop {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: oklch(1 0 0 / 0.75);
  margin-bottom: var(--space-8);
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
}
.btn-ghost:hover {
  background: var(--color-primary-highlight);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-hero {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  font-weight: 600;
  box-shadow: 0 4px 16px oklch(0.2 0.1 140 / 0.3);
}
.btn-hero:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0.2 0.1 140 / 0.4);
}

/* ========================
   SECTION STYLES
   ======================== */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-4);
}

.section-alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
}

.overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* ========================
   WHY CHOOSE US — FEATURES
   ======================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}

.feature-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow var(--transition-interactive);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 36ch;
  margin-inline: auto;
}

/* ========================
   PROPERTY CARDS
   ======================== */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(3, 1fr); }
}

.property-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  cursor: pointer;
}
.property-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.property-card:active {
  transform: translateY(0);
}

.property-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.property-card:hover .property-card-img img {
  transform: scale(1.04);
}

.property-card-body {
  padding: var(--space-5);
}

.property-card-location {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.property-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.property-card-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.property-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.property-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}
.property-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

/* ========================
   MODAL
   ======================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(0.1 0.01 70 / 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-overlay.visible {
  opacity: 1;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  margin: var(--space-8) auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.visible .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: oklch(0 0 0 / 0.4);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-interactive);
}
.modal-close:hover {
  background: oklch(0 0 0 / 0.6);
}

/* Gallery */
.gallery {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-offset);
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0 0 0 / 0.4);
  color: #fff;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-interactive);
}
.gallery-nav:hover { background: oklch(0 0 0 / 0.6); }
.gallery-prev { left: var(--space-3); }
.gallery-next { right: var(--space-3); }
.gallery-counter {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  background: oklch(0 0 0 / 0.5);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* Modal Body */
.modal-body {
  padding: var(--space-6);
}
@media (min-width: 768px) {
  .modal-body { padding: var(--space-8); }
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.modal-location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.modal-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}
.modal-price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.modal-section {
  margin-bottom: var(--space-6);
}

.modal-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.modal-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.modal-highlights {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.modal-highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  max-width: none;
}
.modal-highlights li svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.best-for-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.best-for-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.modal-detail-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.modal-detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.modal-detail-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  font-weight: 600;
}
.modal-detail-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.modal-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

/* ========================
   ABOUT SECTION
   ======================== */
.about-content {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
}

.about-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ========================
   CONTACT FORM
   ======================== */
.contact-grid {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-group .required::after {
  content: ' *';
  color: var(--color-error);
}

.form-input {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-input::placeholder { color: var(--color-text-faint); }

.form-input.error {
  border-color: var(--color-error);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  display: none;
}
.form-error.visible { display: block; }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.contact-direct {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.contact-direct a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-interactive);
}
.contact-direct a:hover { color: var(--color-primary-hover); }

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-8) var(--space-4);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-links a:hover { color: var(--color-primary); }

/* ========================
   SCROLL ANIMATIONS
   ======================== */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ========================
   IMAGE FALLBACK
   ======================== */
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-offset);
  color: var(--color-text-faint);
  border-radius: var(--radius-md);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 999;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: top 200ms;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ========================
   SEO CONTENT SECTION
   ======================== */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.seo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.seo-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.seo-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}

.seo-who-section {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-10);
}

.seo-who-section > h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  text-align: center;
  margin-bottom: var(--space-8);
}

.seo-who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

.seo-who-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.seo-who-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}

/* ========================
   DIRECTORY SECTION
   ======================== */

/* Filter bar — horizontal scrolling pills */
.dir-filter-bar {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-divider) transparent;
}
.dir-filter-bar::-webkit-scrollbar {
  height: 4px;
}
.dir-filter-bar::-webkit-scrollbar-track {
  background: transparent;
}
.dir-filter-bar::-webkit-scrollbar-thumb {
  background: var(--color-divider);
  border-radius: var(--radius-full);
}

.dir-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive);
}
.dir-pill:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.dir-pill.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.dir-pill.active:hover {
  background: var(--color-primary-hover);
}

/* Listing count */
.dir-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Card grid — same responsive layout as properties */
.dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin-inline: auto;
}
@media (min-width: 640px) {
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dir-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Directory card */
.dir-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.dir-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.dir-card:active {
  transform: translateY(0);
}

.dir-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.dir-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.dir-card:hover .dir-card-img img {
  transform: scale(1.04);
}

.dir-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5);
}

.dir-card-location {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.dir-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.dir-card-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.dir-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.dir-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.dir-card-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
}
.dir-card-price span {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.dir-card-link {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* Load more */
.dir-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}
.dir-load-more-wrap.hidden {
  display: none;
}

/* ========================
   OREGON MAP
   ======================== */
.map-wrapper {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  text-align: center;
}

.map-wrapper svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  background: var(--color-surface);
  display: block;
}

.map-instruction {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Map dot dark mode override */
[data-theme="dark"] .map-city-dot {
  fill: #6aad4a;
  stroke: #1a1814;
}
[data-theme="dark"] .map-city-dot:hover,
[data-theme="dark"] .map-city-dot.map-dot-active {
  fill: #88cc66;
}
[data-theme="dark"] .city-label-text {
  fill: #6aad4a;
}

/* ========================
   CITY FILTER DROPDOWN
   ======================== */
.dir-dropdown-wrap {
  margin-bottom: var(--space-6);
}

.dir-dropdown {
  position: relative;
  display: inline-block;
}

.dir-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  min-width: 220px;
  justify-content: space-between;
  transition: background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.dir-dropdown-trigger:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
}

.dir-dropdown-trigger:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.dir-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.dir-dropdown-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}

.dir-dropdown-trigger[aria-expanded="true"] .dir-dropdown-chevron {
  transform: rotate(180deg);
}

.dir-dropdown-panel {
  display: none;
  display: none;
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  z-index: 50;
  min-width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  column-count: 2;
  column-gap: 0;
}

@media (min-width: 640px) {
  .dir-dropdown-panel {
    min-width: 420px;
    column-count: 3;
  }
}

.dir-dropdown-panel.open {
  display: block;
}

.dir-dropdown-option {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-interactive),
              color var(--transition-interactive);
  break-inside: avoid;
}

.dir-dropdown-option:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.dir-dropdown-option.active {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-weight: 600;
}

.dir-dropdown-option.all-cities {
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-1);
  padding-bottom: var(--space-3);
  column-span: all;
}

.dir-dropdown-option.all-cities.active {
  color: var(--color-primary);
}

/* ========================
   FEATURED PARTNERS
   ======================== */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--content-default);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-card-body {
  flex: 1;
}

.partner-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.partner-owner {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.partner-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: none;
}

.partner-areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.partner-area-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.partner-card-footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

/* ========================
   MOVING TO OREGON
   ======================== */
.moving-section {
  background: var(--color-primary-highlight);
}

[data-theme="dark"] .moving-section {
  background: var(--color-primary-highlight);
}

.moving-inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
}

.moving-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.moving-inner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.moving-inner p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.moving-inner .btn {
  margin-top: var(--space-4);
}

/* ========================
   PROPERTY OWNER CTA
   ======================== */
.owner-cta-section {
  background: var(--color-surface-offset);
}

.owner-cta-inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
}

.owner-cta-inner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.owner-cta-inner p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}


/* ========================
   FEATURED BADGE (Directory)
   ======================== */
.dir-card-featured {
  position: relative;
}

.dir-card-featured .featured-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: #2d5016;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.dir-card-featured .featured-badge svg {
  flex-shrink: 0;
}

.dir-card-featured {
  border: 2px solid #2d5016;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .dir-card-featured {
  border-color: #6aad4a;
}

[data-theme="dark"] .dir-card-featured .featured-badge {
  background: #4a7c2f;
}

/* ========================
   PODCAST FEATURE
   ======================== */
.podcast-feature {
  margin-top: var(--space-10);
  padding: var(--space-8);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
}

.podcast-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.podcast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  flex-shrink: 0;
}

.podcast-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 2px;
}

.podcast-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

.podcast-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  background: #000;
}

.podcast-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

.podcast-highlights h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.podcast-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.podcast-highlights li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
}

.podcast-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}
