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

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

/* =========================
   ROOT VARIABLES
========================= */

:root {
  --primary-blue: #002868;
  --white: #F5F5F5;
  --black: #111111;

  --steel-gray: #4B5563;
  --light-gray: #E5E7EB;

  --accent-green: #679436;

  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Inter', sans-serif;

  --max-width: 1200px;

  --section-padding: 100px 20px;

  --transition-speed: 0.3s;
}

/* =========================
   GLOBAL STYLES
========================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--section-padding);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  z-index: 1000;

  padding: 20px 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 20, 50, 0.85),
      rgba(0, 20, 50, 0.35),
      rgba(0, 20, 50, 0)
    );

  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* Hidden Header */

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

/* Scrolled State */

.site-header.scrolled {
  background-color: rgba(0, 40, 104, 0.96);

  backdrop-filter: blur(8px);
}

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

.hero {
  padding: 160px 20px 120px;
}

@media (max-width: 768px) {

  .hero {
    padding: 190px 20px 100px;
  }

}

/* =========================
   LOGO
========================= */

.header-logo img {
  width: 180px;
  height: auto;
  display: block;
}

/* =========================
   NAVIGATION
========================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;

  list-style: none;
}

.nav-links a {
  color: var(--white);

  font-size: 0.9rem;
  font-weight: 500;

  letter-spacing: 1px;
  text-transform: uppercase;

  transition: color var(--transition-speed) ease;
}

.nav-links a:hover {
  color: var(--accent-green);
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
  display: none;

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

.hamburger span {
  display: block;

  width: 28px;
  height: 3px;

  margin: 5px 0;

  background-color: var(--white);

  border-radius: 2px;

  transition: all var(--transition-speed) ease;
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 900px) {

  .hamburger {
    display: block;
  }

  .main-nav {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    background-color: rgba(0, 40, 104, 0.98);

    padding: 30px 20px;

    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

}

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

.hero {
  min-height: 88vh;

  display: flex;
  align-items: center;

  background:
    linear-gradient(
      rgba(0, 40, 104, 0.78),
      rgba(0, 40, 104, 0.78)
    ),
    url('../images/Website John Deere 9620RX.webp');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--white);

  padding: 120px 20px;
}

.hero-content {
  max-width: 750px;
}

.hero h1 {
  font-size: 5rem;

  margin-bottom: 24px;

  line-height: 1;
}

.hero p {
  font-size: 1.15rem;

  max-width: 650px;

  margin-bottom: 10px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;

  margin-top: 40px;
}

.highlight-item p {
  font-size: 0.95rem;
  font-weight: 600;

  color: rgba(255,255,255,0.9);
}

/* =========================
   HERO RESPONSIVE
========================= */

@media (max-width: 768px) {

  .hero {
    min-height: auto;

    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

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

  .hero-highlights {
    flex-direction: column;
    gap: 12px;
  }

}

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

.btn {
  display: inline-block;
  padding: 14px 28px;

  background-color: var(--accent-green);
  color: var(--white);

  font-weight: 600;
  border-radius: 4px;

  transition: all var(--transition-speed) ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =========================
   IMAGES
========================= */

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  section {
    padding: 70px 20px;
  }

}

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

.mt-sm {
  margin-top: 10px;
}

.mt-md {
  margin-top: 20px;
}

.mt-lg {
  margin-top: 40px;
}

.mt-xl {
  margin-top: 80px;
}

.mb-sm {
  margin-bottom: 10px;
}

.mb-md {
  margin-bottom: 20px;
}

.mb-lg {
  margin-bottom: 40px;
}

.mb-xl {
  margin-bottom: 80px;
}

/* =========================
   SECTION VARIATIONS
========================= */

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


.section-light {
  background-color: var(--white);
  color: var(--black);
}

.section-gray {
  background-color: var(--light-gray);
}

.section-tight {
  padding: 60px 20px;
}

.section-large {
  padding: 140px 20px;
}

/* =========================
   DARK SECTION CARDS
========================= */

.section-dark .card {
  background-color: white;
}

.section-dark .card h3 {
  color: #111;
}

.section-dark .card p {
  color: #4B5563;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

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

.text-center {
  text-align: center;
}

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

.text-blue {
  color: var(--primary-blue);
}

.text-gray {
  color: var(--steel-gray);
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 10px;
}


.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  max-width: 700px;

  margin: 0 auto;

  text-align: center;

  font-size: 1.1rem;

  color: var(--steel-gray);
}

/* =========================
   BUTTON SYSTEM
========================= */

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;

  border-radius: 4px;

  font-weight: 600;
  font-size: 1rem;

  transition: all var(--transition-speed) ease;
}

.btn-primary {
  background-color: var(--accent-green);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-blue);
}

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

.btn-dark:hover {
  opacity: 0.9;
}

/* White stroke on filled buttons when on non-white backgrounds */
.section-dark .btn-primary,
.section-dark .btn-dark,
.section-gray .btn-primary,
.section-gray .btn-dark,
.section-gray-image .btn-primary,
.section-gray-image .btn-dark,
.section-dark-image .btn-primary,
.section-dark-image .btn-dark {
  border: 2px solid var(--white);
}

/* =========================
   CARD SYSTEM
========================= */

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

.card {
  background-color: var(--white);

  padding: 30px;

  border-radius: 8px;

  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);

  transition: all var(--transition-speed) ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
}

.card p {
  color: var(--steel-gray);
}

/* =========================
   FLEX LAYOUTS
========================= */

.flex {
  display: flex;
}

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

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

/* =========================
   GRID LAYOUTS
========================= */

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

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

.image-rounded {
  border-radius: 10px;
}

.image-shadow {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 992px) {

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .card-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

}

.logo img {
  width: 180px;
  height: auto;
}

@media (max-width: 768px) {

  .logo img {
    width: 140px;
  }

}

/* =========================
   LOGO STYLES
========================= */

.logo-container {
  background-color: var(--primary-blue);

  padding: 12px 18px;

  border-radius: 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 180px;
  height: auto;
  display: block;
}

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

.footer-logo img {
  width: 160px;
  height: auto;
  display: block;
}

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

footer {
  background-color: var(--primary-blue);
  color: var(--white);

  padding: 80px 20px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;

  margin-bottom: 50px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-logo img {
  width: 180px;
  height: auto;

  margin-bottom: 20px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);

  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);

  transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--accent-green);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a,
.footer-contact p {
  color: rgba(255, 255, 255, 0.8);

  transition: all var(--transition-speed) ease;
}

.footer-contact a:hover {
  color: var(--accent-green);

  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);

  padding-top: 25px;

  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);

  font-size: 0.9rem;
}

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

@media (max-width: 768px) {

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}

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

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);

  transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
  color: var(--accent-green);

  transform: translateX(3px);
}

/* =========================
   WHITE IMAGE CONTAINER
========================= */

.image-white-background {
  background-color: var(--white);

  padding: 30px;

  border-radius: 10px;

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

/* =========================
   PREVIEW BANNER
========================= */

/* =========================
   PREVIEW BANNER
========================= */

.preview-banner {
  background-color: #7C5A1F;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding: 14px 20px;

  text-align: center;
}

.preview-banner p {
  color: rgba(255, 255, 255, 0.92);

  font-size: 0.8rem;

  letter-spacing: 0.5px;

  text-transform: uppercase;

  font-weight: 500;
}

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

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  overflow: hidden;

  padding: 180px 20px 120px;
}

/* =========================
   HERO SLIDES
========================= */

.hero-slides {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;

  opacity: 0;

transition: opacity 2.5s ease-in-out;}

.hero-slide.active {
  opacity: 1;
}

/* =========================
   HERO OVERLAY
========================= */

.hero-overlay {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      rgba(0, 40, 104, 0.72),
      rgba(0, 40, 104, 0.72)
    );

  z-index: 1;
}

/* =========================
   HERO CONTENT
========================= */

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

.hero-content {
  max-width: 700px;

  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
}

.hero-content .eyebrow {
  color: var(--accent-green) !important;
}

/* =========================
   MOBILE HERO
========================= */

@media (max-width: 768px) {

  .hero {
    min-height: 90vh;

    padding: 190px 20px 100px;
  }

}

/* =========================
   SERVICES GRID
========================= */

.services-grid {
  display: grid;

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

  gap: 30px;
}

@media (max-width: 768px) {

  .services-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================
   CONTACT FORM
========================= */

.contact-form-container {
  background-color: var(--white);

  padding: 40px;

  border-radius: 10px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;

  margin-bottom: 8px;

  color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  padding: 14px 16px;

  border: 1px solid #D1D5DB;

  border-radius: 6px;

  font-family: var(--body-font);

  font-size: 1rem;

  transition: border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;

  border-color: var(--accent-green);

  box-shadow: 0 0 0 3px rgba(103, 148, 54, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
}

/* =========================
   CONTACT INFO
========================= */

.contact-info-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item h3 {
  margin-bottom: 10px;

  font-size: 1.2rem;
}

.contact-item a {
  color: var(--primary-blue);

  font-weight: 500;

  transition: color var(--transition-speed) ease;
}

.contact-item a:hover {
  color: var(--accent-green);
}

/* =========================
   MOBILE CONTACT FORM
========================= */

@media (max-width: 768px) {

  .contact-form-container {
    padding: 30px 24px;
  }

  .contact-form button {
    width: 100%;
  }

}

/* =========================
   WHY CHOOSE US BACKGROUND
========================= */

.why-choose-section {
  position: relative;

  overflow: hidden;
}

.why-choose-section::after {
  content: "";

  position: absolute;

  top: -80px;
  right: 160px;

  width: 400px;
  height: 400px;

  background-image: url('/assets/handshake-navy.png');

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.1;

  pointer-events: none;

  z-index: 1;
  transform: rotate(-8deg);
}

/* Keep content above watermark */

.why-choose-section .container {
  position: relative;

  z-index: 2;
}

/* =========================
   SECTION GRAY IMAGE
========================= */

.section-gray-image {
  position: relative;

  background-color: var(--light-gray);

  overflow: hidden;
}

.section-gray-image::after {
  content: "";

  position: absolute;

  top: 320px;
  right: -10px;

  width: 500px;
  height: 500px;

  background-image: url('/assets/motocross-green.png');

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.18;

  transform: rotate(-16deg);

  pointer-events: none;

  z-index: 1;
}

.section-gray-image .container {
  position: relative;

  z-index: 2;
}

/* =========================
   SECTION DARK IMAGE
========================= */

/* =========================
   SECTION DARK IMAGE
========================= */

.section-dark-image {
  position: relative;

  overflow: hidden;
}

.section-dark-image .section-bg-image {
  position: absolute;

  top: 10;
  left: 60px;

  width: 300px;
  height: 300px;

  background-image: url('../assets/sales-blue.png');

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0.08;

  transform: rotate(-10deg);

  pointer-events: none;

  z-index: 1;
}

.section-dark-image .container {
  position: relative;

  z-index: 2;
}

/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
  display: grid;

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

  gap: 24px;
}

.gallery-item {
  position: relative;

  overflow: hidden;

  border-radius: 10px;

  background-color: white;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;

  height: 320px;

  object-fit: cover;

  display: block;

  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* =========================
   MOBILE GALLERY
========================= */

@media (max-width: 992px) {

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

}

@media (max-width: 768px) {

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 260px;
  }

}

/* =========================
   GALLERY LIGHTBOX
========================= */

.gallery-item {
  cursor: pointer;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease;
  z-index: 10;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  font-size: 3rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed) ease;
  z-index: 10;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin: 0;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 2.2rem;
  }
}

/* =========================
   LISTINGS PAGE
========================= */

.listings-header {
  flex-wrap: wrap;
  gap: 20px;
}

/* --- Filter Tabs --- */

.listings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 10px 18px;

  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;

  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--steel-gray);

  cursor: pointer;

  transition: color var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

.tab-btn:hover {
  color: var(--primary-blue);
}

.tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--accent-green);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 22px;
  padding: 0 6px;

  background-color: var(--light-gray);
  color: var(--steel-gray);

  font-size: 0.75rem;
  font-family: var(--body-font);
  font-weight: 700;
  border-radius: 99px;

  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease;
}

.tab-btn.active .tab-count {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* --- Listings Grid --- */

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

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

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

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

/* --- Listing Card --- */

.listing-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: transform var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

.listing-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.listing-card-new {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image area */

.listing-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--light-gray);
}

.listing-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.listing-card-link:hover .listing-img-wrap img {
  transform: scale(1.04);
}

/* Badge */

.listing-badge {
  position: absolute;
  top: 10px;
  left: 10px;

  background-color: var(--primary-blue);
  color: var(--white);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  padding: 4px 10px;
  border-radius: 4px;
}

/* Card body */

.listing-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-card-body h3 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.listing-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.listing-detail {
  font-size: 0.82rem;
  color: var(--steel-gray);
  margin-bottom: 0;
  flex: 1;
}

.listing-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary-blue);
  text-transform: uppercase;
  transition: color var(--transition-speed) ease,
              letter-spacing var(--transition-speed) ease;
}

.listing-card-link:hover .listing-cta {
  color: var(--accent-green);
  letter-spacing: 1px;
}

/* Hidden state for filtered cards */

.listing-card-link.hidden {
  display: none;
}

/* Image Coming Soon placeholder */

.img-coming-soon {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #dde2ea;
  color: var(--steel-gray);
}

.img-coming-soon svg {
  opacity: 0.4;
}

.img-coming-soon span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel-gray);
  opacity: 0.7;
}

/* Financing Strip */

.financing-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.financing-strip-text {
  flex: 1;
}

.financing-logo-wrap {
  background-color: var(--white);
  border-radius: 8px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.financing-logo {
  width: 180px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .financing-strip {
    flex-direction: column;
    gap: 36px;
  }

  .financing-logo-wrap {
    width: 100%;
  }

  .financing-logo {
    width: 140px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  .listings-tabs {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

}