/* LMP Explore Page Styles - Segregated from Landing Page */

.explore-page {
    padding: 2rem;
    min-height: calc(100vh - 200px);
    background: #f9fafb;
}

.explore-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Ensure explore grid displays properly */
.explore-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
}

/* Ensure ad cards display properly */
.explore-grid .explore-ad-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.explore-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.explore-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.explore-header-text {
    flex: 0 0 auto;
    min-width: 200px;
}

.explore-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.explore-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.explore-header-content .search-section {
    flex: 1;
    min-width: 400px;
    max-width: 700px;
    margin: 0;
    padding: 0;
}

.explore-add-listing-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.explore-add-listing-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
    color: white;
}

.explore-add-listing-btn:active {
    transform: translateY(0);
}

.explore-add-listing-btn i {
    font-size: 1.125rem;
}

/* Search section when inside header */
.explore-header-content .search-section {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

/* Standalone search section (if used elsewhere) */
.search-section {
    margin-bottom: 2rem;
    margin-left: calc(-2rem);
    margin-right: calc(-2rem);
    padding: 0 2rem;
}

.search-bar-container {
    width: 100%;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #3b82f6;
    transition: all 0.2s;
}

.search-bar-container:focus-within {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border-color: #2563eb;
}

.search-icon {
    font-size: 1.25rem;
    color: #6b7280;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    color: #1a1a1a;
    background: transparent;
    font-weight: 400;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.btn-clear-search {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin: 0;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 10;
}

.btn-clear-search:hover {
    color: #1a1a1a;
    background: #f3f4f6;
}

.btn-clear-search:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.btn-clear-search i {
    font-size: 1.125rem;
    line-height: 1;
    font-weight: 600;
}

#btnSearch {
    flex-shrink: 0;
    padding: 0.625rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

#btnSearch:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

#btnSearch:active {
    transform: translateY(0);
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* Empty State Styles for Explore Page */
.explore-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
    margin: 2rem 0;
}

.explore-empty-state .empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.explore-empty-state .empty-state-icon i {
    font-size: 4rem;
    color: white;
}

.explore-empty-state .empty-state-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.explore-empty-state .empty-state-description {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.explore-empty-state .empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.explore-empty-state .empty-state-actions .btn-modern {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    min-width: 200px;
}

.explore-empty-state .empty-state-actions .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.explore-empty-state .empty-state-actions .btn-outline-secondary {
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
}

.explore-empty-state .empty-state-actions .btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1a1a1a;
}

/* Mobile Responsive for Empty State */
@media (max-width: 768px) {
    .explore-empty-state {
        padding: 3rem 1.5rem;
        margin: 1.5rem 0;
        border-radius: 16px;
    }

    .explore-empty-state .empty-state-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .explore-empty-state .empty-state-icon i {
        font-size: 3rem;
    }

    .explore-empty-state .empty-state-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .explore-empty-state .empty-state-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .explore-empty-state .empty-state-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .explore-empty-state .empty-state-actions .btn-modern {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .explore-page {
        padding: 1rem;
    }

    .explore-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .explore-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .explore-header-text {
        min-width: 100%;
        text-align: center;
    }

    .explore-title {
        font-size: 1.375rem;
    }

    .explore-subtitle {
        font-size: 0.8125rem;
    }

    .explore-header-content .search-section {
        min-width: 100%;
        max-width: 100%;
        order: 2;
    }

    .explore-add-listing-btn {
        width: 100%;
        justify-content: center;
        order: 3;
        padding: 0.875rem 1.5rem;
    }

    .explore-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1.5rem !important;
        margin-top: 1.5rem !important;
    }

    .search-section {
        margin-left: calc(-1rem);
        margin-right: calc(-1rem);
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .explore-page {
        padding: 0.75rem;
    }

    .explore-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .explore-empty-state {
        padding: 2rem 1rem;
    }

    .explore-empty-state .empty-state-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .explore-empty-state .empty-state-icon i {
        font-size: 2.5rem;
    }

    .explore-empty-state .empty-state-title {
        font-size: 1.25rem;
    }

    .explore-empty-state .empty-state-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

