/* ============================================================
   Aurora Masterson Real Estate — Design System
   Palette derived from PlumTree brand: plum/burgundy + forest green
   Fonts: Cormorant Garamond (display) + Satoshi (body)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root,
[data-theme='light'] {
  /* Surfaces — warm ivory/cream */
  --color-bg: #f8f5f0;
  --color-surface: #fdfbf7;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f1ece3;
  --color-surface-dynamic: #e9e2d6;
  --color-divider: #e2dacd;
  --color-border: #d8cfbf;

  /* Text — warm charcoal */
  --color-text: #2b2622;
  --color-text-muted: #6f665c;
  --color-text-faint: #a89e90;
  --color-text-inverse: #f8f5f0;

  /* Primary accent — PlumTree plum/burgundy */
  --color-primary: #8b3a62;
  --color-primary-hover: #6f2c4d;
  --color-primary-active: #561f3a;
  --color-primary-soft: #f0e2e9;

  /* Secondary — forest green (from logo leaf) */
  --color-green: #2f7d4f;
  --color-green-hover: #256540;
  --color-green-soft: #e2efe7;

  /* Gold hairline for luxury detailing */
  --color-gold: #b08d57;

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

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --shadow-sm: 0 1px 3px rgba(43, 38, 34, 0.07);
  --shadow-md: 0 6px 20px rgba(43, 38, 34, 0.1);
  --shadow-lg: 0 18px 48px rgba(43, 38, 34, 0.16);

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Satoshi', 'Inter', -apple-system, sans-serif;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --text-2xl: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  --text-3xl: clamp(2.8rem, 1.4rem + 5vw, 5.5rem);

  /* 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;
}

[data-theme='dark'] {
  --color-bg: #191512;
  --color-surface: #211c18;
  --color-surface-2: #272019;
  --color-surface-offset: #201b16;
  --color-surface-dynamic: #2e2620;
  --color-divider: #322a22;
  --color-border: #3d332a;
  --color-text: #ece5db;
  --color-text-muted: #a99e8f;
  --color-text-faint: #776c5d;
  --color-text-inverse: #191512;
  --color-primary: #d179a3;
  --color-primary-hover: #e08fb4;
  --color-primary-active: #eca6c6;
  --color-primary-soft: #33242c;
  --color-green: #62b382;
  --color-green-hover: #7cc599;
  --color-green-soft: #23302a;
  --color-gold: #cba86e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #191512;
    --color-surface: #211c18;
    --color-surface-2: #272019;
    --color-surface-offset: #201b16;
    --color-surface-dynamic: #2e2620;
    --color-divider: #322a22;
    --color-border: #3d332a;
    --color-text: #ece5db;
    --color-text-muted: #a99e8f;
    --color-text-faint: #776c5d;
    --color-text-inverse: #191512;
    --color-primary: #d179a3;
    --color-primary-hover: #e08fb4;
    --color-primary-soft: #33242c;
    --color-green: #62b382;
    --color-green-soft: #23302a;
    --color-gold: #cba86e;
  }
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

ul[role='list'] {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

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

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

::selection {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- LAYOUT HELPERS ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.wrap-narrow {
  max-width: var(--content-narrow);
}

.wrap-default {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

.section-title {
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
}

.section-lead {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 56ch;
  margin-top: var(--space-4);
  line-height: 1.6;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.8rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: var(--text-base);
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition:
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.header--scrolled {
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-divider);
}

.header--hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo {
  height: 42px;
  width: auto;
  transition: opacity var(--transition-interactive);
}

.nav__logo--light {
  display: none;
}

/* On transparent (top of page) hero header, use white logo */
.header:not(.header--scrolled) .nav__brand .nav__logo--dark {
  display: none;
}
.header:not(.header--scrolled) .nav__brand .nav__logo--light {
  display: block;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  transition: color var(--transition-interactive);
}

.nav__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.header:not(.header--scrolled) .nav__name,
.header:not(.header--scrolled) .nav__link {
  color: #fff;
}
.header:not(.header--scrolled) .nav__name small {
  color: rgba(255, 255, 255, 0.78);
}
.header:not(.header--scrolled) .theme-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-block: var(--space-1);
  transition: color var(--transition-interactive);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}

.nav__link:hover::after,
.nav__link[aria-current='page']::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

.header:not(.header--scrolled) .nav__link:hover {
  color: rgba(255, 255, 255, 0.75);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav__cta {
  padding: 0.7rem 1.4rem;
  font-size: var(--text-sm);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out), background 0.2s;
}

.header:not(.header--scrolled) .nav__toggle span {
  background: #fff;
}

/* When the menu is open, morph the hamburger into a clear X and force it dark
   so it stands out against the light menu panel. */
body.nav-open .nav__toggle span {
  background: var(--color-text) !important;
}
body.nav-open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dim backdrop behind the open menu — tap it to close. */
.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 12, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  z-index: 100;
}
body.nav-open .nav__backdrop {
  opacity: 1;
  visibility: visible;
}

/* Keep the header (and its toggle) above the backdrop while the menu is open. */
body.nav-open .header {
  z-index: 130;
}
body.nav-open {
  overflow: hidden;
}

/* While the menu is open, pin the toggle (now an X) to the top-right corner
   so it always sits clearly on top of the menu panel and never scrolls away. */
body.nav-open .nav__toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.nav__cta--mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .nav__cta--mobile-only {
    display: block;
  }
  .nav__cta--mobile-only .nav__cta {
    color: #fff !important;
  }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-16) var(--space-8);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav__links.open {
    transform: translateX(0);
  }
  .nav__links .nav__link {
    color: var(--color-text) !important;
    font-size: var(--text-lg);
  }
  .nav__toggle {
    display: flex;
    z-index: 110;
  }
  .nav__cta--desktop {
    display: none;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1f1a16;
  color: #d6cdbf;
  padding-block: var(--space-20) var(--space-8);
}

.footer a {
  color: #d6cdbf;
  transition: color var(--transition-interactive);
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
  height: 46px;
  margin-bottom: var(--space-5);
}

.footer__about {
  color: #a99e8f;
  max-width: 40ch;
  font-size: var(--text-sm);
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  font-weight: 600;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col a {
  font-size: var(--text-sm);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: #8a8073;
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 780px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ---------- SCROLL REVEAL (no CLS) ---------- */
.reveal {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 22%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* JS-based reveal — progressive enhancement.
   Content is VISIBLE by default. Only when JS confirms IntersectionObserver
   support does it add .js-reveal to <html>, which arms the hidden state.
   This guarantees content is never stuck invisible if JS fails. */
.io-reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.js-reveal .io-reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js-reveal .io-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .io-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- CARDS: LISTINGS ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* ---------- CAROUSEL (featured listings) ---------- */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-12);
}
.carousel__viewport {
  overflow: hidden;
  flex: 1 1 auto;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track {
  /* override the grid layout when used as a horizontal carousel track */
  display: flex !important;
  grid-template-columns: none !important;
  gap: var(--space-6);
  margin-top: 0 !important;
}
.carousel__track > .listing-card {
  flex: 0 0 clamp(280px, 32%, 360px);
  scroll-snap-align: start;
}
.carousel__btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive), opacity var(--transition-interactive), box-shadow var(--transition-interactive);
  box-shadow: var(--shadow-sm);
}
.carousel__btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-divider);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.carousel__dot.active {
  background: var(--color-primary);
  transform: scale(1.25);
}
@media (max-width: 700px) {
  .carousel__btn { display: none; }
  .carousel__track > .listing-card { flex: 0 0 85%; }
}

/* "New listings coming soon" placeholder block */
.coming-soon {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-sm);
}
.coming-soon--page {
  background: var(--color-primary-soft);
  border: 1px dashed var(--color-primary);
}
.coming-soon__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.coming-soon__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.coming-soon__text {
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 48ch;
  margin: 0 auto var(--space-6);
}

/* "See more" card at the end of the carousel */
.listing-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-primary-soft);
  border: 1px dashed var(--color-primary);
  min-height: 100%;
}
.listing-card--more:hover {
  background: var(--color-primary);
}
.more-card__inner {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.more-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  transition: transform var(--transition-interactive);
}
.listing-card--more:hover .more-card__icon {
  transform: translateX(4px);
  background: #fff;
  color: var(--color-primary);
}
.more-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}
.listing-card--more:hover .more-card__title,
.listing-card--more:hover .more-card__sub,
.listing-card--more:hover .listing-card__link {
  color: #fff;
}
.more-card__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 220px;
  line-height: 1.5;
}

.listing-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
}

.listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.listing-card:hover .listing-card__media img {
  transform: scale(1.06);
}

.listing-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(6px);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.listing-card__badge--green {
  color: var(--color-green);
}

.listing-card__body {
  padding: var(--space-6);
}

.listing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}

.listing-card__addr {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.listing-card__specs {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.listing-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.listing-card__specs strong {
  color: var(--color-text);
  font-weight: 600;
}

.listing-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.listing-card:hover .listing-card__link svg {
  transform: translateX(4px);
}

.listing-card__link svg {
  transition: transform var(--transition-interactive);
}

/* ---------- FORMS ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

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

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: var(--text-base);
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

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

.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.form-success {
  display: none;
  background: var(--color-green-soft);
  border: 1px solid var(--color-green);
  color: var(--color-green);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 500;
}

.form-success.show {
  display: block;
  animation: reveal-fade 0.5s var(--ease-out) both;
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- TIP CARDS ---------- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.tip-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

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

.tip-card__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-3);
}

.tip-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.tip-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.tip-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
