/* Property Dashboard Styles */
.property-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.dashboard-header h2 {
    margin: 0;
    color: #333;
}

.btn-add-property {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-property:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.tab-link {
    padding: 15px 25px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-link:hover {
    color: #007cba;
    background: #fff;
}

.tab-link.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background: #fff;
    font-weight: 600;
}

.count {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
}

.tab-link.active .count {
    background: #007cba;
}

/* Property List */
.tab-content {
    padding: 20px;
}

.property-list {
    display: grid;
    gap: 20px;
}

.property-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.property-card:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.property-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.property-status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-publish { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-draft { background: #e2e3e5; color: #383d41; }
.status-expired { background: #f8d7da; color: #721c24; }
.status-rejected { background: #f5c6cb; color: #721c24; }

.property-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-title {
    margin: 0;
    font-size: 18px;
}

.property-title a {
    color: #333;
    text-decoration: none;
}

.property-title a:hover {
    color: #007cba;
}

.property-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 16px;
}

.meta-area, .meta-views, .meta-contacts {
    color: #666;
    font-size: 14px;
}

.property-address {
    color: #666;
    font-size: 14px;
}

.property-date {
    color: #999;
    font-size: 12px;
}

/* Property Actions */
.property-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.btn-action {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.btn-view { border-color: #007cba; color: #007cba; }
.btn-edit { border-color: #28a745; color: #28a745; }
.btn-hide { border-color: #ffc107; color: #856404; }
.btn-show { border-color: #28a745; color: #28a745; }
.btn-delete { border-color: #dc3545; color: #dc3545; }
.btn-resubmit { border-color: #17a2b8; color: #17a2b8; }

/* No Properties */
.no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-properties p {
    margin: 0;
    font-size: 16px;
}

/* Pagination */
.dashboard-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.dashboard-pagination .page-numbers {
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.dashboard-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.dashboard-pagination .page-numbers:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .property-card {
        grid-template-columns: 1fr;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-image img,
    .no-image {
        height: 200px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .property-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}