/* Lister Dashboard Styles */

/* Dashboard Container */
.lister-dashboard-container {
    max-width: 1400px;
    margin: 100px auto 50px;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-section h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.welcome-section p {
    color: #666;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.primary { background: linear-gradient(135deg, var(--primary-color), #1a6b47); }
.stat-icon.success { background: linear-gradient(135deg, #27ae60, #1e8449); }
.stat-icon.warning { background: linear-gradient(135deg, #f39c12, #d68910); }
.stat-icon.info { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-icon.accent { background: linear-gradient(135deg, var(--accent-color), #c0392b); }

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--dark-color);
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Listings Section */
.listings-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: var(--dark-color);
    margin: 0;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    background: #f1f1f1;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s;
}

.filter-tab:hover {
    background: #e0e0e0;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

/* Properties Grid */
.my-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Property Card for Dashboard */
.property-card-dashboard {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

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

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

.property-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-status-badge.active {
    background: #27ae60;
    color: white;
}

.property-status-badge.pending {
    background: #f39c12;
    color: white;
}

.property-status-badge.sold {
    background: #e74c3c;
    color: white;
}

.property-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
}

.property-card-dashboard .property-details {
    padding: 1.25rem;
}

.property-card-dashboard .property-title {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-dashboard .property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-card-dashboard .property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-card-dashboard .property-meta {
    display: flex;
    gap: 1rem;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-card-dashboard .property-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.property-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
}

.property-actions button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.3s;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

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

.btn-view:hover {
    background: #1a6b47;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Add Property Modal */
.add-property-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.add-property-content {
    padding: 0;
}

.add-property-content .modal-header {
    background: linear-gradient(135deg, var(--primary-color), #1a6b47);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.add-property-content .modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.add-property-content .modal-header .close {
    color: white;
    font-size: 1.5rem;
    position: static;
}

/* Progress Steps */
.property-progress {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 80px;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
    background: var(--primary-color);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}

.progress-step.completed .step-number {
    background: var(--primary-color);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
}

.progress-step span {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.progress-step.active span,
.progress-step.completed span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Property Form Steps */
.property-step {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.property-step.active {
    display: block;
}

.property-step h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Listing Type Options */
.listing-type-options,
.property-category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.listing-type-option,
.category-option {
    cursor: pointer;
}

.listing-type-option input,
.category-option input {
    display: none;
}

.listing-type-option .option-content,
.category-option .option-content {
    padding: 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.listing-type-option .option-content i,
.category-option .option-content i {
    font-size: 2rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

.listing-type-option .option-content span,
.category-option .option-content span {
    font-weight: 500;
    color: #555;
}

.listing-type-option input:checked + .option-content,
.category-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
}

.listing-type-option input:checked + .option-content i,
.category-option input:checked + .option-content i {
    color: var(--primary-color);
}

.listing-type-option input:checked + .option-content span,
.category-option input:checked + .option-content span {
    color: var(--primary-color);
}

.listing-type-option:hover .option-content,
.category-option:hover .option-content {
    border-color: var(--primary-color);
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.char-count {
    text-align: right;
    color: #888;
}

/* Pincode Info */
.pincode-info {
    color: var(--primary-color);
    font-weight: 500;
}

.pincode-info.error {
    color: #e74c3c;
}

/* Map Container */
.map-container {
    margin-top: 1rem;
}

.map-placeholder {
    height: 200px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
}

.map-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ccc;
}

/* Photo Upload */
.photo-upload-area {
    margin-bottom: 2rem;
}

.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
}

.upload-zone i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.upload-zone h4 {
    color: #555;
    margin-bottom: 0.5rem;
}

.upload-zone p {
    color: #888;
    margin-bottom: 0.5rem;
}

.upload-zone small {
    color: #aaa;
}

.uploaded-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.uploaded-photo {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.uploaded-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uploaded-photo .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.uploaded-photo:hover .remove-photo {
    opacity: 1;
}

.uploaded-photo .cover-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.photo-tips {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.photo-tips h5 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-tips h5 i {
    color: #f39c12;
}

.photo-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photo-tips li {
    color: #666;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.photo-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* URL Upload Section */
.url-upload-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.url-upload-section h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.url-note {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.image-url-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.image-url-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.image-url-row input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-add-url {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-remove-url {
    padding: 0.75rem 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Amenities Section */
.amenities-section {
    margin-bottom: 2rem;
}

.amenities-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.amenities-section h4 i {
    color: var(--primary-color);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.amenity-checkbox {
    cursor: pointer;
}

.amenity-checkbox input {
    display: none;
}

.amenity-checkbox span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #555;
}

.amenity-checkbox span i {
    color: #888;
    width: 20px;
    text-align: center;
}

.amenity-checkbox input:checked + span {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
    color: var(--primary-color);
}

.amenity-checkbox input:checked + span i {
    color: var(--primary-color);
}

.amenity-checkbox:hover span {
    border-color: var(--primary-color);
}

/* Contact Preferences */
.contact-preference-section {
    max-width: 600px;
}

.contact-visibility-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.visibility-option {
    cursor: pointer;
}

.visibility-option input {
    display: none;
}

.visibility-option .option-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
}

.visibility-option .option-content i {
    font-size: 1.5rem;
    color: #888;
    margin-top: 0.25rem;
}

.visibility-option .option-content div {
    flex: 1;
}

.visibility-option .option-content strong {
    display: block;
    color: #333;
    margin-bottom: 0.25rem;
}

.visibility-option .option-content small {
    color: #888;
    font-size: 0.85rem;
}

.visibility-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
}

.visibility-option input:checked + .option-content i {
    color: var(--primary-color);
}

.visibility-option:hover .option-content {
    border-color: var(--primary-color);
}

.visibility-option.premium .option-content {
    border-style: dashed;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.payment-settings {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.contact-time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.time-checkbox {
    cursor: pointer;
}

.time-checkbox input {
    display: none;
}

.time-checkbox span {
    display: block;
    padding: 0.6rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s;
}

.time-checkbox input:checked + span {
    border-color: var(--primary-color);
    background: rgba(46, 125, 50, 0.05);
    color: var(--primary-color);
}

.time-checkbox:hover span {
    border-color: var(--primary-color);
}

.terms-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.terms-section .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.terms-section .checkbox-label input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.terms-section .checkbox-label span {
    color: #555;
    font-size: 0.95rem;
}

.terms-section .checkbox-label a {
    color: var(--primary-color);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
}

.form-navigation .btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #219a52, #1e8449);
}

/* Confirm Modal */
.confirm-modal .modal-content {
    max-width: 400px;
    text-align: center;
    padding: 2rem;
}

.confirm-content i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.confirm-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.confirm-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .lister-dashboard-container {
        padding: 1rem;
        margin-top: 80px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .my-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-progress {
        padding: 1rem;
    }
    
    .progress-step span {
        display: none;
    }
    
    .property-step {
        padding: 1.5rem;
    }
    
    .listing-type-options,
    .property-category-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-navigation {
        padding: 1rem;
    }
    
    .form-navigation .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-type-options {
        grid-template-columns: 1fr;
    }
    
    .property-category-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
