: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;
  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 {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

/* Image skeleton styles for navigation */
.ad-card .image-c .image-skeleton-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, var(--light-bg) 8%, var(--bg-color) 18%, var(--light-bg) 33%);
  background-size: 200% 100%;
  animation: shine 1.5s linear infinite;
  z-index: 2;
  display: none;
}

.dark-theme .ad-card .image-c .image-skeleton-nav {
  background: linear-gradient(110deg, #333 8%, #444 18%, #333 33%);
}

.ad-card .image-c .image-skeleton-nav.active {
  display: block;
}

/* Add overlay when image is loading */
.ad-card .image-c.loading-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.ad-card .image-c img {
  transition: opacity 0.3s ease;
}

.ad-card .image-c img.loading {
  opacity: 0.3;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

#adsList .ad-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

#adsList .ad-card:hover img {
  transform: scale(1.05);
}

/* Hover Image Navigation Styles */
.ad-card .hover-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 5;
}

.ad-card:hover .hover-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ad-card .hover-controls .nav-arrows {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
  margin: auto 0;
}

.ad-card .hover-controls .nav-arrow {
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: none;
}

.dark-theme .ad-card .hover-controls .nav-arrow {
  background-color: rgba(60, 60, 70, 0.7);
  color: #f1f1f1;
}

.ad-card .hover-controls .nav-arrow:hover {
  background-color: var(--bcg-color);
  color: white;
  transform: scale(1.1);
}

.ad-card .hover-controls .image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: none;
}

.dark-theme .ad-card .hover-controls .image-counter {
  background-color: rgba(60, 60, 70, 0.7);
  color: #f1f1f1;
}

.ad-card .hover-controls .image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #FFD700; /* Žuta boja za loader */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
  z-index: 6;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.ad-card .hover-controls .image-loading.active {
  display: block;
}

/* Prevent navigation to car details when clicking on nav controls */
.ad-card .hover-controls .nav-arrow,
.ad-card .hover-controls .image-counter {
  pointer-events: auto;
}

.ad-card .hover-controls {
  pointer-events: none;
}

/* Modern dots for slider (Instagram-like) */
.image-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  z-index: 8;
  pointer-events: auto;
  transition: gap 0.2s;
}

.image-dot-modern {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bbb;
  opacity: 0.7;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition:
    background 0.25s cubic-bezier(.4,0,.2,1),
    opacity 0.2s,
    transform 0.25s cubic-bezier(.4,0,.2,1),
    box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  will-change: transform, background, box-shadow;
  position: relative;
  outline: none;
}

.image-dot-modern.active {
  background: var(--bcg-color, #ffee00);
  opacity: 1;
  transform: scale(1.5);
  box-shadow: 0 2px 8px 0 rgba(255, 221, 0, 0.18);
}

.image-dot-modern.clicked::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 238, 0, 0.18);
  opacity: 0.7;
  animation: dot-ripple 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

@keyframes dot-ripple {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.7; }
  80% { opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.image-dot-modern.slide-left,
.image-dot-modern.slide-right {
  animation-duration: 0.25s;
  animation-fill-mode: both;
}
.image-dot-modern.slide-left {
  animation-name: dot-slide-left;
}
.image-dot-modern.slide-right {
  animation-name: dot-slide-right;
}
@keyframes dot-slide-left {
  0% { transform: scale(1.5) translateX(0); }
  100% { transform: scale(1.5) translateX(-8px); }
}
@keyframes dot-slide-right {
  0% { transform: scale(1.5) translateX(0); }
  100% { transform: scale(1.5) translateX(8px); }
}

/* Dots for image slider */
.image-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  z-index: 8;
  pointer-events: auto;
  transition: gap 0.2s;
}

.image-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bbb;
  opacity: 0.7;
  transition: 
    background 0.25s cubic-bezier(.4,0,.2,1),
    opacity 0.2s,
    transform 0.25s cubic-bezier(.4,0,.2,1),
    box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  will-change: transform, background, box-shadow;
}

.image-dot.active {
  background: var(--bcg-color, #ffee00);
  opacity: 1;
  transform: scale(1.35);
  border: 1.5px solid var(--bcg-color, #ffee00);
  box-shadow: 0 2px 8px 0 rgba(255, 221, 0, 0.18);
}

.image-dot:hover:not(.active) {
  background: #888;
  opacity: 0.95;
  transform: scale(1.12);
}

.dark-theme .image-dot {
  background: #444;
  border-color: #222;
}
.dark-theme .image-dot.active {
  background: var(--dark-yellow, #ffee00);
  border-color: var(--dark-yellow, #ffee00);
  box-shadow: 0 2px 8px 0 rgba(255, 221, 0, 0.22);
}

#adsList .ad-card .absolute-p {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: calc(100% - 20px);
  padding: 5px;
  z-index: 10;
}

#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 {
  position: relative;
  z-index: 5;
  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 .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;
  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;
}

.card-scrool::-webkit-scrollbar {
  width: 8px;
}

.card-scrool::-webkit-scrollbar-track {
  background-color: #e0e0e0;
}

.card-scrool::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.card-scrool::-webkit-scrollbar-thumb:hover {
  background-color: var(--black-bcg);
}
.card-scrool .title-c {
  position: sticky;
  top: -24px;
  z-index: 10;
  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 {
  z-index: 10000000000 !important;
}
#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;
}

.image-skeleton {
  width: 100%;
  height: 230px;
  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;
}

/* Improved Card Skeleton Components */
.card-img-skeleton {
  width: 100%;
  height: 230px;
  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;
}

/* Updated shimmer animation with reversed direction */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 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;
  }
}

.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;
  }

  #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%;
    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;
  }
}
