/*
Theme Name: Reimagine Travel Booking & Tour Engine - Advanced Tour Operator & Package SaaS Booking Platform &Theme
Theme URI: https://reimaginetravel.site
Description: A professional tour booking portal theme for multi-partner tour management with TicketingHub integration
Version: 19.1.18
Author: Reimagine Travel
Author URI: https://reimaginetravel.site
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tour-engine
Tags: tourism, booking, portal, multi-partner, tours, travel, responsive
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Archive Layout Styles */
body.layout-grid .archive-cards-wrapper,
body.layout-grid .tour-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    body.layout-grid .archive-cards-wrapper,
    body.layout-grid .tour-list {
        grid-template-columns: 1fr;
    }
}

body.layout-list .archive-cards-wrapper,
body.layout-list .tour-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.layout-list .archive-cards-track,
body.layout-list .tour-card {
    width: 100%;
}

html {
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0073aa;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* Layout */
.page-layout {
    display: grid;
    gap: 30px;
}

.page-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.page-layout.with-sidebar {
    grid-template-columns: 2fr 1fr;
}

.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-branding .site-title {
    font-size: 1.8rem;
    margin: 0;
    color: #0073aa;
}

.site-branding .site-title a {
    color: inherit;
    text-decoration: none;
}

.site-branding .custom-logo {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-branding img {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 80px;
        max-width: 160px;
    }
    
    .site-branding img {
        max-height: 80px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .site-branding .custom-logo {
        max-height: 60px;
        max-width: 120px;
    }
    
    .site-branding img {
        max-height: 60px;
        max-width: 120px;
    }
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul.active {
        display: flex;
    }


}

.main-navigation a:hover {
    background: #f8f9fa;
    color: #0073aa;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    z-index: 1000;
    margin-left: 20px;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}



.language-name {
    font-weight: 500;
    text-transform: uppercase;
}

.language-arrow {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    transition: transform 0.3s ease;
}

.language-dropdown:hover .language-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}

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

.language-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-options a:last-child {
    border-bottom: none;
}

.language-options a:hover {
    background: #f8f8f8;
}


.language-options span {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
}

/* Tour Section */
.tour-section {
    margin-bottom: 3rem;
}

.tour-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Tour Categories Grid */
.tour-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 2rem;
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #0073aa;
}

.category-title a {
    color: inherit;
    text-decoration: none;
}

.category-title a:hover {
    text-decoration: underline;
}

.category-description {
    color: #666;
    line-height: 1.5;
}

/* Tour List */
.tour-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tour-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tour-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card:hover .tour-thumbnail {
    transform: scale(1.05);
}

.tour-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tour-type-badge.public {
    background: #0073aa;
}

.tour-type-badge.private {
    background: #ff6b35;
}

.tour-content {
    padding: 1.5rem;
}

.tour-header {
    margin-bottom: 1rem;
}

.tour-categories {
    margin-bottom: 0.5rem;
}

.tour-category {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.tour-category a {
    background: #e7f3ff;
    color: #0073aa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
}

.tour-category a:hover {
    background: #0073aa;
    color: white;
}

.tour-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tour-title a {
    color: inherit;
    text-decoration: none;
}

.tour-title a:hover {
    color: #ff6b35;
}

.tour-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tour-duration,
.tour-capacity,
.tour-languages {
    display: flex;
    align-items: center;
    gap: 5px;
}



.tour-languages .language-flag {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 0;
    margin-right: 4px;
    vertical-align: middle;
    object-fit: cover;
}

.language-more {
    background: #666;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tour-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0073aa;
}

.price-amount {
    display: block;
    font-size: 1.4rem;
}

.price-type {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
}

.tour-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.btn-secondary:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

/* Tour Details */
.tour-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.tour-main-content {
    padding-right: 2rem;
}

.tour-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tour-header {
    margin-bottom: 2rem;
}

.tour-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.featured-tour-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tour-meta-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tour-meta-info span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.price-box {
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 1rem;
    border: 1px solid #e5e5e5;
}

.price-box h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.price-box ul {
    margin: 0;
    padding: 0;
}

.price-box li {
    list-style: none;
    margin: 0;
    white-space: nowrap;
}

.price-box .max-people {
    font-size: 0.9rem;
    color: white;
    opacity: 1;
}

.languages-list {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.languages-list h4 {
    margin-bottom: 1rem;
    color: #0073aa;
}

.languages-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.languages-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.languages-list li:last-child {
    border-bottom: none;
}

.provider-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.provider-info h4 {
    margin-bottom: 1rem;
    color: #0073aa;
}

.provider-info p {
    margin-bottom: 0.5rem;
}

.booking-widget {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.booking-widget h4 {
    margin-bottom: 1rem;
    color: #0073aa;
}

.tour-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Tour Filter */
.tour-filter {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Registration Form */
.tour-registration-form {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tour-registration-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0073aa;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section:nth-child(2) {
    padding-top: 1rem;
}

.footer-section:nth-child(3) {
    padding-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-logo img {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .tour-categories-grid,
    .tour-list {
        grid-template-columns: 1fr;
    }
    
    .tour-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .language-switcher {
        margin-left: 10px;
    }
    
    .language-toggle {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-name {
        display: none;
    }
    
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .tour-card {
        margin-bottom: 1.5rem;
    }
    
    .tour-card .tour-content {
        padding: 1rem;
    }
    
    .tour-card .tour-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tour-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .tour-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .tour-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .tour-button {
        margin-top: 1rem;
        text-align: center;
    }
    
    .tour-button .btn-booking {
        display: inline-block !important;
        padding: 0.75rem 1.5rem;
        background: #0073aa;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
        transition: background-color 0.3s ease;
    }
    
    .tour-button .btn-booking:hover {
        background: #0056b3;
    }
    
    .tour-registration-form {
        padding: 2rem 1.5rem;
    }
    
    .tour-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none;
}

.show {
    display: block;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Archive Cards Shortcode */
.archive-cards-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.archive-cards-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    width: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.archive-cards-track::-webkit-scrollbar {
    display: none;
}

.archive-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.archive-card-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0073aa;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.archive-card-image {
    height: 220px;
    overflow: hidden;
    background: #dce3ea;
    flex-shrink: 0;
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.archive-card-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex: 1;
}

.archive-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.archive-card-btn {
    display: inline-block;
    padding: 10px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: .88rem;
    transition: background 0.2s ease, transform 0.15s ease;
    flex: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    line-height: 1.3;
}

.archive-card-btn-details {
    background: #0073aa;
}

.archive-card-btn-details:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.archive-card-btn-book {
    background: #F3992B;
}

.archive-card-btn-book:hover {
    background: #d9831f;
    transform: translateY(-1px);
}

.archive-cards-error,
.archive-cards-empty {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
}

/* Archive Cards Modal */
.archive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.archive-modal {
    background: white;
    width: 320px;
    height: 856.2px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.archive-modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-modal-btn-details {
    padding: 8px 16px !important;
    background: #0073aa !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer !important;
}

.archive-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0d1b2a;
    line-height: 1.3;
    flex: 1;
    padding-right: 12px;
}

.archive-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0 2px;
    font-weight: 300;
    flex-shrink: 0;
}

.archive-modal-close:hover {
    color: #000;
}

.archive-modal-body {
    padding: 20px;
    min-height: 400px;
}

.archive-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@media (max-width: 600px) {
    .archive-modal {
        width: 95%;
        height: 90vh;
    }
    .archive-modal-body {
        padding: 15px;
        min-height: 300px;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .archive-card {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Mobile (all mobile devices - 35% width, horizontal scroll) */
@media (max-width: 767px) {
    .archive-cards-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .archive-cards-track {
        width: auto;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .archive-card {
        flex: 0 0 100%;
        transition: box-shadow 0.3s ease;
        position: static;
    }
    
    .archive-card-image {
        height: 180px;
    }
    
    .archive-card-title {
        font-size: 1rem;
        
    }
    .archive-modal-header {
    flex-direction: column;
    align-items: flex-start;
    }

    .archive-modal-title {
    font-size: 0.85rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    font-weight: 700;
    width: 100%;
    margin-top: 8px;
    }

    .archive-modal-close {
    font-weight: 700;
    }
    .archive-modal-actions {
    margin-left: auto;
    }
    
    .archive-card-excerpt {
        font-size: 13px;
    }
    
    .archive-card-btn {
        padding: 9px 8px;
        font-size: .82rem;
    }
    
    /*  chagne height of pop on mobile  */
    .archive-modal {
    width: 95%;
    height: 95vh;
    }
}
