/* ==========================================================================
   Rural Properties For Sale — app.css
   Complete CSS Framework
   Font: Inter (Google Fonts 400, 500, 600, 700, 800)
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --blue-dark:   #0051A1;
  --blue-mid:    #40619F;
  --blue-light:  #9FC3E7;
  --blue-pale:   #E0E5E9;
  --white:       #FFFFFF;
  --text:        #0D1B2A;
  --text-muted:  #5A6A7E;
  --danger:      #E05252;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm:   6px;
  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --shadow:      0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg:   0 16px 40px rgba(0, 81, 161, 0.15);
  --transition:  all 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Reset + Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background-color: var(--blue-pale);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-mid);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

.text-price {
  color: var(--blue-dark);
  font-weight: 700;
}

.text-danger {
  color: var(--danger);
}

.text-white {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   4. Layout System
   -------------------------------------------------------------------------- */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-gap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

.btn-primary:hover {
  background-color: #003D7A;
  border-color: #003D7A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 81, 161, 0.35);
}

.btn-secondary {
  background-color: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}

.btn-secondary:hover {
  background-color: #344F87;
  border-color: #344F87;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline:hover {
  background-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover {
  background-color: #c93e3e;
  border-color: #c93e3e;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   6. Cards (Generic)
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

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

.card-img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin: -24px -24px 16px -24px;
}

.card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   7. Property Card
   -------------------------------------------------------------------------- */
.property-card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.property-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Badge overlays */
.property-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background-color: var(--blue-dark);
  color: var(--white);
}

.badge-hot {
  background-color: var(--danger);
  color: var(--white);
}

.badge-price-drop {
  background-color: #2ECC71;
  color: var(--white);
}

.badge-investment {
  background-color: var(--blue-mid);
  color: var(--white);
}

/* Heart / save button */
.property-card__save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  z-index: 2;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.property-card__save:hover,
.property-card__save.active {
  background: var(--danger);
  color: var(--white);
  transform: scale(1.1);
}

/* Card body */
.property-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.property-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.property-card__location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Details row */
.property-card__details {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--blue-pale);
  border-bottom: 1px solid var(--blue-pale);
  margin-bottom: 12px;
}

.property-card__detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.property-card__detail strong {
  color: var(--text);
  font-weight: 600;
}

/* Tags row */
.property-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.property-card__tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background-color: var(--blue-pale);
  color: var(--blue-mid);
  border-radius: 20px;
  font-weight: 500;
}

/* Footer */
.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.property-card__agent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-card__agent-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.property-card__agent-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  background-color: var(--blue-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--white);
  opacity: 0.85;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 20px;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: var(--white);
  color: var(--blue-dark);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--blue-dark);
  z-index: 999;
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-mobile-menu.open {
  right: 0;
}

.nav-mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 81, 161, 0.85) 0%,
    rgba(13, 27, 42, 0.7) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  color: var(--white);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Hero search bar */
.hero-search {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 720px;
  margin: 0 auto;
}

.hero-search__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.hero-search__input::placeholder {
  color: var(--text-muted);
}

.hero-search__divider {
  width: 1px;
  height: 32px;
  background: var(--blue-pale);
}

.hero-search__btn {
  padding: 14px 28px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.hero-search__btn:hover {
  background: #003D7A;
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: center;
}

.hero-stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  display: block;
}

.hero-stat__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--blue-dark);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(0, 81, 161, 0.15);
}

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

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

.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='%235A6A7E' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--danger);
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

/* Custom checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 8px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-light);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.form-check input[type="radio"] {
  border-radius: 50%;
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.form-check-label {
  font-size: 0.9rem;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   12. Filter Sidebar
   -------------------------------------------------------------------------- */
.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.filter-section {
  border-bottom: 1px solid var(--blue-pale);
  padding: 16px 0;
}

.filter-section:first-child {
  padding-top: 0;
}

.filter-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Range slider styles */
.filter-range {
  padding: 8px 0;
}

.filter-range input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  background: var(--blue-pale);
  border-radius: 2px;
  outline: none;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-dark);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filter-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-dark);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filter-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   13. Listings Page Layout
   -------------------------------------------------------------------------- */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.listings-toolbar__count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.listings-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--blue-dark);
  font-weight: 500;
}

.filter-chip__remove {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-chip__remove:hover {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   14. Single Listing Page
   -------------------------------------------------------------------------- */
.listing-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
}

.listing-gallery__main {
  grid-row: 1 / 3;
}

.listing-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
}

.listing-gallery img:hover {
  brightness: 0.9;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.listing-sidebar {
  position: sticky;
  top: 96px;
}

.listing-sidebar .card {
  margin-bottom: 16px;
}

.listing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.listing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.9rem;
}

.listing-feature::before {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 81, 161, 0.1);
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. Testimonial Card
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  border: 1px solid var(--blue-light);
  transition: var(--transition);
}

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

.testimonial-card__quote-icon {
  font-size: 3rem;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card__stars {
  color: #F5A623;
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Stats Band
   -------------------------------------------------------------------------- */
.stats-band {
  background-color: var(--blue-dark);
  color: var(--white);
  padding: 48px 0;
}

.stats-band .grid-4 {
  text-align: center;
}

.stat-item__number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.stat-item__label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 8px;
  display: block;
}

/* --------------------------------------------------------------------------
   17. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius-md);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
  font-weight: 700;
}

.cta-banner .btn:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   18. Agent Profile
   -------------------------------------------------------------------------- */
.agent-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-strip__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
}

.agent-strip__name {
  font-weight: 600;
  font-size: 1rem;
}

.agent-strip__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #003DA5;
  color: var(--white);
  margin-top: 4px;
}

.agent-badge--remax {
  background: #DC1431;
}

/* --------------------------------------------------------------------------
   19. Admin Panel
   -------------------------------------------------------------------------- */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--blue-dark);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar__logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.admin-sidebar__nav {
  list-style: none;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.admin-sidebar__link:hover,
.admin-sidebar__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar__link.active {
  border-left: 3px solid var(--blue-light);
}

.admin-main {
  padding: 32px;
  background: var(--blue-pale);
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--blue-light);
}

.admin-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 81, 161, 0.1);
  color: var(--blue-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.admin-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.admin-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--blue-light);
}

.admin-table th {
  background: var(--blue-pale);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--blue-pale);
}

.admin-table tr:hover td {
  background: rgba(0, 81, 161, 0.03);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* Admin form */
.admin-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--blue-light);
}

.admin-form__section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--blue-pale);
}

.admin-form__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-form__section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   20. Utility Classes
   -------------------------------------------------------------------------- */

/* Margin top */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* Margin bottom */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* Margin vertical */
.my-1 { margin-top: 8px;  margin-bottom: 8px; }
.my-2 { margin-top: 16px; margin-bottom: 16px; }
.my-3 { margin-top: 24px; margin-bottom: 24px; }
.my-4 { margin-top: 32px; margin-bottom: 32px; }
.my-5 { margin-top: 48px; margin-bottom: 48px; }

/* Padding */
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 48px; }

/* Text alignment */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* Visibility */
.hidden       { display: none !important; }
.show-mobile  { display: none !important; }
.hide-mobile  { display: block; }

/* Border radius */
.rounded    { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* Shadows */
.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Section spacing */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   21. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease both;
}

.animate-fade-in-delay-1 {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.animate-fade-in-delay-3 {
  animation: fadeInUp 0.6s ease 0.3s both;
}

.animate-count-up {
  animation: countUp 0.8s ease both;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--blue-pale);
  border-top-color: var(--blue-dark);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* --------------------------------------------------------------------------
   22. Responsive — 1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero {
    min-height: 480px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .listing-detail-grid {
    grid-template-columns: 1fr;
  }

  .listing-sidebar {
    position: static;
  }

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

  .admin-layout {
    grid-template-columns: 220px 1fr;
  }
}

/* --------------------------------------------------------------------------
   23. Responsive — 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-menu {
    display: flex;
  }

  .nav-mobile-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .hero-search__divider {
    width: 100%;
    height: 1px;
  }

  .hero-search__input {
    width: 100%;
  }

  .hero-search__btn {
    width: 100%;
  }

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

  /* Listings */
  .listings-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    width: 100%;
  }

  .listings-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Listing detail */
  .listing-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .listing-features {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Visibility */
  .show-mobile {
    display: block !important;
  }

  .hide-mobile {
    display: none !important;
  }

  /* Admin */
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    padding: 16px 0;
  }

  .admin-main {
    padding: 16px;
  }

  /* Section */
  .section {
    padding: 40px 0;
  }

  .cta-banner {
    padding: 40px 16px;
  }

  .stats-band {
    padding: 32px 0;
  }
}

/* --------------------------------------------------------------------------
   24. Responsive — 480px
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .card {
    padding: 16px;
  }

  .property-card__body {
    padding: 16px;
  }

  .property-card__price {
    font-size: 1.25rem;
  }

  .property-card__details {
    flex-wrap: wrap;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-stat__number {
    font-size: 1.5rem;
  }

  .stat-item__number {
    font-size: 1.75rem;
  }

  .testimonial-card {
    padding: 20px;
  }

  .admin-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   25. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .site-nav,
  .site-footer,
  .nav-toggle,
  .btn,
  .filter-sidebar {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
  }
}
