/**
 * Enhanced Dashboard Favorites Section Styles
 * Modern, visually appealing design using global theme colors
 * COMPLETE REDESIGN - No More Blue Buttons, Enhanced Grid Filtering
 */

:root {
    --pilgrim-brown: #8B4513;
    --sacred-gold: #C9A053;
    --divine-gold: #D4AF37;
    --holy-light: #f8f9fa;
    --sacred-shadow: rgba(139, 69, 19, 0.15);
    --transition-divine: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --holy-white: #ffffff;
    --sacred-text: rgba(139, 69, 19, 0.9);
    --blessed-radius: 12px;
}

/* Enhanced Tabs Navigation with Religious Theme */
.dashboard-tabs-nav {
    display: flex;
    margin: 0 0 30px 0;
    padding: 8px;
    list-style: none;
    background: linear-gradient(135deg, var(--holy-light) 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 12px var(--sacred-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.dashboard-tabs-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 69, 19, 0.03) 25%, 
        rgba(201, 160, 83, 0.03) 75%, 
        transparent 100%
    );
    pointer-events: none;
}

.dashboard-tabs-nav li {
    flex: 1;
    position: relative;
    z-index: 1;
}

.dashboard-tabs-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    text-decoration: none;
    color: rgba(139, 69, 19, 0.7);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: var(--transition-divine);
    position: relative;
    overflow: hidden;
    gap: 8px;
    min-height: 50px;
    background: transparent;
}

.dashboard-tabs-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(201, 160, 83, 0.1) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.dashboard-tabs-nav a:hover::before {
    left: 0;
}

.dashboard-tabs-nav a i {
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s;
}

.dashboard-tabs-nav a:hover {
    color: rgba(139, 69, 19, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--sacred-shadow);
}

.dashboard-tabs-nav a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.dashboard-tabs-nav li.active a {
    color: white;
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
    box-shadow: 
        0 4px 15px var(--sacred-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.dashboard-tabs-nav li.active a::before {
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.dashboard-tabs-nav li.active a i {
    opacity: 1;
    color: white;
}

.dashboard-tabs-nav a .count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(139, 69, 19, 0.2);
    color: rgba(139, 69, 19, 0.8);
    font-size: 11px;
    font-weight: 700;
    height: 20px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.dashboard-tabs-nav a:hover .count-badge {
    background-color: rgba(201, 160, 83, 0.3);
    color: rgba(139, 69, 19, 1);
    transform: scale(1.05);
}

.dashboard-tabs-nav li.active a .count-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Tabs Content */
.dashboard-tab-pane {
    display: none;
    animation: fadeIn 0.5s;
    position: relative;
    min-height: 200px;
}

.dashboard-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ENHANCED SEARCH AND FILTERING CONTROLS */
.favorites-search-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(201, 160, 83, 0.05) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(5px);
    gap: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.06);
}

.favorites-controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.favorites-controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ENHANCED SEARCH INPUT */
.favorites-search {
    position: relative;
    flex: 1;
    max-width: 350px;
    min-width: 200px;
}

.favorites-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition-divine);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
}

.favorites-search input:focus {
    border-color: var(--pilgrim-brown);
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(139, 69, 19, 0.1),
        0 4px 15px var(--sacred-shadow);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.favorites-search input::placeholder {
    color: rgba(139, 69, 19, 0.5);
}

.favorites-search i,
.favorites-search .search-btn i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(139, 69, 19, 0.6);
    font-size: 16px;
    transition: all 0.3s;
}

.favorites-search .search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
    border: none;
    border-radius: 8px;
    width: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorites-search .search-btn:hover {
    background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%);
    transform: scale(1.05);
}

.favorites-search .search-btn i {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    color: white;
}

/* ENHANCED SORT DROPDOWN */
.favorites-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.favorites-sort label {
    font-size: 14px;
    color: var(--sacred-text);
    font-weight: 600;
    white-space: nowrap;
}

.favorites-sort select {
    padding: 12px 15px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--sacred-text);
    transition: var(--transition-divine);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
    cursor: pointer;
    min-width: 160px;
}

.favorites-sort select:focus {
    border-color: var(--pilgrim-brown);
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(139, 69, 19, 0.1),
        0 4px 15px var(--sacred-shadow);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* ENHANCED VIEW TOGGLE BUTTONS - FIXED GRID FILTERING */
.favorites-view-toggle {
    display: flex;
    gap: 3px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(201, 160, 83, 0.05) 100%);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.favorites-view-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 69, 19, 0.6);
    cursor: pointer;
    transition: var(--transition-divine);
    position: relative;
    overflow: hidden;
}

.favorites-view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(201, 160, 83, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.favorites-view-btn:hover::before {
    opacity: 1;
}

.favorites-view-btn:hover {
    color: rgba(139, 69, 19, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px var(--sacred-shadow);
}

.favorites-view-btn.active {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
    color: white;
    box-shadow: 0 3px 12px var(--sacred-shadow);
    transform: translateY(-1px);
}

.favorites-view-btn.active::before {
    opacity: 0;
}

.favorites-view-btn i {
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.favorites-view-btn:hover i {
    transform: scale(1.1);
}

/* VIEW CONTAINERS - CRITICAL FIX FOR PROPER GRID/LIST TOGGLE */
.favorites-view {
    display: none !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.favorites-view.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* Enhanced Favorites Grid - FIXED DISPLAY ISSUES */
.favorites-grid-view {
    /* Inherits from .favorites-view */
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}

/* Enhanced List View - FIXED DISPLAY ISSUES */
.favorites-list-view {
    /* Inherits from .favorites-view */
}

.favorites-list {
    margin-top: 25px;
    display: block;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}

/* CRITICAL FIX: Force visibility for active views */
.favorites-view[data-view="grid"].active {
    display: block !important;
}

.favorites-view[data-view="list"].active {
    display: block !important;
}

/* CRITICAL FIX: Ensure child elements inherit proper display */
.favorites-view.active .favorites-grid,
.favorites-view.active .favorites-list {
    display: block;
    visibility: visible;
}

.favorites-view.active .favorites-grid {
    display: grid;
}

/* ENHANCED FAVORITE CARDS - NO MORE BLUE BUTTONS */
.favorite-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--holy-light) 100%);
    border-radius: 15px;
    box-shadow: 
        0 4px 20px rgba(139, 69, 19, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition-divine);
    position: relative;
    animation: cardAppear 0.6s backwards;
    border: 1px solid rgba(139, 69, 19, 0.08);
    backdrop-filter: blur(10px);
}

@keyframes cardAppear {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Apply staggered animation to cards */
.favorite-card:nth-child(1) { animation-delay: 0.05s; }
.favorite-card:nth-child(2) { animation-delay: 0.10s; }
.favorite-card:nth-child(3) { animation-delay: 0.15s; }
.favorite-card:nth-child(4) { animation-delay: 0.20s; }
.favorite-card:nth-child(5) { animation-delay: 0.25s; }
.favorite-card:nth-child(6) { animation-delay: 0.30s; }
.favorite-card:nth-child(7) { animation-delay: 0.35s; }
.favorite-card:nth-child(8) { animation-delay: 0.40s; }

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.15);
}

.favorite-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--pilgrim-brown), var(--sacred-gold));
    opacity: 0;
    transition: opacity 0.3s;
}

.favorite-card:hover::after {
    opacity: 1;
}

/* Card Header and Content */
.favorite-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 20px 20px 0;
}

.favorite-card-title,
.favorite-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    transition: color 0.3s;
}

.favorite-card:hover .favorite-card-title,
.favorite-card:hover .favorite-title {
    color: var(--pilgrim-brown);
}

.favorite-card-type {
    background: var(--holy-light);
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
}

.favorite-content {
    padding: 0 20px 20px;
}

.favorite-card-meta,
.favorite-meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.favorite-card-date,
.favorite-saved-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ENHANCED ACTION BUTTONS - NO MORE BLUE! */
.favorite-card-actions,
.favorite-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    position: relative;
    z-index: 10; /* CRITICAL FIX: Ensure buttons are clickable */
}

.favorite-card-actions .btn,
.favorite-actions .btn,
.btn-add-to-journey,
.btn-visit,
.btn-primary,
.favorite-add-to-journey {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-divine);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
    flex: 1;
    z-index: 20; /* CRITICAL FIX: Ensure buttons are above other elements */
    pointer-events: auto; /* CRITICAL FIX: Force pointer events */
}

.btn-add-to-journey::before,
.btn-visit::before,
.btn-primary::before,
.favorite-add-to-journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.btn-add-to-journey:hover::before,
.btn-visit:hover::before,
.btn-primary:hover::before,
.favorite-add-to-journey:hover::before {
    left: 0;
}

.btn-add-to-journey:hover,
.btn-visit:hover,
.btn-primary:hover,
.favorite-add-to-journey:hover {
    background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.35);
}

.btn-add-to-journey i,
.btn-visit i,
.btn-primary i,
.favorite-add-to-journey i {
    position: relative;
    z-index: 1;
}

/* Secondary buttons */
.btn-secondary,
.btn-details,
.favorite-remove {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(201, 160, 83, 0.1) 100%) !important;
    color: var(--sacred-text) !important;
    border: 2px solid rgba(139, 69, 19, 0.2) !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-divine);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.btn-secondary:hover,
.btn-details:hover {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
    border-color: transparent !important;
}

/* Remove button specific styling */
.favorite-remove {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #dc3545 !important;
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none !important;
    padding: 0 !important;
}

.favorite-card:hover .favorite-remove {
    opacity: 1;
}

.favorite-remove:hover {
    background-color: #dc3545 !important;
    color: white !important;
    transform: scale(1.1);
}

/* Enhanced List View Items */
.favorite-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--holy-light) 100%);
    border-radius: var(--blessed-radius);
    box-shadow: 0 3px 12px rgba(139, 69, 19, 0.08);
    padding: 18px;
    margin-bottom: 15px;
    transition: var(--transition-divine);
    border: 1px solid rgba(139, 69, 19, 0.08);
    position: relative;
    overflow: hidden;
}

.favorite-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-list-item:hover {
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 6px 20px var(--sacred-shadow);
    border-color: rgba(139, 69, 19, 0.15);
}

.favorite-list-item:hover::before {
    transform: scaleY(1);
}

.favorite-list-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--blessed-radius);
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(201, 160, 83, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-divine);
    border: 1px solid rgba(139, 69, 19, 0.15);
}

.favorite-list-icon i {
    font-size: 20px;
    color: rgba(139, 69, 19, 0.7);
    transition: all 0.3s;
}

.favorite-list-item:hover .favorite-list-icon {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
    border-color: rgba(139, 69, 19, 0.3);
    transform: scale(1.05);
}

.favorite-list-item:hover .favorite-list-icon i {
    color: white;
    transform: scale(1.1);
}

.favorite-list-content {
    flex: 1;
    min-width: 0;
}

.favorite-list-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--sacred-text);
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-list-item:hover .favorite-list-title {
    color: var(--pilgrim-brown);
    transform: translateX(2px);
}

.favorite-list-type {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(201, 160, 83, 0.1) 100%);
    color: var(--sacred-text);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(139, 69, 19, 0.15);
    text-transform: capitalize;
    transition: all 0.3s;
}

.favorite-list-item:hover .favorite-list-type {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
    color: white;
    transform: scale(1.02);
}

.favorite-list-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.favorite-list-actions .btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-divine);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

/* Enhanced Empty State */
.empty-favorites {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(201, 160, 83, 0.05) 100%);
    border-radius: 15px;
    margin-top: 30px;
    transition: var(--transition-divine);
    animation: fadeIn 0.8s;
    border: 2px dashed rgba(139, 69, 19, 0.2);
    position: relative;
    overflow: hidden;
}

.empty-favorites::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 69, 19, 0.05) 50%, 
        transparent 100%
    );
    transition: left 0.6s;
}

.empty-favorites:hover::before {
    left: 100%;
}

.empty-favorites:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(139, 69, 19, 0.1),
        0 8px 20px rgba(201, 160, 83, 0.08);
    border-color: rgba(139, 69, 19, 0.3);
}

.empty-favorites i {
    font-size: 64px;
    color: rgba(139, 69, 19, 0.3);
    margin-bottom: 20px;
    transition: var(--transition-divine);
    display: block;
}

.empty-favorites:hover i {
    transform: scale(1.15) rotate(5deg);
    color: rgba(139, 69, 19, 0.5);
}

.empty-favorites h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: var(--sacred-text);
    transition: all 0.3s;
    font-weight: 600;
}

.empty-favorites:hover h3 {
    color: var(--pilgrim-brown);
    transform: translateY(-2px);
}

.empty-favorites p {
    color: rgba(139, 69, 19, 0.6);
    margin-bottom: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.5;
}    
    
.favorites-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(5px);
}

.favorites-loading.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 69, 19, 0.1);
    border-top: 3px solid var(--pilgrim-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: var(--sacred-text);
    font-weight: 500;
}

/* Enhanced Actions Section */
.favorites-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.04) 0%, rgba(201, 160, 83, 0.06) 100%);
    border-radius: 18px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    gap: 1.5rem;
    box-shadow: 0 6px 25px rgba(139, 69, 19, 0.08);
}

#add-favorites-to-journey {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem;
    border-radius: var(--blessed-radius);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-divine);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

#add-favorites-to-journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

#add-favorites-to-journey:hover::before {
    left: 0;
}

#add-favorites-to-journey:hover {
    background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(139, 69, 19, 0.35);
}

#add-favorites-to-journey i {
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
}

.favorites-export-options {
    position: relative;
    display: inline-block;
}

#export-favorites {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(201, 160, 83, 0.1) 100%) !important;
    color: var(--sacred-text) !important;
    border: 2px solid rgba(139, 69, 19, 0.2) !important;
    padding: 1rem 1.5rem;
    border-radius: var(--blessed-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-divine);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    background: white !important;
    min-width: 160px;
    justify-content: center;
}

#export-favorites:hover {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
}

.export-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(139, 69, 19, 0.1);
    z-index: 1000;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-divine);
    margin-top: 8px;
}

.favorites-export-options:hover .export-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.export-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--sacred-text);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(139, 69, 19, 0.05);
    font-size: 13px;
    font-weight: 500;
}

.export-dropdown a:last-child {
    border-bottom: none;
}

.export-dropdown a:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(201, 160, 83, 0.05) 100%);
    color: var(--pilgrim-brown);
    transform: translateX(4px);
}

.export-dropdown a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Journey Wizard Modal Enhancements */
#journey-wizard {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.02) 0%, rgba(201, 160, 83, 0.03) 100%);
    border-radius: 18px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.wizard-container {
    padding: 2rem;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(139, 69, 19, 0.1);
    color: rgba(139, 69, 19, 0.6);
    transition: var(--transition-divine);
    font-weight: 500;
}

.step.active {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.wizard-step-content {
    display: none;
    animation: fadeIn 0.5s;
}

.wizard-step-content.active {
    display: block;
}

.wizard-step-content h3 {
    color: var(--pilgrim-brown);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sacred-text);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition-divine);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pilgrim-brown);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
}

.wizard-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.wizard-nav .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-divine);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wizard-nav .btn-primary,
.wizard-next,
#create-journey-final {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.wizard-nav .btn-primary:hover,
.wizard-next:hover,
#create-journey-final:hover {
    background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.35);
}

.wizard-nav .btn-secondary,
.wizard-back {
    background: rgba(139, 69, 19, 0.1) !important;
    color: var(--sacred-text) !important;
    border: 2px solid rgba(139, 69, 19, 0.2) !important;
}

.wizard-nav .btn-secondary:hover,
.wizard-back:hover {
    background: rgba(139, 69, 19, 0.2) !important;
    transform: translateY(-2px);
}

/* Notification System */
.favorites-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 10000;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: var(--transition-divine);
}

.favorites-notification.show {
    transform: translateX(0);
}

.favorites-notification.success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.favorites-notification.error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.favorites-notification.info {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%);
}

.favorites-notification.warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Error State Styling */
.favorites-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: var(--blessed-radius);
    margin: 20px 0;
}

.favorites-error .btn {
    background: linear-gradient(135deg, var(--pilgrim-brown) 0%, var(--sacred-gold) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: var(--transition-divine);
}

.favorites-error .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .favorites-search-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .favorites-controls-left,
    .favorites-controls-right {
        min-width: auto;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .dashboard-tabs-nav {
        flex-wrap: wrap;
        gap: 5px;
        padding: 6px;
    }
    
    .dashboard-tabs-nav li {
        margin-bottom: 5px;
        flex: 1 0 auto;
        min-width: 120px;
        text-align: center;
    }
    
    .dashboard-tabs-nav a {
        padding: 12px 16px;
        font-size: 14px;
        justify-content: center;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .favorites-search-filter {
        padding: 15px;
        gap: 12px;
    }
    
    .favorites-controls-left {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .favorites-search {
        max-width: 100%;
        min-width: auto;
    }
    
    .favorites-sort {
        width: 100%;
        justify-content: space-between;
    }
    
    .favorites-sort select {
        flex: 1;
        min-width: auto;
    }
    
    .favorites-view-toggle {
        justify-content: center;
    }
    
    .favorite-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }
    
    .favorite-list-content {
        width: 100%;
    }
    
    .favorite-list-title {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }
    
    .favorite-list-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .favorite-list-icon {
        align-self: center;
    }
    
    .favorites-actions {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem;
    }
    
    #add-favorites-to-journey,
    #export-favorites {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step {
        justify-content: center;
    }
    
    .wizard-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wizard-nav .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-tabs-nav li {
        min-width: 100px;
    }
    
    .dashboard-tabs-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .favorite-card-actions,
    .favorite-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .favorite-card-actions .btn,
    .favorite-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .favorites-search-filter {
        padding: 12px;
    }
    
    .empty-favorites {
        padding: 40px 20px;
    }
    
    .empty-favorites h3 {
        font-size: 20px;
    }
    
    .empty-favorites i {
        font-size: 48px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-add-to-journey,
    .btn-visit,
    .btn-primary,
    .favorite-add-to-journey {
        border: 2px solid #000 !important;
    }
    
    .favorite-card {
        border: 2px solid #000;
    }
    
    .dashboard-tabs-nav li.active a {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .favorite-card,
    .favorite-list-item,
    .dashboard-tabs-nav a,
    .favorites-view-btn {
        transition: none;
    }
    
    .cardAppear,
    .fadeIn,
    .spin {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .favorites-search-filter,
    .favorites-actions,
    .wizard-container,
    .favorites-loading {
        display: none !important;
    }
    
    .favorite-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}