/* =====================================================
   LISTING FORMS CSS
   Styles for property listing forms and related pages
   ===================================================== */

/* Progress Tracker Styles */
.progress-tracker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.progress-steps {
    display: flex;
    align-items: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.step-label {
    margin-left: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem;
}

.progress-step.active .step-number {
    background: #1B2B4B;
    color: white;
}

.progress-step.active .step-label {
    color: #1B2B4B;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #2ecc71;
    color: white;
}

.progress-step.completed .progress-line {
    background: #2ecc71;
}

/* Filter Section Styles */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1B2B4B;
    box-shadow: 0 0 0 3px rgba(27,43,75,0.1);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #505c6e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: #e9ecef;
    border-color: #cbd3da;
}

.filter-tag.active {
    background: #1B2B4B;
    color: white;
    border-color: #1B2B4B;
}

/* Category Cards Styles */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
    animation: cardAppear 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27,43,75,0.05) 0%, rgba(27,43,75,0) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(27,43,75,0.15);
}

.category-card:hover::before {
    opacity: 0;
}

.category-icon {
    font-size: 3rem;
    color: #1B2B4B;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: #4a90e2;
}

.category-title {
    font-size: 1.5rem;
    color: #1B2B4B;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.category-description {
    color: #505c6e;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.category-features {
    list-style: none;
    text-align: left;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.feature-item {
    color: #505c6e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: #4a90e2;
    font-size: 0.8rem;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #4a90e2;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.select-category-btn {
    background: #1B2B4B;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.select-category-btn:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

/* Tooltip Styles */
.tooltip-trigger {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1rem;
    background: #2c3e50;
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    width: max-content;
    max-width: 250px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tooltip-trigger:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1B2B4B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Layout Helpers */
.main-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    padding-left: 120px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    color: #1B2B4B;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-description {
    color: #505c6e;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Elements (for future listing forms) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1B2B4B;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1B2B4B;
    box-shadow: 0 0 0 3px rgba(27,43,75,0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #1B2B4B;
    box-shadow: 0 0 0 3px rgba(27,43,75,0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .main-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .progress-tracker {
        padding: 0.8rem;
    }

    .step-label {
        display: none;
    }

    .filter-section {
        padding: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .filter-tags {
        justify-content: center;
    }

    .category-card {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
        margin: 20px auto;
    }

    .categories-grid {
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }
}