/* ============================================
   HEADER
   ============================================ */
.mp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mp-header-height);
  z-index: 1000;
  background: var(--mp-bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background var(--mp-duration) var(--mp-ease);
}

.mp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--mp-container-wide);
  margin: 0 auto;
  padding: 0 var(--mp-space-6);
}

.mp-header__logo {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
  text-decoration: none;
  color: var(--mp-text);
}

.mp-header__logo-icon {
  width: 40px;
  height: 40px;
}

.mp-header__logo-text {
  font-family: var(--mp-font-heading);
  font-size: var(--mp-text-xl);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.mp-header__logo-text span {
  color: var(--mp-primary);
}

/* Navigation */
.mp-nav {
  display: flex;
  align-items: center;
  gap: var(--mp-space-1);
}

.mp-nav__link {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  padding: var(--mp-space-2) var(--mp-space-4);
  color: var(--mp-text-secondary);
  font-size: var(--mp-text-sm);
  font-weight: 500;
  border-radius: var(--mp-radius-md);
  transition: all var(--mp-duration) var(--mp-ease);
  text-decoration: none;
}

.mp-nav__link:hover,
.mp-nav__link.is-active {
  color: var(--mp-text);
  background: var(--mp-bg-card-hover);
}

.mp-nav__link.is-active {
  color: var(--mp-primary);
}

/* Header actions (login, etc.) */
.mp-header__actions {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
}

/* Mobile hamburger */
.mp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--mp-space-2);
}

.mp-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mp-text);
  border-radius: 2px;
  transition: all var(--mp-duration) var(--mp-ease);
}

/* Mobile menu */
.mp-mobile-menu {
  display: none;
  position: fixed;
  top: var(--mp-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mp-bg-body);
  z-index: 999;
  padding: var(--mp-space-6);
  overflow-y: auto;
}

.mp-mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
}

.mp-mobile-menu .mp-nav__link {
  font-size: var(--mp-text-lg);
  padding: var(--mp-space-4);
  border-bottom: 1px solid var(--mp-border);
  border-radius: 0;
}

/* Push content below fixed header */
.mp-site-content {
  padding-top: var(--mp-header-height);
}

/* ============================================
   FOOTER
   ============================================ */
.mp-footer {
  background: #ffffff;
  color: var(--mp-text);
  padding: var(--mp-space-16) 0 var(--mp-space-8);
  border-top: 1px solid #E2E8F0;
}

.mp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--mp-space-10);
  margin-bottom: var(--mp-space-10);
}

.mp-footer__brand p {
  font-size: var(--mp-text-sm);
  margin-top: var(--mp-space-4);
  color: var(--mp-text-secondary);
}

.mp-footer__title {
  font-size: var(--mp-text-sm);
  font-weight: 700;
  color: var(--mp-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--mp-space-4);
}

.mp-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
}

.mp-footer__links a {
  color: var(--mp-text-secondary);
  font-size: var(--mp-text-sm);
  transition: color var(--mp-duration) var(--mp-ease);
}

.mp-footer__links a:hover {
  color: var(--mp-primary);
}

.mp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--mp-space-8);
  border-top: 1px solid var(--mp-border);
  font-size: var(--mp-text-sm);
  color: var(--mp-text-muted);
}

/* ============================================
   VEHICLE GRID
   ============================================ */
.mp-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mp-space-6);
}

/* ============================================
   LISTING LAYOUT (sidebar + content)
   ============================================ */
.mp-listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--mp-space-8);
  align-items: start;
}

/* Sidebar filters */
.mp-sidebar {
  position: sticky;
  top: calc(var(--mp-header-height) + var(--mp-space-6));
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: var(--mp-space-6);
  box-shadow: var(--mp-shadow-sm);
}

.mp-sidebar__title {
  font-size: var(--mp-text-lg);
  font-weight: 700;
  margin-bottom: var(--mp-space-6);
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
}

.mp-sidebar__section {
  margin-bottom: var(--mp-space-6);
  padding-bottom: var(--mp-space-6);
  border-bottom: 1px solid var(--mp-border);
}

.mp-sidebar__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mp-sidebar__section-title {
  font-size: var(--mp-text-sm);
  font-weight: 600;
  color: var(--mp-text);
  margin-bottom: var(--mp-space-3);
}

/* Range display */
.mp-range-display {
  display: flex;
  justify-content: space-between;
  font-size: var(--mp-text-xs);
  color: var(--mp-text-muted);
  margin-top: var(--mp-space-2);
}

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

.mp-results-count {
  font-size: var(--mp-text-sm);
  color: var(--mp-text-secondary);
}

.mp-results-count strong {
  color: var(--mp-text);
}

.mp-results-sort {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
}

.mp-results-sort label {
  font-size: var(--mp-text-sm);
  color: var(--mp-text-secondary);
}

.mp-results-sort select {
  padding: var(--mp-space-2) var(--mp-space-3);
  font-size: var(--mp-text-sm);
}

/* ============================================
   SINGLE VEHICLE LAYOUT
   ============================================ */
.mp-single-vehicle {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--mp-space-8);
  align-items: start;
}

.mp-vehicle-sidebar {
  position: sticky;
  top: calc(var(--mp-header-height) + var(--mp-space-6));
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-6);
}

/* Vehicle specs table */
.mp-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.mp-specs-table tr {
  border-bottom: 1px solid var(--mp-border);
}

.mp-specs-table tr:nth-child(even) {
  background: var(--mp-bg-body);
}

.mp-specs-table tr:last-child {
  border-bottom: none;
}

.mp-specs-table td {
  padding: var(--mp-space-3) var(--mp-space-4);
  font-size: var(--mp-text-sm);
}

.mp-specs-table td:first-child {
  color: var(--mp-text-secondary);
  width: 45%;
}

.mp-specs-table td:last-child {
  color: var(--mp-text);
  font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */
.mp-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  padding: var(--mp-space-16) 0;
}

.mp-hero--centered .mp-hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.mp-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: var(--mp-space-4);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--mp-text);
}

.mp-hero__title span {
  color: var(--mp-primary);
}

.mp-hero__subtitle {
  font-size: 1.25rem;
  color: var(--mp-text-secondary);
  margin-bottom: var(--mp-space-8);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero search bar - Pill Design */
.mp-hero-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  padding: 8px 12px;
  margin-bottom: var(--mp-space-10);
  width: 100%;
  max-width: 700px;
}

.mp-hero-search__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  text-align: left;
}

.mp-hero-search__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mp-text-muted);
  margin-bottom: 2px;
}

.mp-hero-search__select {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mp-text);
  padding: 0;
  width: 100%;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.mp-hero-search__divider {
  width: 1px;
  height: 40px;
  background: var(--mp-border);
}

.mp-hero-search__action {
  margin-left: 8px;
}

.mp-hero-search__btn {
  border-radius: 100px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Stats bar */
.mp-stats-bar {
  display: flex;
  gap: var(--mp-space-8);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: var(--mp-space-6);
}

.mp-stats-bar--centered {
  justify-content: center;
  gap: var(--mp-space-12);
  border-top: none;
}

.mp-stat {
  text-align: left;
}

.mp-stats-bar--centered .mp-stat {
  text-align: center;
}

.mp-stat__value {
  font-family: var(--mp-font-heading);
  font-size: var(--mp-text-3xl);
  font-weight: 800;
  color: var(--mp-accent);
}

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

/* ============================================
   CONTACT PAGE
   ============================================ */
.mp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mp-space-10);
}

.mp-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-6);
}

.mp-contact-card {
  display: flex;
  gap: var(--mp-space-4);
  padding: var(--mp-space-5);
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  transition: border-color var(--mp-duration) var(--mp-ease);
}

.mp-contact-card:hover {
  border-color: var(--mp-primary);
}

.mp-contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-primary-light);
  border-radius: var(--mp-radius-md);
  color: var(--mp-primary);
  flex-shrink: 0;
}

.mp-contact-card__title {
  font-weight: 600;
  margin-bottom: var(--mp-space-1);
}

.mp-contact-card__text {
  font-size: var(--mp-text-sm);
  color: var(--mp-text-secondary);
  margin: 0;
}

.mp-contact-form {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  padding: var(--mp-space-8);
}

.mp-map-wrapper {
  margin-top: var(--mp-space-10);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--mp-border);
}

.mp-map-wrapper iframe {
  width: 100%;
  height: 400px;
  display: block;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .mp-listing-layout {
    grid-template-columns: 1fr;
  }

  .mp-sidebar {
    position: static;
  }

  .mp-single-vehicle {
    grid-template-columns: 1fr;
  }

  .mp-vehicle-sidebar {
    position: static;
  }

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

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

  .mp-hero {
    min-height: 60vh;
  }

  .mp-stats-bar {
    flex-wrap: wrap;
    gap: var(--mp-space-6);
  }

  .mp-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --mp-header-height: 64px;
  }

  .mp-nav {
    display: none;
  }

  .mp-hamburger {
    display: flex;
  }

  .mp-vehicles-grid {
    grid-template-columns: 1fr;
  }

  .mp-hero {
    min-height: 50vh;
  }

  .mp-hero__title {
    font-size: var(--mp-text-3xl);
  }

  .mp-hero-search {
    flex-direction: column;
    border-radius: var(--mp-radius-lg);
    padding: var(--mp-space-4);
    gap: var(--mp-space-4);
  }

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

  .mp-hero-search__action {
    margin-left: 0;
    width: 100%;
  }

  .mp-hero-search__btn {
    width: 100%;
    justify-content: center;
  }

  .mp-hero__overlay {
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 75%, rgba(255,255,255,0) 100%);
  }

  .mp-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--mp-space-8);
  }

  .mp-footer__bottom {
    flex-direction: column;
    gap: var(--mp-space-4);
    text-align: center;
  }

  .mp-stats-bar {
    gap: var(--mp-space-4);
  }

  .mp-stat__value {
    font-size: var(--mp-text-2xl);
  }

  .mp-results-header {
    flex-direction: column;
    gap: var(--mp-space-3);
    align-items: flex-start;
  }

  .mp-calculator {
    padding: var(--mp-space-5);
  }

  .mp-calculator__total-value {
    font-size: var(--mp-text-2xl);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .mp-container {
    padding: 0 var(--mp-space-4);
  }

  h1 { font-size: var(--mp-text-3xl); }
  h2 { font-size: var(--mp-text-2xl); }
  h3 { font-size: var(--mp-text-xl); }
}
