/* Filter Section */
.filter-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    position: sticky;
    top: 16px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #1b3f63;
    box-shadow: 0 0 0 3px rgba(0,118,209,0.1);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.apply-filter {
    background: #1b3f63;
    color: white;
}

.apply-filter:hover {
    background: #005bb5;
}

.clear-filter {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.clear-filter:hover {
    background: #e8e8e8;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.results-count {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.sort-by select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Property Listings */
.property-listings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* Individual Property Card */
.property-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Image Slider Section */
.property-image {
    position: relative;
    flex: 0 0 280px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photos {
    top: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.updated {
    bottom: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Property Details */
.property-details {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    color: #1b3f63;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.property-title:hover {
    color: #005bb5;
}

.location {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location .material-symbols-outlined {
    font-size: 16px;
    margin-right: 2px;
}

/* Info Blocks */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    gap: 1px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    background: #fafafa;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f0f8ff;
}

.info-item .material-symbols-outlined {
    font-size: 16px;
    margin-right: 5px;
    color: #1b3f63;
}

/* Location Details */
.location-details {
    padding: 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 10px;
    border: 1px solid #e0e8ff;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-details .material-symbols-outlined {
    font-size: 16px;
    color: #1b3f63;
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7fd 100%);
    padding: 24px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid rgba(0,118,209,0.1);
}

.price {
    font-size: 26px;
    font-weight: 700;
    color: #1b3f63;
}

.price-details {
    font-size: 12px;
    color: #666;
    margin-top: -4px;
}

.other-charges {
    font-size: 12px;
    color: #1b3f63;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.other-charges:hover {
    color: #005bb5;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-owner {
    background: linear-gradient(135deg, #1b3f63 0%, #1b3f63 100%);
    color: #fff;
}

.contact-owner:hover {
    background: linear-gradient(135deg, #1b3f63 0%, #1b3f63 100%);
}

.check-availability {
    background: linear-gradient(135deg, #1b3f63 0%, #1b3f63 100%);
    color: #fff;
}

.check-availability:hover {
    background: linear-gradient(135deg, #1b3f63 0%, #1b3f63 100%);
}

.btn .material-symbols-outlined {
    font-size: 16px;
    margin-right: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
 
    .filter-section {
        margin-bottom: 12px;
        border-radius: 8px;
        position: static;
        padding: 0;
    }


    .filter-title {
        font-size: 16px;
        color: white;
    }

    .filter-toggle {
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .filter-toggle.rotated {
        transform: rotate(180deg);
    }

    .filter-content {
        padding: 0 10px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        opacity: 0;
    }

    .filter-content.expanded {
        padding: 10px;
        max-height: 500px;
        opacity: 1;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .filter-group label {
        font-size: 12px;
    }

    .filter-group select,
    .filter-group input {
        padding: 6px 8px;
        font-size: 12px;
        border-radius: 6px;
    }

    .filter-buttons {
        justify-content: center;
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .results-info {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        align-items: flex-start;
    }

    .results-count {
        font-size: 13px;
    }

    .sort-by {
        font-size: 12px;
    }

    .sort-by select {
        padding: 5px 6px;
        font-size: 12px;
    }

    .property-listings {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .property-card {
        flex-direction: column;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .property-image {
        height: 120px;
    }

    .photos {
        top: 6px;
    }

    .updated {
        bottom: 6px;
    }

    .heart-icon {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
    }

    .heart-icon .material-symbols-outlined {
        font-size: 14px;
    }

    .slider-dots {
        bottom: 20px;
        gap: 5px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .property-details {
        padding: 10px;
        gap: 6px;
    }

    .property-title {
        font-size: 15px;
    }

    .location {
        font-size: 12px;
    }

    .location .material-symbols-outlined {
        font-size: 13px;
    }

    .info-blocks {
        display: none;
    }

    .location-details {
        display: none;
    }

    .price-section {
        padding: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border-left: none;
        border-top: 1px solid rgba(0,118,209,0.1);
    }

    .price-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .price {
        font-size: 18px;
    }

    .price-details {
        display: none;
    }

    .other-charges {
        display: none;
    }

    .button-group {
        display: flex;
        flex-direction: row;
        gap: 6px;
    }


    .btn .material-symbols-outlined {
        font-size: 12px;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
  

    .filter-section {
        margin-bottom: 10px;
    }

    .filter-header {
        padding: 8px;
    }

    .filter-content.expanded {
        padding: 8px;
    }

    .filter-grid {
        gap: 6px;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .results-info {
        margin-bottom: 10px;
        gap: 6px;
    }

    .property-listings {
        gap: 6px;
    }

    .property-image {
        height: 110px;
    }

    .slider-dots {
        bottom: 15px;
        gap: 4px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .property-details {
        padding: 8px;
        gap: 5px;
    }

    .property-title {
        font-size: 14px;
    }

    .location {
        font-size: 11px;
    }

    .location-details {
        display: none;
    }

    .price-section {
        padding: 8px;
        gap: 6px;
    }

    .price {
        font-size: 16px;
    }

    .button-group {
        gap: 4px;
    }

    .btn .material-symbols-outlined {
        font-size: 11px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.5s ease-out;
}

.property-card:nth-child(2) {
    animation-delay: 0.1s;
}

.property-card:nth-child(3) {
    animation-delay: 0.2s;
}

.property-card:nth-child(4) {
    animation-delay: 0.3s;
}