/* FavoritesViewedPage.css */
.favorites-viewed-container {
    font-family: var(--font-family);
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    /*margin-bottom: 20px;*/
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-button.active {
    color: var(--primary-color, #006ce5);
}

/*.tab-button.active::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: -1px;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 3px;*/
/*    background-color: var(--primary-color, #006ce5);*/
/*}*/

.br-favorites-viewed-container .search-form{
    padding: 10px 0;
}

.tab-button i {
    margin-right: 8px;
}

/* Date Picker Container */
.date-picker-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

/* Content Container */
.content-container {
    display: flex;
    gap: 20px;
}

.content-container.split-view {
    flex-direction: row;
}

.content-container.grid-view {
    flex-direction: column;
}

/* Grid View Map Column */
.content-container.grid-view .map-column {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
}

/* Split View Map and Results Columns */
/*.content-container.split-view .map-column,*/
/*.content-container.split-view .results-column {*/
/*    flex: 1;*/
/*}*/

.content-container.split-view .results-column {
    width: 66.66%;
    padding-right: 15px;
}

.content-container.split-view .map-column {
    width: 33.33%;
    position: sticky;
    top: 0;
    height: 100vh;
}

.content-container.split-view .map-column {
    position: sticky;
    top: 20px;
    height: calc(100vh - 150px);
}

.map-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Results Styling */
.results-count {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.no-results {
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.loading, .error-message {
    padding: 20px;
    text-align: center;
    color: #666;
}

.error-message {
    color: #d32f2f;
}

.tab-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.loading-state {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-container.split-view {
        flex-direction: column;
    }

    .content-container.split-view .map-column {
        position: static;
        height: 300px;
        margin-bottom: 20px;
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}