/* Properties Page Specific Styles */

/* Properties Header */
.properties-header {
    margin-top: 70px;
    background: linear-gradient(135deg, #f8fafe 0%, #e8f4f8 100%);
    padding: 60px 0;
    text-align: center;
}

.properties-header h1 {
    font-size: 2.5rem;
    color: #1e3f73;
    margin-bottom: 15px;
    font-weight: 700;
}

.properties-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Search & Filter Bar */
.search-filter-bar {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.search-filter-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#results-count {
    font-weight: 600;
    color: #1e3f73;
    font-size: 1.1rem;
}

.search-params {
    font-size: 0.9rem;
    color: #666;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafe;
    border: 2px solid #e1e5e9;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-toggle:hover,
.filter-toggle.active {
    border-color: #2c5aa0;
    background: #2c5aa0;
    color: white;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-weight: 600;
    color: #333;
}

#sort-select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

#sort-select:focus {
    outline: none;
    border-color: #2c5aa0;
}

/* Main Layout */
.properties-main {
    padding: 30px 0;
}

.properties-main .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 140px;
    transition: transform 0.3s ease;
}

.filters-sidebar.hidden {
    transform: translateX(-100%);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filters-header h3 {
    color: #1e3f73;
    font-size: 1.3rem;
    font-weight: 600;
}

.clear-filters {
    background: none;
    border: none;
    color: #2c5aa0;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.clear-filters:hover {
    color: #1e3f73;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Checkbox Styling */
.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    position: relative;
    padding-left: 30px;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: white;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-checkbox:hover .checkmark {
    border-color: #2c5aa0;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.count {
    color: #888;
    font-size: 0.85rem;
    margin-left: auto;
}

/* Price Range Slider */
.price-range {
    position: relative;
    margin: 15px 0;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2c5aa0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.3);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2c5aa0;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.3);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.price-inputs input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.price-inputs span {
    color: #666;
    font-weight: 600;
}

/* Properties Content */
.properties-content {
    min-height: 800px;
}

/* Book Direct Banner */
.book-direct-banner {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.banner-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.banner-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image .image-placeholder {
    height: 100%;
    background: linear-gradient(45deg, #4a90e2, #2c5aa0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #2c5aa0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.property-badge.featured {
    background: #ff6b6b;
    color: white;
}

.property-badge.book-direct {
    background: #28a745;
    color: white;
}

.property-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.property-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.property-favorite.active {
    color: #ff6b6b;
}

.property-info {
    padding: 20px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.property-info h3 {
    color: #1e3f73;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-details {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.amenity-tag {
    background: #f8fafe;
    color: #2c5aa0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5aa0;
}

.period {
    color: #666;
    font-size: 0.9rem;
}

.book-now-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.book-now-btn:hover {
    background: #1e3f73;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.load-more-btn:hover {
    background: #2c5aa0;
    color: white;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .properties-main .container {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        overflow-y: auto;
        border-radius: 0;
    }
    
    .filters-sidebar.active {
        transform: translateX(0);
    }
    
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .filter-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .properties-header h1 {
        font-size: 2rem;
    }
    
    .search-filter-bar .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls {
        justify-content: space-between;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .properties-header {
        padding: 40px 0;
    }
    
    .properties-header h1 {
        font-size: 1.8rem;
    }
    
    .book-direct-banner {
        padding: 15px 20px;
    }
    
    .banner-content h3 {
        font-size: 1.1rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
}