/* ========================================
   STICKY SEARCH NAVBAR STYLES
   ======================================== */

/* Base Sticky Navbar Styles */
.sticky-search-navbar {
    position: sticky;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.sticky-search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sticky-search-group {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 1rem;
}

.category-select-group {
    max-width: 220px;
}

.location-input-group {
    flex: 1;
}

.search-icon-left {
    position: absolute;
    left: 1rem;
    color: #ff9933;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.dropdown-icon {
    position: absolute;
    right: 1rem;
    color: #666;
    font-size: 0.85rem;
    pointer-events: none;
}

.sticky-select,
.sticky-input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.95rem;
    color: #2c3e50;
    width: 100%;
    outline: none;
    box-shadow: none;
}

.sticky-select {
    padding-right: 2rem;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
}

.sticky-input::placeholder {
    color: #95a5a6;
}

.sticky-select:focus,
.sticky-input:focus {
    outline: none;
    box-shadow: none;
}

.sticky-divider {
    width: 1px;
    height: 30px;
    background-color: #e0e0e0;
    margin: 0 0.5rem;
}

.btn-sticky-search {
    border: none;
    /* padding: 0.75rem 2rem; */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.btn-sticky-search:hover {
    background-color: #ff8c1a;
    color: white;
    transform: scale(1.02);
}

.btn-sticky-search i {
    font-size: 1rem;
}

/* Listing Content */
#listing-content {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Responsive Design */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .sticky-search-navbar {
        padding: 0.875rem 0;
    }
    
    .sticky-search-form {
        padding: 0.4rem;
    }
    
    .category-select-group {
        max-width: 180px;
    }
    
    .btn-sticky-search {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .sticky-select,
    .sticky-input {
        font-size: 0.9rem;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .sticky-search-navbar {
        top: 75px;
        padding: 0.75rem 0;
    }
    
    .sticky-search-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .sticky-search-group {
        width: 100%;
        max-width: 100% !important;
        padding: 0.5rem 0.75rem;
        background: #f8f9fa;
    }
    
    .sticky-divider {
        display: none;
    }
    
    .btn-sticky-search {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding: 0.75rem;
    }
    
    #listing-content {
        margin-top: 5rem !important;
        padding: 2rem 0;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .sticky-search-navbar {
        padding: 0.625rem 0;
    }
    
    .sticky-search-form {
        padding: 0.625rem;
        gap: 0.4rem;
    }
    
    .sticky-search-group {
        padding: 0.5rem 0.625rem;
    }
    
    .search-icon-left {
        font-size: 1rem;
        left: 0.75rem;
    }
    
    .sticky-select,
    .sticky-input {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem 0.4rem 2rem;
    }
    
    .btn-sticky-search {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .search-text {
        display: inline;
    }
    
    #listing-content {
        padding: 1.5rem 0;
    }
}

/* Extra Small Mobile (< 400px) */
@media (max-width: 399px) {
    .btn-sticky-search .search-text {
        display: none;
    }
    
    .btn-sticky-search {
        padding: 0.7rem 1.5rem;
    }
}

/* ========================================
   FILTERS BAR STYLES
   ======================================== */

/* Base Filters Bar Styles */
.filters-bar {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filters-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.filters-label i {
    font-size: 1.1rem;
}

.filters-divider {
    width: 1px;
    height: 30px;
    background-color: #e0e0e0;
}

.filters-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: wrap;
}

.filter-dropdown-wrapper {
    position: relative;
}

.filter-btn {
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #ff9933;
    color: #ff9933;
    background: #fff8f0;
}

.filter-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin-top: 0.5rem;
    min-width: 280px;
}

.filter-dropdown-content {
    padding: 1.5rem;
}

.filter-dropdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Distance Slider Styles */
.distance-slider-wrapper {
    padding: 0.5rem 0;
}

.distance-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #ff9933 0%, #ff9933 20%, #e0e0e0 20%, #e0e0e0 100%);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #ff9933;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.distance-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.distance-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #ff9933;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.distance-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Checkbox Styles */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    border: 2px solid #d0d0d0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #ff9933;
    border-color: #ff9933;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
    border-color: #ff9933;
}

.form-check-label {
    font-size: 0.95rem;
    color: #2c3e50;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Reset Button */
.btn-reset-filters {
    background: transparent;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    color: #ff8c1a;
    text-decoration: underline;
}

/* Listing Results */
.listing-results {
    padding: 2rem 0;
}

/* ========================================
   FACILITY CARD STYLES (from marketplace-landing-page.css)
   ======================================== */

/* Base Facility Card Styles */
.facility-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.facility-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #556270;
}

.facility-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facility-image-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

.facility-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.facility-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.facility-location {
    color: #7f8c8d;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.facility-location i {
    font-size: 1rem;
}

.facility-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facility-rating .stars {
    color: #ff9933;
    display: flex;
    gap: 0.125rem;
}

.facility-rating .stars i {
    font-size: 1rem;
}

.rating-number {
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95rem;
}

.rating-count {
    color: #95a5a6;
    font-size: 0.9rem;
}

.facility-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-badge {
    background-color: #fff3e0;
    color: #ff9933;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.facility-card-body .btn {
    margin-top: auto;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.facility-card-body .btn-outline-dark:hover {
    background-color: #2c3e50;
    color: white;
}

/* Responsive Design for Facility Cards */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .facility-image-wrapper {
        height: 180px;
    }
    
    .facility-name {
        font-size: 1.25rem;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .listing-results {
        padding: 1.5rem 0;
    }
    
    .facility-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .facility-image-wrapper {
        height: 200px;
    }
    
    .facility-card-body {
        padding: 1.25rem;
    }
    
    .facility-name {
        font-size: 1.2rem;
    }
    
    .facility-location {
        font-size: 0.9rem;
    }
    
    .facility-rating .stars i {
        font-size: 0.95rem;
    }
    
    .rating-number {
        font-size: 0.9rem;
    }
    
    .rating-count {
        font-size: 0.85rem;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .listing-results {
        padding: 1rem 0;
    }
    
    .facility-card {
        max-width: 100%;
    }
    
    .facility-image-wrapper {
        height: 180px;
    }
    
    .facility-image-icon {
        font-size: 2.5rem;
    }
    
    .facility-card-body {
        padding: 1rem;
    }
    
    .facility-name {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }
    
    .facility-location {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .facility-rating {
        margin-bottom: 0.75rem !important;
    }
    
    .facility-rating .stars i {
        font-size: 0.9rem;
    }
    
    .rating-number {
        font-size: 0.85rem;
    }
    
    .rating-count {
        font-size: 0.8rem;
    }
    
    .facility-features {
        margin-bottom: 0.75rem !important;
        gap: 0.4rem;
    }
    
    .feature-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .facility-card-body .btn {
        padding: 0.65rem;
        font-size: 0.95rem;
    }
}



/* Responsive Design for Filters */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .filters-bar {
        padding: 0.65rem 1.25rem;
        gap: 1rem;
    }
    
    .filters-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-dropdown-menu {
        min-width: 260px;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        padding: 1rem;
        gap: 1rem;
    }
    
    .filters-label {
        justify-content: center;
    }
    
    .filters-divider {
        display: none;
    }
    
    .filters-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-dropdown-wrapper {
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1.25rem;
    }
    
    .btn-reset-filters {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
    
    .filter-dropdown-menu {
        width: 100%;
        min-width: auto;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .filters-bar {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .filters-label {
        font-size: 0.95rem;
    }
    
    .filter-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-dropdown-content {
        padding: 1.25rem;
    }
    
    .filter-dropdown-title {
        font-size: 0.95rem;
    }
    
    .form-check-label {
        font-size: 0.9rem;
    }
    
    .btn-reset-filters {
        font-size: 0.9rem;
    }
}

