/* 
 * Prime Estate Pro - Frontend Styles
 */

:root {
    --pep-primary: #1a237e;
    --pep-secondary: #ff5722;
    --pep-text: #333333;
    --pep-text-light: #666666;
    --pep-bg: #f8f9fa;
    --pep-white: #ffffff;
    --pep-border: #eeeeee;
    --pep-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --pep-radius: 12px;
}

.pep-property-listing {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.pep-property-card {
    display: flex;
    background: var(--pep-white);
    border-radius: var(--pep-radius);
    box-shadow: var(--pep-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--pep-border);
}

.pep-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pep-card-image {
    position: relative;
    width: 350px;
    min-width: 350px;
    height: 250px;
}

.pep-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pep-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--pep-primary);
    color: var(--pep-white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pep-card-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pep-card-header h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}

.pep-card-header h3 a {
    color: var(--pep-text);
    text-decoration: none;
}

.pep-card-location {
    color: var(--pep-text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.pep-card-location i {
    margin-right: 5px;
    color: var(--pep-primary);
}

.pep-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--pep-primary);
    margin-bottom: 15px;
}

.pep-card-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.pep-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pep-text-light);
    font-size: 14px;
}

.pep-feature i {
    color: var(--pep-primary);
}

.pep-card-actions {
    display: flex;
    gap: 15px;
}

.pep-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pep-btn-call {
    background: var(--pep-primary);
    color: var(--pep-white);
}

.pep-btn-whatsapp {
    background: #25d366;
    color: var(--pep-white);
}

.pep-btn-call:hover, .pep-btn-whatsapp:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Search Form Styles */
.pep-search-form {
    background: var(--pep-white);
    padding: 30px;
    border-radius: var(--pep-radius);
    box-shadow: var(--pep-shadow);
    margin-bottom: 40px;
}

.pep-search-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.pep-search-field {
    display: flex;
    flex-direction: column;
}

.pep-search-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pep-text-light);
}

.pep-search-field select, .pep-search-field input {
    padding: 10px 15px;
    border: 1px solid var(--pep-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fdfdfd;
}

.pep-search-submit {
    grid-column: span 2;
    justify-content: flex-end;
}

.pep-btn-search {
    background: var(--pep-primary);
    color: var(--pep-white);
    padding: 12px 30px;
    width: 100%;
    justify-content: center;
}

/* Single Property Styles */
.pep-single-property-wrapper {
    background: #fafafa;
    padding-bottom: 60px;
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pep-property-header {
    background: var(--pep-white);
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--pep-border);
}

.pep-property-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--pep-primary);
}

.pep-property-meta-top {
    display: flex;
    gap: 30px;
    color: var(--pep-text-light);
}

.pep-meta-item i {
    color: var(--pep-primary);
    margin-right: 8px;
}

.pep-property-main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.pep-main-image {
    width: 100%;
    height: 500px;
    border-radius: var(--pep-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--pep-shadow);
}

.pep-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pep-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.pep-gallery-item {
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pep-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pep-gallery-item:hover img {
    transform: scale(1.1);
}

.pep-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pep-primary);
    display: inline-block;
}

.pep-amenities-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pep-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.pep-amenity-item i {
    color: #25d366;
}

.pep-nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pep-nearby-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--pep-white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pep-nearby-item i {
    font-size: 20px;
    color: var(--pep-primary);
    width: 30px;
}

.pep-nearby-info {
    display: flex;
    flex-direction: column;
}

.pep-nearby-label {
    font-size: 12px;
    color: var(--pep-text-light);
    font-weight: 600;
}

.pep-nearby-value {
    font-weight: 600;
    color: var(--pep-text);
}

.pep-property-sidebar-right {
    position: sticky;
    top: 40px;
    align-self: start;
}

.pep-sidebar-widget {
    background: var(--pep-white);
    padding: 30px;
    border-radius: var(--pep-radius);
    box-shadow: var(--pep-shadow);
}

.pep-quick-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--pep-primary);
    margin-bottom: 25px;
    text-align: center;
}

.pep-quick-meta {
    margin-bottom: 30px;
}

.pep-quick-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--pep-border);
}

.pep-quick-item:last-child {
    border-bottom: none;
}

.pep-q-label {
    color: var(--pep-text-light);
    font-weight: 500;
}

.pep-q-value {
    font-weight: 700;
    color: var(--pep-text);
}

.pep-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pep-btn-call-large, .pep-btn-whatsapp-large {
    justify-content: center;
    padding: 15px;
    font-size: 16px;
}

/* Pagination */
.pep-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pep-pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pep-white);
    color: var(--pep-text);
    text-decoration: none;
    border: 1px solid var(--pep-border);
    transition: all 0.3s ease;
}

.pep-pagination .page-numbers.current, .pep-pagination .page-numbers:hover {
    background: var(--pep-primary);
    color: var(--pep-white);
    border-color: var(--pep-primary);
}

/* Responsive */
@media (max-width: 991px) {
    .pep-property-main-grid {
        grid-template-columns: 1fr;
    }
    .pep-search-row {
        grid-template-columns: 1fr 1fr;
    }
    .pep-property-sidebar-right {
        position: static;
    }
}

@media (max-width: 767px) {
    .pep-property-card {
        flex-direction: column;
    }
    .pep-card-image {
        width: 100%;
        min-width: 100%;
    }
    .pep-search-row {
        grid-template-columns: 1fr;
    }
    .pep-search-submit {
        grid-column: span 1;
    }
    .pep-main-image {
        height: 300px;
    }
    .pep-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pep-amenities-list {
        grid-template-columns: 1fr;
    }
    .pep-nearby-grid {
        grid-template-columns: 1fr;
    }
}
