/*Global CSS*/
.listing-btn {
  background-color: #e74c3c; /* Red tone */
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
#listingCancelDelete {
  background-color: #bdc3c7;
  color: #2c3e50;
}

.listing-card .card-content a.listing-btn {
  padding: 2px 10px;
  border-radius: 20px;
}

/* Listing CSS */
.listing-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: auto;
}
a.list-front,
.listing-card {
  overflow: hidden;
  width: calc(25% - 30px);
  color:inherit;
}
a.list-front > .listing-card{
	width:unset;
}
.listing-card .content-top {
  display: flex;
  justify-content: space-between;
  align-items:start;
}
.list-action-btns{
	display:flex;
	gap:10px;
}
.list-action-btns > a:first-child {
  background-color: #3498db;
}

.listing-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.listing-card .card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 5px;
}

.listing-card .card-content {
  margin-top: 10px;
}

.listing-card .card-title {
    text-decoration: none;
    font-family: Montserrat;
    letter-spacing: 0;
    font-size: 18px !important;
    line-height: 26px;
    font-weight: 500 !important;
}

.listing-card .card-details {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content:space-between;
  margin-top:10px;
}

.listing-card .card-price {
  background-color: #bbef00;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.listing-card input[type="checkbox"]{
	accent-color: #bbef00;
}
.listing-card span.listing-meta-item {
    padding: 0px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #bbef00;
}

/* Listing Pagination Container */
.listing-pagination {
    text-align: center;
    margin: 30px 0;
}

/* Pagination Links */
.listing-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 4px 12px;
    font-size: 16px;
    color: #333;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Effect */
.listing-pagination .page-numbers:hover {
    background-color: #bbef00;
    color: #fff;
    border-color: #bbef00;
}

/* Current Page */
.listing-pagination .page-numbers.current {
    background-color: #bbef00;
    color: #fff;
    border-color: #bbef00;
    font-weight: bold;
}

/* Previous and Next Arrows */
.listing-pagination .page-numbers.prev,
.listing-pagination .page-numbers.next {
    font-weight: bold;
}


/* Responsive styles */
@media (max-width: 992px) {
  .listing-cards-container {
	  justify-content:center;
	}
  .listing-card,
   a.list-front{
    width: calc(50% - 30px);
  }
}

@media (max-width: 576px) {
  a.list-front,
  .listing-card {
    width: 100%;
    max-width: 350px;
  }
}

/*Listing Form CSS*/
.mt_container.memberstasmania .select2-container {
    width: 100% !important;
}
.mt_container.memberstasmania {
  background-color: #fbfbfb;
  padding: 5%;
}
.mt_container.memberstasmania .mt_container_wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.memberstasmania .progress-container {
  padding-block: 25px;
}

.memberstasmania .progress-bar {
  height: 12px;
  background: #fff;
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
  border: 2px solid #bbef00;
}

.memberstasmania .progress {
  height: 100%;
  background: #bbef00;
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
}

.memberstasmania .step-info {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  justify-content: center;
  gap: 5px;
}

.memberstasmania .form-container {
  padding: 30px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 0px 15px rgb(139 135 135 / 35%);
  border: 2px solid #bbef00;
}

.memberstasmania .step {
  display: none;
}
.memberstasmania
  div.step
  .select2-container--default
  .select2-selection--single {
  padding: 0;
}
.step_wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.step_wrapper .form-group {
  margin: 0 auto;
}
.mt_container.memberstasmania #step5 .step_wrapper > .form-group {
    display:flex;
    gap:5px;
	align-items:center;
}
.details-txt {
  text-decoration-line: underline;
  text-decoration-color: #bbef00;
}

.memberstasmania .step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.memberstasmania h2 {
  color: #2d3a4b;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 24px;
  text-align: center;
}

.memberstasmania .form-group {
  margin-bottom: 20px;
  text-align: center;
}

.memberstasmania input,
.memberstasmania select,
.memberstasmania textarea {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #bbef00;
  border-radius: 10px !important;
  font-size: 16px;
  transition: border 0.3s ease;
}

.memberstasmania textarea {
  width: 85%;
}

.memberstasmania input:focus,
.memberstasmania select:focus,
.memberstasmania textarea:focus {
  border-color: #4a6cf7;
  outline: none;
}
.memberstasmania input[type="checkbox"] {
  accent-color: #bbef00;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 14px !important;
  height: 14px;
  border: 1px solid #bbef00;
  border-radius: 4px !important;
  display: inline-block;
  position: relative;
  cursor: pointer;
  padding: 0px !important;
  margin-bottom: -1px !important;
  margin-right: 8px;
}
.memberstasmania input#agreeTerms {
  width: 50px !important;
}
/* checked state */
.memberstasmania input[type="checkbox"]:checked {
  background-color: #bbef00;
  border-color: #bbef00;
}

/* add tick mark */
.memberstasmania input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -1px;
  width: 5px;
  height: 9px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-group.cstm-btn {
  position: relative;
}
.form-group.cstm-btn::after {
  content: "km";
  position: absolute;
  padding: 13px 8px;
  top:0;
  right: 0px;
  border-radius: 10px;
  background: #bbef00;
}

.memberstasmania .checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.memberstasmania .checkbox-group input {
  width: auto;
  margin-right: 10px;
}
.memberstasmania #step3 .checkbox-group {
  justify-content: center;
}

.memberstasmania .price-options {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.memberstasmania .price-option {
  flex: 1;
  text-align: center;
  padding: 15px 20px;
  border: 1px solid #bbef00;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.memberstasmania .price-option.selected {
  background-color: #bbef00;
}

.memberstasmania .price-option i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #4a6cf7;
}

.memberstasmania .buttons {
  display: flex;
  justify-content: end;
  margin-top: 30px;
}

.memberstasmania button {
  padding: 10px 35px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.memberstasmania .btn-prev {
  cursor: pointer;
  color: #2d3a4b;
}
.memberstasmania .btn-prev > i {
  margin-right: 3px;
}
.memberstasmania .btn-next,
.memberstasmania .btn-submit {
  background: #bbef00;
}

.memberstasmania .btn-next:hover,
.memberstasmania .btn-submit:hover {
  opacity: 0.7;
}

.memberstasmania .error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
  text-align:center;
}
.memberstasmania .photo-upload {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
   border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.memberstasmania .photo-upload.dragover {
    border-color: #3b82f6;
    background: #f0f8ff;
}
.memberstasmania .dropzone{
	border: 2px dashed #ccc;
	border-radius:10px;
}
.memberstasmania #listing-dropzone .dz-message {
  display: block !important;
}
.memberstasmania .dropzone .dz-message > div {
  border: 1px solid #bbef00;
  border-radius: 8px;
  padding: 5px 14px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap:8px;
}
.memberstasmania .dropzone .dz-message > div > i { 
	top:unset;
}
.memberstasmania .uploaded-photos{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.memberstasmania .photo-thumb {
  position:relative;
  height: 80px;
  background: #f0f2f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a7a;
  font-size: 12px;
}
.memberstasmania .photo-thumb > img {
	margin-bottom:0 !important;
}
.memberstasmania .photo-thumb .delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #dcdcde;
    text-align: center;
    line-height: 18px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}
.memberstasmania .photo-thumb .delete:hover {
    background: #f00;
    color: #fff;
    border-color: #f00;
}
.memberstasmania .overview-item {
  padding-bottom: 0;
  display: flex;
  gap: 5px;
  font-size: 14px;
}

.memberstasmania .overview-label {
  font-weight: 600;
  color: #2d3a4b;
}

.memberstasmania .overview-listing .listing_details:last-child > .overview-item:last-child {
    margin-top: 15px;
}
.memberstasmania .view-btn {
  background: #bbef00;
  color: #000;
  border: none;
  padding: 2px 15px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
}

.memberstasmania .terms > div {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
}

.memberstasmania .terms > div > label {
  text-align: left;
}

#modal-photos .mt_container {
  padding: 20px 150px 10px;
  background: #bbef00;
  border-radius: 20px;
}

#modal-photos div#imageIndex {
  text-align: center;
}
div#modal-photos .mt_container h2 {
  text-align: center;
  margin-bottom: 10px;
}
.listing-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.listing-modal-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  overflow-y: auto;
  border: 2px solid #bbef00;
}
.listing-modal-content h2 {
  text-align: center;
}

div#modal-description {
  border: 1px solid #000;
  min-height: 150px;
  border-radius: 20px;
  padding: 10px 20px;
}

.listing-modal .close-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
  margin-top: -20px;
}
.memberstasmania .success-page {
  text-align: center;
  padding: 40px 0;
}
.memberstasmania .terms {
  margin: 20px 0;
  text-align: center;
}
#listing-lightbox-modal .listing-modal-content > img {
    width:100%;
    max-height:400px;
	height:auto;
}
/* Price checkbox styles */
.memberstasmania .price-checkbox-group {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
}

/* Listing image slider CSS*/
.slideshow-container {
  position: relative;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slideshow-container .mtSliderImg {
  display: none;
  width: 100%;
  transition: opacity 0.8s ease;
}

.slideshow-container .mtSliderImg img {
  width: 100% !important;
  vertical-align: middle;
  object-fit: cover;
   max-height:330px;
}
.slideshow-container .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #000;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;

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

.slideshow-container .prev {
  left: -20px;
}

.slideshow-container .next {
  right: -20px;
}

.memberstasmania #listingNotification {
  display: none;
  padding: 12px 16px;
  margin: 15px 0;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

.memberstasmania #listingNotification.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.memberstasmania #listingNotification.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.memberstasmania .overview-listing {
  display: flex;
  gap: 15px;
}
@media (min-width: 768px) {
.step_wrapper .form-group {
    max-width: 80%;
   }
}
@media (max-width: 767px) {
  .mySlides img {
    height: 350px;
  }

  .slideshow-container .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .memberstasmania .overview-listing {
    flex-direction: column;
  }
  .memberstasmania .price-option {
       padding: 5px 10px;
	}
   .memberstasmania .uploaded-photos {
    	grid-template-columns: repeat(3, 1fr);
	}
	.memberstasmania .form-container {
    	padding: 20px; 
	}
	.memberstasmania input#agreeTerms {
      width: 150px !important;
    }
}

@media (max-width: 480px) {
  .slideshow-container .mySlides img {
    height: 250px;
  }
.memberstasmania .uploaded-photos {
    	grid-template-columns: repeat(2, 1fr);
	}
}


/* Listing single CSS  */
#listing-single {
            max-width: 1200px;
            margin: auto;
	        padding:0 20px;
            overflow: hidden;
        }
        
        #listing-single .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;  
			border-bottom: 2px solid #bbef00;
  			margin-bottom: 50px;
        }
        #listing-single .header h1 {
            font-size: 24px;
            margin-bottom: 5px;
        }
        
        #listing-single .price {
            font-size: 28px;
            font-weight: bold;
        }
        
        #listing-single .content {
            display: flex;
            flex-wrap: wrap;
			gap: 20px;
        }
		.listing-single-desc{
           margin:30px 0px;
		}
        #listing-single .car-image {
            width: 100%;
            height: auto;
            border-radius: 8px;
            background: #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 300px;
            margin-bottom:10px;
        }
        
        #listing-single .details {
            flex: 2;
            min-width: 300px;
        }
        
        #listing-single .specs { 
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
		.spec-item-wrap{
			display:flex;
			flex-direction:column;
			gap:10px;
		}
        
        #listing-single .spec-item {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #bbef00;
        }
        
        #listing-single .spec-label {
            font-weight: bold;
            color: #7f8c8d;
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        #listing-single .spec-value {
            font-size: 18px;
            color: #2c3e50;
        }
        
        #listing-single .listing-contact-info {
            background: #e8f4fc;
            padding: 20px;
            border-radius: 8px;
        }
        
        #listing-single .contact-item {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        
        #listing-single .contact-icon {
            margin-right: 10px;
            color: #3498db;
            font-weight: bold;
            min-width: 120px;
        }
        

        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            #listing-single .content {
                flex-direction: column;
            }
            
            #listing-single .header {
                flex-direction: column;
                text-align: center;
            }
            
            #listing-single .price {
                margin-bottom: 15px;
            }
            
            #listing-single .specs {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 480px) {
            #listing-single .header h1 {
                font-size: 20px;
            }
            
            #listing-single .price {
                font-size: 24px;
            }
            
            #listing-single .spec-value {
                font-size: 16px;
            }
        }


/*Listing single slider*/
.list-single-slide {display: none}
.list-single-slider-wrap img {
  vertical-align: middle;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Slideshow container */
.list-single-slider-wrap {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.list-single-slider-wrap .list-prev, .list-single-slider-wrap .list-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 100px;
    width: 40px;
    height: 40px;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
	background-color: #bbef00;
	opacity:1;
}
.list-single-slider-wrap .list-prev{
	left:10px;
}
.list-single-slider-wrap .list-next {
  right: 10px;
}
.list-single-slider-wrap .list-prev:hover, .list-single-slider-wrap .list-next:hover {
  opacity:.7;
}

/* Number text */
.list-single-slider-wrap .numbertext {
    color: #fff;
    font-size: 12px;
    padding: 0px 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    background: #bbef00;
    border-radius: 8px;
}

/* Fading animation */
.list-single-slider-wrap .list-fade {
  animation-name: listFade;
  animation-duration: 1.5s;
}
@keyframes listFade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Responsive text */
@media only screen and (max-width: 300px) {
  .list-single-slider-wrap .list-prev, .list-single-slider-wrap .list-next {font-size: 11px}
}
