/* Property Dashboard Styles */
.property-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.property-filters {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.property-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.property-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
}

.property-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007cba;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.property-content {
    padding: 20px;
}

.property-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.property-content h3 a {
    color: inherit;
    text-decoration: none;
}

.property-content h3 a:hover {
    color: #007cba;
}

.property-price {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    margin: 10px 0;
}

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

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.detail-item {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.property-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 15px 0;
}

.view-details-btn {
    display: inline-block;
    width: 100%;
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: #005a87;
    color: white;
}

/* Single Property Page Styles */
.property-single-details {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.property-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumb {
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.gallery-thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.property-info-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.property-price-large {
    font-size: 36px;
    font-weight: bold;
    color: #007cba;
}

.property-type-large {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    padding: 10px 0;
}

.spec-item strong {
    color: #333;
}

.property-contact-section {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.contact-message h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.contact-message p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.book-appointment-btn-single {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
    min-width: 200px;
}

.book-appointment-btn-single:hover {
    background: #218838;
}

.contact-email {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-email a {
    color: #007cba;
    text-decoration: none;
    font-weight: bold;
}

.contact-email a:hover {
    text-decoration: underline;
}

.status-message {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.status-message.pending {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.status-message.sold {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.status-message h3 {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .property-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        margin: 5px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .property-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .property-price-large {
        font-size: 28px;
    }
    
    .property-specs {
        grid-template-columns: 1fr;
    }
    
    .gallery-main img {
        height: 250px;
    }
    
    .contact-options {
        gap: 15px;
    }
    
    .book-appointment-btn-single {
        width: 100%;
        max-width: 300px;
    }
}

/* Admin Styles */
.property-dashboard .form-table th {
    width: 150px;
}

.property-dashboard .form-table input[type="text"],
.property-dashboard .form-table input[type="number"],
.property-dashboard .form-table select {
    width: 100%;
    max-width: 300px;
}