@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-red: #A51F14;
  --brand-red-dark: #7E170D;
  --brand-red-soft: #FBEAE8;
  --brand-gray: #6B6660;
  --brand-gray-light: #9C968E;
  --brand-white: #FFFFFF;
  --text-dark: #1C1B1A;
  --bg: #FBF9F6;
  --surface: #FFFFFF;
  --muted: #F3EEE8;
  --border-color: #E7E1D8;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(28,27,26,0.04), 0 8px 24px rgba(28,27,26,0.06);
  --shadow-lg: 0 4px 8px rgba(28,27,26,0.05), 0 24px 48px rgba(28,27,26,0.12);
  --shadow-red: 0 1px 2px rgba(165,31,20,0.15), 0 8px 20px rgba(165,31,20,0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-logo, .page-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--brand-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .v2-reveal, .reveal { opacity: 1 !important; transform: none !important; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 225, 216, 0.8);
  min-width: 0;
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-logo img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.site-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1;
}

.site-wordmark__accent {
  color: var(--brand-red);
}

@media (max-width: 720px) {
  .site-wordmark {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--brand-gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.site-nav a.btn {
  color: var(--brand-white);
}

.site-nav a:hover {
  color: var(--text-dark);
  text-decoration: none;
}

.site-nav a.btn:hover {
  color: var(--brand-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .site-header__inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 3px solid var(--brand-red);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    z-index: 500;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .site-nav--open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }
}

/* Main */
.site-main {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  min-width: 0;
}

.site-main--wide {
  max-width: 1160px;
}

.site-main--flush {
  display: flex;
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card h1 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.form-card__subhead {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: normal;
  color: var(--brand-gray);
  margin-top: 0.3rem;
}

.form-card--glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: normal;
  text-transform: none;
  color: var(--brand-gray);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-color);
  font-size: 1rem;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-red);
  color: var(--brand-white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  width: 100%;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-red);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 44px;
}

.btn:hover {
  background: var(--brand-red-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(165,31,20,0.3);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--brand-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

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

.btn--inline {
  width: auto;
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--surface);
  color: var(--text-dark);
  border-color: var(--text-dark);
  box-shadow: none;
}

/* Homepage hero */
.home-hero {
  flex: 1;
  min-height: 500px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-image: linear-gradient(rgba(28,27,26, 0.4), rgba(28,27,26, 0.4)), url('/assets/images/homebackground.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .home-hero {
    background-image: linear-gradient(rgba(28,27,26, 0.45), rgba(28,27,26, 0.45)), url('/assets/images/homebackground-mobile.jpg');
    min-height: 380px;
    padding: 3rem 1rem;
  }
}

.hero {
  padding: 0 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  color: var(--brand-white);
  margin: 0 0 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

.hero-title__owasso {
  color: var(--brand-white);
}

.hero-title__rents {
  color: #F0A99E;
}

.hero p {
  color: var(--brand-white);
  font-weight: 500;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-notice {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  text-align: center;
  margin: 0 auto;
  max-width: 640px;
  border-radius: var(--radius-lg);
}

.hero-notice p {
  margin: 0 0 1.1rem;
  color: var(--text-dark);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.form-footer-link {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--brand-gray);
}

.alert {
  padding: 0.8rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--brand-red);
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
  border-radius: var(--radius-sm);
}

.alert--success {
  border-color: var(--border-color);
  background: var(--muted);
  color: var(--text-dark);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  min-width: 0;
}

.site-main--flush + .site-footer {
  margin-top: 0;
}

.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.fair-housing {
  font-size: 0.78rem;
  color: var(--brand-gray-light);
  max-width: 800px;
}

.site-footer__meta {
  font-size: 0.78rem;
  color: var(--brand-gray-light);
  margin-top: 0.75rem;
}

/* Page headings */
.page-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin: 0 0 1.5rem;
}

.section-subhead {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 0 0 1rem;
}

.listing-grid--favorites {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.dashboard-header .page-title {
  margin-bottom: 0;
}

/* Multi-field form rows */
.field-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.field-row .field {
  flex: 1 1 160px;
}

.field--small {
  flex: 0 1 90px;
}

.field-optional {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-color);
  font-size: 1rem;
  font-family: var(--font-body);
  resize: vertical;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-color);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field select:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--text-dark);
}

.field-checkbox input {
  margin-top: 0.2rem;
}

.fair-housing-box {
  border: 1px solid var(--border-color);
  padding: 1.1rem;
  margin: 1.5rem 0;
  background: var(--muted);
  border-radius: var(--radius);
}

.fair-housing-box .fair-housing {
  margin: 0 0 0.75rem;
}

/* Listing grid / cards */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 1rem;
  color: var(--text-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.listing-card__media {
  position: relative;
  margin: -1rem -1rem 0.9rem;
}

.listing-card__img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--muted), var(--border-color));
}

.favorite-form {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  margin: 0;
}

.favorite-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

.favorite-btn:hover {
  transform: scale(1.08);
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand-red);
  fill: none;
  transition: fill 0.2s var(--ease);
}

.favorite-btn--active svg {
  fill: var(--brand-red);
}

.favorite-toggle-btn svg {
  stroke: currentColor;
  fill: none;
  transition: fill 0.2s var(--ease);
}

.favorite-toggle-btn--active {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.favorite-toggle-btn--active svg {
  fill: var(--brand-red);
}

.listing-card__type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-red);
}

.listing-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0.4rem 0 0.25rem;
  letter-spacing: -0.01em;
}

.listing-card__link {
  color: inherit;
}

.listing-card__link:hover {
  text-decoration: none;
}

.listing-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.listing-card__location {
  color: var(--brand-gray);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.listing-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
}

.listing-card__available {
  font-size: 0.8rem;
  color: var(--brand-gray);
  margin: 0.25rem 0 0;
}

/* Listing detail */
.listing-detail__back {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.listing-detail h1 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin: 0.3rem 0 0.3rem;
  letter-spacing: -0.02em;
}

.listing-detail__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0 0 0.3rem;
}

.listing-detail__address {
  color: var(--brand-gray);
  margin: 0 0 0.3rem;
}

.listing-detail__available {
  color: var(--brand-gray);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.listing-detail__owner-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.listing-detail h2 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

.share-listing {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-feedback {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--brand-gray);
}

.listing-qr {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.listing-qr__label {
  font-size: 1.3rem;
  color: var(--brand-gray);
  margin-bottom: 1.1rem;
}

.listing-qr__img {
  width: 270px;
  height: 270px;
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  background: var(--surface);
  cursor: zoom-in;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.listing-qr__hint {
  font-size: 1.1rem;
  color: var(--brand-gray);
  margin: 0.6rem 0 0;
}

/* Dashboard table */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.listing-table {
  width: 100%;
  border-collapse: collapse;
}

.listing-table th, .listing-table td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.listing-table th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-gray);
}

.listing-table__actions {
  white-space: nowrap;
}

.listing-table__actions a {
  margin-right: 0.75rem;
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--brand-gray-light);
  color: var(--brand-gray);
  border-radius: var(--radius-pill);
  background: var(--muted);
}

.badge--active {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.badge--draft {
  border-color: var(--brand-gray-light);
  color: var(--brand-gray);
}

.badge--expired {
  border-color: #ccc;
  color: #999;
}

/* Listing gallery (detail page) */
.listing-gallery {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  margin-bottom: 1.1rem;
}

.listing-gallery__img {
  height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.listing-gallery__img--main {
  height: 320px;
}

/* Photo management */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  position: relative;
  border-radius: var(--radius);
  transition: box-shadow 0.25s var(--ease);
}

.photo-card:hover {
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

.photo-card .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--surface);
}

.photo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-red);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-body);
}

.link-btn--danger {
  color: var(--brand-red-dark);
}

.link-btn:disabled {
  color: var(--brand-gray-light);
  text-decoration: none;
  cursor: default;
}

/* Search filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
}

.filter-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group legend {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-gray);
  padding: 0;
  margin-bottom: 0.2rem;
}

.filter-group label:not(.type-chip) {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-gray);
}

.filter-group input[type="number"],
.filter-group input[type="text"] {
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--border-color);
  font-size: 0.9rem;
  font-family: var(--font-body);
  width: 130px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dark);
}

.filter-group input[type="number"]:focus,
.filter-group input[type="text"]:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-soft);
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.type-chip {
  position: relative;
}

.type-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.type-chip span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border-color);
  background: var(--surface);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  border-radius: var(--radius-pill);
}

.type-chip:hover span {
  border-color: var(--brand-red);
  transform: translateY(-1px);
}

.type-chip input:checked + span {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--brand-white);
  box-shadow: var(--shadow-red);
}

.type-chip input:focus-visible + span {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.filter-group--actions {
  flex-direction: row;
  gap: 0.75rem;
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--brand-red);
  width: fit-content;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.view-toggle__btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--brand-red);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.view-toggle__btn:hover {
  text-decoration: none;
  background: var(--brand-red-soft);
}

.view-toggle__btn--active {
  background: var(--brand-red);
  color: var(--brand-white);
}

/* Map */
.listings-map {
  height: 500px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 17, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox--open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--brand-white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
}

body.lightbox-active {
  overflow: hidden;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--brand-white);
  font-size: 1.4rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s var(--ease);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

/* Scroll-reveal + hover motion (shared, see assets/js/reveal.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

/* Homepage sections */
.hero-band {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 4.5rem;
  text-align: center;
  background: var(--surface);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, var(--brand-red-soft), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(165,31,20,0.05), transparent 40%),
    url('/assets/images/homebackground.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
}

.hero-band__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-band h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.05;
  color: var(--text-dark);
}

.hero-band h1 em {
  font-style: normal;
  color: var(--brand-red);
}

.hero-band p.lede {
  font-size: 1.15rem;
  color: var(--brand-gray);
  max-width: 560px;
  margin: 1.4rem auto 2.2rem;
}

@media (max-width: 720px) {
  .hero-band {
    padding: 1.75rem 1.25rem 2rem;
  }

  .hero-band h1 {
    font-size: 1.9rem;
  }

  .hero-band p.lede {
    font-size: 1rem;
    margin: 1rem auto 1.5rem;
  }

  .hero-band p {
    margin: 0.75rem 0;
  }

  .hero-actions {
    gap: 0.75rem;
  }
}

.section {
  padding: 4rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.section--muted {
  background: var(--muted);
  border-radius: var(--radius-lg);
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section__head p {
  color: var(--brand-gray);
  font-size: 1rem;
  margin: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 780px) {
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.trust-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.trust-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--brand-gray);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 940px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.step:hover .step__num {
  background: var(--brand-red);
  transform: scale(1.08);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--brand-gray);
  margin: 0;
}

.cta-banner {
  margin: 1rem auto 2rem;
  max-width: 1100px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -120px;
  right: -80px;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0.75rem auto 1.75rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn--inline {
  background: #fff;
  color: var(--brand-red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.cta-banner .btn--inline:hover {
  background: #fff;
  color: var(--brand-red-dark);
}

.listing-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gray-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty-state {
  text-align: center;
  color: var(--brand-gray);
  font-size: 0.95rem;
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
}
