/* ===============================
   Villa Filters – Dropdown Checkbox location
   =============================== */

.filter_class {
    display: flex;
    margin-bottom: 18px !important;
    align-content: flex-start;
    align-items: center;
	gap: 20px;
}


.villa-location-filter {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

/* Dropdown Button */
.villa-location-filter .dropdown-toggle {
    width: 260px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 10px 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	color: #000;
}
.villa-location-filter .dropdown-toggle:hover {
	background-color: #ffffff !important;
    color: #000000 !important;
    text-decoration: none;
}

.villa-location-filter .dropdown-toggle::after {
    content: "\e994";
    position: absolute;
    top: 68%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000000;
    font-size: 12px;
    font-family: elementskit !important;
    border: 0px !important;
}


/* Arrow */
.villa-location-filter .dropdown-toggle .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.villa-location-filter.open .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.villa-location-filter .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    padding: 10px;
    max-height: 220px;
    overflow-y: auto;
}

/* Show dropdown */
.villa-location-filter.open .dropdown-menu {
    display: block;
}

/* Checkbox Labels */
.villa-location-filter .dropdown-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

/* Checkbox input */
.villa-location-filter .dropdown-menu input[type="checkbox"] {
    accent-color: #111827; /* modern browsers */
    cursor: pointer;
}

/* Hover effect */
.villa-location-filter .dropdown-menu label:hover {
    background: #f3f4f6;
    border-radius: 4px;
}

/* Scrollbar (optional) */
.villa-location-filter .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.villa-location-filter .dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.villa-location-filter label{
    display: block;
    margin-top:4px;
    margin-bottom: 3px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}


/* =========css for price =============for  */

.villa-sort-filter {
    width: 250px; /* adjust width as needed */
    font-family: Arial, sans-serif;
    position: relative;
}

.villa-sort-filter label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.villa-sort-filter .custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.villa-sort-filter .custom-select-wrapper select {
    width: 100%;
    padding: 10px 40px 10px 15px !important;
    border: 1px solid #c3c3c3 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    font-size: 14px;
    appearance: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.villa-sort-filter .custom-select-wrapper select:focus {
    border-color: #ad1457; /* darker pink on focus */
    outline: none;
}

/* Custom arrow */
.villa-sort-filter .custom-select-wrapper::after {
    content: "\e994";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000;
    font-size: 12px;
    font-family: elementskit !important;
}
/* Responsive */
@media (max-width: 768px) {
    .villa-location-filter .dropdown-toggle {
        width: 100%;
    }
}
