/* Listings Page Styles */
.listings-header {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.listings-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.listings-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Search Filters */
.search-filters {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: sticky;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-section .form-check {
    margin-bottom: 0.5rem;
}

.filter-section .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-range input {
    flex: 1;
}

.range-slider {
    margin: 1rem 0;
}

.range-slider input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-actions .btn {
    flex: 1;
}

/* Listings Grid */
.listings-container {
    margin-bottom: 3rem;
}

.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.results-count {
    font-weight: 600;
    color: var(--dark-color);
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-options .btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    color: var(--secondary-color);
}

.view-options .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 500;
    color: var(--dark-color);
}

/* Listing Detail Page */
.listing-detail {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.listing-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.listing-content {
    padding: 2rem;
}

.listing-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.listing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.listing-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
}

.listing-description {
    margin-bottom: 2rem;
}

.listing-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.listing-description p {
    line-height: 1.8;
    color: var(--dark-color);
}

/* Property Features */
.property-features {
    margin-bottom: 2rem;
}

.property-features h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-item .feature-name {
    font-weight: 500;
    color: var(--dark-color);
}

/* Location Section */
.location-section {
    margin-bottom: 2rem;
}

.location-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.contact-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.agent-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
}

.agent-contact .agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-contact .agent-info {
    flex: 1;
}

.agent-contact .agent-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.agent-contact .agency-name {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.agent-contact .agent-phone {
    color: var(--primary-color);
    font-weight: 500;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 2rem;
}

.reviews-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.rating-overview {
    text-align: center;
}

.rating-overview .rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-overview .rating-stars {
    color: var(--warning-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-overview .total-reviews {
    color: var(--secondary-color);
}

/* Create Listing Form */
.create-listing-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.image-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.uploaded-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.uploaded-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.uploaded-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.uploaded-image .remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Property Card Hover Effects */
.property-card .position-absolute.bottom-0 {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.property-card:hover .position-absolute.bottom-0 {
    opacity: 1;
}

.property-card .position-absolute.top-0 {
    z-index: 10;
}

.property-card .position-absolute.bottom-0 {
    z-index: 10;
}

.property-card {
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .listings-header {
        padding: 2rem 0;
    }
    
    .listings-header h1 {
        font-size: 2rem;
    }
    
    .search-filters {
        position: static;
        margin-bottom: 1rem;
    }
    
    .listings-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .listing-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-contact {
        flex-direction: column;
        text-align: center;
    }
    
    .review-summary {
        flex-direction: column;
        text-align: center;
    }
}
