/**
 * Excursions Hub SEO Components Styles
 * Styles for excursions-hero, category-links, and excursions-guide components
 *
 * @package TravelerChildTheme
 * @since 1.0.0
 */

/* ==========================================================================
   Excursions Hero (Slim Above-the-Fold)
   ========================================================================== */

.excursions-hero {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.excursions-hero__lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.75rem;
    max-width: 760px;
}

.excursions-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.excursions-hero__badges li {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #dde3ee;
    background: #fff;
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
}

.excursions-hero__badges li::before {
    content: "\2713";
    color: #28a745;
    margin-right: 0.35rem;
    font-weight: 700;
}

.excursions-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.excursions-hero__cat-link {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.excursions-hero__cat-link:hover {
    background: #f48120;
    color: #fff;
    border-color: #f48120;
}

/* ==========================================================================
   All Categories Section
   ========================================================================== */

.all-categories-section {
    padding: 40px 0;
    background-color: #fafafa;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    margin: 40px 0;
}

.all-categories-section__header {
    text-align: center;
    margin-bottom: 32px;
}

.all-categories-section__header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.all-categories-section__intro {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.category-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.category-group h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #f48120;
    padding-bottom: 8px;
    border-bottom: 2px solid #f4812033;
}

.category-group__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-group__list li {
    margin-bottom: 8px;
}

.category-group__list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.category-group__list a:hover {
    color: #f48120;
}

.category-count {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.all-categories-section__footer {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: #666;
}

.all-categories-section__footer a {
    color: #f48120;
    font-weight: 600;
    text-decoration: none;
}

.all-categories-section__footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Excursions Guide (SEO Content - Bottom)
   ========================================================================== */

.excursions-guide {
    background: #fafafa;
    padding: 48px 0;
    margin-top: 48px;
    border-top: 1px solid #e8e8e8;
}

.excursions-guide__container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

.excursions-guide h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.excursions-guide__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.excursions-guide__col p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

.excursions-guide__col h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f48120;
    margin-bottom: 1rem;
}

.excursions-guide__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.excursions-guide__benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: #444;
}

.excursions-guide__benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    /* Phase 5: Compress hero for above-fold optimization */
    .excursions-hero {
        padding: 0.5rem 1rem;
        margin-bottom: 0.75rem;
    }

    .excursions-hero__lead {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .excursions-hero__badges {
        gap: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .excursions-hero__badges li {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    /* Phase 5: Limit Top Sights to 4 cards on mobile */
    .pca-top-sights__card:nth-child(n+5) {
        display: none;
    }

    .all-categories-section {
        padding: 28px 16px;
        margin: 28px 0;
    }

    .all-categories-section__header h2 {
        font-size: 24px;
    }

    .category-groups {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-group h3 {
        font-size: 16px;
    }

    .excursions-guide {
        padding: 32px 0;
        margin-top: 32px;
    }

    .excursions-guide__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .excursions-guide h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .excursions-hero__cat-link {
        flex: 1 1 calc(50% - 4px);
        text-align: center;
    }
}

/* ==========================================================================
   Top Sights / Experiences Section (GetYourGuide Pattern)
   ========================================================================== */

.pca-top-sights {
    margin: 0 0 1.5rem;
    padding: 0;
}

.pca-top-sights__container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.pca-top-sights__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.pca-top-sights__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.pca-top-sights__scroll::-webkit-scrollbar {
    display: none;
}

.pca-top-sights__card {
    flex: 0 0 auto;
    width: 140px;
    scroll-snap-align: start;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease;
}

.pca-top-sights__card:hover {
    transform: translateY(-2px);
}

.pca-top-sights__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pca-top-sights__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pca-top-sights__card:hover .pca-top-sights__image {
    transform: scale(1.05);
}

.pca-top-sights__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
    pointer-events: none;
}

.pca-top-sights__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: center;
    padding: 0 2px;
}

.pca-top-sights__scroll-hint {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(to right, transparent, white 60%);
    pointer-events: none;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.pca-top-sights__scroll-arrow {
    font-size: 1.25rem;
    color: #666;
    animation: pulse-arrow 1.5s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

/* Desktop: Larger cards, no scroll hint needed */
@media (min-width: 769px) {
    .pca-top-sights__card {
        width: 160px;
    }

    .pca-top-sights__label {
        font-size: 0.9375rem;
    }
}

/* Mobile: Show scroll hint, adjust sizing */
@media (max-width: 768px) {
    .pca-top-sights__title {
        font-size: 1.25rem;
    }

    .pca-top-sights__card {
        width: 120px;
    }

    .pca-top-sights__label {
        font-size: 0.8125rem;
    }

    .pca-top-sights__scroll-hint {
        display: flex;
    }
}

@media (max-width: 480px) {
    .pca-top-sights__card {
        width: 110px;
    }

    .pca-top-sights__image-wrap {
        border-radius: 10px;
    }
}

/* ==========================================================================
   Load More Button
   ========================================================================== */

.pca-load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    margin-top: 1rem;
}

.pca-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #fff;
    border: 2px solid #f48120;
    border-radius: 8px;
    color: #f48120;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px; /* Touch target */
}

.pca-load-more-btn:hover {
    background: #f48120;
    color: #fff;
}

.pca-load-more-btn:focus {
    outline: 2px solid #f48120;
    outline-offset: 2px;
}

.pca-load-more-btn:active {
    transform: scale(0.98);
}

.pca-load-more-text {
    font-weight: 600;
}

.pca-load-more-count {
    font-weight: 400;
    opacity: 0.8;
}

/* Revealed tour animation */
.pca-revealed-tour {
    animation: fadeInUp 0.3s ease-out;
}

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

@media (max-width: 768px) {
    .pca-load-more-wrapper {
        padding: 1.5rem 1rem;
    }

    .pca-load-more-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}
