/* ============================================================================
   GENE THOMPSON & ASSOCIATES - Main Stylesheet
   Version: 2.0
   ============================================================================ */

/* ============================================================================
   CSS RESET
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */

:root {
  /* Color Palette - Steel + Navy (from logo) */
  --color-ink-900: #1a2744;
  --color-ink-800: #233253;
  --color-ink-700: #2e4068;

  --color-steel-700: #3b4f69;
  --color-steel-600: #4a5d75;
  --color-steel-500: #5a6f8a;
  --color-steel-400: #7089a8;
  --color-steel-300: #8fa3bc;
  --color-steel-200: #b5c0cc;
  --color-steel-100: #d7e0ea;

  --color-mist-50: #f5f7fa;
  --color-mist-100: #edf1f6;
  --color-mist-200: #e1e7ef;

  /* Semantic Colors */
  --color-text-primary: #1a2744;
  --color-text-secondary: #2e4068;
  --color-text-muted: #5a6f8a;
  --color-text-inverse: #f7f9fb;

  --color-bg-primary: #f5f7fa;
  --color-bg-secondary: #e7edf4;
  --color-bg-elevated: #ffffff;
  --color-bg-card: #ffffff;

  --color-border-default: #c7d0db;
  --color-border-subtle: #dde4ec;
  --color-border-strong: #9eacbe;

  /* Status Colors - Accessible on light backgrounds */
  --color-success: #2f6d56;
  --color-warning: #7b5b27;
  --color-error: #a13a3a;
  --color-available: #2f6d56;
  --color-unavailable: #a13a3a;

  /* Typography - System fonts for better performance */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Spacing Scale */
  --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;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: var(--space-4);

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 6px rgba(26, 39, 68, 0.1);
  --shadow-md: 0 10px 20px rgba(26, 39, 68, 0.12);
  --shadow-lg: 0 16px 32px rgba(26, 39, 68, 0.14);
  --shadow-xl: 0 28px 50px rgba(26, 39, 68, 0.16);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-8);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-12);
  }
}

/* ============================================================================
   BASE TYPOGRAPHY
   ============================================================================ */

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(143, 163, 188, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(90, 111, 138, 0.2) 0%,
      transparent 45%
    ),
    linear-gradient(135deg, #f7f9fb 0%, #e8eef5 100%);
  position: relative;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
      120deg,
      rgba(26, 39, 68, 0.05) 0%,
      rgba(26, 39, 68, 0.02) 45%,
      transparent 60%
    ),
    repeating-linear-gradient(
      125deg,
      rgba(90, 111, 138, 0.09) 0,
      rgba(90, 111, 138, 0.09) 1px,
      transparent 1px,
      transparent 84px
    );
  opacity: 0.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }
}

p {
  color: var(--color-text-secondary);
}

/* Label/Eyebrow Style */
.label {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-steel-500);
}

/* ============================================================================
   LAYOUT UTILITIES
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section Spacing */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section:not(.section--intro) {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.section--intro {
  padding-top: calc(96px + var(--space-6));
}

@media (min-width: 768px) {
  .section--intro {
    padding-top: calc(96px + var(--space-8));
  }
}

@media (min-width: 1024px) {
  .section--intro {
    padding-top: calc(112px + var(--space-8));
  }
}

.section--argyle {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.section--argyle > .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.section-header {
  margin-bottom: var(--space-12);
  animation: rise-in 800ms ease both;
}

.section-header--centered {
  text-align: center;
}

.section-title {
  margin-bottom: var(--space-3);
  text-transform: none;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-steel-600);
  max-width: 600px;
}

.section-header--centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(1, 1fr);
}

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

.section .grid > * {
  animation: rise-in 700ms ease both;
}

.section .grid > *:nth-child(1) {
  animation-delay: 80ms;
}
.section .grid > *:nth-child(2) {
  animation-delay: 160ms;
}
.section .grid > *:nth-child(3) {
  animation-delay: 240ms;
}
.section .grid > *:nth-child(4) {
  animation-delay: 320ms;
}
.section .grid > *:nth-child(5) {
  animation-delay: 400ms;
}
.section .grid > *:nth-child(6) {
  animation-delay: 480ms;
}

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

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-ink-900);
  color: var(--color-text-inverse);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-steel-500);
  outline-offset: 2px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background-color var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast);
  min-height: 44px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.btn--primary {
  background-image: linear-gradient(
    120deg,
    var(--color-ink-900) 0%,
    var(--color-steel-600) 100%
  );
  color: var(--color-text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Secondary Button */
.btn--secondary {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--color-text-primary);
  border-color: var(--color-border-default);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover:not(:disabled) {
  border-color: var(--color-steel-600);
  color: var(--color-steel-700);
  transform: translateY(-1px);
}

/* Ghost Button */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.btn--ghost:hover:not(:disabled) {
  color: var(--color-text-primary);
}

/* Button Sizes */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  min-height: 52px;
}

.btn--block {
  width: 100%;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: rgba(245, 248, 252, 0.9);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(90, 111, 138, 0.2);
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

@media (min-width: 1024px) {
  .site-header__inner {
    height: 112px;
  }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-logo img {
  height: 64px;
  width: auto;
}

@media (min-width: 1024px) {
  .site-logo img {
    height: 80px;
  }
}

/* Primary Navigation */
.primary-nav {
  display: none;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
  }
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.primary-nav__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.primary-nav__link:hover,
.primary-nav__link--active {
  color: var(--color-ink-900);
}

.primary-nav__link--active {
  position: relative;
}

.primary-nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-4);
  right: var(--space-4);
  height: 3px;
  background-image: linear-gradient(
    120deg,
    var(--color-ink-900) 0%,
    var(--color-steel-400) 100%
  );
  border-radius: 999px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
}

@media (min-width: 1024px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-ink-900);
  transition: all var(--transition-fast);
}

.mobile-nav-toggle[aria-expanded='true'] .mobile-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded='true'] .mobile-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded='true'] .mobile-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  position: fixed;
  top: 96px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-overlay);
  background-color: var(--color-bg-primary);
  background-image: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(233, 239, 246, 0.9) 100%
  );
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-nav[aria-hidden='false'] {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(90, 111, 138, 0.2);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--color-ink-900);
}

/* Body scroll lock when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background-color: var(--color-bg-secondary);
  background-image: linear-gradient(
    180deg,
    rgba(231, 237, 244, 0.9) 0%,
    rgba(245, 247, 250, 0.95) 100%
  );
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

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

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
  }
}

/* Footer Brand */
.site-footer__brand {
  max-width: 300px;
}

.site-footer__brand img {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
  .site-footer__brand img {
    height: 64px;
  }
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Footer Navigation */
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.site-footer__heading {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.site-footer__nav a:hover {
  color: var(--color-text-primary);
}

/* Footer Contact */
.site-footer__contact address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.site-footer__contact a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.site-footer__contact a:hover {
  color: var(--color-text-primary);
}

.site-footer__contact p {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

/* Footer Bottom */
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer__legal a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--color-text-primary);
}

/* Equal Housing Logo */
.equal-housing {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.equal-housing svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at 12% 20%,
      rgba(143, 163, 188, 0.45) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(74, 93, 117, 0.4) 0%,
      transparent 50%
    ),
    linear-gradient(140deg, #f7f9fb 0%, #e2e9f2 100%);
}

.hero__background::after {
  content: '';
  position: absolute;
  inset: -30% -20%;
  background-image: linear-gradient(
      60deg,
      rgba(26, 39, 68, 0.08) 25%,
      transparent 25%,
      transparent 75%,
      rgba(26, 39, 68, 0.08) 75%,
      rgba(26, 39, 68, 0.08)
    ),
    linear-gradient(
      -60deg,
      rgba(26, 39, 68, 0.08) 25%,
      transparent 25%,
      transparent 75%,
      rgba(26, 39, 68, 0.08) 75%,
      rgba(26, 39, 68, 0.08)
    );
  background-size: 120px 208px;
  opacity: 0.35;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(247, 249, 251, 0.92) 0%,
    rgba(236, 241, 247, 0.8) 55%,
    rgba(231, 237, 244, 0.7) 100%
  );
  backdrop-filter: blur(6px);
}

/* ============================================================================
   PROPERTY CARDS
   ============================================================================ */

.property-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base), border-color var(--transition-base);
}

.property-card:hover {
  border-color: var(--color-steel-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.property-card__link {
  display: block;
}

.property-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-mist-100);
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card:hover .property-card__image img {
  transform: scale(1.03);
}

.property-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background-color: rgba(26, 39, 68, 0.85);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-steel-200);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

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

.property-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

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

.property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.property-card__spec {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.property-card__spec strong {
  color: var(--color-text-primary);
  font-weight: var(--font-semibold);
}

/* ============================================================================
   PROPERTY TYPE CARDS (Home Page)
   ============================================================================ */

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: var(--space-6);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base), border-color var(--transition-base);
}

@media (min-width: 768px) {
  .type-card {
    min-height: 400px;
    padding: var(--space-8);
  }
}

.type-card:hover {
  border-color: var(--color-steel-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.type-card__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.type-card__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.type-card:hover .type-card__background img {
  opacity: 0.4;
}

.type-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 39, 68, 0.88) 0%,
    rgba(26, 39, 68, 0.1) 100%
  );
}

.type-card__content {
  position: relative;
  z-index: 1;
}

.type-card__label {
  margin-bottom: var(--space-2);
  color: var(--color-steel-200);
}

.type-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
}

@media (min-width: 768px) {
  .type-card__title {
    font-size: var(--text-3xl);
  }
}

.type-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-5);
  max-width: 400px;
}

.type-card--primary {
  border-color: var(--color-steel-600);
}

/* ============================================================================
   VALUE PROPOSITION CARDS
   ============================================================================ */

.value-card {
  padding: var(--space-6);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  background-color: var(--color-mist-100);
  border-radius: var(--radius-md);
  color: var(--color-steel-600);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.value-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
  background-color: var(--color-bg-secondary);
  background-image: linear-gradient(
    120deg,
    rgba(26, 39, 68, 0.08),
    rgba(143, 163, 188, 0.25),
    rgba(26, 39, 68, 0.08)
  );
  background-size: 200% 200%;
  animation: shimmer 12s ease infinite;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.cta-section__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section__title {
  margin-bottom: var(--space-4);
}

.cta-section__text {
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
}

/* ============================================================================
   PAGE HEADER
   ============================================================================ */

.page-header {
  padding-top: calc(96px + var(--space-12));
  padding-bottom: var(--space-12);
  background-color: var(--color-bg-secondary);
  background-image: linear-gradient(
    135deg,
    rgba(247, 249, 251, 0.98) 0%,
    rgba(226, 233, 242, 0.95) 100%
  );
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -20%;
  top: -40%;
  width: 60%;
  height: 160%;
  background: radial-gradient(
    circle,
    rgba(143, 163, 188, 0.25) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1024px) {
  .page-header {
    padding-top: calc(80px + var(--space-16));
    padding-bottom: var(--space-16);
  }
}

.page-header__title {
  margin-bottom: var(--space-3);
}

.page-header__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumb__item a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
  color: var(--color-text-primary);
}

.breadcrumb__separator {
  color: var(--color-text-muted);
}

/* ============================================================================
   PROPERTY FILTERS
   ============================================================================ */

.filters-section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  background-color: rgba(245, 247, 250, 0.9);
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 96px;
  z-index: var(--z-dropdown);
}

@media (min-width: 1024px) {
  .filters-section {
    top: 112px;
  }
}

.property-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .property-filters {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Toggle Group */
.toggle-group {
  display: inline-flex;
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  box-shadow: var(--shadow-sm);
}

.toggle-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  min-height: 40px;
}

.toggle-btn:hover {
  color: var(--color-text-secondary);
}

.toggle-btn--active {
  background-color: var(--color-ink-900);
  color: var(--color-text-inverse);
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: var(--space-4);
}

.filter-select {
  padding: var(--space-2) var(--space-4);
  padding-right: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6f8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  min-height: 40px;
}

.filter-select:focus {
  border-color: var(--color-steel-500);
  outline: none;
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.results-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-normal);
}

.results-count span {
  color: var(--color-text-primary);
  font-weight: var(--font-semibold);
}

/* ============================================================================
   PROPERTY DETAIL PAGE
   ============================================================================ */

.property-detail {
  padding-top: calc(96px + var(--space-8));
}

@media (min-width: 1024px) {
  .property-detail {
    padding-top: calc(112px + var(--space-8));
  }
}

.property-detail__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .property-detail__grid {
    grid-template-columns: 1fr 380px;
    gap: var(--space-12);
  }
}

/* Property Gallery */
.property-gallery {
  margin-bottom: var(--space-8);
}

.property-gallery__main {
  aspect-ratio: 16 / 10;
  background-color: var(--color-mist-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.property-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.property-gallery__thumb {
  aspect-ratio: 4 / 3;
  background-color: var(--color-mist-100);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.property-gallery__thumb:hover,
.property-gallery__thumb--active {
  border-color: var(--color-steel-500);
}

.property-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Property Header */
.property-header {
  margin-bottom: var(--space-8);
}

.property-header__badge {
  display: inline-flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.property-header__type {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-steel-600);
  background-color: var(--color-mist-100);
  border-radius: var(--radius-sm);
}

.property-header__status {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.property-header__status--available {
  background-color: var(--color-available);
  color: var(--color-text-inverse);
}

.property-header__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .property-header__title {
    font-size: var(--text-4xl);
  }
}

.property-header__address {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* Property Specs */
.property-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .property-specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-item {
  text-align: center;
  padding: var(--space-3);
}

.spec-item__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.spec-item__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

/* Property Description */
.property-description {
  margin-bottom: var(--space-8);
}

.property-description h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.property-description p {
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.property-description p:last-child {
  margin-bottom: 0;
}

/* Property Features */
.property-features {
  margin-bottom: var(--space-8);
}

.property-features h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.features-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-3);
}

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

.features-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.features-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-steel-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Property Sidebar */
.property-sidebar {
  position: sticky;
  top: calc(80px + var(--space-6));
}

/* Price Card */
.price-card {
  padding: var(--space-6);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.price-card__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.price-card__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.price-card__term {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.price-card .btn {
  margin-bottom: var(--space-3);
}

.price-card .btn:last-child {
  margin-bottom: 0;
}

.price-card__contact {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}

.price-card__contact-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.price-card__phone {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-steel-500);
  box-shadow: 0 0 0 3px rgba(90, 111, 138, 0.18);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6f8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-2);
}

/* Inquiry Form */
.inquiry-form {
  padding: var(--space-6);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.inquiry-form__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

/* Contact Form (Full Page) */
.contact-form {
  max-width: 600px;
}

/* ============================================================================
   CONTACT PAGE
   ============================================================================ */

.contact-grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 400px;
  }
}

.contact-info {
  padding: var(--space-8);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.contact-info__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.contact-info__item {
  margin-bottom: var(--space-6);
}

.contact-info__item:last-child {
  margin-bottom: 0;
}

.contact-info__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.contact-info__value a {
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.contact-info__value a:hover {
  color: var(--color-steel-600);
}

/* ============================================================================
   ABOUT PAGE
   ============================================================================ */

.about-intro {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.about-intro__content h2 {
  margin-bottom: var(--space-6);
}

.about-intro__content p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.about-intro__image {
  aspect-ratio: 4 / 3;
  background-color: var(--color-mist-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Broker Info */
.broker-info {
  padding: var(--space-8);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.broker-info__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.broker-info__credential {
  font-size: var(--text-sm);
  color: var(--color-steel-400);
  margin-bottom: var(--space-4);
}

.broker-info__text {
  line-height: var(--leading-relaxed);
}

/* ============================================================================
   LEGAL PAGES
   ============================================================================ */

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.legal-content ul li {
  list-style-type: disc;
}

.legal-content ol li {
  list-style-type: decimal;
}

.legal-content a {
  color: var(--color-ink-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--color-ink-900);
}

/* Last Updated */
.legal-updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-muted);
}

.empty-state__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.empty-state__text {
  margin-bottom: var(--space-6);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   NOTIFICATION/TOAST
   ============================================================================ */

.notification {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  opacity: 0;
  transition: all var(--transition-base);
}

.notification--visible {
  transform: translateY(0);
  opacity: 1;
}

.notification--success {
  border-color: var(--color-success);
}

.notification--error {
  border-color: var(--color-error);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

/* Spacing */
/* ============================================================================
   PLACEHOLDER IMAGE STYLES
   ============================================================================ */

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-steel-300) 0%,
    var(--color-steel-600) 100%
  );
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ============================================================================
   ANIMATION UTILITIES
   ============================================================================ */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0ms !important;
  }
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading-placeholder {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border-subtle);
  border-top-color: var(--color-steel-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
