/* Airport Lounge Search Page Styles */
/* Inherits base styles from credit-card-style.css */

/* ========================================
   BREADCRUMB NAVIGATION
   ======================================== */
.breadcrumb {
    background: white;
    padding: 15px 30px;
    font-size: 0.9em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #f472b6;
    text-decoration: underline;
}

/* ========================================
   SEARCH FORM SECTION
   ======================================== */
.search-section {
    background: white;
    padding: 40px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.search-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-form-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.search-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.search-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95em;
}

.search-select {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-select:hover {
    border-color: #8b5cf6;
}

.search-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.search-btn,
.clear-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.clear-btn {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.clear-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */
.lounge-content {
    display: flex;
    gap: 30px;
    padding: 40px 60px;
    background: white;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* ========================================
   FILTER SIDEBAR (Desktop/Tablet)
   ======================================== */
.filter-sidebar {
    flex: 0 0 280px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 90px;
    border: 1px solid #e5e7eb;
    align-self: flex-start;
}

.filter-sidebar-header h3 {
    font-size: 1.3em;
    color: #1f2937;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 1em;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.filter-option:hover {
    background: white;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8b5cf6;
}

.filter-option label {
    cursor: pointer;
    flex: 1;
    font-size: 0.95em;
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-count-badge {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

/* ========================================
   FILTER MOBILE (Sticky Bar + Panel)
   ======================================== */
.filter-mobile-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.filter-mobile-bar.visible {
    transform: translateY(0) !important;
}

.filter-mobile-bar-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-toggle-btn-mobile {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 48px;
    box-sizing: border-box;
}

.sort-select-mobile {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #8b5cf6;
    border-radius: 8px;
    font-size: 1em;
    color: #1f2937;
    background: white;
    cursor: pointer;
    font-weight: 600;
    height: 48px;
    box-sizing: border-box;
}

.filter-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9em;
}

.filter-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    overflow-y: auto;
}

.filter-mobile-panel.active {
    display: flex;
    flex-direction: column;
}

.filter-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.filter-mobile-header h3 {
    font-size: 1.3em;
    color: #1f2937;
}

.filter-mobile-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-mobile-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.filter-mobile-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.filter-mobile-apply {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================
   RESULTS SECTION
   ======================================== */
.results-section {
    flex: 1;
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 1.2em;
    font-weight: 600;
    color: #1f2937;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-sort label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95em;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95em;
    color: #1f2937;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: #8b5cf6;
}

.sort-select:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #6b7280;
    font-size: 1.1em;
}

/* Results Container */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Result Card (3 Parts Layout) */
.result-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-card:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

/* Part 1: Card Image, Name, Welcome Offer */
.result-card-part1 {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.result-card-image-container {
    margin-bottom: 15px;
}

.result-card-image {
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.result-card-welcome-offer {
    font-size: 1.3em;
    color: #8b5cf6;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    padding: 13px 26px;
    border-radius: 10px;
    display: inline-block;
}

/* Part 2: Lounge Details (2 Columns) */
.result-card-part2 {
    padding: 30px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.lounge-details-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 25px;
    font-size: 0.95em;
}

.lounge-detail-label {
    font-weight: 600;
    color: #374151;
}

.lounge-detail-value {
    color: #1f2937;
}

.lounge-detail-value.highlight {
    color: #8b5cf6;
    font-weight: 600;
}

/* Part 3: Qualification, Apply Button, See More */
.result-card-part3 {
    padding: 30px;
    background: #f9fafb;
}

.result-card-qualification {
    margin-bottom: 20px;
}

.qualification-label-small {
    font-size: 0.85em;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.qualification-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
}

.result-card-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.apply-now-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.apply-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.result-card-disclaimer {
    font-size: 0.85em;
    color: #6b7280;
    text-align: center;
    margin-bottom: 10px;
}

.see-more-btn {
    padding: 10px 20px;
    background: white;
    color: #8b5cf6;
    border: 2px solid #8b5cf6;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background: #8b5cf6;
    color: white;
}

/* Expanded Details (Phase 2) */
.result-card-expanded {
    display: none;
    padding: 30px;
    background: white;
    border-top: 2px solid #e5e7eb;
}

.result-card-expanded.active {
    display: block;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8em;
    color: #1f2937;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1.1em;
    color: #6b7280;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   COMMENT SYSTEM SECTION
   ======================================== */
/* Comment system styles are in comment-system-style.css */

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .filter-sidebar {
        flex: 0 0 240px;
        padding: 20px;
    }

    .lounge-content {
        padding: 20px;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hide desktop sidebar, show mobile filter */
    .filter-sidebar {
        display: none !important;
    }

    .filter-mobile-bar {
        display: block !important;
    }

    .lounge-content {
        flex-direction: column;
        padding: 0;
    }

    .results-section {
        padding: 20px;
    }

    .search-form-row {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-card-image {
        max-width: 100%;
    }

    /* Keep 2-column grid for mobile - topic and detail on same row */
    .lounge-details-grid {
        grid-template-columns: auto 1fr;
        gap: 10px 15px;
        font-size: 0.9em;
    }

    .breadcrumb {
        font-size: 0.8em;
        padding: 10px 15px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 1em;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .search-form-actions {
        flex-direction: column;
    }

    .search-btn,
    .clear-btn {
        width: 100%;
    }

    .result-card-part1,
    .result-card-part2,
    .result-card-part3 {
        padding: 20px;
    }

    .result-card-name {
        font-size: 1.2em;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}
