/**
 * WPRentals Recently Viewed Properties - Frontend Styles
 * Version: 1.0.0
 */

/* Container & Common Styles */
.wprv-container {
    margin: 30px 0;
    padding: 0;
}

.wprv-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Grid Layout */
.wprv-grid {
    display: grid;
    gap: 25px;
    margin: 0;
}

.wprv-grid.wprv-columns-2 { grid-template-columns: repeat(2, 1fr); }
.wprv-grid.wprv-columns-3 { grid-template-columns: repeat(3, 1fr); }
.wprv-grid.wprv-columns-4 { grid-template-columns: repeat(4, 1fr); }
.wprv-grid.wprv-columns-5 { grid-template-columns: repeat(5, 1fr); }
.wprv-grid.wprv-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Property Card */
.wprv-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.wprv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.wprv-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.wprv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wprv-card:hover .wprv-card-image img {
    transform: scale(1.1);
}

.wprv-card-image a {
    display: block;
    height: 100%;
}

.wprv-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3498db;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.wprv-card-content {
    padding: 20px;
}

.wprv-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.wprv-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wprv-card-title a:hover {
    color: #3498db;
}

.wprv-card-location {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.wprv-card-location i {
    margin-right: 5px;
    color: #e74c3c;
}

.wprv-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 15px;
}

.wprv-price-label {
    font-size: 13px;
    font-weight: 400;
    color: #7f8c8d;
    margin-left: 5px;
}

.wprv-card-features {
    /*display: flex;*/
    /*gap: 15px;*/
    /*padding-top: 15px;*/
    /*border-top: 1px solid #ecf0f1;*/

    padding: 8px 10px;
}

.wprv-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
}

/*.wprv-feature i {*/
/*    color: #3498db;*/
/*    font-size: 16px;*/
/*}*/

/* List Layout */
.wprv-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wprv-list-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: all 0.3s ease;
}

.wprv-list-item:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.wprv-list-image {
    flex: 0 0 250px;
    height: 180px;
    overflow: hidden;
}

.wprv-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wprv-list-item:hover .wprv-list-image img {
    transform: scale(1.1);
}

.wprv-list-content {
    flex: 1;
    padding: 20px;
}

.wprv-list-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.wprv-list-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wprv-list-title a:hover {
    color: #3498db;
}

.wprv-list-location {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.wprv-list-location i {
    margin-right: 5px;
    color: #e74c3c;
}

.wprv-list-features {
    display: flex;
    gap: 20px;
}

.wprv-list-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.wprv-list-features i {
    color: #3498db;
}

.wprv-list-price {
    flex: 0 0 150px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
    border-left: 1px solid #ecf0f1;
}

/* Slider Layout */
.wprv-slider {
    margin: 0 -10px;
}

.wprv-slide {
    padding: 0 10px;
}

.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    background: #3498db !important;
    border-radius: 50%;
    z-index: 100;
}

.slick-prev:hover,
.slick-next:hover {
    background: #2980b9 !important;
}

.slick-prev {
    left: -50px;
}

.slick-next {
    right: -50px;
}

.slick-prev:before,
.slick-next:before {
    font-size: 24px;
    opacity: 1;
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: #3498db;
}

.slick-dots li.slick-active button:before {
    color: #2980b9;
}

/* Empty State */
.wprv-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wprv-empty-state i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.wprv-empty-state p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Loading State */
.wprv-loading {
    text-align: center;
    padding: 40px;
}

.wprv-loading:after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: wprv-spin 1s linear infinite;
}

@keyframes wprv-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wprv-grid.wprv-columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .wprv-grid.wprv-columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .wprv-grid.wprv-columns-4,
    .wprv-grid.wprv-columns-5,
    .wprv-grid.wprv-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .slick-prev {
        left: 0;
    }

    .slick-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .wprv-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .wprv-card-image {
        height: 180px;
    }

    .wprv-list-item {
        flex-direction: column;
    }

    .wprv-list-image {
        flex: 0 0 auto;
        height: 200px;
        width: 100%;
    }

    .wprv-list-price {
        flex: 0 0 auto;
        border-left: none;
        border-top: 1px solid #ecf0f1;
        justify-content: flex-start;
    }

    .wprv-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .wprv-grid {
        grid-template-columns: 1fr !important;
    }

    .wprv-card-features {
        flex-wrap: wrap;
    }

    .wprv-container {
        margin: 20px 0;
    }
}

/* RTL Support */
[dir="rtl"] .wprv-card-location i,
[dir="rtl"] .wprv-list-location i {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .wprv-price-label {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .wprv-status-badge {
    left: auto;
    right: 15px;
}

[dir="rtl"] .slick-prev {
    left: auto;
    right: -50px;
}

[dir="rtl"] .slick-next {
    right: auto;
    left: -50px;
}

@media (max-width: 992px) {
    [dir="rtl"] .slick-prev {
        right: 0;
    }

    [dir="rtl"] .slick-next {
        left: 0;
    }
}

/* Print Styles */
@media print {
    .wprv-slider .slick-prev,
    .wprv-slider .slick-next {
        display: none !important;
    }

    .wprv-card,
    .wprv-list-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}



