:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    /* Metallic Gold */
    --secondary-dark: #b8952d;
    /* Darker Gold for Text Contrast */
    --accent-color: #8b0000;
    /* Dark Red */
    --bg-light: #f8f9fa;
    --bg-body: #fcfcfc;
    --text-dark: #222;
    /* Slightly darker for better contrast */
    --text-muted: #555;
    /* Darker than standard muted for accessibility */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --header-gradient: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-body: #0a0a0a;
    --text-dark: #f0f0f0;
    --text-muted: #b0b0b0;
    --card-bg: #151515;
    --bg-light: #222222;
    --border-color: #333333;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    --header-gradient: linear-gradient(135deg, #000000 0%, #111111 100%);
    --primary-color: var(--secondary-color);
    /* Gold in dark mode */
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

.tiny {
    font-size: 0.75rem;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Premium Header Area */
.header-hero {
    background: linear-gradient(135deg, #111 0%, #000 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-color);
    transition: var(--transition-smooth);
}

.header-hero h1 {
    color: #fff;
    margin: 0;
}

/* Form Styles */
.search-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
}

.titulo {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.form-control,
.form-select,
.select2-container--bootstrap-5 .select2-selection {
    background-color: var(--card-bg) !important;
    color: var(--text-dark) !important;
    border-radius: 6px;
    padding: 8px 12px !important;
    border-color: var(--border-color) !important;
    font-size: 0.85rem !important;
    min-height: 38px !important;
    width: 100%;
}

.input-group .form-control {
    border-radius: 0 6px 6px 0;
}

.input-group-text {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    border-color: var(--secondary-color) !important;
}

.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
}

.input-group>.form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
}

.input-group-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

body.dark-mode .input-group-text {
    background-color: #2a2a2a !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

body.dark-mode .select2-dropdown {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

body.dark-mode .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--text-dark) !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

/* Enhanced Input Group Cohesion */
.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: var(--secondary-color) !important;
}

.input-group:focus-within .input-group-text i {
    color: var(--secondary-color) !important;
}

.input-group.shadow-sm .input-group-text {
    border-color: var(--border-color);
}

/* Ensure border-radius consistency when using border-radius-8 */
.input-group.border-radius-8 {
    border-radius: 8px !important;
    overflow: hidden;
}

.input-group.border-radius-8 .input-group-text,
.input-group.border-radius-8 .form-control {
    border-radius: 0 !important;
}

.input-group.border-radius-8> :first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.input-group.border-radius-8> :last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Alignment fixes for input groups with icons */
.input-group-text i {
    vertical-align: middle;
}

.select2-results__option {
    font-size: 0.85rem !important;
}

.btn-premium {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
}

body.dark-mode .btn-premium {
    color: #1a1a1a !important;
}

.btn-premium:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
}

.btn-clear {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-clear:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

/* Action Buttons in Table */
.btn-primary-soft:hover {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #0d6efd !important;
    transform: translateY(-2px);
}

.btn-warning-soft:hover {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    transform: translateY(-2px);
}

.btn-gold-soft:hover {
    background-color: rgba(212, 175, 55, 0.2) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-primary-soft,
.btn-warning-soft,
.btn-gold-soft {
    transition: var(--transition-smooth);
}

/* Results Table Modernization */
.bootstrap-table .fixed-table-container {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
}

.bootstrap-table .table {
    border-collapse: separate;
    border-spacing: 0 4px;
    background: transparent !important;
}

.table thead th {
    background-color: var(--bg-light) !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    border: none !important;
    padding: 1.2rem 1rem !important;
}

.table tbody tr {
    transition: var(--transition-smooth);
    background-color: var(--card-bg) !important;
    border-radius: 8px;
    border-bottom: 1px solid var(--border-color);
}

.table tbody td {
    padding: 1rem !important;
    vertical-align: middle;
    border: none !important;
}

.table tbody tr:hover {
    background-color: var(--bg-light) !important;
    transform: scale(1.002);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .table tbody tr:hover {
    background-color: #252525 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Bootstrap Table Controls */
.bootstrap-table .fixed-table-toolbar .search input {
    border-radius: 20px !important;
    padding-left: 20px !important;
    background-color: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    font-size: 0.85rem;
    min-height: 38px;
}

.bootstrap-table .fixed-table-pagination .pagination-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bootstrap-table .fixed-table-pagination .page-list {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page-item.active .page-link {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
}

.page-link {
    color: var(--text-dark);
    border: none !important;
    margin: 0 3px;
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.page-link:hover {
    background-color: var(--bg-light);
    color: var(--secondary-dark);
}

body.dark-mode .table {
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .bg-white {
    background-color: var(--card-bg) !important;
}

body.dark-mode .text-dark {
    color: var(--text-dark) !important;
}

body.dark-mode .text-muted {
    color: var(--text-muted) !important;
}

body.dark-mode .text-secondary {
    color: #a0a0a0 !important;
}

body.dark-mode .text-white {
    color: var(--text-dark) !important;
}

body.dark-mode .text-gold {
    color: var(--secondary-color) !important;
}

/* Ensure white background text on cards becomes visible */
body.dark-mode .bg-white p,
body.dark-mode .bg-white span,
body.dark-mode .bg-white div {
    color: var(--text-dark) !important;
}

/* Buttons and Badges in dark mode */
body.dark-mode .badge.bg-gold-soft {
    background-color: rgba(212, 175, 55, 0.2) !important;
    color: var(--secondary-color) !important;
}

body.dark-mode .highlight-badge {
    background: var(--secondary-color) !important;
    color: #1a1a1a !important;
}

body.dark-mode .btn-premium.text-white {
    color: #1a1a1a !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--text-dark) !important;
}

body.dark-mode .bg-light {
    background-color: var(--bg-light) !important;
}

body.dark-mode .card {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

.table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05) !important;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

body.dark-mode #loading-overlay {
    background: rgba(18, 18, 18, 0.85);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger-1 {
    transition-delay: 0.1s;
}

.reveal-stagger-2 {
    transition-delay: 0.2s;
}

.reveal-stagger-3 {
    transition-delay: 0.3s;
}

/* Skeleton Loading */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 8px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    display: inline-block;
    width: 100%;
}

body.dark-mode .skeleton {
    background: #2a2a2a;
    background: linear-gradient(110deg, #222 8%, #333 18%, #222 33%);
    background-size: 200% 100%;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
    width: 60%;
}

.skeleton-card {
    height: 200px;
    border-radius: 12px;
}

.skeleton-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Footer modern footer */
footer.premium-footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 30px;
    margin-top: 80px;
}

footer.premium-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer.premium-footer a:hover {
    color: #fff;
}

/* Gold Utilities */
.bg-gold-soft {
    background-color: rgba(212, 175, 55, 0.1);
}

.border-gold {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.gold {
    color: var(--secondary-dark) !important;
    /* Using darker gold for text */
}

.border-transparent {
    border-color: transparent !important;
}

.hover-gold:hover {
    color: var(--secondary-color) !important;
    transition: var(--transition-smooth);
}

.bg-gold-soft {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.ultra-small {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.font-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
}

.border-radius-8 {
    border-radius: 8px !important;
}

/* Premium Dialog Styling */
.ui-dialog {
    border: none !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ui-dialog .ui-dialog-titlebar {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1.2rem 1.5rem !important;
    font-family: 'Inter', sans-serif !important;
}

.ui-dialog .ui-dialog-title {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9rem !important;
    color: var(--secondary-color) !important;
}

.ui-dialog .ui-dialog-content {
    padding: 0 !important;
    background: #111 !important;
    /* Dark background for image viewing */
}

.ui-dialog .ui-dialog-buttonpane {
    background: #f8f9fa !important;
    border-top: 1px solid #eee !important;
    margin-top: 0 !important;
    padding: 0.8rem 1.5rem !important;
}

.ui-dialog .ui-button {
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
}

.ui-dialog-titlebar-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #fff !important;
}

.ui-dialog-titlebar-close:hover {
    background: var(--accent-color) !important;
}


/* Gallery Modern Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.gallery-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
    background: #eee;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 25px 15px 15px;
    color: #fff;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    z-index: 2;
}

/* Global Contrast Fixes */
.text-muted {
    color: var(--text-muted) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
    /* Improved contrast for subheaders */
}

.badge.bg-gold-soft {
    color: #7d6318 !important;
    /* Very dark gold for text inside light badges */
}

/* Modern Autocomplete Styling */
.ui-autocomplete {
    background: #ffffff;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
    z-index: 1050 !important;
    max-width: 95vw;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-item-title {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: normal;
    /* Force text wrap */
    line-height: 1.2;
}

.ui-menu-item {
    border: 0 !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    transition: all 0.2s ease;
}

.ui-menu-item .ui-menu-item-wrapper {
    padding: 10px 15px !important;
    border: 0 !important;
    color: #2c3e50 !important;
}

.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background-color: #f8f1e0 !important;
    color: #b8860b !important;
    font-weight: 500;
}


.search-item-meta {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
}

.ui-helper-hidden-accessible {
    display: none !important;
}

/* Global Map Styling */
#global-map,
#main-map {
    height: 70vh;
    min-height: 500px;
    width: 100%;
    z-index: 10;
    border-radius: 12px;
    background: #f0f0f0;
    border: 1px solid var(--border-color);
}

.map-popup-card {
    min-width: 200px;
}

.map-popup-img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 5px !important;
}

.btn-map-popup {
    font-size: 0.75rem;
    padding: 4px 10px;
    width: 100%;
    border-radius: 6px;
}

/* Nearby Section Styling */
.nearby-card {
    transition: all 0.3s ease;
    border: 0;
    overflow: hidden;
    height: 100%;
}

.nearby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.nearby-img-wrapper {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.nearby-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nearby-card:hover .nearby-img {
    transform: scale(1.1);
}

.nearby-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
    height: 2.3rem;
}


/* Highlight Card Styling */
.highlight-card {
    border: 0;
    overflow: hidden;
    background: #000;
    height: 400px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.highlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 1s ease;
}

.highlight-card:hover .highlight-img {
    transform: scale(1.05);
}

.highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.highlight-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}


/* Social Share Styling */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.facebook {
    background-color: #1877F2;
}

.share-btn.twitter {
    background-color: #000000;
}

.share-btn.native {
    background-color: var(--secondary-color);
}


/* Favorites / Smart Route Styling */
.btn-favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite.active {
    color: #e74c3c;
    background: white;
}

.btn-favorite i {
    font-size: 1.5rem;
}

.roteiro-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

.roteiro-empty-state {
    text-align: center;
    padding: 100px 20px;
}

.roteiro-empty-state i {
    font-size: 5rem;
    color: #eee;
    margin-bottom: 20px;
}


/* Print Optimization for Roteiro */
@media print {

    .header-hero,
    .premium-footer,
    .btn,
    .remove-btn,
    .btn-favorite,
    #searchModal,
    .modal-backdrop,
    .breadcrumb,
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        border: 1px solid #eee !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .display-5 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
}


/* Curated Collections Styling */
.collection-card {
    position: relative;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    margin-bottom: 20px;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.5s ease;
}

.collection-card:hover .collection-img {
    filter: brightness(0.5) scale(1.1);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: white;
}

.collection-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.collection-count {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.section-title-premium {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 35px;
}

.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}


/* Timeline Premium Styling */
.timeline-premium {
    position: relative;
    padding-left: 20px;
}

.timeline-premium::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--secondary-color) 0%, rgba(200, 200, 200, 0.3) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item:hover .timeline-content {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.timeline-marker {
    position: absolute;
    left: -4px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    z-index: 1;
}

.timeline-item:hover .timeline-marker {
    background: var(--secondary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3);
}

.timeline-date {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 2px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.timeline-content {
    background: rgba(212, 175, 55, 0.03);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.year-anchor {
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.5s ease;
    font-weight: 700;
    color: var(--secondary-dark);
    display: inline-block;
    scroll-margin-top: 120px;
}

.year-anchor:target,
.year-anchor.highlight-year {
    background: var(--secondary-color) !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Toast System */
.ulysses-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.ulysses-premium-toast {
    background: rgba(26, 26, 26, 0.98);
    color: white;
    padding: 18px 26px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-left: 5px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    backdrop-filter: blur(15px);
    transform: translateX(130%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    opacity: 0;
}

.ulysses-premium-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.ulysses-premium-toast.removing {
    transform: translateX(130%);
    opacity: 0;
}

.ulysses-premium-toast i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.ulysses-premium-toast .toast-content {
    flex: 1;
}

.ulysses-premium-toast .toast-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.ulysses-premium-toast .toast-msg {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

.dark-mode .ulysses-premium-toast {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 5px solid var(--secondary-color);
}

.search-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-right: 6px;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}

.search-chip i {
    font-size: 0.85rem;
    margin-right: 6px;
    color: var(--secondary-color);
}

body.dark-mode .search-chip {
    background: #252525;
}