/* ========================================
   JOURNEYS ARCHIVE - SENSE OF AFRICA STYLE
   ======================================== */

/* Archive Hero */
.jps-archive-hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
}

.jps-archive-hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

/* Breadcrumb */
.jps-breadcrumb-modern {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
}

.jps-breadcrumb-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.jps-breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.jps-breadcrumb-list li {
    display: flex;
    align-items: center;
}

.jps-breadcrumb-list li:not(:last-child):after {
    content: "›";
    margin-left: 12px;
    opacity: 0.6;
}

.jps-breadcrumb-list a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.jps-breadcrumb-list a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.jps-breadcrumb-list .active {
    opacity: 0.9;
}

/* Archive Title */
.jps-archive-title {
    position: relative;
    z-index: 2;
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 15px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.jps-archive-subtitle {
    position: relative;
    z-index: 2;
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
    max-width: 700px;
}

/* Archive Content */
.jps-archive-content {
    padding: 70px 0;
    background: #fafafa;
}

/* Intro Section */
.jps-archive-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.jps-intro-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.jps-intro-text {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Filter Tabs */
.jps-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.jps-filter-tab {
    padding: 10px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jps-filter-tab:hover {
    border-color: #2c5f2d;
    color: #2c5f2d;
    background: #f9f9f9;
}

.jps-filter-tab.active {
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
    border-color: #2c5f2d;
}

/* Tours Grid */
.jps-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

/* Tour Card */
.jps-tour-card-grid {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.jps-tour-card-grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.jps-tour-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
}

.jps-tour-card-image a {
    display: block;
    height: 100%;
}

.jps-tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.jps-tour-card-grid:hover .jps-tour-card-image img {
    transform: scale(1.08);
}

.jps-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    font-size: 64px;
}

/* Tour Badge */
.jps-tour-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c5f2d;
    z-index: 2;
}

/* Card Content */
.jps-tour-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta Top */
.jps-tour-meta-top {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #777;
}

.jps-tour-meta-top span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jps-tour-meta-top .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Card Title */
.jps-tour-card-title {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.jps-tour-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.jps-tour-card-title a:hover {
    color: #2c5f2d;
}

/* Card Excerpt */
.jps-tour-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

/* Card Footer */
.jps-tour-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* Tour Price */
.jps-tour-price {
    display: flex;
    flex-direction: column;
}

.jps-price-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.jps-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #2c5f2d;
    letter-spacing: -0.5px;
}

/* Tour Button */
.jps-tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jps-tour-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

.jps-arrow {
    font-size: 16px;
    transition: transform 0.3s;
}

.jps-tour-btn:hover .jps-arrow {
    transform: translateX(4px);
}

/* Pagination */
.jps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 50px 0 0;
}

.jps-pagination li {
    margin: 0;
}

.jps-pagination a,
.jps-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.jps-pagination a:hover {
    border-color: #2c5f2d;
    color: #2c5f2d;
    background: #f9f9f9;
}

.jps-pagination .current {
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
    border-color: #2c5f2d;
}

.jps-nav-arrow {
    font-size: 16px;
}

/* No Tours */
.jps-no-tours {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
}

.jps-no-tours-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.jps-no-tours h3 {
    font-size: 28px;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.jps-no-tours p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.jps-no-tours a {
    color: #2c5f2d;
}

/* Call to Action */
.jps-archive-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.jps-archive-cta:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
}

.jps-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.jps-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.jps-cta-content p {
    font-size: 17px;
    margin: 0 0 35px;
    opacity: 0.95;
    line-height: 1.6;
}

.jps-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.jps-btn-primary,
.jps-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.jps-btn-primary {
    background: linear-gradient(135deg, #d4af37, #c9a02c);
    color: #1a1a1a;
}

.jps-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.jps-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.jps-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .jps-tours-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .jps-archive-hero {
        padding: 50px 0 40px;
    }
    
    .jps-archive-title {
        font-size: 36px;
    }
    
    .jps-archive-subtitle {
        font-size: 16px;
    }
    
    .jps-intro-heading {
        font-size: 26px;
    }
    
    .jps-filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jps-filter-tab {
        text-align: center;
    }
    
    .jps-tours-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .jps-tour-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .jps-cta-content h2 {
        font-size: 28px;
    }
    
    .jps-cta-buttons {
        flex-direction: column;
    }
    
    .jps-btn-primary,
    .jps-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .jps-archive-title {
        font-size: 28px;
    }
    
    .jps-tour-card-content {
        padding: 20px;
    }
    
    .jps-tour-card-title {
        font-size: 19px;
    }
    
    .jps-price-amount {
        font-size: 18px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jps-tour-card-grid {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.jps-tour-card-grid:nth-child(1) { animation-delay: 0.1s; }
.jps-tour-card-grid:nth-child(2) { animation-delay: 0.2s; }
.jps-tour-card-grid:nth-child(3) { animation-delay: 0.3s; }
.jps-tour-card-grid:nth-child(4) { animation-delay: 0.4s; }
.jps-tour-card-grid:nth-child(5) { animation-delay: 0.5s; }
.jps-tour-card-grid:nth-child(6) { animation-delay: 0.6s; }
