style: Update nav filter button and action roundness and hover style

This commit is contained in:
Kerby Martino (aider) committed 2025-05-12 21:44:48 +08:00
1 parent 533a8f8004
commit 9742b3b8ca
1 file changed
+54 -54
+54 -54
View File
@@ -18,7 +18,7 @@
<div class="flex flex-wrap gap-4 items-center"> <div class="flex flex-wrap gap-4 items-center">
<!-- Geolocation Filter --> <!-- Geolocation Filter -->
<div class="relative"> <div class="relative">
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base hover:outline hover:outline-2 hover:outline-green-300"> <button onclick="toggleDropdown('location-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
<span>Location</span> <span>Location</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button> </button>
@@ -31,16 +31,16 @@
<div class="max-h-60 overflow-y-auto"> <div class="max-h-60 overflow-y-auto">
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">Geolocation</p> <p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">Geolocation</p>
<div class="pt-1 px-3"> <div class="pt-1 px-3">
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Nearby</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Nearby</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Anywhere</a>
</div> </div>
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">City</p> <p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">City</p>
<div class="px-3 pt-1"> <div class="px-3 pt-1">
<input type="text" placeholder="Search city..." class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"> <input type="text" placeholder="Search city..." class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300">
<!-- Placeholder for city list (would be populated by JS) --> <!-- Placeholder for city list (would be populated by JS) -->
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Manila</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Manila</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Makati</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Makati</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Quezon City</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Quezon City</a>
</div> </div>
</div> </div>
</div> </div>
@@ -49,7 +49,7 @@
<!-- Availability Filter --> <!-- Availability Filter -->
<div class="relative"> <div class="relative">
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base hover:outline hover:outline-2 hover:outline-green-300"> <button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
<span>Availability</span> <span>Availability</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button> </button>
@@ -59,8 +59,8 @@
<div class="max-h-60 overflow-y-auto"> <div class="max-h-60 overflow-y-auto">
<p class="pl-3 pt-1 font-semibold text-gray-700 text-sm font-heading">Availability</p> <p class="pl-3 pt-1 font-semibold text-gray-700 text-sm font-heading">Availability</p>
<div class="pt-1 px-3"> <div class="pt-1 px-3">
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Now</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Now</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Always</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Open Always</a>
</div> </div>
<p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">Future Availability</p> <p class="pl-3 pt-2 font-semibold text-gray-700 text-sm font-heading">Future Availability</p>
<div class="px-3 pt-1"> <div class="px-3 pt-1">
@@ -73,48 +73,48 @@
<!-- Rates Filter --> <!-- Rates Filter -->
<div class="relative"> <div class="relative">
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base hover:outline hover:outline-2 hover:outline-green-300"> <button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
<span>Rates</span> <span>Rates</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button> </button>
<!-- Dropdown content for Rates (initially hidden, toggle with JS) --> <!-- Dropdown content for Rates (initially hidden, toggle with JS) -->
<div id="rates-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 220px;"> <div id="rates-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 220px;">
<div class="py-1 px-2"> <div class="py-1 px-2">
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Hourly</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Hourly</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Daily</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Daily</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Weekly</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Weekly</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Monthly</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Monthly</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Annually</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Annually</a>
</div> </div>
</div> </div>
</div> </div>
<!-- Type of Spaces Filter --> <!-- Type of Spaces Filter -->
<div class="relative"> <div class="relative">
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base hover:outline hover:outline-2 hover:outline-green-300"> <button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
<span>Space Type</span> <span>Space Type</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button> </button>
<!-- Dropdown content for Type of Spaces (initially hidden, toggle with JS) --> <!-- Dropdown content for Type of Spaces (initially hidden, toggle with JS) -->
<div id="spacetype-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 260px;"> <div id="spacetype-filter-dropdown" class="absolute z-10 mt-1 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 260px;">
<div class="py-1 px-2"> <div class="py-1 px-2">
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer"> <label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base cursor-pointer">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300"> <input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">Coworking</span> <span class="ml-2">Coworking</span>
</label> </label>
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer"> <label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base cursor-pointer">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300"> <input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">Room</span> <span class="ml-2">Room</span>
</label> </label>
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer"> <label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base cursor-pointer">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300"> <input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">Conference</span> <span class="ml-2">Conference</span>
</label> </label>
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer"> <label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base cursor-pointer">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300"> <input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">Event Space</span> <span class="ml-2">Event Space</span>
</label> </label>
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer"> <label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base cursor-pointer">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300"> <input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">Virtual Office</span> <span class="ml-2">Virtual Office</span>
</label> </label>
@@ -124,7 +124,7 @@
<!-- Pricing Range Filter --> <!-- Pricing Range Filter -->
<div class="relative"> <div class="relative">
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 font-heading text-base hover:outline hover:outline-2 hover:outline-green-300"> <button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
<span>Price Range</span> <span>Price Range</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button> </button>
@@ -152,10 +152,10 @@
step="1" tabindex="0" type="range" value="700"/> step="1" tabindex="0" type="range" value="700"/>
</div> </div>
<div class="flex justify-between items-center mt-8 space-x-3"> <div class="flex justify-between items-center mt-8 space-x-3">
<input type="number" id="minPriceInput" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300" <input type="number" id="minPriceInput" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider'); var maxSlider = document.getElementById('maxRangeSlider'); var val = parseInt(this.value); if (isNaN(val)) { this.value = minSlider.value; return; } if (val >= parseInt(maxSlider.value)) val = parseInt(maxSlider.value) -1; if (val < parseInt(minSlider.min)) val = parseInt(minSlider.min); this.value = val; minSlider.value = val; minSlider.dispatchEvent(new Event('input'));"> oninput="var minSlider = document.getElementById('minRangeSlider'); var maxSlider = document.getElementById('maxRangeSlider'); var val = parseInt(this.value); if (isNaN(val)) { this.value = minSlider.value; return; } if (val >= parseInt(maxSlider.value)) val = parseInt(maxSlider.value) -1; if (val < parseInt(minSlider.min)) val = parseInt(minSlider.min); this.value = val; minSlider.value = val; minSlider.dispatchEvent(new Event('input'));">
<span class="text-gray-500 text-base">-</span> <span class="text-gray-500 text-base">-</span>
<input type="number" id="maxPriceInput" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300" <input type="number" id="maxPriceInput" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider'); var maxSlider = document.getElementById('maxRangeSlider'); var val = parseInt(this.value); if (isNaN(val)) { this.value = maxSlider.value; return; } if (val <= parseInt(minSlider.value)) val = parseInt(minSlider.value) + 1; if (val > parseInt(maxSlider.max)) val = parseInt(maxSlider.max); this.value = val; maxSlider.value = val; maxSlider.dispatchEvent(new Event('input'));"> oninput="var minSlider = document.getElementById('minRangeSlider'); var maxSlider = document.getElementById('maxRangeSlider'); var val = parseInt(this.value); if (isNaN(val)) { this.value = maxSlider.value; return; } if (val <= parseInt(minSlider.value)) val = parseInt(minSlider.value) + 1; if (val > parseInt(maxSlider.max)) val = parseInt(maxSlider.max); this.value = val; maxSlider.value = val; maxSlider.dispatchEvent(new Event('input'));">
</div> </div>
</div> </div>
@@ -164,22 +164,22 @@
<!-- Sorting Group --> <!-- Sorting Group -->
<div class="flex gap-4 items-center"> <div class="flex gap-4 items-center">
<button class="bg-gray-500 text-green-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-1 border-green-900 hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900"> <button class="bg-gray-500 text-green-900 font-semibold py-2 px-4 rounded-base focus:outline-none cursor-pointer capitalize border-1 border-green-900 hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
Relevance Relevance
</button> </button>
<button class="bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-1 border-transparent hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900"> <button class="bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-base focus:outline-none cursor-pointer capitalize border-1 border-transparent hover:border-green-900 font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
Newest Newest
</button> </button>
<div class="relative"> <div class="relative">
<button onclick="toggleDropdown('price-sort-dropdown')" class="bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-green-300 capitalize font-heading text-base hover:outline hover:outline-2 hover:outline-green-300"> <button onclick="toggleDropdown('price-sort-dropdown')" class="bg-gray-100 text-green-900 font-semibold py-2 px-4 rounded-base inline-flex items-center justify-between border-2 border-transparent hover:border-green-900 capitalize font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">
<span>Price</span> <span>Price</span>
<svg class="fill-current h-4 w-4 ml-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg> <svg class="fill-current h-4 w-4 ml-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button> </button>
<!-- Dropdown content for Price Sort --> <!-- Dropdown content for Price Sort -->
<div id="price-sort-dropdown" class="absolute z-10 mt-1 right-0 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 200px;"> <div id="price-sort-dropdown" class="absolute z-10 mt-1 right-0 rounded-base bg-white shadow-lg hidden ring-1 ring-black ring-opacity-5" style="min-width: 200px;">
<div class="py-1 px-2"> <div class="py-1 px-2">
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Price: High to Low</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Price: High to Low</a>
<a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-sm focus:outline-none focus:bg-gray-100 focus:text-gray-900">Price: Low to High</a> <a href="#" class="block px-4 py-2 my-1 text-sm text-gray-700 hover:bg-gray-100 rounded-base focus:outline-none focus:bg-gray-100 focus:text-gray-900">Price: Low to High</a>
</div> </div>
</div> </div>
</div> </div>
@@ -203,7 +203,7 @@
<div class="overflow-y-auto p-4 space-y-4 flex-1"> <div class="overflow-y-auto p-4 space-y-4 flex-1">
<!-- Location Filter Accordion --> <!-- Location Filter Accordion -->
<div> <div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-base"> <button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-base font-heading text-base">
<span>Location</span> <span>Location</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /> <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
@@ -211,49 +211,49 @@
</button> </button>
<div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2"> <div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2">
<input type="text" placeholder="Type city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"> <input type="text" placeholder="Type city or area..." class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300">
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Nearby</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Nearby</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Anywhere</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Anywhere</a>
<!-- Placeholder for city list --> <!-- Placeholder for city list -->
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Manila</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Manila</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Makati</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Makati</a>
</div> </div>
</div> </div>
<!-- Availability Filter Accordion --> <!-- Availability Filter Accordion -->
<div> <div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-base"> <button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-base font-heading text-base">
<span>Availability</span> <span>Availability</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /> <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg> </svg>
</button> </button>
<div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2"> <div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2">
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Open Now</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Open Now</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Open Always</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Open Always</a>
<input type="text" placeholder="e.g., 1 hour from now" class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"> <input type="text" placeholder="e.g., 1 hour from now" class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300">
</div> </div>
</div> </div>
<!-- Rates Filter Accordion --> <!-- Rates Filter Accordion -->
<div> <div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-base"> <button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-base font-heading text-base">
<span>Rates</span> <span>Rates</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /> <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg> </svg>
</button> </button>
<div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2"> <div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2">
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Hourly</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Hourly</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Daily</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Daily</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Weekly</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Weekly</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Monthly</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Monthly</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Annually</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Annually</a>
</div> </div>
</div> </div>
<!-- Space Type Filter Accordion --> <!-- Space Type Filter Accordion -->
<div> <div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-base"> <button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-base font-heading text-base">
<span>Space Type</span> <span>Space Type</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /> <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
@@ -262,7 +262,7 @@
<div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2"> <div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2">
{% assign space_types = "Coworking,Room,Conference,Event Space,Virtual Office" | split: "," %} {% assign space_types = "Coworking,Room,Conference,Event Space,Virtual Office" | split: "," %}
{% for type in space_types %} {% for type in space_types %}
<label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm cursor-pointer"> <label class="flex items-center px-2 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base cursor-pointer">
<input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300"> <input type="checkbox" class="appearance-none h-5 w-5 border-2 border-gray-300 rounded-sm focus:ring-green-300 checked:bg-green-300 checked:border-green-300">
<span class="ml-2">{{ type }}</span> <span class="ml-2">{{ type }}</span>
</label> </label>
@@ -272,7 +272,7 @@
<!-- Price Range Filter Accordion --> <!-- Price Range Filter Accordion -->
<div> <div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-base"> <button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-base font-heading text-base">
<span>Price Range</span> <span>Price Range</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /> <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
@@ -301,10 +301,10 @@
step="1" tabindex="0" type="range" value="700"/> step="1" tabindex="0" type="range" value="700"/>
</div> </div>
<div class="flex justify-between items-center mt-4 space-x-2"> <div class="flex justify-between items-center mt-4 space-x-2">
<input type="number" id="minPriceInput-mobile" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300" <input type="number" id="minPriceInput-mobile" value="100" class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider-mobile'); var maxSlider = document.getElementById('maxRangeSlider-mobile'); var val = parseInt(this.value); if (isNaN(val)) { this.value = minSlider.value; return; } if (val >= parseInt(maxSlider.value)) val = parseInt(maxSlider.value) -1; if (val < parseInt(minSlider.min)) val = parseInt(minSlider.min); this.value = val; minSlider.value = val; minSlider.dispatchEvent(new Event('input'));"> oninput="var minSlider = document.getElementById('minRangeSlider-mobile'); var maxSlider = document.getElementById('maxRangeSlider-mobile'); var val = parseInt(this.value); if (isNaN(val)) { this.value = minSlider.value; return; } if (val >= parseInt(maxSlider.value)) val = parseInt(maxSlider.value) -1; if (val < parseInt(minSlider.min)) val = parseInt(minSlider.min); this.value = val; minSlider.value = val; minSlider.dispatchEvent(new Event('input'));">
<span class="text-gray-500 text-sm">-</span> <span class="text-gray-500 text-sm">-</span>
<input type="number" id="maxPriceInput-mobile" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300" <input type="number" id="maxPriceInput-mobile" value="700" class="w-full px-3 py-2 border border-gray-300 rounded-base text-sm focus:outline-none focus:ring-1 focus:ring-green-300 focus:border-green-300"
oninput="var minSlider = document.getElementById('minRangeSlider-mobile'); var maxSlider = document.getElementById('maxRangeSlider-mobile'); var val = parseInt(this.value); if (isNaN(val)) { this.value = maxSlider.value; return; } if (val <= parseInt(minSlider.value)) val = parseInt(minSlider.value) + 1; if (val > parseInt(maxSlider.max)) val = parseInt(maxSlider.max); this.value = val; maxSlider.value = val; maxSlider.dispatchEvent(new Event('input'));"> oninput="var minSlider = document.getElementById('minRangeSlider-mobile'); var maxSlider = document.getElementById('maxRangeSlider-mobile'); var val = parseInt(this.value); if (isNaN(val)) { this.value = maxSlider.value; return; } if (val <= parseInt(minSlider.value)) val = parseInt(minSlider.value) + 1; if (val > parseInt(maxSlider.max)) val = parseInt(maxSlider.max); this.value = val; maxSlider.value = val; maxSlider.dispatchEvent(new Event('input'));">
</div> </div>
</div> </div>
@@ -312,23 +312,23 @@
<!-- Sort By Accordion --> <!-- Sort By Accordion -->
<div> <div>
<button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-md font-heading text-base"> <button type="button" class="accordion-toggle-mobile w-full flex justify-between items-center py-3 px-2 text-left text-sm font-semibold text-gray-700 hover:bg-gray-50 rounded-base font-heading text-base">
<span>Sort By</span> <span>Sort By</span>
<svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <svg class="accordion-icon-mobile h-5 w-5 transform transition-transform duration-200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /> <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
</svg> </svg>
</button> </button>
<div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2"> <div class="accordion-content-mobile hidden pt-2 pl-2 pr-2 space-y-2">
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Relevance</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Relevance</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Newest</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Newest</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Price: High to Low</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Price: High to Low</a>
<a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-sm">Price: Low to High</a> <a href="#" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-base">Price: Low to High</a>
</div> </div>
</div> </div>
</div> </div>
<!-- Drawer Footer --> <!-- Drawer Footer -->
<div class="p-4 border-t border-gray-200 flex justify-between items-center sticky bottom-0 bg-white"> <div class="p-4 border-t border-gray-200 flex justify-between items-center sticky bottom-0 bg-white">
<button id="reset-mobile-filters-btn" class="text-green-900 font-semibold py-2 px-4 rounded-lg text-sm border border-green-900 hover:border-green-900 font-heading text-base">Clear All</button> <button id="reset-mobile-filters-btn" class="text-green-900 font-semibold py-2 px-4 rounded-base text-sm border border-green-900 hover:border-green-900 font-heading text-base">Clear All</button>
<button id="apply-mobile-filters-btn" class="bg-green-300 text-green-900 font-semibold py-2 px-6 rounded-base text-sm font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">Apply Filters</button> <button id="apply-mobile-filters-btn" class="bg-green-300 text-green-900 font-semibold py-2 px-6 rounded-base text-sm font-heading text-base hover:outline hover:outline-2 hover:outline-green-900">Apply Filters</button>
</div> </div>
</div> </div>