/* Main Layout */
.listings-content {
    width: 100%;
}

.no-results-message {
    display: none;
}

.rental-listings {
    display: flex;
    padding: 40px 0;
}

.rental-listings .container {
    max-width: 1325px;
    flex-wrap: wrap;
    display: flex;
    gap: 19px;
    width: 100%;
}

/* Sidebar Styles */
.filter-sidebar {
    width: 100%;
}

.filter-sidebar h3 {
    font-size: 30px;
    color: #252525;
    padding-bottom: 0;
    font-weight: 500;
    text-align: center;
}

.filter-section {
    background: #f5f5f5;
    padding: 20px;
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.filter-group:first-child {
    padding-top: 0;
}

.rental-filter .filter-group {
    padding-top: 20px;
}

.rental-filter h4 {
    color: #252525;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 36px;
}


/* Checkbox Styles */
.family-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    padding: 2px 0;
    margin: 10px 0;
}

.family-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.family-name {
    flex-grow: 1;
}

/* Equipment Grid */
.rental-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.rental-card {
    border: 2px solid #F5F5F5;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

.rental-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.rental-image {
    width : 100%;
}

.rental-content {
    width: 100%;
}

.rental-content h3 {
    font-size: 24px;
    margin-bottom: 40px;
    color: #252525;
    padding: 0 20px;
}


/* Section Headers */
.family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: solid 4px #B0190F;
}

.product-family-section {
    margin-bottom: 40px;
}

.family-header h2 {
    color: #B0190F;
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
    transition: ease-out 0.25s;
}

.family-header a:hover h2 {
    color: #000;
}

.family-header h2:after {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 6px;
  border-color: transparent transparent transparent #c31e24;
  content: "";
  display: inline-block;
  position: relative;
  margin-left: 8px;
  margin-bottom: 2px;
  transition: ease-out 0.25s;
}

.family-header a:hover h2:after {
    border-color: transparent transparent transparent #000;
}

.product-specs {
    margin-bottom: 40px;
    padding: 0 20px;
    display: none;
}

.spec-row {
    margin-bottom: 10px;
    font-size: 20px;
}

.rental-rates {
    padding: 10px 20px 10px;
    margin: 15px 0 0;
    background: #F5F5F5;
    position: relative;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 13px;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 400;
    border-bottom: solid 1px #252526;
}

.rate-row span:nth-child(2) {
    color: #9B4C32;
}

.product-actions {
    height: 49px;
    background: #B0190F;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}


.product-actions:hover {
    background: #F7B500;
}

.product-actions:hover .btn-secondary {
    background-color: #d99f01;
}

.product-actions:hover .btn-primary {
    color: #000;
}

.product-actions .btn-primary {
    background: transparent;
    color:#fff;
    font-size: 16px;
}

.product-actions .btn-primary:after {
    border-color: transparent transparent transparent #fff;
    transition: ease-out 0.25s;
}

.product-actions:hover .btn-primary:after {
    border-color: transparent transparent transparent #000;
}

.product-actions .btn-secondary {
    display:none;
    width: 81px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="42.813" height="21.805" viewBox="0 0 42.813 21.805"><defs><clipPath id="clip-path"><rect id="Rectangle_633" data-name="Rectangle 633" width="15" height="15" fill="%23fff"/></clipPath></defs><g id="plus-and-cart" transform="translate(-882 -1331)"><path id="Path_8956" data-name="Path 8956" d="M7.541,19.444a2.18,2.18,0,1,0,2.18,2.18A2.178,2.178,0,0,0,7.541,19.444ZM1,3.09A1.093,1.093,0,0,0,2.09,4.18H3.18l3.925,8.275-1.472,2.66a2.184,2.184,0,0,0,1.908,3.238H19.534a1.09,1.09,0,1,0,0-2.18H7.541l1.2-2.18h8.122a2.17,2.17,0,0,0,1.908-1.123l3.9-7.076a1.086,1.086,0,0,0-.949-1.614H5.59l-.73-1.559A1.082,1.082,0,0,0,3.878,2H2.09A1.093,1.093,0,0,0,1,3.09ZM18.444,19.444a2.18,2.18,0,1,0,2.18,2.18A2.178,2.178,0,0,0,18.444,19.444Z" transform="translate(902 1329)" fill="%23fff"/><g id="plus" transform="translate(882 1335)" clip-path="url(%23clip-path)"><path id="Union_18" data-name="Union 18" d="M11611.939,14830.85v-5.94H11606v-2.97h5.938V14816h2.973v5.939h5.939v2.97h-5.939v5.94Z" transform="translate(-11606 -14816)" fill="%23fff"/></g></g></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-color: #96140D;
}

.product-actions:hover .btn-secondary {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="42.813" height="21.805" viewBox="0 0 42.813 21.805"><defs><clipPath id="clip-path"><rect id="Rectangle_633" data-name="Rectangle 633" width="15" height="15" fill="%23000"/></clipPath></defs><g id="plus-and-cart" transform="translate(-882 -1331)"><path id="Path_8956" data-name="Path 8956" d="M7.541,19.444a2.18,2.18,0,1,0,2.18,2.18A2.178,2.178,0,0,0,7.541,19.444ZM1,3.09A1.093,1.093,0,0,0,2.09,4.18H3.18l3.925,8.275-1.472,2.66a2.184,2.184,0,0,0,1.908,3.238H19.534a1.09,1.09,0,1,0,0-2.18H7.541l1.2-2.18h8.122a2.17,2.17,0,0,0,1.908-1.123l3.9-7.076a1.086,1.086,0,0,0-.949-1.614H5.59l-.73-1.559A1.082,1.082,0,0,0,3.878,2H2.09A1.093,1.093,0,0,0,1,3.09ZM18.444,19.444a2.18,2.18,0,1,0,2.18,2.18A2.178,2.178,0,0,0,18.444,19.444Z" transform="translate(902 1329)" fill="%23000"/><g id="plus" transform="translate(882 1335)" clip-path="url(%23clip-path)"><path id="Union_18" data-name="Union 18" d="M11611.939,14830.85v-5.94H11606v-2.97h5.938V14816h2.973v5.939h5.939v2.97h-5.939v5.94Z" transform="translate(-11606 -14816)" fill="%23000"/></g></g></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.product-actions .btn-secondary:after {
    display: none;
}

.btn-secondary {
    width: 40px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
}

.filter-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-section__header h3 {
    margin: 0;
    padding: 0!important;
    color: #252525;
    font-size: 24px;
    font-weight: 600;
}

.rental-filter {
    padding: 0;
}

.search-container {
    margin-bottom: 20px;
}

.search-container.desktop-search {
    display: none;
}

.search-container h3 {
    margin-bottom: 1rem;
    font-weight: bold;
}

.search-bar {
    display: flex;
    height: 49px;
    gap: 1rem;
    max-width: 100%;
    position: relative;
}

.mobile-search {
    padding: 0 15px;
}

.mobile-search .search-bar {
    gap: 0;
}

.search-bar svg {
    position: absolute;
    left: 20px;
    top:  50%;
    transform: translate(0, -50%)
}

.search-bar input {
    flex: 1;
    padding: 10px 20px 10px 44px;
    border: 2px solid #FBC81F;
    border-radius: 4px;
}

.search-button {
    background: #FBC81F;
    color: #000;
    border: none;
    padding: 0 60px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-search .search-button {
    text-indent: -9999px;
    padding: 0 25px;
}

.mobile-search .search-button:after {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-color: transparent transparent transparent #252526;
  content: "";
  display: inline-block;
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translate(0, -50%);
}

.search-button:after {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-color: transparent transparent transparent #252526;
  content: "";
  display: inline-block;
  position: relative;
  margin-left: 7px;
}

.search-button:hover {
    background: #e5a800;
}

.family-list {
    background: #FFFFFF;
    padding: 0 10px 10px 10px;
    max-height: 361px;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.family-list .family-checkbox {
    width: 100%;
}

.family-list::-webkit-scrollbar {
    width: 10px;
    background-color: #FFF;
}

.family-list::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 100px;
}

.family-list::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background: #FBC81F;
}

.family-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.filter-sidebar > .filter-actions {
    padding-top: 20px;
}

.back-to-top {
    font-size: 0;
    color: #B0190F;
    transition: ease-out 0.25s;
}

.back-to-top:hover {
    color: #B0190F;
}

.back-to-top svg path {
    fill: #B0190F;
    transition: ease-out 0.25s;
}

.back-to-top:hover svg path {
    fill: #B0190F;
}

@media (min-width: 500px) {
    .rental-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 600px) {
    .back-to-top {
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .family-list .family-checkbox {
        width: 50%;
    }

    .filter-section__header h3 {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .rental-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .filter-sidebar {
        width: 307px;
        flex-shrink: 0;
    }

    .family-list {
        overflow: auto;
        display: block;
        flex-wrap: nowrap;
    }

    .family-list .family-checkbox {
        width: 100%;
    }

    .search-container.mobile-search {
        display: none;
    }

    .search-container.desktop-search {
        display: block;
    }

    .rental-grid {
        gap: 30px;
    }

    .filter-sidebar h3 {
        text-align: left;
        padding-bottom: 30px;
    }

    .back-to-top {
        display: block;
        color: #252525;
    }

    .back-to-top svg path {
        fill: #252525;
    }

    .rental-listings .container {
        flex-wrap: nowrap;
        width: 100%;
    }

    .product-specs {
        display: block;
    }

    .product-actions .btn-secondary {
        display: block;
    }
}

.btn-reset-all {
    width: max-content;
    padding: 6px 5px;
    background: #9B4C32;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-reset-all:hover,
.btn-reset-all.active {
    background: #ffb81c;
    color: #000;
}

.btn-reset-all:hover svg path,
.btn-reset-all.active svg path {
    fill: #000;
}

.btn-reset-all svg {
    width: 14px;
    height: 14px;
}

.btn-reset-all svg path {
    fill: #fff;
    transition: fill 0.2s ease;
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-load-more {
    background: transparent;
    color: #252526;
    border: solid 2px #B0190F;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.btn-load-more:hover {
    color: #fff;
    background: #B0190F;
}

.btn-load-more:hover:after {
    border-color: #fff transparent  transparent transparent;
}

.btn-load-more:after {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0px 5px;
    border-color: #252526 transparent  transparent transparent;
    content: "";
    display: inline-block;
    position: relative;
    margin-left: 7px;
    margin-bottom: 3px;
}

.btn-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.results-counter {
    font-size: 16px;
    color: #252525;
    margin-bottom: 0;
    text-align: center;
}