:root {
  --black: #0f0f0f;
  --red: #e50914;
  --blue: #007bff;
  --yellow: #ffc107;
  --white: #ffffff;
  --gray: #f5f5f5;
}

/* GLOBAL */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray);
  color: var(--black);
  margin:0;
}

h2 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

html, body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0a0a0a;
  z-index: 1000;
  padding: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 70px;
  padding: 0 25px; 
}

/* LOGO */
.logo {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
}

.logo img {
  height: 200px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: 0.3s;
}

/* hover underline */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #e50914;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: white;
}

.menu-toggle {
  display: none;
}

/* ICONS */

.contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: 500;
  margin-right: 10px;
}

.contact-link span {
  cursor: pointer;
}

.arrow-icon {
  font-size: 14px;
  transition: 0.3s;
}

.contact-link:hover .arrow-icon {
  transform: translateX(5px);
}

.nav-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-icons a {
  color: white;
  font-size: 18px;
  transition: 0.3s;
}

.nav-icons a:hover {
  color: #e50914;
  transform: scale(1.15);
}

/* COLORS */
.icon-phone {
  color: #00c853; /* green */
}

.icon-location {
  color: #ff1744; /* red/pink */
}

.icon-whatsapp {
  color: #25D366;
}

.icon-instagram {
  color: #e1306c;
}

.icon-facebook {
  color: #1877f2;
}

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

.hero {
  height: 100vh;
  background: url('Images/VillariniFrente2.jpeg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  

}

/* SINGLE OVERLAY ONLY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.15) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px; /*  give more space for one line */
  margin-right: 80px;
  margin-top: 120px; /*  PUSH DOWN (key fix) */
  text-align: right;
  color: white;
}

/* TEXT */
.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;

  white-space: nowrap; /*  FORCE ONE LINE */
}

.hero-content p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 25px;
}

/* BUTTON GROUP */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* PRIMARY BUTTON */
.btn-primary {
  background: #e50914;
  color: white;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #ff1f2f;
  transform: translateY(-2px);
}

/* SECONDARY BUTTON */
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.6);
  color: white;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* SECTION BACKGROUND */
.inventory-section {
  padding: 40px;
  /*background: linear-gradient(to bottom, var(--gray), white);*/
  text-align: center;
}

/* HEADER */
.inventory-header{
   text-align: center;
   margin-bottom: 10px;
   margin-top: 10px;
   padding-top: 35px;
}

.inventory-header h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.inventory-header h1 {
  font-size: 2.5rem;
}

.inventory-header p {
  color: #666;
  margin-top: 5px;
  margin-bottom: 10px; /* tighter */
}

/* GRID */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
  justify-content: center;
  gap: 30px;
}

/* BUTTON */
.inventory-btn {
  margin-top: 40px;
}

/* INVENTORY CARDS */
.car-card {
    width: 100%;
    max-width: 320px;

    background: white;
    border-radius: 14px;
    overflow: hidden;

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

    transition: all 0.3s ease;
     border: 1px solid #eee;
}

/* positions */
.nav-arrow.left { 
  left: 10px; 
}

.nav-arrow.right { 
  right: 10px; 
}

/* hover effect */
.nav-arrow:hover {
  background: #e50914;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.car-card:hover .nav-arrow {
  opacity: 1;
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card-content {
    padding: 15px;
    text-align: center;
}

.car-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: capitalize;
    margin: 10px 0 5px;
}

.car-card p {
  margin: 5px 0;
}

.car-card .price {
    color: black;
    font-weight: bold;
    font-size: 1.2rem;
}

#cars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.car-image-container {
  position: relative;
  overflow: hidden;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* HIDE ARROWS BY DEFAULT */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.5);
  color: white;
  border: none;

  width: 35px;
  height: 35px;
  border-radius: 50%;

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

  font-size: 16px;
  cursor: pointer;

  opacity: 0;
  transition: all 0.25s ease;
  z-index: 2;
}

/* FILTERS (inventory page) */
.filters {
  display: flex;
  gap: 15px;
  padding: 10px;          
  justify-content: center;
  margin-bottom: 20px; 
}

.filters input,
.filters select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.filters button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.filters button:hover {
  background: #0056b3;
}

/* CONTACT */
/* SECTION */
.contact-section {
  padding: 80px 20px;
}

/* CONTAINER */
.contact-container {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* LEFT SIDE */
.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-info p {
  color: #555;
}

/* FORM */
.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ROW */
.form-row {
  display: flex;
  gap: 10px;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* TEXTAREA */
.contact-form textarea {
  min-height: 100px;
  resize: none;
}

/* FILE LABEL */
.file-label {
  font-size: 0.85rem;
  color: #666;
}

/* BUTTON */
.contact-form button {
  align-self: flex-start;
}

.image-preview {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.preview-item {
  position: relative;
}

.preview-item img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.remove-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 12px;
}

/* ========================= CAR PAGE (CLEAN FIXED) ----------------------------------------------------------------------------*/

.car-page {
  max-width: 1200px;
  margin: 120px auto 40px; /* 🔥 increased from 100 → 120 */
  padding: 0 20px;
}

/* MAIN LAYOUT */
.car-container {
  display: block;
}

/* ===== GALLERY ===== */
.car-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* MAIN IMAGE */
.main-image {
  width: 100%;
  max-width: 800px;
  height: 500px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.main-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px; /* 🔥 THIS IS THE KEY */
  margin-top: 100px;
}

/* ===== THUMBNAILS ===== */
.thumbnails {
  display: flex;
  justify-content: center; /* 🔥 CENTERED */
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.thumbnails img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.thumbnails img.active {
  opacity: 1;
  border: 2px solid #e50914;
}

/* ===== CONTACT SIDE ===== */
.car-contact {
  background: white;
  border-radius: 16px;
  padding: 30px 25px;

  display: flex;
  flex-direction: column; 
  align-items: center;     

  text-align: center;

  gap: 15px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* LEFT SIDE (car info) */
.car-summary {
  text-align: center;
}

.car-summary h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.car-summary .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 5px 0;
}

.car-summary .year {
  color: #666;
}

/* RIGHT SIDE (contact) */
.car-contact h3 {
  margin-top: 10px;
  font-size: 1.1rem;
}

.car-contact p {
  margin: 5px 0;
}


/* FOOTER -------------------------------------------------------------------------------------------*/

.footer {
  color: #ccc;
  padding: 60px 20px 30px;
  background: #0a0a0a;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;    
  margin: 0 auto;
}

/* columns */
.footer-column {
  flex: 1;
  min-width: 250px;
}

/* top links (social) */
.footer-column a {
  display: block;
  margin-bottom: 6px;
}

/* bottom legal links */
.footer-legal {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-legal a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: #e50914;
}

.footer-column h3 {
  color: white;
  margin-bottom: 15px;
}

.footer-column p,
.footer-column a {
  color: #aaa;
  text-decoration: none;
  line-height: 1.6;
}

.footer-column a:hover {
  color: #e50914;
}

/* TITLES */
.footer h3,
.footer h4 {
  margin-bottom: 10px;
}

/* LINKS */
.footer a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer a:hover {
  color: #e50914;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}

.footer-credit {
  margin-top: 5px;
}

.location-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.location-link:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.address-text {
  display: block;
  font-size: 14px;
  color: #ccc;
  margin-top: 5px;
}

.phone {
  margin-top: 15px;
  font-weight: 500;
}

.phone a {
  color: #e50914;
  text-decoration: none;
}

.phone a:hover {
  text-decoration: underline;
}

.phone-link {
  color: #e50914;
  text-decoration: none;
  font-weight: bold;
}

.phone-link:hover {
  text-decoration: underline;
}

/* Privacy and Terms----------------------------------------------------------------------------------------------------*/

.legal-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 0 20px;
  line-height: 1.6;
}

.legal-container h1 {
  margin-bottom: 20px;
}

.legal-container h2 {
  margin-top: 25px;
  font-size: 1.2rem;
}

.legal-container ul {
  padding-left: 20px;
}

/*
Admin Dashboard -----------------------------------------------------------------------------------------------------------
*/

.admin-body {
  background: #111;
  color: white;
}

.admin-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.admin-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  text-align: left; 
}

.card {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.btn-danger {
  background: red;
  padding: 10px 15px;
  border: none;
  color: white;
}

/* ===== LOGOUT BUTTON ===== */
#logout-btn {
  background: #ff1e1e;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

#logout-btn:hover {
  background: #cc0000;
}


/* ===== ADMIN TABLE ===== */
.table-container {
  overflow-x: auto;
  margin-top: 15px;
}

.cars-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

.cars-table thead {
  background: #111;
  color: white;
}

.cars-table th,
.cars-table td {
  padding: 12px 15px;
  text-align: left;
}

.cars-table tr {
  border-bottom: 1px solid #eee;
  transition: 0.2s;
}

.cars-table tr:hover {
  background: #f5f5f5;
}

.cars-table tbody td {
  color: #111; /* 🔥 dark text */
  font-weight: 500;
}

.cars-table tbody tr {
  background: #ffffff;
}

.cars-table tbody tr:nth-child(even) {
  background: #f7f7f7;
}

.cars-table td:last-child {
  text-align: center;
}

/* Buttons */
.btn-edit {
  background: #1e88e5;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 5px;
  transition: 0.2s;
}

.btn-edit:hover {
  background: #1565c0;
}

.btn-delete {
  background: #e53935;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-delete:hover {
  background: #c62828;
}

/* Search */
.search-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 15px; 
}

/* Save button tweak */
#submit-btn {
  padding: 8px 16px;
  border-radius: 8px;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 18px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  min-width: 200px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 0.3s forwards;
}

/* Types */
.toast.success { background: #2ecc71; }
.toast.error { background: #e74c3c; }
.toast.info { background: #3498db; }

/* Animation */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* thumbnail */
.thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumb:hover {
  transform: scale(1.2);
  z-index: 2;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* optional hover zoom popup */
.img-preview {
  position: relative;
}


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

.form-row input[type="text"],
.form-row input[type="number"] {
  flex: 1;
  min-width: 150px;
}

.form-row input[type="file"] {
  flex: 2;
}

.form-row button {
  height: 42px;
  padding: 0 20px;
  white-space: nowrap;
}

.image-preview {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.preview-item {
  position: relative;
}

.preview-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.main-btn {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
}

.main-btn.active {
  background: red;
}

.preview-item {
  cursor: grab;
}

.preview-item:active {
  cursor: grabbing;
}

.preview-item.dragging {
  opacity: 0.5;
}

.preview-item img {
  pointer-events: none;
}

.controls {
  position: absolute;
  bottom: 5px;
  left: 5px;
  display: flex;
  gap: 4px;
}

.controls button {
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
}

.controls button:hover {
  background: red;
}

/* ===== LOGIN PAGE ===== ----------------------------------------------------------------------------*/
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Card */
.login-card {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Title */
.login-card h1 {
  margin-bottom: 25px;
  font-size: 24px;
}

/* Inputs */
.login-card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: none;
  outline: none;
}

/* Button */
.login-card button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
}

.login-card input:focus {
  box-shadow: 0 0 0 2px red;
}

/* Error message */
.error-message {
  color: #ff4d4d;
  font-size: 14px;
  margin-bottom: 10px;
  min-height: 18px;
}

/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s;
}

/* ========================= MOBILE NAVBAR OVERRIDE ========================= */

@media (max-width: 768px) {

  /* ===== NAVBAR ===== */
  .nav-container {
    height: 60px;
    padding: 0 12px;
  }

  /* HIDE LEFT LINKS */
  .nav-links {
    display: none;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
  }

  .logo img {
    height: 120px;  
    max-width: 120px;
  }

  /* ICONS RIGHT */
  .nav-icons {
    gap: 12px;
  }

  .nav-icons i {
    font-size: 16px;
  }

  /* REMOVE "Contacto →" TEXT */
  .contact-link {
    display: none;
  }

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

  .hero {
    height: 80vh;
    justify-content: center; 
    text-align: center;
  }

  .hero-content {
    margin: 0;
    padding: 0 15px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 26px;
    white-space: normal; 
  }

  .hero-content p {
    font-size: 14px;
  }

  /* BUTTONS STACK */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* ===== INVENTORY ===== */

  .inventory {
    margin-top: 0px !important; 
  }

  .inventory-section {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }


  .inventory-header {
    margin-top: 0px !important;
  }

  .inventory-header h2 {
    font-size: 1.8rem;
  }

   .inventory button,
  .view-all-btn {
    margin-bottom: 10px !important;
  }

  .contact-section {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }

  .cars-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .car-image-container {
    position: relative;
  }

  .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    
    width: 40px;
    height: 40px;
    border-radius: 50%;
    
    display: flex !important; 
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center;
    justify-content: center;
    
    z-index: 10;
    cursor: pointer;
  }

  .nav-arrow.left {
    left: 10px;
  }

  .nav-arrow.right {
    right: 10px;
  }

  .nav-arrow {
  transition: 0.2s;
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.9);
}

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

    .contact-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

   .contact-form {
    width: 100%;
    max-width: 400px; 
  }

  .form-row {
    flex-direction: column;
  }

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

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
    font-size: 22px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
  }

  .menu-toggle.active {
  transform: rotate(90deg);
}

  /* POSITIONING */
  .nav-container {
    justify-content: space-between;
  }

  /* ICONS RIGHT */
  .nav-icons {
    margin-left: auto;
  }

  /* MOBILE MENU DROPDOWN */
  .mobile-menu {
    position: fixed;          
    top: 32px;                
    left: 0;
    width: 100%;
    padding: 15px 0;          
    gap: 8px;
    background: #000;
    z-index: 999;
    list-style: none;  

    display: flex;
    flex-direction: column;
    align-items: center;

    /* animation base */
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

 .mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu li {
    margin: 2px 0;
  }

  .mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 13px;          
    font-weight: 500;
  }

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

  .footer {
    padding: 30px 15px 15px;
  }

  .footer-container {
    gap: 20px; 
  }

  .footer-column {
    min-width: unset;
  }

  .footer-column h3,
  .footer-column h4 {
    margin-bottom: 6px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 14px;
    line-height: 1.4;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    gap: 8px;
  }


  /*Inventory Mobile page-----------------------------------------------------------------------------------*/

   .inventory-page {
    padding: 20px 10px;
  }

  .cars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .car-card {
    width: 100%;
  }

  .filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .filters input,
  .filters select,
  .filters button {
    width: 100%;
  }

  .inventory-header h1 {
    font-size: 1.8rem;
  }

  .inventory-header p {
    font-size: 0.9rem;
  }

  .car-img {
    height: 220px;
    object-fit: cover;
    touch-action: pan-y;
  }

/*Car Mobile page-----------------------------------------------------------------------------------*/

  .car-page {
    max-width: 100%;
    margin: 70px 0 20px;
    padding: 0 10px;
  }

  .car-container {
    width: 100%;
    padding: 0;
  }

  .car-gallery {
    display: flex;
    flex-direction: column;
  }

  
  .main-image-wrapper {
    display: flex;               
    flex-direction: column;     
    width: 100%;
    gap: 15px;
    display: contents !important;
  }

  /* IMAGE FIX */
  .main-image {
    width: 100%;
    height: auto;
    object-fit: contain;      
    order: 1;
  }

  /* THUMBNAILS */
   .thumbnails {
    order: 2;
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 8px;

    padding: 10px 10px 10px 10px; 

    scroll-padding-left: 10px;  
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important; 
  }

  .thumbnails img {
    flex: 0 0 auto; 
    width: 80px;
    height: 60px;
    object-fit: cover;
  }

  /* CONTACT BOX */
  .car-contact {
    order: 3;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* TEXT */
  .car-summary h1 {
    font-size: 1.4rem;
  }

  .price {
    font-size: 1.2rem;
  }

}