/* =========================================================
   CLEANED STYLE.CSS FOR GARAGE TEMPLATE
   No layout or colour changes. Unused template code removed.
   All active classes retained. Clear section comments included.
   ========================================================= */

/* ===============================
   0. ROOT VARIABLES (COLORS)
   =============================== */
:root {
  --white: #ffffff;
  --black: #000000;
  --gold: #ffbe33;
  --gold-dark: #e69c00;
  --dark-bg: #222831;
  --light-grey: #f1f2f3;
  --text-light: #ffffff;
  --text-dark: #000000;
  --accent-green: #4CAF50;
  --accent: #0d6efd;
  --accent-dark: #0b5bd3;
  --text: #0b0f14;
  --muted: #5f6b7a;
  --border: #e6e9ef;
  --radius: 10px;
}

/* ===============================
   1. GLOBAL ELEMENTS
   =============================== */
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
}

body, button, input, select, textarea, option {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
button:focus {
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

.nav,
.tile-grid,
.latest-track,
.contact-row,

/* ===============================
   SHARED SITE NAV & FOOTER (from index)
   =============================== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: .25rem;
  background: #fff;
}

.nav-links a {
  display: block;
  padding: .85rem 1rem;
  border-radius: 8px;
  color: #0b0f14;
  font-weight: 600;
}

.nav-links a:hover {
  color: #0d6efd;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: 0;
  padding: .85rem 1rem;
  border-radius: 8px;
  color: #0b0f14;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: .75em;
}

.nav-dropdown-toggle:hover {
  color: #0d6efd;
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: .35rem;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  display: none;
  z-index: 1300;
}

.nav-dropdown-menu a {
  padding: .6rem .8rem;
  border-radius: 8px;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  background: #f1f3f6;
  color: #0b0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hamburger,
.hamburger:before,
.hamburger:after {
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  display: block;
  position: relative;
  content: "";
}

.hamburger:before {
  position: absolute;
  top: -6px;
  left: 0;
}

.hamburger:after {
  position: absolute;
  top: 6px;
  left: 0;
}

.nav-open {
  display: flex;
}

@media(min-width:900px){
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .35rem;
    background: transparent;
  }
  .nav-links a { padding: .7rem .9rem; }
  .nav-dropdown-toggle { padding: .7rem .9rem; }
  .nav-toggle { display: none; }
}

@media(max-width:899px){
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 .25rem .25rem;
  }
  .nav-dropdown-menu a {
    padding: .6rem .85rem;
  }
}

footer {
  background: #fff;
  border-top: 1px solid #e6e9ef;
  margin-top: 1.2rem;
}

.footer-top {
  padding: .6rem 0;
  border-top: 1px solid #e6e9ef;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-grid h3 {
  margin: 0 0 .2rem 0;
  font-size: .95rem;
  font-weight: 650;
  color: #0b0f14;
  letter-spacing: 0.01em;
}

.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .14rem;
}

.footer-hours li {
  color: #5f6b7a;
  font-size: .86rem;
  line-height: 1.3;
  text-align: left;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #e6e9ef;
  padding: .35rem 0;
  font-size: .84rem;
  color: #5f6b7a;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  font-size: .84rem;
  justify-content: center;
}

.footer-legal a {
  color: #5f6b7a;
  font-size: .84rem;
}

.footer-legal a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.footer-social-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
}

.footer-social-col a {
  color: #5f6b7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-col a:hover { color: #0d6efd; }
.footer-social-col .social-fb:hover { color: #1877f2; }
.footer-social-col .social-ig:hover { color: #0b0f14; }
.footer-social-col .social-tt:hover { color: #111111; }
.footer-social-col svg { width: 20px; height: 20px; display: block; }

.footer-credit { font-size: .78rem; color: #5f6b7a; }
.footer-credit a { color: #5f6b7a; }
.footer-credit a:hover { color: #0d6efd; text-decoration: underline; }

@media(max-width:720px){
  .footer-grid { grid-template-columns: 1fr; justify-items: center; }
  .footer-bottom-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-legal, .footer-credit { justify-content: center; }
  .footer-social-col svg { width: 22px; height: 22px; }
}
.layout_padding { padding: 90px 0; }
.layout_padding2, .layout_padding-top { padding-top: 75px; }
.layout_padding-bottom { padding-bottom: 90px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.heading_container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.heading_container h2 {
  margin-bottom: 0;
  font-size: 2.5rem;
  font-weight: bold;
}
.heading_container h2 span { color: var(--gold); }

/* ==========================
   PURE JS HERO SLIDER (FADE + SOFT SLIDE)
========================== */

.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Base slide position */
.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;

  background-size: cover;
  background-position: center;

  transform: translateX(100%);
  transition: transform 1s ease-in-out;
}

/* Slide currently visible */
.hero-slider .slide.active {
  transform: translateX(0);
  z-index: 2;
}

/* Old slide moving left */
.hero-slider .slide.exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 60%;   /* moved down */
  left: 70px;
  transform: translateY(-50%);
  color: #fff;
  max-width: 550px;
}


.slide-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots .dot.active {
  background: #ffbe33;
  transform: scale(1.3);
}
.btn1 {
  display: inline-block;
  padding: 12px 28px;
  background-color: #ffbe33; /* your theme yellow */
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: 0.3s;
}

.btn1:hover {
  background-color: #e6a700;
  color: #000;
  transform: scale(1.05);
}


/* ===============================
   4. FEATURED VEHICLE GRID
   =============================== */
.featured_section { 
  padding: 60px 0; 
}

.featured_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  background: #ffffff;
  padding: 20px;
    border-radius: 8px;
}
.featured_grid {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

/* VEHICLE CARD */
.vehicle_card {
  background: var(--dark-bg);
  border-radius: 15px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* IMAGE AREA (LARGER IMAGE) */
.vehicle_card .img-box {
  background: var(--light-grey);
  height: 300px;                /* BIGGER IMAGE */
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle_card img {
  max-width: 100%;
  max-height: 260px;            /* INCREASED FROM 170px */
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: 0.3s ease;
}

.vehicle_card:hover img { 
  transform: scale(1.08); 
}

/* DETAIL SECTION (SMALLER) */
.detail-box {
  background: var(--dark-bg);
  padding: 14px 18px 18px 18px; /* REDUCED HEIGHT */
  border-radius: 0 0 15px 15px;
}

/* TITLE */
.vehicle-title {
  font-size: 1.25rem;           /* SLIGHTLY SMALLER */
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

/* SPECS */
.vehicle-specs {
  margin: 6px 0 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 0.88rem;
  color: #d0d0d0;
}

.vehicle-specs span {
  color: var(--gold);
  font-weight: 600;
}

/* BOTTOM ROW */
.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* PRICE TAG */
.price-tag {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
}

/* BUTTON */
.vehicle_card .btn-view {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.vehicle_card .btn-view:hover {
  background: #e6a700;
  transform: scale(1.05);
}

/* ===============================
   RESPONSIVE GRID
   =============================== */

/* Large tablets / small desktops */
@media (max-width: 1200px) { 
  .featured_grid { 
    grid-template-columns: repeat(3, 1fr); 
  }
}

/* Tablets */
@media (max-width: 992px) { 
  .featured_grid { 
    grid-template-columns: repeat(2, 1fr); 
  }

  .vehicle_card .img-box {
    height: 260px;
  }

  .vehicle_card img {
    max-height: 220px;
  }
}

/* Phones (one card per row, big image) */
@media (max-width: 576px) { 
  .featured_grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }

  .vehicle_card .img-box {
    height: 240px;              /* nice vertical size on mobile */
  }

  .vehicle_card img {
    max-height: 200px;
  }

  .vehicle-title {
    font-size: 1.2rem;
  }

  .vehicle-specs {
    grid-template-columns: 1fr; /* single column */
  }

  .bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .price-tag {
    align-self: flex-end;
  }
}

/* ===============================
   5. ABOUT SECTION
   =============================== */
.about_section {
  background: var(--dark-bg);
  color: var(--white);
  padding: 40px 0;
  display: flex;
  justify-content: center;     /* center whole content */
}

.about_section .container {
  max-width: 1100px;           /* keeps layout centered */
}

/* ROW ALIGNMENT */
.about-row {
  display: flex;
  align-items: center;         /* perfect vertical alignment */
  gap: 40px;
  justify-content: center;     /* centers both columns */
}

/* IMAGE COLUMN */
.about-img-box {
  width: 100%;
  max-width: 500px;            /* bigger image */
}

.about-img-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

/* TEXT COLUMN */
.detail-box {
  max-width: 550px;
}

.detail-box h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.detail-box p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* BUTTON */
.about-btn {
  display: inline-block;
  padding: 10px 40px;
  background-color: var(--gold);
  border-radius: 40px;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.about-btn:hover {
  background-color: var(--gold-dark);
  transform: scale(1.05);
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {

  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .about-img-box {
    max-width: 380px;
    margin-bottom: 20px;
  }

  .detail-box {
    text-align: center;
  }
}


/* ====================================================
   CONTACT FORM – DARK THEME (FINAL IMPROVED VERSION)
   ==================================================== */

/* Section spacing */
.contact_section {
  padding-top: 20px;
  padding-bottom: 90px;   /* space above footer */
}

/* Section heading */
.heading_container h2 {
  text-align: center;
  margin-bottom: 28px;
  color: #ffffff;
}

/* =====================================================
   MAIN LAYOUT – KEEP FORM + MAP SIDE BY SIDE ALWAYS
   ===================================================== */
.contact_wrapper {
  display: flex;
  flex-wrap: nowrap;     /* Do NOT wrap unless mobile */
  gap: 35px;
  align-items: flex-start;
}

/* Prevent unwanted wrapping */
.form_card,
.map_container {
  flex: 1;
}

/* =====================================================
   FORM CARD (dark theme panel)
   ===================================================== */
.form_card {
  background: #222831;
  padding: 40px 50px;
  border-radius: 12px;

  box-shadow: 0 4px 15px rgba(0,0,0,0.35);
  color: #ffffff;
}

/* =====================================================
   INPUT STYLING (white fields, black text)
   ===================================================== */
.contact_section .form-control {
  width: 100%;
  height: 52px;
  margin-bottom: 18px;
  padding-left: 16px;

  background: #ffffff;
  color: #000000;

  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 16px;
}

.contact_section .form-control::placeholder {
  color: #666;
}

/* Textarea */
.contact_section .textarea {
  height: 150px;
  resize: none;
  padding-top: 12px;

  background: #ffffff;
  color: #000000;
}

/* =====================================================
   SEND BUTTON – gold with black text
   ===================================================== */
.btn_send {
  padding: 12px 45px;
  border-radius: 40px;
  background: var(--gold);
  color: #000000;
  border: none;
  font-size: 16px;
  cursor: pointer;

  transition: background 0.3s ease;
}

.btn_send:hover {
  background: var(--gold-dark);
}

/* =====================================================
   MAP PANEL
   ===================================================== */
.map_container {
  height: 450px;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.map_container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .contact_wrapper {
    flex-wrap: wrap;      /* Stack on mobile */
  }

  .map_container {
    height: 330px;
  }
}


.thankyou_hidden {
  display: none !important;
}

/* ===============================
   FOOTER (FIXED LAYOUT)
   =============================== */
.footer_section {
  background: var(--dark-bg);
  color: var(--white);
  padding: 45px 0 25px;
  font-size: 15px;
}

.footer_section h4 {
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 600;
  color: #ffffff;
}

.footer_section .footer_wrapper {
  display: flex;
  flex-wrap: nowrap;          /* KEEP 4 columns on desktop */
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  flex: 1;                     /* makes all columns equal width */
  min-width: 220px;            /* prevents collapsing */
}

.footer_section p,
.footer_section a {
  margin: 4px 0;
  color: #dbdbdb;
  text-decoration: none;
}

.footer_section a:hover {
  color: var(--gold);
}

/* Social icons row */
.footer_social a {
  font-size: 18px;
  margin-right: 10px;
  color: #dbdbdb;
}

.footer_social a:hover {
  color: var(--gold);
}

/* Footer bottom */
.footer_bottom {
  margin-top: 35px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.footer_bottom a {
  color: var(--gold);
  font-weight: 600;
}

/* Mobile stack */
@media (max-width: 900px) {
  .footer_section .footer_wrapper {
    flex-wrap: wrap;        /* stack into rows */
    gap: 25px;
  }
}

/* END OF CLEANED CSS */

.stock-banner {
  width: 100vw !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  height: 120vh;        /* keep your preferred look here */
  min-height: 380px;
  position: relative;
}

#stockBannerSlide {
  background-image: var(--image-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* your current image settings (unchanged) */
.stock-banner img {
  position: absolute;
  top: -20vh;           /* keep your top crop preference */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* FIX: shrink banner on smaller screens so no white gap appears */
@media (max-height: 900px) {
  .stock-banner {
    height: 100vh;      /* reduces oversize crop */
  }
  .stock-banner img {
    top: -15vh;         /* slightly adjust crop */
  }
}

@media (max-height: 750px) {
  .stock-banner {
    height: 85vh;       /* avoid large white space */
  }
  .stock-banner img {
    top: -10vh;
  }
}

@media (max-height: 600px) {
  .stock-banner {
    height: 70vh;       /* fits small laptop windows */
  }
  .stock-banner img {
    top: -5vh;
  }
}

@media (max-height: 500px) {
  .stock-banner {
    height: 60vh;
  }
  .stock-banner img {
    top: 0;             /* show more image on small screens */
  }
}


/* -----------------------------------
   SEARCH PANEL (Stock Page)
----------------------------------- */

.search-section {
  width: 100%;
  padding: 50px 0;
  background: #f7f7f7;       /* light grey contrast background */
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.search-panel {
  background: #ffffff;
  padding: 25px 25px 10px 25px;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  border: 1px solid #ececec;
}

.search-panel label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 15px;
  transition: border 0.2s;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #ffbe33;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,190,51,0.3);
}

.search-panel .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-panel .form-col {
  flex: 1;
  min-width: 220px; /* responsive */
}

.search-btn {
  background: #ffbe33;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  color: black;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
}

.search-btn:hover {
  background: #e4a82d;
}

/* Special rule for mileage/hour block */
#mileageFilters {
  display: flex;
  gap: 20px;
  width: 100%;
}

#mileageFilters .form-col {
  flex: 1;
}


.sort-row {
  margin-top: 20px;
}

.sort-wrapper {
  width: 250px;
}

.sort-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;

  /* Remove default select arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom arrow */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="black"><path d="M2 5l5 5 5-5H2z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.sort-select:hover {
  border-color: #999;
}

.sort-select:focus {
  outline: none;
  border-color: #ffbe33;
  box-shadow: 0 0 4px rgba(255, 190, 51, 0.5);
}




/* -----------------------------------
   PRODUCT DETAILS GRID
----------------------------------- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* change to 4 if you want */
  gap: 15px 25px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.details-grid .item {
  font-size: 1rem;
  color: #000;
}

.details-grid .item strong {
  color: #222;
}

/* -----------------------------------
   DESCRIPTION BOX
----------------------------------- */
.description-box {
  background: #fff;
  padding: 20px;
  margin-top: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.description-box h3 {
  margin-bottom: 10px;
  color: #000;
}

.description-box .description-content {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

.description-box .description-content p {
  margin: 0 0 .75rem 0;
}

.description-box .description-content ul,
.description-box .description-content ol {
  margin: 0 0 .75rem 1.25rem;
  padding: 0;
}

.description-box .description-content li {
  margin: 0 0 .4rem 0;
}

.description-box .description-content strong,
.description-box .description-content b {
  font-weight: 700;
}

.description-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
  align-items: center;
  margin-top: .5rem;
}

.description-tools .tool-label {
  font-weight: 600;
  color: #0b0f14;
}

.description-tools .tool-btn {
  border: 1px solid #1f2937;
  background: #111827;
  color: #ffffff;
  border-radius: 6px;
  padding: .35rem .6rem;
  font-weight: 700;
  cursor: pointer;
}

.description-tools .tool-btn:hover {
  background: #1f2937;
  border-color: #111827;
}

.description-tools .tool-help {
  color: #5f6b7a;
  font-size: .85rem;
}

.wysiwyg-editor {
  min-height: 140px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: .75rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
}

.wysiwyg-editor:focus {
  outline: 2px solid rgba(11,110,255,0.2);
  border-color: #0b6eff;
}

.wysiwyg-hidden-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.product-shell .description-box,
.product-shell .info-details,
.product-shell .enquiry-card,
.product-shell .recommended-section,
.product-shell .gallery-wrapper {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* -----------------------------------
   CONTACT BOX
----------------------------------- */
.contact-box {
  background: #fff;
  padding: 20px;
  margin-top: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-box h3 {
  margin-bottom: 15px;
  color: #000;
}

.contact-actions {
  display: flex;
  gap: 15px;
}

.contact-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

.contact-btn.call {
  background: #28a745;
  color: white;
}

.contact-btn.whatsapp {
  background: #25D366;
  color: white;
}
/* Gallery container (main image + thumbnails) */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  align-items: stretch;
}

.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #f1f1f1;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumbnail-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 110px;
  max-height: 520px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.thumbnail-container img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  display: block;
  transition: border-color .2s ease, transform .2s ease;
}

.thumbnail-container img:hover {
  border-color: #ffbe33;
  transform: translateY(-2px);
}

.thumbnail-container img.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.2);
}

@media (max-width: 860px) {
  .thumbnail-container {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
  }
  .thumbnail-container img {
    width: 90px;
    flex: 0 0 auto;
  }
}

/* Desktop enforcement: side-by-side main image + vertical thumbnails */
@media (min-width: 900px) {
  .product-hero .product-shell,
  .product-hero .product-shell > * {
    width: 100%;
  }
  .product-gallery {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 18px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .main-image-container {
    flex: 1 1 auto;
    max-height: 680px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }
  .main-image-container img {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
  .thumbnail-container {
    flex-direction: column !important;
    flex: 0 0 170px;
    width: 170px !important;
    max-width: 180px;
    max-height: 680px;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: stretch;
  }
.thumbnail-container img {
  width: 100% !important;
  max-width: none;
  flex: 0 0 auto !important;
}
}

/* ===============================
   OUR FRANCHISES – MOBILE SLIDER
   =============================== */






@media (max-width: 899px) {
}

@media (min-width: 900px) {
}

/* ===============================
   OUR FRANCHISES – FINAL FIX
   =============================== */


/* Each logo gets the SAME box */

/* Image scales INSIDE the box */

/* Desktop: centre row when there is space */
@media (min-width: 1100px) {
}

/* ===============================
   OUR FRANCHISES – HORIZONTAL ROW
   =============================== */


/* Each logo container */

/* Logo images */

/* Desktop: centre row when there is room */
@media (min-width: 1100px) {
}


/* Small clean icon buttons */
.contact-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 15px;
}

.contact-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;

  border-radius: 50%;
  font-size: 22px;
  color: white;
  text-decoration: none;

  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Colours */
.contact-btn-small.call {
  background: #28a745; /* green */
}

.contact-btn-small.whatsapp {
  background: #25D366;
}

/* Hover effects */
.contact-btn-small:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
/* Recommended vehicles section */
.recommended-section {
  margin-top: 10px;
  padding: 10px 0;
  padding-bottom: 10px;
}

.recommended-section h2 {
  color: #000;
  margin-bottom: 25px;
}

.product-shell + .recommended-section .product-shell {
  padding: 0 1rem;
}

@media(max-width:768px){
  #similarGrid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    padding-bottom:.25rem;
    scroll-behavior:smooth;
  }
  #similarGrid::-webkit-scrollbar{display:none;}
  #similarGrid{scrollbar-width:none;}
  #similarGrid .latest-card{
    flex:0 0 78vw;
    max-width:78vw;
    scroll-snap-align:center;
  }
}


/* PAGE BACKGROUND */
body {
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

/* LOGIN BOX */
.login-container {
  background: white;
  padding: 35px;              /* increased from 25px */
  max-width: 420px;           /* slightly wider */
  margin: 120px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Subtitle */
.login-subtitle {
  text-align: center;
  color: #555;
  margin-top: -10px;
  margin-bottom: 25px;
  font-size: 15px;
}

/* Inputs */
.login-container input {
  width: 100%;
  padding: 14px;              /* more padding */
  margin: 14px 0;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;     /* prevents edge cut-off */
}

/* Button */
.login-container button {
  width: 100%;
  padding: 14px;
  background: var(--dark-bg);
  color: var(--white);
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.login-container button:hover {
  opacity: 0.9;
}


/* Logo Box */
.login-logo-box {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo {
  width: 80px;            /* adjust size as needed */
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

.login-brand {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: #333;
}
/* ============================================
   DASHBOARD PAGE STYLING
   ============================================ */

.dashboard-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* TOP NAV (Dashboard version, not website header) */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #111;
  color: white;
  font-size: 18px;
  margin: -20px -20px 20px -20px;
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.8;
}
.top-nav a:hover { opacity: 1; }
.top-nav a.active { font-weight: bold; opacity: 1; }


/* Admin header (dashboard/add/edit) spacing */
.admin-header {
  padding-top: 10px;
  padding-bottom: 10px;
  height: auto !important;
}
.admin-nav .nav-inner {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.admin-nav .nav-logo {
  padding-top: 2px;
  padding-bottom: 2px;
}


#garageLogo {
  height: 40px;
  width: auto;
}

#garageName {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

/* PRODUCT CARD */
.product-card {
  display: flex;
  align-items: center;
  background: #f7f7f7;
  border: 1px solid #ccc;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s ease;
}
.product-card:hover {
  transform: scale(1.01);
}

.product-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  color: #000;
}
.product-card small {
  display: block;
  margin-top: 3px;
  color: #444;
}

/* ACTION POPUP */
/* ACTION POPUP (Anchored to tile) */
.action-popup {
  position: absolute;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 18px rgba(0,0,0,0.25);
  width: 320px;
  display: none;
  z-index: 999;
}

.action-popup.show {
  display: block;
}

.action-popup h3 {
  margin-bottom: 15px;
  color: #000;
}

.action-popup button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
}

.btn-edit { background: #007bff; color: white; }
.btn-sold { background: #ff9800; color: white; }
.btn-delete { background: #d60000; color: white; }
.btn-close { background: #444; color: white; }

/* MOBILE */
@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .product-card {
    flex-direction: column;
    text-align: center;
  }

  .product-card img {
    margin-bottom: 10px;
    width: 100%;
    height: 180px;
  }
}
/* ================================
   DASHBOARD FULL WIDTH + COLOURS
   ================================ */
body.dashboard-mode {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f2f2f2;
}

body.dashboard-mode .top-nav {
  width: 100% !important;
  border-radius: 0 !important;
  margin: 0 0 20px 0 !important;
}

.dashboard-mode #garageLogo {
  height: 45px;
}

.dashboard-mode #garageName {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

/* READABLE TEXT */
.dashboard-mode h2,
.dashboard-mode p,
.dashboard-mode small,
.dashboard-mode h3 {
  color: #000 !important;
}

.dashboard-mode .product-card {
  color: #000;
}

.dashboard-mode .product-card small {
  color: #444;
}
/* ======================================
   DASHBOARD CONTENT SPACING IMPROVEMENT
   ====================================== */

body.dashboard-mode .dashboard-content {
  padding: 30px 50px;    /* left-right spacing */
}

@media (max-width: 768px) {
  body.dashboard-mode .dashboard-content {
    padding: 20px;
  }
}






/* DASHBOARD SEARCH BAR – tighter spacing than stock */
.dashboard-search {
  padding: 25px 0 !important;
}

.dashboard-search .search-panel {
  padding: 20px !important;
  border-radius: 10px !important;
}

.dashboard-search input {
  background: #fff !important;
}

/* PRODUCT GRID IN DASHBOARD */
.dashboard-mode #productList.featured_grid {
  margin-top: 25px;
  background: none !important;
  padding: 0 !important;
}

/* Dashboard cards aligned with public site palette */
.dashboard-mode .vehicle_card {
  cursor: pointer;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: #ffffff;
  color: #0b0f14;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-mode .vehicle_card:hover {
  transform: translateY(-3px);
  border-color: #0d6efd;
  box-shadow: 0 14px 28px rgba(15,23,42,0.12);
}

.dashboard-mode .vehicle_card .img-box {
  background: #f1f5f9;
}

.dashboard-mode .vehicle_card .detail-box {
  background: #ffffff;
}

.dashboard-mode .vehicle_card .vehicle-title {
  color: #0b0f14 !important;
}

.dashboard-mode .vehicle-specs {
  color: #5f6b7a;
}

.dashboard-mode .vehicle-specs span {
  color: #0d6efd;
}

.dashboard-mode .price-tag {
  color: #0d6efd;
}

.dashboard-mode .vehicle_card .btn-view {
  background: #0d6efd;
  color: #fff;
}

.dashboard-mode .vehicle_card .btn-view:hover {
  background: #0b5bd3;
}

.dashboard-mode .btn-sold {
  background: #ffbe33;
  color: #000;
}

.dashboard-mode .btn-sold:hover {
  background: #e6a700;
}


/* DASHBOARD SEARCH LAYOUT FIX */
.dashboard-search .search-panel {
    padding: 20px 25px !important;
}

.dashboard-search .form-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: end;
}

/* Make labels bold & spaced correctly */
.dashboard-search label {
    margin-bottom: 6px;
    font-weight: 600;
}

/* Inputs */
.dashboard-search input,
.dashboard-search select {
    height: 44px;
    font-size: 15px;
    padding: 8px 12px;
}

/* Align search button nicely under fields */
.dashboard-search .search-btn {
    margin-top: 10px;
    padding: 12px 30px;
    justify-self: start; /* moves button to left nicely */
}

/* Improve mobile layout */
@media (max-width: 768px) {
    .dashboard-search .form-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-card .btn-options {
  background: #007bff;
  color: white;
  padding: 8px 22px;
  border-radius: 40px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.dashboard-card .btn-options:hover {
  background: #0066d2;
  transform: scale(1.05);
}


/* SOLD Banner on Dashboard Tiles */
.sold-banner {
  position: absolute;
  top: 10px;
  left: -5px;
  background: red;
  color: white;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 6px 6px 0;
  z-index: 5;
}

/* INFO BOX under the tile showing delete date */
.sold-note {
  background: rgba(255, 0, 0, 0.15);
  color: #d60000;
  padding: 6px 10px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.vehicle_card.sold {
  opacity: 0.7;
  filter: grayscale(0.4);
}

.sold-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 6px;
}

.sold-pill {
  background: #d60000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.sold-delete-date {
  font-weight: 700;
  color: #b54708;
  font-size: 0.92rem;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-sold {
  background: #ff9800;
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-sold[disabled] {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}


.sold-banner-public {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(200, 0, 0, 0.95);
  color: #fff;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 5;
  letter-spacing: 1px;
}
.sold-banner-product-page {
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(200, 0, 0, 0.95);
  color: #fff;
  padding: 10px 18px;
  font-size: 26px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 2px;
  z-index: 20;
}
#title, 
#price {
  color: #000 !important;
  margin-left: 20px;
}
.main-image-box {
  background: #e6e6e6;  /* soft grey */
  padding: 10px;
  border-radius: 10px;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}


/* =========================================
   UPLOAD PAGE — CLEAN NEW STYLING
========================================= */

.upload-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 20px 30px;
}

.upload-wrapper h2 {
  color: #000;
  margin-bottom: 5px;
}

.upload-wrapper p {
  color: #444;
  margin-bottom: 25px;
}

/* Cards */
.dd-card,
.form-card {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 25px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* Text + inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-full {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: #fff;
  color: #000;
}

textarea {
  height: 130px;
  resize: vertical;
}

/* Preview areas */
.preview-area img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  display: none;
}

.preview-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.preview-strip img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Buttons */
.btn-primary {
  background: #0077cc;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: #005fa3;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* Upload blocks */
.upload-block {
  margin-top: 20px;
}

/* Loading Modal */
.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* IMPORTANT: hidden unless uploading */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.upload-modal-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  color: #000;
}

.spinner {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 5px solid #ccc;
  border-top-color: #000;
  animation: spin 1s linear infinite;
  margin: auto;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.form-card .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px 25px !important;
}
.upload-label {
  font-weight: 600;
  color: #000;      /* black text */
  margin-bottom: 6px;
  display: block;
}

.upload-btn {
  display: inline-block;
  background: #0077cc; /* blue button */
  color: #fff;         /* white text */
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.upload-btn:hover {
  background: #005fa3;
}

.upload-btn input {
  display: none;
}

/* Dashboard page background (neutral) */
body {
  background: #f5f6f8 !important; /* neutral page background */
}

/* Disable the outer white "card" container so form sits on page background.
   Uses !important to override inline styles present in add.html. */
.container {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: 0 !important;
}

/* Keep the container spacing below the fixed navbar (preserve existing margin)
   but ensure it behaves like page content rather than a card. */
.with-nav > .container,
.with-nav main,
.with-nav .page {
  /* preserve margin-top while ensuring it applies even if inline styles differ */
  margin-top: calc(var(--nav-height,64px) + 1rem) !important;
}

/* Make the Vehicle Details section itself look like a card.
   Target only the section labelled by #vehicle-details so other sections remain inline. */
section[aria-labelledby="vehicle-details"] > fieldset {
  background: #ffffff !important;
  border: 1px solid #e6e9ee !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  box-shadow: 0 6px 18px rgba(2,6,23,0.04) !important;
}

/* Ensure the inner legend area (title row) aligns visually inside the new card */
section[aria-labelledby="vehicle-details"] .legend {
  padding: 0;
  margin-bottom: 0.5rem;
}

/* Slightly lift the Vehicle Details card off the page */
section[aria-labelledby="vehicle-details"] > fieldset .form-grid,
section[aria-labelledby="vehicle-details"] > fieldset .form-row {
  /* keep internal spacing consistent */
  box-sizing: border-box;
}

/* Ensure inputs remain large and touch-friendly on the new background */
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea,
input[type="file"]{
  background: #fff; /* keep input backgrounds white for contrast */
}

/* Small tweak: make other major sections (Images, Description) visually separated
   but not card-like — use subtle top spacing so they read as sections on page background */
section[aria-labelledby="images-section"] > fieldset,
section[aria-labelledby="description-section"] > fieldset {
  border: 0 !important;
  padding: 0 !important;
  margin-top: 0.5rem !important;
  background: transparent !important;
}

/* Restore card appearance for the main container on pages using .with-nav (e.g. add.html).
   This is a minimal, non-destructive override that doesn't remove or alter other page rules.
*/
body.with-nav .container {
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(2,6,23,0.08) !important;
  border-radius: 8px !important;
  padding: 1rem !important;
}

/* Contact row alignment for enquiry + map */
.contact-section {
  background: transparent !important;
}

.contact-inner,
.contact-row {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.contact-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.contact-form,
.contact-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 25px;
  border-radius: 12px;
}

.contact-side {
  gap: 16px;
}

.contact-map {
  margin-top: 4px;
}

.contact-map iframe {
  width: 100%;
  height: 200px;
  min-height: 180px;
  max-height: 220px;
  border: 0;
  border-radius: 12px;
}

/* ===============================
   STOCK PAGE LAYOUT (mobile-first)
   =============================== */
.stock-page {
  background: #f5f6f8;
  min-height: 100vh;
}

.stock-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

.stock-header {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.25rem;
}

.stock-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #0b0f14;
  font-weight: 700;
}

.stock-header p {
  margin: 0;
  color: #5f6b7a;
  line-height: 1.6;
}

.stock-section-title {
  margin: 0 0 .75rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-policy .stock-section-title {
  color: var(--accent);
}

.stock-subtitle {
  margin: 0 0 1rem 0;
  color: #5f6b7a;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

#stockTileGrid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  background: transparent;
}

@media(min-width:640px){
  .tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media(min-width:960px){
  .tile-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.stock-tile {
  position: relative;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  aspect-ratio: 16 / 9 !important;
  min-height: 180px;
  border-radius: 14px;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.stock-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tile-image, #111);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.9);
}

.stock-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}

.stock-tile .tile-text {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stock-tile .tile-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
}

.stock-tile .tile-meta {
  font-size: .95rem;
  color: #e6e9ef;
  margin: 0;
}

.stock-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

.stock-tile.is-active {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e6e9ef;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-row.single {
  grid-template-columns: 1fr;
}

.filter-control label {
  display: block;
  font-weight: 600;
  color: #0b0f14;
  margin-bottom: 6px;
  font-size: .95rem;
}

.filter-control select,
.filter-control input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7dde7;
  background: #fff;
  font-size: .95rem;
  color: #0b0f14;
  min-height: 42px;
}

.filter-control input::-webkit-outer-spin-button,
.filter-control input::-webkit-inner-spin-button { margin: 0; }

.filter-control select:disabled,
.filter-control input:disabled {
  background: #f2f4f7;
  color: #8a94a6;
  cursor: not-allowed;
}

.breadcrumb-bar {
  background: #f8f9fb;
  border-bottom: 1px solid #e6e9ef;
}

.breadcrumb-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: .65rem 1rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  color: #0b0f14;
  font-weight: 600;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #0b0f14;
}

.breadcrumb-list li::after {
  content: "/";
  color: #8a94a6;
}

.breadcrumb-list li:last-child::after {
  content: "";
}

.breadcrumb-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: #0d6efd;
  font-weight: 700;
  cursor: pointer;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  text-decoration: underline;
}

.breadcrumb-current {
  color: #0b0f14;
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #0d6efd;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.advanced-panel {
  display: none;
  padding-top: 6px;
  border-top: 1px solid #e6e9ef;
  margin-top: 4px;
}

.advanced-panel.is-open { display: block; }

.stock-results {
  margin-top: 16px;
}

.stock-results .featured_grid {
  background: transparent;
  padding: 0;
}

.stock-empty {
  margin: 18px 0;
  color: #5f6b7a;
  font-weight: 600;
}

.back-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #0d6efd;
  cursor: pointer;
  font-weight: 700;
}

.section-spacer { margin-top: 1.5rem; }

@media(min-width:720px){
  .filter-bar { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filter-row.single { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .contact-row {
    flex-direction: column;
  }

  .contact-map iframe {
    height: 220px;
  }
}
.latest-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;justify-content:flex-end;}
.btn-view-all{display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1.05rem;background:var(--accent);color:#fff;border-radius:8px;font-weight:600;text-decoration:none;border:1px solid var(--accent);}
.btn-view-all:hover{background:var(--accent-dark);}
.btn-view-all:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.latest-shell{position:relative;}
.latest-shell,
.latest-track,
.latest-card,
.latest-card .card-body{
  background: transparent;
}
.latest-track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(280px,80vw);
  gap:1rem;
  overflow-x:auto;
  padding:.25rem;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.latest-track::-webkit-scrollbar{height:6px;}
.latest-track::-webkit-scrollbar-thumb{background:#cbd1dc;border-radius:999px;}
.latest-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:.5rem;min-height:100%;}
.latest-card img{width:100%;height:auto;max-width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:#e2e8f0;border-radius:12px;}
.latest-card .card-body{padding:.35rem 0;display:flex;flex-direction:column;gap:.25rem;}
.latest-card h3{margin:0;font-size:1.05rem;color:var(--text);font-weight:600;}
.latest-card .details{margin:0;color:#364152;font-size:.92rem;display:flex;flex-direction:column;gap:.15rem;}
.latest-card .price{margin:0;color:var(--accent);font-weight:700;font-size:1rem;white-space:nowrap;overflow:visible;}
.latest-card .cta{margin-top:.2rem;display:inline-flex;align-items:center;gap:.35rem;color:var(--accent);font-weight:600;font-size:.95rem;}
.latest-nav{display:flex;gap:.5rem;}
.latest-nav button{border:1px solid var(--border);background:#fff;border-radius:8px;padding:.45rem .75rem;cursor:pointer;}
.latest-empty{padding:1rem 0;color:#5f6b7a;}
@media(max-width:900px){
  .latest-track{grid-auto-columns:minmax(260px,80vw);}
  .latest-head{flex-direction:column;align-items:flex-start;}
  .latest-actions{width:100%;justify-content:space-between;}
  .btn-view-all{width:100%;}
}
@media(min-width:900px){
  .latest-track{grid-auto-columns:minmax(260px,45vw);}
  .btn-view-all{width:auto;}
}
@media(min-width:1200px){
.latest-track{grid-auto-columns:minmax(260px,30vw);}
}

.summary-grid {
  display: grid;
  grid-auto-flow:row;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  justify-items:stretch;
  gap: 1rem;
}

/* Force true grid layout when summary-grid is paired with latest-track (prevents single-column stacking) */
.latest-track.summary-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  overflow-x: visible;
  scroll-snap-type: none;
}

/* Defensive card/tile sizing */
.stock-tile,
.latest-card,
.vehicle_card {
  overflow: hidden;
}
.vehicle_card .img-box,
.latest-card img {
  aspect-ratio: 16 / 9;
  min-height: 180px;
  overflow: hidden;
  object-fit: cover;
}

.stock-results .summary-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .stock-results .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .stock-results .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .stock-results .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Product page layout */
.product-hero {
  padding: 1.5rem 0 2rem;
}

.product-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-shell > * {
  width: 100%;
}

.product-title {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.product-title h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.vehicle-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.info-details summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .6rem;
  margin-top: .6rem;
  color: #0b0f14;
}

.info-item {
  padding: .75rem;
  background: #f8f9fb;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
}

.enquiry-section form {
  display: block;
}

.enquiry-card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 1.25rem;
  width: 100%;
}

.enquiry-card h2 {
  margin: 0 0 .75rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.enquiry-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.enquiry-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
}

.enquiry-message-col {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border: 1px solid #d7dde7;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 220px;
  max-height: 260px;
  resize: vertical;
}

.enquiry-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.full-width-mobile { width: auto; align-self: flex-start; }

.enquiry-section .thankyou_hidden { margin-top: .5rem; color: var(--text); }

@media (max-width: 780px) {
  .enquiry-form-grid { grid-template-columns: 1fr; }
  .form-group textarea { min-height: 200px; max-height: none; }
  .full-width-mobile { width: 100%; }
}

/* Data loading wrappers + skeletons */
.data-wrapper {
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.data-wrapper.is-ready {
  display: block;
  opacity: 1;
}
.data-placeholder {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.skeleton {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.skeleton-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.skeleton-card-row.summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.skeleton-card-row.tile {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.skeleton-card,
.skeleton-rect,
.skeleton-line {
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
}
.skeleton-card {
  height: 180px;
  border-radius: 12px;
}
.hero-skeleton .hero-visual {
  height: 320px;
  border-radius: 16px;
}
.skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.skeleton-line {
  height: 14px;
  border-radius: 10px;
  display: block;
}
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-65 { width: 65%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-45 { width: 45%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-35 { width: 35%; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-25 { width: 25%; }
.skeleton-line.w-15 { width: 15%; }
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer-slide 1.2s infinite;
}
@keyframes shimmer-slide {
  100% { transform: translateX(100%); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =================================================
   OUR FRANCHISES — IMAGE-NORMALISED STRIP
   ================================================= */

.franchise-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;

  gap: 40px;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 0 1rem 1rem 1rem;

  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 1rem;
}

/* Logo container only centers content */
.franchise-logos a {
  flex: 0 0 auto;

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

/* =================================================
   FRANCHISE LOGOS — AUTHORITATIVE IMAGE OVERRIDE
   ================================================= */

.franchise-logos img {
  height: 70px !important;
  width: auto !important;

  max-height: 70px !important;
  max-width: none !important;

  object-fit: contain !important;
  display: block !important;
}

/* Slightly larger Same Tractors logo for balance */
.franchise-logos img[alt="Same Tractors"] {
  height: 80px !important;
  max-height: 80px !important;
}
