body{
	background: #eff0f6;
}

.grid-container {
    max-width: 130rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}  
	
 @media screen and (min-width: 900px) and (max-width: 2460px) {
	.grid-container {
	    max-width: 85%;
	}
 } 

.marketplace-top-div{
	margin-top: 2%;
    margin-bottom: 2%;
} 

.image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.quick-view-container:hover .image {
  opacity: 0.4;
  -webkit-filter: brightness(30%);
}

.quick-view-container:hover .middle {
  opacity: 1;
}

.quick-view-image{
	position: relative;
}

.view-item-text {
  background-color: #676565;
  border: 2px solid white;
  color: #fff;
  font-size: 16px;
  padding: 16px 32px;
}

.filter-container{
	display: flex;
}

.filter-container-1{
	width: 100%; 
	display: inline-flex; 
	margin-top: 1%;
}

.filter-container-2{
	margin-top: 1% !important; 
	display: inline-flex; 
	width: 60%
}
		
.keyword-input{
	height: 3rem !important;
	padding-right: 50px !important;
	border-radius: 0% !important;
}
      
.keyword-submit{
	height: 3rem !important;
	border-top-left-radius: 0px !important;
	border-bottom-left-radius: 0px !important;
	border-top-right-radius: .25rem !important;
	border-bottom-right-radius: .25rem !important;
}

.list-grid-button {
  border: none;
  outline: none;
  padding: 12px 16px;
  background-color: #fff;
  cursor: pointer;
}

.list-grid-button.active {
   background: #5f5555 !important;
   color: white;
}

.column-row:after {
  content: "";
  display: table;
  clear: both;
}

.column-row{
	Display : none
}

.make-offer-button-quick-view{
	margin-top: 1% !important;
    margin-right: 0% !important;
    height: 3rem !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-right: 2% !important;
}

.make-offer-button{
	margin-bottom: 3% !important;
}

.confirmbuyitnow-quick-view{
    margin-top: 1% !important;
    margin-right: 0% !important;
    height: 3rem !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-right: 2% !important;	
}

.lot-title-parent{
	border-bottom: 6px solid #b31e17; 
	margin-bottom: 3%;
}

.market-place-button-background-dark{
	background: #5f5555 !important;
	color: #fff !important;
	border: 1px solid #5f5555;
}

.market-place-button-background-dark:hover{
	background: #b31e17 !important;
}

.market-place-button-background-red{
	background: #b31e17 !important;
	border: 1px solid #b31e17;
	color: #fff !important;
}

.market-place-button-background-red:hover{
	background: #5f5555 !important;
}

.marketplace-text-color-red{
	color: #b31e17 !important;
	font-weight: bolder;
}

.marketplace-text-color-darker{
	color: #5f5555 !important;
}

.marketplace-text-color-darker:hover{
	color: #b31e17 !important;
}

.listLinks:focus {
    border: 0px;
    background-color: #fff !important;
    color: #b31e17 !important;
}

.owl-nav button:hover {
	background:#b31e17 !important;
}

#contactform .button{
	background:#b31e17 !important;
}

#contactform .button:hover{
	background: #5f5555 !important; 
}

.marketplace-panel{
    padding: .8125rem;
    width: 100%;
}

.make-offer-wrapper{
	padding-top: 0px !important;
	border: 0px !important;
}

.table-or-cell{
	font-size: xx-large;
    font-weight: 700;
}

.iframe{
	background: black;
	margin-bottom: 5%;
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  background: #fff;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
  border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
	background-color: #ddd;
}

.market-place-item-contact-button{
	display: inline-block; 
	height: 3rem;
	width: 50%; 
	text-align: center; 
}

.track-button{
	display: inline-block;
    width: 100%;
    background: #ffffff !important;
    border: 2px solid #b31e17 !important;
} 

.track-icon{
	color: black !important;
}

.track-icon:hover{
	color: black !important;
}

.item {
    position: relative; /* ensures absolute children are positioned relative to the item */
}

.track-button-item-page {
    position: absolute !important;
    top: 10px;       /* distance from top */
    right: 10px;     /* distance from right */
    background: #ffffff !important;
    border: 2px solid #b31e17 !important;
    color: black !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 1.6rem;
    text-decoration: none;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

 .track-button-item-page:hover {
    color: black !important;
} 

.product-template .product-gallery #product-gallery-main .item {
    max-height: 100%;
}

/* =========================
   LIST MODE
========================= */
.equipment-list.list-view {
    display: block;
}

.equipment-list.list-view .marketplace-equipment-item {
    margin-bottom: 2rem;
}

/* Prevent overflow squeezing */
.marketplace-equipment-item {
	display: flex;
    min-width: 0;
    background: #fff;
}

/* Make images responsive */
.marketplace-equipment-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.row-list{
	display : block !important;
	margin-bottom: 1.25rem;
}

.equipment-item-header {
  	width: 100% !important; 
}

.thumb_catalog{
	max-width: 100% !important;
}

.details-list{
	display : flex;
}

.equipment-item-div-top{
	align-content: baseline;
}

.equipment-item-div-bottom{
    align-content: end;
}

.market-place-list-link p {
  	position: relative;
  	top: 50%;
  	transform: translateY(-50%);
}

.equipment-item-footer{
	text-align: center !important;
	background: #f9f9f9 !important;
}

.market-place-list-link-list{
	height: 100%;
    width: 50%;
    display: block;
    color: white;
    text-align: center;
    margin-right: 2%;
}

.market-place-list-link:hover{
	color: #fff !important;
}

/* =========================
   GRID MODE
========================= */
.equipment-list.grid-view {
    display: grid;
    gap: 0.4rem;
}

.grid-view .equipment-item
{
	width : 100%
}

.grid-view .equipment-item-footer {
    position: relative !important;
}

.grid-view .equipment-item-header {
    padding-bottom: 1.25rem !important;
}

.grid-view .row{
	display: flex;
    flex-wrap: wrap;
    gap: 1%;
} 

.grid-view .equipment-item-header{
	flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
			
.grid-view .equipment-item-image{
	width: 100% !important;
	padding-left: 0% !important;
	padding-right: 0% !important;
}

.lot-title h3{
	display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

.grid-view .equipment-item-text{
	width: 100% !important;
	margin-top: 5% !important;
	padding: 2% !important;
	flex-grow: 1;
}

.grid-view .details-list{
	display: block;
	height: 15% !important;
}

.grid-view .details-list-column{
	width: 100%;
}

.grid-view .stacked-for-medium{
	display: grid !important;
	height: 25% !important;
}

.grid-view .market-place-list-link{
	margin-top: 3% !important;
	margin-right: 0% !important;
	height: 3rem !important;
    width: 100% !important;
    display: block !important;
    color: white !important;
    text-align: center !important;
    margin-right: 2% !important;
}

.grid-view .equipment-item-footer{
	width: 100% !important;
	text-align: center !important;
	margin-top: auto; /* Pushes footer to the bottom */
  	padding: 10px;
}

.grid-view .lot-description{
	display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

.grid-view .show-alternate-options{
	display: block;
}

.grid-view .hide-alternate-options{
	display: none;
}

.equipment-item{
	background-color: #fff !important;
	border: 0px !important;
}

.hot-banner {
  position: absolute;
  background: red;
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.9em;
  z-index: 10;
  border-bottom-right-radius: 5px;
  right: 0px;
}

.marketplace-logo{
	max-width: 50% !important;
}

.marketplace-item-container{
	background: #fff;
    padding-top: 1%;
    padding-bottom: 1%;
}

/* ===============================
   FILTER CONTAINER LAYOUT FIX
   =============================== */

.filter-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.filter-container-1 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto; /* evenly spread keyword, location, category, and clear button */
  gap: 1rem;
  width: 100%;
  margin-top: 1%;
}

.filter-container-1 > div,
.filter-container-1 > form,
.filter-container-1 > input,
.filter-container-1 > button {
  width: 100%;
}

/* Ensure inputs stretch evenly */
.filter-container-1 input[type="text"] {
  width: 100%;
  height: 3rem;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Keyword + search button combo fix */
.keyword-input {
  height: 3rem !important;
  padding-right: 10px !important;
  border-radius: 4px 0 0 4px !important;
  width: 100% !important;
}

.keyword-submit {
  height: 3rem !important;
  border-radius: 0 4px 4px 0 !important;
  width: auto !important;
  white-space: nowrap;
}

.filter-input {
  position: relative;
  width: 100%;
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.filter-input input {
  width: 100%;
}

.filter-input .dropdown {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 999;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 4px;
}

.filter-container-1 button {
  height: 3rem;
  border-radius: 4px;
  white-space: nowrap;
}

#locationSelect{
	width:100%; 
	height:3rem;
}

#categorySearch{
	width:100%; 
	height:3rem; 
	padding:0 10px; 
	border:1px solid #ccc; 
	border-radius:4px;
	margin-bottom: 0px !important;
}

#categoryDropdown{
	display:none; 
	position:absolute; 
	background:#fff; 
	border:1px solid #ccc; 
	z-index:999;
	width:100%; 
	max-height:250px; 
	overflow-y:auto; 
	border-radius:4px;
}

.tab-content {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

#tab-videos {
    width: 100%;
}

#tab-videos iframe {
    margin-bottom: 15px; /* spacing between videos */
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin-bottom: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Container */
.product-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;  /* spacing below tabs */
    display: flex;
    border-bottom: 2px solid #ddd; /* base border */
    font-family: Arial, sans-serif;
}

/* Tab items */
.product-tabs li {
    margin-right: 20px;
}

/* Links */
.product-tabs .tab-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;  /* inactive text color */
    font-weight: 600;
    border-bottom: 3px solid transparent; /* placeholder for active */
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0; /* smooth top corners */
}

/* Hover state */
.product-tabs .tab-link:hover {
    color: #b31e17;
    background-color: #f9f9f9;
}

/* Active tab */
.product-tabs .tab-link.active {
    color: #b31e17;
    border-bottom: 3px solid #b31e17;
    background-color: #fff;
}

@media only screen and (max-width: 600px) {
 	.filter-container{
		display: block;
	}
	
	.filter-container-1{
		width: 100%; 
		margin-top: 1%;
	}

	.filter-container-2{
		margin-top: 1% !important; 
		display: block; 
		width: 100%;
	}
}

.image-count-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: bold;

    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none; /* click-through */
}

@media only screen and (max-width: 816px) {
	
	.list-grid-button{
		display: none !important; 
	}	
}
		

@media only screen and (max-width: 1060px) {
	
	.equipment-item-image{
		width: 100% !important;
		padding-right: 0rem !important;
	}
	
	.equipment-item-header{
		display: inline-block;	
	}
	
	.equipment-item-text {
    	width: 100% !important;
	}
	
	.equipment-item-footer{
		width: 100% !important;
	}
	
	.stacked-for-medium{
		margin-bottom: 1rem;
    } 
    
    .equipment-list.list-view .equipment-item .equipment-item-header .equipment-item-text h3 {
    	margin-top: 5%;
        font-size: 1.4rem !important;
    }
    
    .reveal{
    	top: 0px !important;
    }
    
    .equipment-list.list-view .equipment-item .equipment-item-footer {
        padding: 5% !important;
    }
    
    .filter-container-1 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .filter-container-1 button {
    width: 100%;
  }
}

@media only screen and (min-width: 1060px) {
	.equipment-item-header{
		min-height: 253px;
		display: flex;	
	}
	
	.list-view .equipment-item-text {
    	width: 50% !important;
	}
	
	.grid-view .equipment-item-text {
    	width: 100% !important;
	}
	
	.grid-view .equipment-item-footer{
		width: 100% !important;
	}
	
	.list-view .equipment-item-image{
		width: 30% !important;
	    padding-right: 1rem !important; 
	    align-content: center;
	    position: relative;
	}
	
	.list-view .equipment-item-text{
	 width: 50% !important; 
	}
}

@media screen and (max-width: 768px) {
	iframe { max-width: 100% !important; }
	
	.marketplace-logo{
		max-width: 100% !important;
	}
}

@media screen and (min-width: 1300px) {
    .product-template .product-gallery .product-gallery-thumbs-wrapper #product-gallery-thumbs .item {
        max-height: 100%;
    }
}

@media screen and (max-width: 767px) {
    .equipment-list.list-view .equipment-item {
        display: inline-flex !Important;
    }
}

@media screen and (max-width: 395px) {
	.equipment-list.grid-view {
    	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); 
	}
} 

@media screen and (min-width: 395px) {
	.equipment-list.grid-view {
    	 grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    	 justify-content: center;
	}
} 