/* Quick Flip Properties - Frontend Styles */

/* Property Cards */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.property-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-badge {
    display: inline-block;
    background: #c5a572;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.property-price {
    font-size: 28px;
    font-weight: 700;
    color: #c5a572;
    margin-bottom: 10px;
}

.property-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.property-title a:hover {
    color: #c5a572;
}

.property-location {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.property-meta {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Search Form */
.qf-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.qf-search-form.qf-search-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.qf-search-form.qf-search-vertical .qf-search-field {
    margin-bottom: 20px;
}

.qf-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}

.qf-search-field input,
.qf-search-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.qf-search-field input:focus,
.qf-search-field select:focus {
    outline: none;
    border-color: #c5a572;
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.1);
}

.qf-search-btn {
    padding: 12px 30px;
    background: #c5a572;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.qf-search-btn:hover {
    background: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Property Single Page */
.property-single {
    max-width: 1200px;
    margin: 0 auto;
}

.property-meta-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.property-meta-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.property-meta-box .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.property-meta-box .value {
    font-weight: 600;
    color: #1a1a2e;
}

/* Inquiry Form */
.inquiry-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.inquiry-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 14px;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
    outline: none;
    border-color: #c5a572;
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.1);
}

.inquiry-form button {
    width: 100%;
    padding: 14px;
    background: #c5a572;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
}

.inquiry-form button:hover {
    background: #1a1a2e;
}

.inquiry-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Property Features */
.property-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.property-features li {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a2e;
}

.comparison-table img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* Saved Properties */
.save-property-btn {
    background: transparent;
    border: 2px solid #c5a572;
    color: #c5a572;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.save-property-btn:hover,
.save-property-btn.saved {
    background: #c5a572;
    color: white;
}

/* Comparison Bar */
#comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    display: none;
}

#comparison-bar.active {
    display: block;
}

#comparison-bar button {
    background: #c5a572;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    margin-left: 15px;
    cursor: pointer;
    font-weight: 600;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: 300;
}

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

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #c5a572;
    color: white;
    border-color: #c5a572;
}

.pagination .current {
    background: #c5a572;
    color: white;
    border-color: #c5a572;
}

/* Loading State */
.qf-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.qf-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #c5a572;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.qf-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #dc3545;
}

.qf-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .qf-search-form.qf-search-horizontal {
        grid-template-columns: 1fr;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr !important;
    }
    
    .inquiry-form {
        position: static;
    }
    
    .property-meta {
        flex-wrap: wrap;
    }
}
