/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 
 
:root {
    --tbim-white: #ffffff;
    --tbim-black: #000000;
    --tbim-gray: #C8CFD5;
    --tbim-dark-blue: #080927;
    --tbim-medium-blue: #10114D;
    --tbim-light-blue: #1C53BA;
}

/***********************
Holiday Notifications
***********************/

.holiday-notification {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0; /* ensure no margins */
}

.holiday-notification .container {
  width: 100%;
  max-width: 100%; /* ensure full width */
  margin: 0 auto;
  padding: 0 15px;
}
 
 /* Trailer System Styling */
 
 #trailers {
  width: 1600px;
  margin: 20px auto 50px;
  max-width: 90%;
  overflow: auto;
  display: flex;
  justify-content: space-between;
}

/***********************
Grid/List Toggle Icons Section
***********************/
.toggle-view-container {
  text-align: right;
  line-height: 42px;
  border-bottom: #ccc 1px solid;
  margin-bottom: 10px;
  color: #777;
}

.toggle-view-container strong {
  float: left;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
}

.toggle-view-container label {
  margin-bottom: 0;
}

.toggle-list i,
.toggle-grid i {
    font-size: 20px;
    padding: 10px;
    margin: 0;
    transition: color 0.25s ease;
}

.toggle-grid i {
  padding-right: 0;
}

.toggle-list i:hover,
.toggle-grid i:hover {
    cursor: pointer;
    color: #000;
}

.toggle-list input:checked + i,
.toggle-grid input:checked + i {
    color: var(--tbim-light-blue);
    cursor: default;
}

/***********************
Sorting Options
***********************/

.sorting-options-container {
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.sorting-options-container strong {
  display: block;
  color: #777777;
  margin-bottom: 5px;
  font-size: 14px;
  text-transform: uppercase;
}

.sort-select {
  width: 100%;
  color: #757575;
  padding: 6px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background-color: #fcfcfc;
  font-size: 14px;
  line-height: 1.4;
}

.sort-select:hover {
  border-color: var(--tbim-black);
}

@media (max-width: 1000px) {
  .sorting-options-container {
      margin: 10px 0;
      padding: 8px 0;
  }
}

/***********************
Filters Section
***********************/

#trailer-filters {
  width: 300px;
  height: 100%;
  background: #f6f6f6;
  padding: 20px;
  color: var(--tbim-white);
}

.filter-section {
  overflow: auto;
}

.filter-section h4 {
  color: var(--tbim-white);
  text-transform: uppercase;
  border-bottom: 1px solid var(--tbim-black);
}

.filter-section label {
  display: inline-block;
  font-weight: 100;
  font-size: 12px;
}

.sub-label {
  font-size: 12px;
  text-transform: uppercase;
  width: 100% !important;
}

.filter-section select {
  width: 100%;
  padding: 5px;
  font-size: 14px;
}

.filter-section select,
.filter-section option {
  color: var(--tbim-black);
}

.filter-length {
    overflow: visible;
}

.filter-gvwr {
    overflow: visible;
}

.min-max-inputs {
  display: block;
  width: 40%;
  margin-right: 5%;
  float: left;
}

.options-holder {
  max-height: 150px;
  overflow: auto;
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  .options-holder {
    scrollbar-width: thin;
    scrollbar-color: #808080 rgba(0,0,0,0);
  }

  /* Chrome, Edge, and Safari */
  .options-holder::-webkit-scrollbar {
    height: 4px;
    width: 2px;
  }
  .options-holder::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: #F3F3F3;
  }

  .options-holder::-webkit-scrollbar-track:hover {
    background-color: #B8C0C2;
  }

  .options-holder::-webkit-scrollbar-track:active {
    background-color: #B8C0C2;
  }

  .options-holder::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #C7C7C7;
  }

  .options-holder::-webkit-scrollbar-thumb:hover {
    background-color: #5F5F5F;
  }

  .options-holder::-webkit-scrollbar-thumb:active {
    background-color: #8F8F8F;
  }

/***********************
Stock Count (trailer feed)
***********************/

/* Feed Item Colors (feed-item-default.php) */
.t-feed-unit-colors-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.t-feed-unit-colors-container .colors-heading {
  margin: 0;
  line-height: 1;
}

.t-feed-unit-colors-container .unit-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.t-feed-unit-colors-container .unit-colors .color-square {
  width: 20px;
  height: 20px;
  border: 1px solid #aaa;
}

/* Singular Stock Count Colors (shortcode-get-stock.php) */
.t-singular-stock-count-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.t-singular-stock-count {
  font-size: 20px;
  color: var(--tbim-black);
  font-weight: bold;
}

.t-singular-unit-colors-container {
  display: flex;
  gap: 5px;
  margin: 0;
}

.t-singular-unit-colors-container .color-square {
  width: 20px;
  height: 20px;
  border: 1px solid #aaa;
}

/* Shared color square hover effects */
.color-square {
  border-radius: 4px;
}


/***********************
Trailer section
***********************/

#trailer-list {
  width: calc(100% - 320px);
  padding-right: 5px;
}

#trailer-list.full-width {
    width: 100%;
    padding: 0 5px;
}

.t-feed {
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05), 0 2px 2px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  color: var(--tbim-black);
  margin: 20px 0;
  padding: 0 20px 20px;
  overflow: auto;
  transition: box-shadow 0.25s ease;
  position: relative;
}

.remove-unit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: block;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  padding: 0;
  pointer-events: auto;
}

.t-feed:hover .remove-unit {
  display: flex !important;
}

.remove-unit:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

/* Maintain position and styling for both focus and active states */
.remove-unit:focus,
.remove-unit:active {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    display: flex !important;
    outline: none;
}

.units-tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tbim-light-blue);
  color: var(--tbim-white);
  padding: 5px 15px;
  border-radius: 0 0 5px 5px;
  font-size: 20px;
  font-weight: bold;
  z-index: 1;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.t-feed.visible-item {
    display: block;
}

#trailer-list.always-show .t-feed {
    display: block!important;
}

.t-feed:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.15);
}

.t-feed h3 {
  display: block;
  clear: both;
  padding-bottom: 10px;
}

.t-feed h3 .rental-pricing {
  float: right;
  font-size: 16px;
}

  .small-meta {
    display: inline-block;
    background: #f6f6f6;
    padding: 5px 8px;
    margin-left: 10px;
  }

  @media (max-width: 1000px) {
    .t-feed h3 .rental-pricing {
      float: none;
      clear: both;
      padding-top: 10px;
    }

    .small-meta {
      margin-left: 0;
      margin-right: 10px;
    }
  }



.t-img {
    display: block;
    background: #ccc center center no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
  }

    .t-img:after {
      display: block;
      position: absolute;
      top: 5px;
      left: 5px;
      color: #fff;
      font-size: 12px;
      text-transform: uppercase;
      padding: 2px 4px;
      border-radius: 2px;
    }

    .status-tag {
      display: block;
      position: absolute;
      top: 25px;
      left: 0;
      font-size: 12px;
      text-transform: uppercase;
      padding: 5px 0;
      width: 150px;
      margin-left: -40px;
      border-radius: 0;
      transform-origin: center;
      transform: rotate(-45deg);
      background: rgba(0,0,0,0.7);
      color: #fff;
      text-align: center;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .t-feed[data-status="Sold"]  .t-img:after {
      content: "Sold";
      background: red;
    }

    .t-feed[data-status="Pending"]  .t-img:after {
      content: "Pending";
      background: yellow;
      color: #000;
    }

    .t-feed[data-status="On Order"]  .t-img:after {
      content: "On Order";
      background: yellow;
      color: #000;
    }

.t-details p {
    margin-bottom: 0;
}

.t-details strong {
  padding-left: 10px;
}

.size-text {
    display: none;
}

.trailer-price-text {
    font-size: 26px;
}

.t-btn,
.phone-number a {
  display: block;
  background: var(--tbim-medium-blue);
  color: var(--tbim-white);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  width: auto;
  padding: 10px;
  margin: 5px 0;
  transition: all 0.25s ease;
}

.txt-center {
  text-align: center;
}

.t-btn:hover,
.phone-number a:hover {
  background: #2553BA;
  color: var(--tbim-white);
}

.wh-half {
  width: calc(50% - 5px);
  box-sizing: border-box;
  float: left;
}

.wh-half:nth-child(2) {
  float: right;
}

.t-feed:hover .related-btn {
  background: var(--tbim-white);
  color: var(--tbim-medium-blue);
}


/**********************
List view styles
**********************/

ul.split-50 li {
  display: inline-block;
  width: 33%;
  list-style-type: none;
}

ul.split-50 li:before {
  content: "✓";
  color: green;
  margin-right: 5px;
}

@media(max-width: 980px) {
  ul.split-50 li {
    width: 100%;
  }
}

.unit-grid-view,
.unit-list-view {
  display: block;
  width: calc(100% - 320px);
  padding-right: 5px;
  float: right;
}

.recently-viewed-feed.unit-grid-view,
.recently-viewed-feed.unit-list-view {
}

.recently-viewed-feed #custom-filters {
    display: none !important;
}

.trailer-list-view .t-feed,
.unit-list-view .t-feed {
  width: 100%;
}

.trailer-list-view .t-img-holder,
.unit-list-view .t-img-holder {
  float: left;
  display: flex;
  flex-direction: column;
  width: 33% !important;
}

.trailer-list-view .t-img,
.unit-list-view .t-img {
  aspect-ratio: 1.25/1;
  width: 100%;
}

.trailer-list-view .t-details,
.unit-list-view .t-details {
  width: 66%;
  float: left;
  padding: 0 0 0 20px;
}

.trailer-list-view .t-meta,
.trailer-list-view .t-financial,
.unit-list-view .t-meta,
.unit-list-view .t-financial {
  width: 50%;
  float: left;
  margin-bottom: 10px;
}

  .t-meta ul,
  .t-meta ul li {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .t-meta li span {
    display: inline-block;
    width: 100px;
  }


/**********************
Grid view styles
**********************/

.trailer-grid-view,
.unit-grid-view {
    padding: 0;
}

.trailer-grid-view .t-feed-head,
.unit-grid-view .t-feed-head {
    display: flex;
    flex-direction: column-reverse;
}

.trailer-grid-view .trailer-container,
.unit-grid-view .trailer-container {
    display: flex;
    flex-flow: wrap;
    justify-content: space-evenly;
}

.trailer-grid-view .t-feed,
.unit-grid-view .t-feed {
    width: calc(33.33% - 10px);
}

.recently-viewed-feed.trailer-grid-view .t-feed,
.recently-viewed-feed.unit-grid-view .t-feed {
    width: calc(25% - 10px);
}

.trailer-grid-view h3,
.unit-grid-view h3 {
    font-size: 14px;
    text-align: center;
}

.trailer-grid-view .t-img,
.unit-grid-view .t-img {
    aspect-ratio: 1.5/1;
    margin-top: 20px;
}

.trailer-grid-view .t-details,
.unit-grid-view .t-details {
    float: none;
    width: 100%;
    padding: 0 0 20px 0;
}

/*.trailer-grid-view .size-text,*/
/*.unit-grid-view .size-text {*/
/*    display: block;*/
/*}*/

.trailer-grid-view .stock-number-text,
.trailer-grid-view .condition-text,
.trailer-grid-view .location-text,
.trailer-grid-view .more-info-btn,
.trailer-grid-view .t-meta,
.unit-grid-view .stock-number-text,
.unit-grid-view .condition-text,
.unit-grid-view .location-text,
.unit-grid-view .more-info-btn,
.unit-grid-view .t-meta {
    display: none;
}

.trailer-grid-view .t-meta,
.trailer-grid-view .t-financial,
.unit-grid-view .t-meta,
.unit-grid-view .t-financial {
    float: none;
}

.trailer-grid-view .trailer-price-text,
.unit-grid-view .trailer-price-text {
    font-size: 16px;
}

.trailer-grid-view .t-financial,
.unit-grid-view .t-financial {
    text-align: center;
}

/***************************
Toggle button/input styles
***************************/

.toggle-filters {
  display: none !important;
}
                    
#pagination {
    width: 45%;
    padding: 20px 0;
    margin: 0 auto;
    color: #000;
}

#pagination-buttons-container {
    display: flex;
    justify-content: center;
}

#pageNumbers {
    display: flex;
}

#pageNumbers a {
    color: var(--tbim-black);
    padding: 5px 12px;
    margin: 0 10px;
}

#pageNumbers .current-page {
    cursor: default;
    font-weight: bold;
    border-color: var(--tbim-light-blue);
}

#pageNumbers a,
#prevPage,
#nextPage {
    border: 1px solid var(--tbim-gray);
    border-radius: 5px;
}

#prevPage,
#nextPage {
    background: none;
    color: var(--tbim-black);
}

#prevPage:disabled,
#nextPage:disabled {
    background-color: var(--tbim-gray);
    cursor: not-allowed;
}

#pagination-filter-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#itemsPerPage {
    margin: -5px 0 0 5px;
    border: none;
}

/* end pagination styles */

.no-items-message-container {
    display: none;
}

.no-items-message {
    display: flex;
    justify-content: center;
    font-size: 20px;
    margin-top: 20px;
}

@media (max-width: 1000px) {
	

  .unit-grid-view,
  .unit-list-view {
    width: 100%;
    padding-right: 0;
  }
	
	#trailers {
	  display: block;
	}


    .trailer-grid-view .t-feed {
        width: 100%;
        display: block;
    }
    
    .t-feed-head h3 {
        font-size: 16px;
    }
	
  .trailer-list-view .t-img {
    width: 100%;
    float: none;
    aspect-ratio: 2/1;
  }

  .toggle-filters {
    width: 100%;
    display: block !important;
  }

  #custom-filters {
    width: 100%;
    display: block;
    float: none;
    clear: both;
  }

  .filter-section,
  .toggle-view-container {
    display: none;
  }

  #trailer-filters.show .filter-section,
  #custom-filters.show .filter-section {
    display: block;
  }

  #trailer-filters,
  #custom-filters {
    margin-bottom: 20px;
  }

  #custom-filters,
  #unit-filters,
  #trailer-filters,
  #trailer-list,
  .t-feed,
  .t-img,
  .t-details,
  .t-meta,
  .t-financial {
    display: block!important;
    width: 100%!important;
    float: none!important;
  }
  
  /* Weird fix on mobile to initial the first padding on the trailer */
  .trailer-container {
      padding-top: 1px;
  }
  
  .t-feed {
      width: calc(100% - 10px)!important;
      margin: 10px auto!important;
  }
  
  .trailer-price-text {
      font-size: 18px!important;
  }
  
  .t-details {
      padding: 10px 0!important;
  }


}






/***************************
Ttrailer Carousel Styles
***************************/
.trailer-posts-type-1 {
	
}

.slick-list.draggable {
	height: auto!important;
}

.uabb-blog-posts .uabb-post-wrapper {
	margin-bottom: 0!important;
}

.trailer-posts-type-1 .uabb-blog-posts-shadow {
	box-shadow: 0 2px 1px rgba(0,0,0,0.3), 0 0 4px rgba(0,0,0,0.1);
	height: auto!important;
	margin-bottom: 20px;
}

.trailer-posts-type-1 .featured-cover {
	display: block;
	aspect-ratio: 16/9;
	background: center center no-repeat;
	background-size: cover;
	position: relative;
}

.post-block-1 .meta {
	text-align: left;
	font-size: 11px;
	min-height: 18px;
	position: absolute;
	top: 12px;
	left: 10px;
}

.post-block-1 .meta a {
	background: rgba(255,255,255,0.75);
	padding: 2px 6px;
	border-radius: 5px;
	text-transform: uppercase;
	transition: background 0.25s ease;
}

.post-block-1 .meta a:hover {
	background: rgba(255,255,255,1);
}

.post-block-1 h5 {
	font-size: 13px!important;
	font-weight: 100;
	padding: 10px;
	text-align: left;
	width: 100%;
	height: 30px;
	white-space: nowrap;
  overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 5px;
}


.post-block-1 a {
	transition: color 0.25s ease;
}

.post-block-1 .trailer-details {
	display: block;
	overflow: auto;
	border-top: #ccc 1px solid;
}

.post-block-1 .trailer-cost {
	width: 50%;
	float: left;
	font-size: 16px;
	line-height: 36px;
	background: #333;
  color: #fff;
	font-weight: bold;
	height: 100%;
	padding-bottom: 5px;
}

.post-block-1 .trailer-cost:before {
  content: "";
}

.post-block-1 .view-trailer {
	padding: 0;
	margin: 0;
	width: 50%;
	float: right;
}

.post-block-1 .view-trailer a {
	display: block;
	border: #ccc 1px solid;
	border-width: 0 0 0 1px;
	padding: 10px;
	font-size: 14px;
	text-transform: uppercase;
	transition: background 0.25s ease;
}

.post-block-1 .view-trailer a:hover {
	background: #fff;
}

.trailer-list-view .t-img {
	margin-bottom: 20px;
}





/***************************
Unit information display
***************************/

.info-table {
	width: 100%;
	background: #f6f6f6;
	font-size: 14px;
	border: #ccc 1px solid;
}

.info-table td {
	padding: 5px 15px;
}

.info-table tr:nth-child(even) {
	background: #eee;
}

/* Lazy Loading Styles */
.t-img.lazy-load {
    position: relative;
    background-color: #f0f0f0;
    transition: background-image 0.3s ease-in-out;
}

.t-img.lazy-load .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    overflow: hidden;
}

.t-img.lazy-load .image-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

.t-img.lazy-load.loaded .image-placeholder {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Ensure the background image covers the area properly */
.t-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}