﻿
#waitCursorOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.1);
    z-index: 9998;
}

#waitCursor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    font-size: 40px;
}

#hmtAerialWorkPlatformContainer
{
    margin-top: 50px;
}

#categoryDescription h2 {
    font-size: 40px;
}

#categoryDescription p:last-child{
    margin-bottom: 40px;
}

#machinesContainer {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

#machinesContainer {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}


/* Left: machine list (50%) */
#machineItems {
    background-color: #00A7E1;
    border-radius: 30px;
    padding: 35px;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Right: machine details (50%) */
#machineItemDetails {
    width: 50%;
    background-color: #3B83BD;
    border-radius: 30px;
    padding: 35px;
}

/* -----------------------------------
   MACHINE LIST (LEFT SIDE)
----------------------------------- */

/* Title row in the machine list (no border) */
.machineItemTitle {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border-radius: 15px; /* optional, keeps rounded look */
    background-color: transparent; /* no border or background */
}

    /* Title columns */
    .machineItemTitle .col1,
    .machineItem .col1 {
        width: 40%;
    }

    .machineItemTitle .col2,
    .machineItem .col2 {
        width: 30%;
    }

    .machineItemTitle .col3,
    .machineItem .col3 {
        width: 30%;
    }

.machineItem {
    padding: 12px 15px;
    border: 1px solid #fff;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 17px;
    position: relative;
    text-decoration: none;
}

.beItemContent a.machineItem,
.beItemContent a.machineItem:visited {
    color: #fff;
}

.beItemContent a.machineItem:hover,
.beItemContent a.machineItem:visited,
.beItemContent a.machineItem:active {
    color: #fff;
    text-decoration: none;
}

.machineItem:hover {
    background: #3B83BD;
}

.machineItem.selected {
    background: #EAC011;
    border-color: #fff;
}


.machineItem.selected::after {
    content: "\f061";
    font-family: "Font Awesome 6 Pro";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 16px;
}


/* -----------------------------------
   MACHINE DETAILS (RIGHT SIDE)
----------------------------------- */

.machineDetails {
    overflow: hidden;
}


.machineDetailsTable {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 25px;
}

.machineDetailRow {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid #fff;
    border-radius: 15px;
    color: #fff;
}

    .machineDetailRow.sale-price {
        background: #EAC011;
    }

.machineDetailRow .label {
    font-size: 17px;
}

.machineDetailRow .value {
    text-align: right;
    min-width: 100px;
    font-size: 17px;
}

.beItemContent .machineDetails .machineTitle h2 {
    font-size: 20px;
    color: #fff;
    margin: 0;
}

.beItemContent .machineDetails .machineTitle  {
    margin: 30px 0 0 0;
}

.machineDetails:has(.machine-swiper-nav-container) .machineTitle {
    margin-top: 20px;
}

.machineDescription {
    color: #fff;
    font-size: 18px;
    margin: 15px 0 0 0 ;
}

.machineDetails .machine-swiper-nav-container {
    display: flex;
    justify-content: right;
    gap: 10px;
    margin:0;
}

.machineDetails .machine-swiper-button-prev,
.machineDetails .machine-swiper-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
}

    .machineDetails .machine-swiper-button-prev .fas,
    .machineDetails .machine-swiper-button-next .fas {
        color: #fff;
    }

    .machineDetails .machine-swiper-button-prev:hover .fas,
    .machineDetails .machine-swiper-button-next:hover .fas {
        color: #EAC011;
    }


.blockEditor .machineImages .swiper-slide img {
    vertical-align: top;
    object-fit: cover;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 15px;
}

.requestMaschineButtonContainer 
{
    margin-top: 30px;
}

.requestMaschineButtonContainer .requestMaschineButton {
    background-color: #EAC011;
    border-radius: 15px;
}

/* ---------------------------
   Filter bar
--------------------------- */
#machineFilter {
    margin-bottom: 40px;
}

#filterCategoryList {
    display: flex;
    flex-wrap: nowrap; 
    gap: 10px;
    align-items: flex-start; 
    margin-bottom: 50px;
    overflow-x: hidden; 
}

#filterCategoryList .filterCategoryItem {
    flex: 0 1 auto; 
    max-height: 270px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#filterCategoryList .filterCategoryItem img {
    width: 100%; 
    height: 100%; 
    max-height: 270px;
    transition: opacity 0.2s;
}

#filterCategoryList .filterCategoryItem:hover img {
    opacity: 0.7;
    cursor: pointer;
}

#hmtAerialWorkPlatformMachineContainer #filterCategoryDropdownWrapper {
    display: none;
}

/* Wrapper */
#filterCategoryDropdownWrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 420px;
    margin: 0 0 20px 0;
}

/* Label */
#filterCategoryDropdownWrapper label {
    font-weight: 600;
    color: #333;
}

/* Positioning wrapper for select + icon */
.dropdownIconWrap {
    position: relative;
    width: 100%;
}

/* Select styling */
#filterCategoryDropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

/* Font Awesome chevron */
.dropdownIconWrap i.fas.fa-chevron-down {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* select remains clickable */
    font-size: 16px;
    color: gray;
}


/* Container for sliders (4 per row) */
#filterPropertyContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* always 4 columns */
    gap: 10px;
}

/* Each filter block */
.filterBlock {
    position: relative;
    overflow: visible;
    transition: background 0.2s;
    box-sizing: border-box;
    min-width: 0;
    border-radius: 5px;
}

/* Active filter style */
.filterBlock.filterApplied {
    background: #007bff;
    border-color: #007bff;
}


.filterHeader {
    position: relative;
    display: block;
    padding-right: 24px;
    background-color: #CEE0EE;
    border: 1px solid #CEE0EE;
    color: #245275;
    cursor: pointer;
    border-radius: 5px;
}

.filterHeader:hover {
    background-color: #F0F7FB;
    border: 1px solid #F0F7FB;
}

.filterApplied .filterHeader {
    background-color: #3B83BD;
    border: 1px solid #3B83BD;
    color: #fff;
}

#toggleFilterBlock .filterHeader {
    background-color: #fff;
}

.filterTextContainer {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    padding: 4px 2px 3px 8px;
}

.filterIcon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.filterIcon i {
    font-size: 19px;
    color: #245275;
    cursor: pointer;
    transition: none;
    font-weight: 300;
}

.filterApplied .filterIcon i {
    color: #fff;
}

/* Dropdown body */
.filterBody {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 20px 20px 20px 20px;
    display: none;
    width: 100%; /* match filter block width */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: visible;
}

.noUi-connect {
    background: #00A7E1 !important;
}

.filterBodyTitle {
    font-weight: bold;
    font-size: 19px;
    margin-bottom: 15px;
}

/* Slider value display */
.sliderValues {
    margin-top: 15px;
    font-size: 17px;
}

/* Apply button */
.applyFilterBtn {
    margin-top: 15px;
    padding: 4px 10px;
    cursor: pointer;
    background: #3B83BD;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-weight: 500;
    font-size: 18px;
}

.hiddenFilter {
    display: none;
}

.toggleFilterBtn {
    cursor: pointer;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
}

.hiddenFilterCountBadge {
    display: inline-block;
    background: #3B83BD;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 600;
    position: relative;
    top: -2px;
}

#filterResetBtn {
    margin-top: 20px;
    font-size: 16px;
}

#filterResetBtn:hover {
    cursor: pointer;
    color: #3B83BD;
}

#filterResetBtn i {
    margin-right: 6px;
    font-size: 16px;
    font-weight: 300;
}

#filterResetBtn:hover i {
    color: #3B83BD;
}

/* Multi-select filter options */
.multiOptions {
    display: flex;
    flex-direction: column; /* stack children vertically */
    gap: 6px; /* space between checkboxes */
}

    .multiOptions label {
        font-size: 14px; /* smaller text */
    }

/* ---------------------------
   Responsive layout
--------------------------- */


@media screen and (max-width: 1023.9px) {

    .machineItemTitle {
        font-size: 13px;
    }

    /* Mobile adjustments for machine details */
    #machinesContainer {
        flex-direction: column;
        gap: 15px;
    }

    #machineItems, #machineItemDetails {
        width: 100%;
        padding: 20px;
        border-radius: 20px;
    }

    /* Hide right side container initially */
    #machineItemDetails {
        display: none; /* only show when a machine is clicked */
        margin-top: 10px;
    }

    /* Close button inside inline details */
    .machineDetails .closeDetailsBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        font-size: 20px;
        font-weight: bold;
        color: #3B83BD;
        background-color: #fff;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        margin: 0 0 10px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        transition: background 0.2s, color 0.2s;
    }

    .machineDetails {
        background-color: #3B83BD;
        padding: 7px;
    }


    /* Category dropdown filter */

    #filterCategoryList {
        display: none;
    }

    #hmtAerialWorkPlatformMachineContainer #filterCategoryDropdownWrapper {
        display: flex;
    }

    #filterCategoryDropdown {
        font-size: 20px;
    }

}


@media (max-width: 992px) {
    #filterPropertyContainer {
        grid-template-columns: repeat(3, 1fr); /* still 3 per row, shrink widths */
    }
}

@media (max-width: 768px) {
    #filterPropertyContainer {
        grid-template-columns: 1fr; /* stack sliders vertically */
    }
}
