:root {
  --bcg-color: #ffee00;
  --second-color: #3abef9;
  --second-paragraph: #333333da;
  --paragraph: #333;
  --black-bcg: #ffffff;
  --title-color: #000;
  --welcome-img: url(/static/img/index/light/background.png);
  --border-color: #f0f0f0;
  --white-shadow: 1px solid #33333367;
  --second-icon: #33333396;
  --date: #33333381;
  --dark-yellow: #e4d500;
  --second-bcg: #f8f8f8;
  --picture-color: #ffffff;
  --skeleton-base: #ececec;
  --skeleton-highlight: #f5f5f5;
  --skeleton-back: #dedede;
}

.dark-theme {
  --second-paragraph: #e0e0e0;
  --paragraph: #f0f0f0;
  --black-bcg: #1e1e1e;
  --title-color: #ffffff;
  --welcome-img: url(/static/img/index/dark/pcbcg.png);
  --border-color: initial;
  --white-shadow: initial;
  --second-icon: #f0f0f09c;
  --date: #f0f0f073;
  --second-bcg: #181818;
  --picture-color: #0c0c0c;
  --dark-yellow: #ffee00;
  --skeleton-base: #2a2a2a;
  --skeleton-highlight: #3a3a3a;
  --skeleton-back: #1e1e1e;
}
header .navigation-custom {
  background-color: var(--nav-bcg);
  border-bottom: 1px solid var(--nav-borderColor);
}
#mobilePageTitle {
  display: none;
}
.phone-title {
  display: none;
}
#headerAddAd {
  color: var(--plus-color) !important;
}
#pcPageTitle {
  display: flex;
  align-items: center;
  padding-top: 100px;
  justify-content: space-between;
  max-width: 1700px;
  width: 90%;
  margin-inline: auto;
  padding-right: 80px;
}
#pcPageTitle h2 {
  font-size: 2.2rem;
  color: var(--title-color);
  font-weight: bold;
}

#pcPageTitle .select-div {
  display: flex;
  flex-direction: column;
  width: 180px;
  border: 1px solid var(--paragraph);
  border-radius: 5px;
}
#pcPageTitle .select-div div {
  width: 85%;
  margin-inline: auto;
  padding-top: 3px;
  padding-bottom: 7px;
  cursor: pointer;
}
#pcPageTitle .select-div span {
  position: relative;
  bottom: -5px;
  color: var(--date);
  cursor: pointer;
  font-size: 0.9rem;
}
#pcPageTitle .select-div select {
  width: 100%;
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  color: var(--paragraph);
  margin-left: -11px;
  font-size: 0.95rem;
  padding-inline: 8px;
}

#pcPageTitle .select-div option {
  font-size: 1rem;
  background-color: var(--black-bcg);
  padding-inline: 10px;
}
#pageContainer {
  display: flex;
  align-items: flex-start;
  width: 95%;
  max-width: 1800px;
  margin-inline: auto;
  margin-top: 30px;
}

#adsList {
  display: flex;
  flex-wrap: wrap;
  width: 80%;
  margin-left: 30px;
}
#adsList .ad-card {
  position: relative;
  z-index: auto; /* Reset stacking context */
  width: 30%;
  margin-right: 20px;
  background-color: var(--second-bcg);
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

#adsList .ad-card .image-c {
  position: relative;
  height: 200px; /* Fixed height of exactly 200px */
  overflow: hidden;
  border-radius: 10px;
}

/* Postavljanje fiksnih dimenzija za sliku */
#adsList .ad-card img {
  display: block;
  width: 100%;
  height: 200px; /* Fixed height of exactly 200px */
  object-fit: cover;
}

/* Stilovi za galeriju slika na hover */
#adsList .ad-card .image-navigation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  z-index: 15; /* Ensure it's below .hearth */
}

#adsList .ad-card:hover .image-navigation {
  display: flex;
}

#adsList .ad-card .nav-arrow {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-theme #adsList .ad-card .nav-arrow {
  background-color: rgba(40, 40, 40, 0.8);
}

#adsList .ad-card .nav-arrow:hover {
  transform: scale(1.1);
  background-color: var(--bcg-color);
}

#adsList .ad-card .nav-arrow i {
  font-size: 18px;
  color: var(--paragraph);
}

#adsList .ad-card .image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  z-index: 15;
  display: none;
}

#adsList .ad-card:hover .image-counter {
  display: block;
}

/* Stil za spinner prilikom učitavanja slika */
#adsList .ad-card .image-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 10; /* Ensure it's below .hearth */
}

#adsList .ad-card .image-loading .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--bcg-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tranzicija slika */
#adsList .ad-card .image-c img.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Image navigation dots */
.image-dots-container {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}

.image-dot {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #888; /* tamnija boja za neaktivne */
  border-radius: 50%;
  transition: background-color 0.3s;
}

.image-dot.active {
  background-color: #fff; /* bela za aktivnu */
}

/* Image skeleton loader sa animacijom - koristi varijable za light/dark temu */
.image-skeleton {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  background-color: var(--skeleton-base);
  background-image: linear-gradient(
    90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-highlight) 50%,
    var(--skeleton-base) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
}

/* Overlay wave efekat za skeleton loader */
.image-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.6) 50%, 
    transparent 100%);
  animation: wave-animation 1.6s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

/* Dark theme varijanta za skeleton loader */
.dark-theme .image-skeleton {
  background-color: var(--skeleton-base);
  background-image: linear-gradient(
    90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-highlight) 50%,
    var(--skeleton-base) 100%
  );
}

.dark-theme .image-skeleton::after {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
}

/* Animacije za skeleton loader */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@keyframes wave-animation {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

#adsList .ad-card .absolute-p {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* background-color: red; */
  width: calc(100% - 20px);
  padding: 5px;
  z-index: 30; /* Add this line to ensure the ZIP stays above the zoomed image */
}

#adsList .absolute-p .hearth {
  position: relative;
  z-index: 9999 !important; /* Ensure it's above all other elements */
  display: grid;
  place-content: center;
  background-color: var(--second-bcg);
  border: 1px solid var(--title-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
#adsList .ad-card .absolute-p .location {
  display: flex;
  background-color: var(--bcg-color);
  border-radius: 7px;
  padding: 5px;
}
#adsList .ad-card .absolute-p .location .t-c {
  color: #000;
  font-size: 1rem;
  padding-top: 1px;
}
#adsList .absolute-p .hearth i {
  font-size: 1.3rem !important;
  color: var(--dark-yellow);
}
#adsList .title-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 10px;
}
#adsList .title-container h6 {
  margin-bottom: 0px;
  font-size: 1rem;
  color: var(--date);
}
#adsList .title-container h3 {
  color: var(--title-color);
  font-weight: bold;
  font-size: 1.7rem;
}
#adsList .title-container .price {
  position: relative;
  top: -13px;
}
#adsList .title-container .price span {
  color: var(--paragraph);
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1rem;
}

#adsList .footer-container {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  margin-top: 10px;
  padding-top: 15px;
  padding-bottom: 10px;
  border-top: 1px solid var(--border-color);
}
#adsList .footer-container div {
  display: flex;
  margin-right: 20px;
}
#adsList .footer-container .icon-c {
  color: var(--dark-yellow);
  transform: scale(1);
}
#adsList .footer-container .description {
  padding-top: 3.5px;
  font-size: 0.9rem;
  color: var(--second-paragraph);
  margin-left: 2px;
}

.left-card-desing .inputs-c {
  width: 100%;
  margin-bottom: 15px;
}
.left-card-desing .inputs-c input,
.left-card-desing .inputs-c select {
  width: 100%;
  height: 50px;
  padding-inline: 5px;
  background-color: transparent;
  border: 2px solid var(--date);
  border-radius: 5px;
  color: var(--paragraph);
  outline: none;
}
.left-card-desing .inputs-c select {
  cursor: pointer;
}
.left-card-desing .inputs-c select option {
  background-color: var(--black-bcg);
}
.left-card-desing .inputs-flex {
  display: flex;
  justify-content: center;
}
.left-card-desing .inputs-flex .inputs-c {
  margin-inline: 3px;
}
.left-card-desing .m-i {
  width: calc(100% - 6px);
  margin-inline: auto;
}

.collapse-desing {
  margin-bottom: 20px;
}

.collapse-desing a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  border: 2px solid var(--date);
  height: 50px;
  padding-inline: 5px;
  border-radius: 5px;
  color: var(--paragraph);
}
.collapse-desing .multi-collapse {
  margin-left: 4px;
  margin-top: 15px;
}
#searchedCards {
  width: 20%;
}
#searchedCards .custom-card {
  position: relative;
  width: 100%;
  background-color: var(--second-bcg);
  height: auto;
  margin-bottom: 35px;
  padding: 15px;
  border-radius: 10px;
}

.card-scrool {
  height: 400px !important;
  overflow: auto; /* Omogućava skrolovanje */
}

/* Stilizovanje skrolbara */
.card-scrool::-webkit-scrollbar {
  width: 8px; /* širina skrolbara */
}

.card-scrool::-webkit-scrollbar-track {
  background-color: #e0e0e0; /* Boja pozadine skrolbara */
}

.card-scrool::-webkit-scrollbar-thumb {
  background-color: var(--border-color); /* Boja samog skrolbara */
  border-radius: 4px; /* Zaobljeni rubovi */
}

.card-scrool::-webkit-scrollbar-thumb:hover {
  background-color: var(--black-bcg); /* Boja skrolbara kada se prelazi mišem */
}
.card-scrool .title-c {
  position: sticky;
  top: -24px;
  z-index: 10; /* Ako želiš da title bude iznad drugih elemenata */
  background-color: var(--second-bcg);
  padding-top: 25px;
  padding-bottom: 8px;
  margin-top: -30px;
}

#reSearchBTN {
  margin-top: 0px;
  width: 100%;
  height: 48px;
  background-color: var(--bcg-color);
  color: #000;
  font-size: 1.05rem;
  border: none;
  border-radius: 10px;
  margin-bottom: 20px;
}

#searchedCards .custom-card .title-c {
  display: flex;
  align-items: center;
}
.research-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.research-title h4 {
  color: var(--title-color);
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 0px;
}
.research-title span {
  font-size: 1rem;
  color: var(--dark-yellow);
  cursor: pointer;
}
.research-title span:hover {
  opacity: 0.75;
}

#makeModel .flex-c {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 2px solid var(--second-paragraph);
  border-radius: 10px;
  position: relative;
}
#makeModel .flex-c .car-info {
  margin-left: 10px;
}
#makeModel .flex-c .car-info h5 {
  margin-top: 5px;
  color: var(--paragraph);
  margin-bottom: 0px;
  font-size: 1.3rem;
}
#makeModel .flex-c .car-info h6 {
  color: var(--date);
  font-size: 0.8rem;
}

#makeModel .flex-c svg {
  width: 42px;
  fill: var(--title-color);
}

#makeModel .position-a {
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
  color: var(--second-paragraph);
  cursor: pointer;
}
#makeModel .position-a:hover {
  opacity: 0.9;
}
#makeModel .btn-c button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  height: 40px;
  background-color: var(--bcg-color);
  border: none;
  border-radius: 10px;
  color: #000;
}
#makeModel .btn-c button:hover {
  opacity: 0.9;
}
#makeModel .btn-c button span {
  margin-right: 10px;
}

.check-card .inputs-flex {
  flex-wrap: wrap;
}
.check-card .inputs-flex div {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}
.check-card .inputs-flex div label {
  color: var(--paragraph);
  margin-left: 8px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding-top: 1px;
  cursor: pointer;
}
.check-card .inputs-flex div input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 1px solid var(--paragraph);
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.check-card .inputs-flex div input:checked {
  background-color: var(--bcg-color);
  border-color: var(--dark-yellow);
  position: relative;
}


#addModelModal .modal-content {
  padding: 30px;
  background-color: var(--black-bcg);
  border: 1px solid var(--border-color);
}
#addModelModal .modal-content .modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#addModelModal .modal-h h5 {
  font-size: 1.4rem;
  color: var(--title-color);
  letter-spacing: 0.2px;
}
#addModelModal .modal-h button {
  display: grid;
  place-content: center;
  position: relative;
  top: -2px;
  width: 32px;
  height: 32px;
  background-color: var(--bcg-color);
  color: #000;
  border: none;
  border-radius: 10px;
}
#addModelModal .modal-h button:hover {
  opacity: 0.9;
}

#addModelModal .modal-h button i {
  font-size: 1.2rem;
}
#addModelModal .input-c {
  display: flex;
  align-items: center;
  margin-top: 20px;
}
#addModelModal .input-c label {
  color: var(--second-paragraph);
  width: 30%;
}

#addModelModal .input-c select {
  width: 100%;
  height: 33px;
  padding-inline: 5px;
  background-color: transparent;
  border: 2px solid var(--date);
  border-radius: 5px;
  color: var(--paragraph);
  outline: none;
  cursor: pointer;
  font-size: 1rem;
}
#addModelModal .input-c select option {
  background-color: var(--black-bcg);
}
#addModelModal .input-c select:focus {
  outline: 1px solid var(--bcg-color);
}
#addModelModal .modal-f {
  width: 100%;
  display: flex;
  justify-content: right;
  margin-top: 20px;
}
#addModelModal .modal-f button {
  background-color: var(--bcg-color);
  border: none;
  color: #000;
  width: 130px;
  height: 35px;
  border-radius: 10px;
  font-size: 1rem;
}
#addModelModal .modal-f button:hover {
  opacity: 0.9;
}

/* Mobile Sort Modal Styles */
#mobileSortModal .modal-content {
  padding: 20px;
  background-color: var(--black-bcg);
  border: 1px solid var(--border-color);
}

#mobileSortModal .modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

#mobileSortModal .modal-h h5 {
  font-size: 1.4rem;
  color: var(--title-color);
  letter-spacing: 0.2px;
  margin-bottom: 0;
}

#mobileSortModal .modal-h button {
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--bcg-color);
  color: #000;
  border: none;
  border-radius: 10px;
}

#mobileSortModal .sort-options {
  display: flex;
  flex-direction: column;
}

#mobileSortModal .sort-option {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

#mobileSortModal .sort-option:last-child {
  border-bottom: none;
}

#mobileSortModal .sort-option input {
  margin-right: 12px;
}

#mobileSortModal .sort-option label {
  color: var(--paragraph);
  font-size: 1rem;
  cursor: pointer;
}

#mobileSortModal .modal-f {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

#mobileSortModal .modal-f button {
  background-color: var(--bcg-color);
  border: none;
  color: #000;
  width: 130px;
  height: 35px;
  border-radius: 10px;
  font-size: 1rem;
}

/* Updated Skeleton loader styles */
.skeleton-card {
  opacity: 0.8;
  background-color: var(--second-bcg) !important;
}

.skeleton-text {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background-color: var(--skeleton-base);
  background-image: linear-gradient(
    90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-highlight) 50%,
    var(--skeleton-base) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Improved Card Skeleton Components */
.card-img-skeleton {
  width: 100%;
  height: 2330px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.skeleton-make {
  width: 40%;
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-title {
  width: 70%;
  height: 22px;
  margin-bottom: 8px;
}

.skeleton-price {
  width: 60px;
  height: 18px;
}

.skeleton-info {
  width: 50px;
  height: 14px;
  margin-left: 5px;
}

/* Media query adjustments for skeleton loaders */
@media only screen and (max-width: 1499px) {
  .card-img-skeleton {
    height: 200px;
  }
}

@media only screen and (max-width: 1023px) {
  .card-img-skeleton {
    height: 180px;
  }
}

/* Stil za tačkice */
.image-dots-container {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.image-dot {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #888; /* tamnija boja za neaktivne */
  border-radius: 50%;
  transition: background-color 0.3s;
}

.image-dot.active {
  background-color: #fff; /* bela za aktivnu */
}

.no-results {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 20px;
}
.no-results h4 {
  color: var(--title-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.no-results p {
  color: var(--second-paragraph);
}

/* Debug panel styling */
#debugPanel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  max-width: 300px;
  max-height: 300px;
  overflow: auto;
  z-index: 1000;
  font-size: 12px;
}

#debugPanel h2,
#debugPanel h3,
#debugPanel h4 {
  margin-top: 10px;
  margin-bottom: 5px;
}

#debugPanel ul {
  padding-left: 15px;
}

#debugPanel li {
  margin-bottom: 3px;
}

#debugToggle:hover {
  opacity: 0.8;
}

@media only screen and (max-width: 1499px) {
  #searchedCards {
    width: 25%;
  }
  #adsList {
    width: 75%;
  }
  #pcPageTitle {
    width: 95%;
  }
  #adsList .ad-card {
    width: 47%;
  }
  #pcPageTitle h2 {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 1279px) {
  #searchedCards {
    width: 30%;
  }
  #adsList {
    width: 70%;
  }
  #adsList .ad-card {
    width: 46%;
  }
  #adsList .ad-card img {
    height: 200px;
  }
  #adsList .ad-card .absolute-p .location {
    padding: 3.5px;
  }
  #adsList .ad-card .absolute-p .location .t-c {
    font-size: 0.9rem;
  }
  #adsList .ad-card .absolute-p .location span {
    font-size: 1.4rem;
  }
  #adsList .title-container h6 {
    font-size: 0.95rem;
  }
  #adsList .title-container h3 {
    font-size: 1.5rem;
  }
  #adsList .title-container .price {
    top: -10px;
  }
  #adsList .title-container .price span {
    font-size: 0.95rem;
  }
  #adsList .footer-container .icon-c {
    transform: scale(0.95);
  }
  #adsList .footer-container {
    padding-top: 10px;
    margin-top: 5px;
    padding-bottom: 5px;
  }

  /* //left */
  #searchedCards .custom-card {
    padding-inline: 10px;
  }
}
@media only screen and (max-width: 1023px) {
  #pcPageTitle {
    display: none;
  }

  #searchedCards {
    display: none;
    position: fixed;
    overflow: auto;
    top: 0;
    z-index: 123;
    width: 70%;
    background-color: var(--black-bcg);
    height: 100%; /* Or a fixed value like 100vh if needed */
    min-height: 100vh;
    max-width: 500px;
  }
  #searchedCards .phone-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    z-index: 2;
    padding: 10px;
    top: 0;
    background-color: var(--black-bcg);
  }
  #searchedCards .phone-title h3 {
    font-size: 1.7rem;
    color: var(--title-color);
    font-weight: bold;
  }
  #searchedCards .phone-title i {
    position: relative;
    top: -3px;
    font-size: 1.5rem;
    color: var(--second-paragraph);
  }
  #searchedCards .custom-card {
    background-color: var(--black-bcg);
    margin-bottom: 0px;
  }
  .research-title span {
    display: none;
  }
  .research-title {
    margin-left: 3px;
    margin-bottom: 10px;
  }
  .card-scrool .title-c {
    position: relative;
    top: 0px;
    z-index: initial;
    background-color: initial;
    padding-top: initial;
    padding-bottom: inherit;
    margin-top: inherit;
    margin-bottom: -5px;
    margin-left: 3px;
  }
  #searchedCards .custom-card {
    height: auto !important;
    overflow: hidden;
  }
  #reSearchBTN {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
  }
  #mobilePageTitle {
    display: block;
    padding-top: 80px;
    margin-left: 10px;
  }

  #mobilePageTitle h2 {
    color: var(--title-color);
    font-weight: bold;
    font-size: 2rem;
  }

  #mobilePageTitle .filters-container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-top: 15px;
  }

  #mobilePageTitle .all-filters-btn {
    border-right: 2px solid var(--border-color);
    padding-right: 10px;
    margin-right: 7px;
  }
  #mobilePageTitle .all-filters-btn button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding-inline: 25px;
    height: 32px;
    background-color: var(--second-bcg);
    border: none;
    border-radius: 100px;
    color: var(--second-paragraph);
    letter-spacing: 1px;
  }
  #mobilePageTitle .all-filters-btn button span {
    color: var(--title-color) !important;
    margin-right: 5px;
    font-size: 1.3rem;
  }
  #mobilePageTitle .other-btn {
    height: 32px;
    display: flex;
  }
  #mobilePageTitle .other-btn button {
    width: 190px;
    height: 32px;
    margin-inline: 3px;
    background-color: transparent;
    border: none;
    color: var(--second-paragraph);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    border-radius: 100px;
  }

  #mobilePageTitle .matches-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 15px;
    margin-top: 10px;
  }
  #mobilePageTitle .matches-container h6 {
    margin-bottom: 0px;
    color: var(--second-paragraph);
    font-size: 1rem;
  }
  #mobilePageTitle .matches-container span {
    color: var(--title-color);
  }

  #mobilePageTitle .matches-container .right {
    display: flex;
  }

  #mobilePageTitle .matches-container .right span {
    color: var(--title-color);
  }

  #mobilePageTitle .matches-container .right a {
    color: var(--date);
  }
  #pageContainer {
    width: 100%;
  }
  #adsList {
    width: 100%;
    margin: 0px;
  }
  #adsList .ad-card {
    width: 47%;
    margin-inline: 10px;
  }
}
@media only screen and (max-width: 767px) {
  #mobilePageTitle h2 {
    font-size: 1.5rem;
  }
  #adsList .ad-card {
    width: 100%;
  }
}
@media only screen and (max-width: 499px) {
  #mobilePageTitle h2 {
    font-size: 1.5rem;
  }
  #adsList .ad-card {
    padding: 6px;
  }
  #adsList .ad-card img {
    height: 170px;
  }
  #searchedCards {
    width: 90%;
  }
}

/* Card badges for important car information */
.card-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  text-transform: capitalize;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.damage-badge {
  background-color: #ff5252;
}

.history-badge {
  background-color: #4caf50;
}

.body-badge {
  background-color: #2196f3;
}

/* Specs container styling */
.specs-container {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 11px;
  color: #666;
  border-bottom: 1px solid #eee;
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spec .label {
  font-weight: bold;
  margin-bottom: 2px;
}

.spec .value {
  text-transform: uppercase;
}

/* Adjust existing info container to fit new specs section */
.info-container {
  display: flex;
  flex-direction: column;
}

.footer-container {
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .specs-container {
    font-size: 10px;
    padding: 4px 8px;
  }

  .badge {
    font-size: 9px;
    padding: 1px 4px;
    max-width: 60px;
  }
}
