/* ============================================
   AGENT PROPERTIES
   My Properties Page, Properties Table, Filters,
   Add/Edit Property Form, Form Progress, Features,
   Upload, Form Actions, Bulk Upload Page
   ============================================ */

/* ============================================
   MY PROPERTIES PAGE
   ============================================ */
.my-properties-page {
}

.page-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.page-title p {
    color: var(--text-gray);
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

.page-actions .btn-secondary,
.page-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.page-actions .btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.page-actions .btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-actions .btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
}

.page-actions .btn-primary:hover {
    background: var(--primary-400);
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.stat-box .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-box .stat-text {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Filters Section */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    min-width: 280px;
}

.search-box svg {
    color: var(--text-gray);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9375rem;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
}

.filter-group select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.875rem;
    min-width: 140px;
}

/* Properties Table */
.properties-table-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.properties-table {
    width: 100%;
    border-collapse: collapse;
}

.properties-table th,
.properties-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.properties-table th {
    background: var(--bg-light);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
}

.properties-table tbody tr {
    transition: background 0.2s;
}

.properties-table tbody tr:hover {
    background: var(--bg-light);
}

.properties-table tbody tr.selected {
    background: rgba(8, 49, 105, 0.05);
}

.property-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.property-cell img {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.property-details .property-address {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
}

.property-details .property-address:hover {
    color: var(--primary-blue);
}

.property-details .property-type {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.price-cell {
    font-weight: 600;
    color: var(--text-dark);
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-table-action {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-table-action:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--primary-blue);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 50;
    overflow: hidden;
}

.dropdown-menu button {
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-menu button:hover {
    background: var(--bg-light);
}

.dropdown-menu button.danger {
    color: #dc2626;
}

.dropdown-menu button.danger:hover {
    background: #fef2f2;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 100;
}

.bulk-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-bulk {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-bulk:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-bulk.danger {
    background: #dc2626;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ============================================
   ADD/EDIT PROPERTY PAGE
   ============================================ */
.add-property-page {
    max-width: 100%;
    width: 100%;
}

.add-property-page .page-header-section {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
    font-weight: 500;
}

.back-link:hover {
    color: white;
    transform: translateX(-4px);
}

.back-link svg {
    transition: transform 0.2s;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

.add-property-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Progress Steps */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    position: relative;
}

.step-number {
    width: 38px;
    height: 38px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-gray);
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.progress-step.active .step-number {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
    text-align: center;
}

.progress-step.active .step-label {
    color: #667eea;
}

.progress-step.completed .step-label {
    color: #10b981;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color) 0%, var(--border-color) 100%);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.progress-line.completed {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Property Form */
.property-form {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.property-form:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.form-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.section-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.625rem 0.875rem;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-prefix .prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.input-with-prefix input {
    padding-left: 2rem;
    width: 100%;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: right;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.feature-checkbox:hover {
    border-color: var(--primary-blue);
}

.feature-checkbox:has(input:checked) {
    background: rgba(8, 49, 105, 0.05);
    border-color: var(--primary-blue);
}

.feature-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

.feature-checkbox span {
    font-size: 0.875rem;
}

.feature-checkbox .feature-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Details Subsections */
.details-subsection {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.details-subsection:last-child {
    margin-bottom: 0;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.subsection-header svg {
    color: #667eea;
    flex-shrink: 0;
}

.subsection-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.details-subsection .form-grid {
    gap: 0.875rem;
}

.details-subsection .form-group label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.details-subsection .form-group label svg {
    color: #667eea;
    flex-shrink: 0;
}

/* Map Picker */
.map-picker {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 1rem;
    background: var(--bg-light);
}

.map-picker-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.map-picker-hint svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.map-picker-hint .coords-display {
    margin-left: auto;
    font-family: monospace;
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
    background: #ecfdf5;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.map-placeholder {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-gray);
    cursor: pointer;
}

.map-placeholder:hover {
    background: #e8ecf1;
}

.map-placeholder svg {
    color: var(--text-light);
}

.map-placeholder p {
    font-size: 0.875rem;
}

/* Upload Sections */
.upload-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.upload-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.upload-zone {
    border: 3px dashed rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.02), rgba(118, 75, 162, 0.02));
}

.upload-zone:hover {
    border-color: #667eea;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.upload-zone.small {
    padding: 2rem 1.5rem;
}

.upload-zone svg {
    color: #667eea;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-zone p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.btn-upload {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-upload input {
    display: none;
}

.upload-hint {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Uploaded Photos */
.uploaded-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.photo-thumb {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
}

.photo-thumb.primary {
    border-color: var(--primary-gold);
}

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

.photo-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-thumb:hover .photo-actions {
    opacity: 1;
}

.photo-actions button {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.photo-actions button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.primary-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-gold);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.5), rgba(241, 245, 249, 0.8));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-actions .btn-secondary,
.form-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-actions .btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.form-actions .btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.form-actions .btn-primary:active {
    transform: translateY(0);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive for profile and watchlist */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uploaded-photos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar-section {
        flex-direction: column;
        align-items: center;
    }

    .profile-languages {
        justify-content: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-sidebar {
        grid-template-columns: 1fr;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        flex-direction: column;
    }

    .page-header-section {
        flex-direction: column;
        gap: 1rem;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn-secondary,
    .page-actions .btn-primary {
        flex: 1;
        justify-content: center;
    }

    .stats-overview {
        grid-template-columns: 1fr 1fr;
    }

    .filters-section {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-group select {
        flex: 1;
        min-width: 0;
    }

    .properties-table-container {
        overflow-x: auto;
    }

    .form-progress {
        transform: scale(0.85);
    }

    .progress-line {
        width: 40px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uploaded-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   BULK UPLOAD PAGE
   ============================================ */
.bulk-upload-page {
    padding: 2rem;
}

.bulk-upload-page .page-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.bulk-upload-page .page-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bulk-upload-page .page-title p {
    color: var(--text-gray);
}

/* Upload Steps */
.upload-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.step.active {
    background: var(--primary-blue);
    color: white;
}

.step.completed {
    background: #059669;
    color: white;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step.active .step-number,
.step.completed .step-number {
    background: rgba(255, 255, 255, 0.2);
}

.step-text {
    font-weight: 500;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border-gray);
}

/* Upload Methods */
.upload-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.method-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.method-card.selected {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.method-card svg {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.method-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-card p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* CSV Upload Area */
.csv-upload-area {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.template-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.template-download p {
    color: var(--text-gray);
}

.drop-zone {
    position: relative;
    border: 2px dashed var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.02);
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-content {
    pointer-events: none;
}

.drop-content.dragging {
    opacity: 0.5;
}

.drop-content svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.drop-content p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.file-hint {
    font-size: 0.75rem;
    color: var(--text-light);
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.selected-file svg {
    color: var(--primary-blue);
}

.selected-file span {
    flex: 1;
    font-weight: 500;
}

.btn-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* Manual Entry Area */
.manual-entry-area {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.property-entry-form h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.form-grid .form-group.span-2 {
    grid-column: span 2;
}

.form-grid .form-group.span-3 {
    grid-column: span 3;
}

.form-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gray);
}

.added-properties {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.added-properties h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.property-item .property-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.property-item .property-info span {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

/* Review Section */
.review-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.review-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.summary-item .count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-item .label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.summary-item.valid .count {
    color: #059669;
}

.summary-item.error .count {
    color: #dc2626;
}

.review-table-container {
    overflow-x: auto;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
}

.review-table th,
.review-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.review-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.875rem;
}

.review-table tr.has-error {
    background: #fef2f2;
}

.review-table .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.review-table .status-badge.valid {
    background: #d1fae5;
    color: #059669;
}

.review-table .status-badge.error {
    background: #fee2e2;
    color: #dc2626;
}

.btn-table-action.danger {
    color: #dc2626;
}

/* Complete Section */
.complete-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
}

.complete-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.complete-icon.success {
    background: #d1fae5;
    color: #059669;
}

.complete-icon.partial {
    background: #fef3c7;
    color: #d97706;
}

.complete-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.complete-section > p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.error-summary {
    text-align: left;
    padding: 1.5rem;
    background: #fef2f2;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.error-summary h4 {
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.error-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-summary li {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.complete-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-methods {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid .form-group.span-2,
    .form-grid .form-group.span-3 {
        grid-column: span 2;
    }

    .upload-steps {
        flex-direction: column;
    }

    .step-line {
        width: 2px;
        height: 30px;
    }
}
