/* Styles for rental-list: moved out of the template inline <style> block(s). */

    .rental-filters-sidebar {
        top: 80px;
        z-index: 10;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: visible;
        padding: 20px;
        background-color: #f8f9fa;
        -webkit-overflow-scrolling: touch;
    }
    .col-md-3 {
        padding: 20px;
        background-color: #f8f9fa;
    }
    .slider-container {
        position: relative;
        height: 40px;
    }
    .slider-track {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 6px;
        background-color: #e0e0e0;
        border-radius: 5px;
        transform: translateY(-50%);
        z-index: 1;
    }
    #slider-fill-price {
        position: absolute;
        top: 50%;
        left: 0%;
        width: 100%;
        height: 6px;
        border-radius: 5px;
        transform: translateY(-50%);
        z-index: 2;
        background: linear-gradient(90deg, #1a2a44 0%, #2e4372 100%);
    }
    .slider {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 6px;
        background: transparent;
        outline: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        margin: 0;
        pointer-events: none;
    }
    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        background: linear-gradient(90deg, #1a2a44 0%, #2e4372 100%);
        border: 3px solid #fff;
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .slider::-webkit-slider-thumb:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    }
    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        background: linear-gradient(90deg, #1a2a44 0%, #2e4372 100%);
        border: 3px solid #fff;
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .slider::-moz-range-thumb:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    }
    .slider::-ms-thumb {
        width: 24px;
        height: 24px;
        background: linear-gradient(90deg, #1a2a44 0%, #2e4372 100%);
        border: 3px solid #fff;
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .slider::-ms-thumb:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    }
    .form-check-input {
        background-color: #fff;
        border: 2px solid #2e4372;
        cursor: pointer;
    }
    .form-check-input:checked {
        background-color: #2e4372;
        border-color: #1a2a44;
    }
    .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(46, 67, 114, 0.25);
    }
    .rental-details-btn {
        width: 100%;
        transition: all 0.3s ease;
    }
    .rental-details-btn:hover {
        background: #003087 !important;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    /* Amazon-style Rental Cards */
    .rental-item {
        padding: 0 8px 16px 8px;
        transition: all 0.2s ease;
        display: block !important;
    }
    .rental-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 14px;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    .rental-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
        border-color: #c7c7c7;
    }
    .rental-card-image {
        width: 100%;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        object-fit: cover;
        object-position: center;
        border-radius: 4px;
        margin-bottom: 12px;
        display: block;
    }
    .rental-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    .rental-card-title {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.4;
        color: #0f1111;
        margin: 0 0 8px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 44px;
    }
    .rental-card-location {
        font-size: 13px;
        color: #565959;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }
    .rental-card-type {
        font-size: 13px;
        color: #565959;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }
    .rental-card-bhk {
        font-size: 13px;
        color: #565959;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }
    .rental-card-floor {
        font-size: 13px;
        color: #565959;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }
    .rental-card-furnishing {
        font-size: 13px;
        color: #565959;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }
    .rental-card-availability {
        font-size: 13px;
        color: #565959;
        margin: 0 0 6px 0;
        line-height: 1.3;
    }
    .rental-card-price {
        font-size: 18px;
        font-weight: 600;
        color: #0f1111;
        margin: 8px 0 6px 0;
        line-height: 1.2;
    }
    #min-price-input, #max-price-input {
        width: 40%;
        margin-right: 5px;
    }
    #go-button-price {
        width: 20%;
    }
    @media (max-width: 768px) {
        .rental-filters-sidebar {
            position: static;
            max-height: none;
            overflow: visible;
            margin-bottom: 20px;
        }
        .col-md-3 {
            position: static;
            margin-bottom: 20px;
        }
        .filter-container, .mb-3 {
            font-size: 0.9rem;
        }
        .rental-item {
            padding: 0 4px 12px 4px;
        }
        .rental-card {
            padding: 12px;
        }
        .rental-card-image {
            height: 180px;
            min-height: 180px;
            max-height: 180px;
        }
        .rental-card-title {
            font-size: 15px;
            min-height: 42px;
        }
        .rental-card-price {
            font-size: 16px;
        }
        #min-price-input, #max-price-input {
            width: 35%;
        }
        #go-button-price {
            width: 25%;
        }
    }
    .rental-views-counter {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        font-size: 13px;
        color: #606060;
        margin-top: 8px;
        margin-bottom: 0;
        text-align: left;
        line-height: 18px; /* Fixed line height */
        font-weight: 400;
        display: block;
        height: 18px; /* Fixed height to prevent layout shift */
        position: relative; /* Keep position stable */
        width: 100%; /* Full width to prevent shifting */
        overflow: visible; /* Allow text to show */
        flex-shrink: 0; /* Don't shrink in flexbox */
    }
    .rental-details-btn {
        width: 100%;
        margin-bottom: 0; /* No margin to prevent shift */
        flex-shrink: 0; /* Don't shrink */
        transition: all 0.3s ease;
    }
    .rental-details-btn:hover {
        background: #003087 !important;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
