/* ==========================================================================
   global-new.css — Group Page Styles
   Self-contained CSS for the group tours page.
   All layout utilities scoped to main.grouppage to avoid conflicts.
   ========================================================================== */

/* --- Hero Slider (video full-screen) --- */
main.grouppage .hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
main.grouppage .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}
main.grouppage .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
main.grouppage .hero-slide-image,
main.grouppage .hero-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
main.grouppage .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.2), transparent);
}
@media (max-width: 768px) {
    main.grouppage .hero-slider {
        min-height: 500px;
        height: 70vh;
    }
}

/* --- Responsive Images (CLS prevention + fluid) --- */
main.grouppage img {
    max-width: 100%;
    height: auto;
}
main.grouppage .yt-lite img {
    height: auto;
    min-height: 100%;
}

/* --- Tab Navigation --- */
main.grouppage .group-tab-nav {
    position: relative;
    z-index: 1020;
    background: #f5f0eb;
    border-bottom: 1px solid #e5e0d8;
}
main.grouppage .group-tab-nav.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    will-change: transform;
}
main.grouppage .group-tab-nav-placeholder {
    display: none;
}
main.grouppage .group-tab-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
main.grouppage .group-tab-list::-webkit-scrollbar {
    display: none;
}
main.grouppage .group-tab {
    display: inline-block;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, border-bottom-color 0.3s;
    border-bottom: 3px solid transparent;
}
main.grouppage .group-tab:hover {
    color: #1a1a2e;
    border-bottom-color: #00a652;
}
main.grouppage .group-tab.active {
    color: #1a1a2e;
    border-bottom-color: transparent;
}
main.grouppage .group-tab.active:hover {
    border-bottom-color: #00a652;
}
/* Tab scroll arrows — hidden on desktop */
main.grouppage .group-tab-arrow {
    display: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    main.grouppage .group-tab-list {
        justify-content: flex-start;
    }
    main.grouppage .group-tab {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    main.grouppage .group-tab-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2.5rem;
        border: none;
        cursor: pointer;
        z-index: 10;
        color: #1a1a2e;
        font-size: 1.25rem;
        transition: opacity 0.2s;
    }
    main.grouppage .group-tab-arrow--left {
        left: 0;
        background: linear-gradient(to right, #f5f0eb 60%, transparent);
        opacity: 0;
        pointer-events: none;
    }
    main.grouppage .group-tab-arrow--right {
        right: 0;
        background: linear-gradient(to left, #f5f0eb 60%, transparent);
    }
    main.grouppage .group-tab-arrow.visible {
        opacity: 1;
        pointer-events: auto;
    }
    main.grouppage .group-tab-arrow.hidden {
        opacity: 0;
        pointer-events: none;
    }
}

/* --- Region Cards (Get to Know Italy) --- */
main.grouppage .region-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
main.grouppage .region-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
main.grouppage .region-card:hover img {
    transform: scale(1.05);
}
main.grouppage .region-card .region-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
main.grouppage .region-card .region-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
}

/* --- Theme Cards --- */
main.grouppage .theme-card {
    padding: 2rem 1.5rem;
    border: 1px solid #e5e5e5;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
}
main.grouppage .theme-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* --- Review Cards --- */
main.grouppage .review-card {
    padding: 2rem;
    border: 1px solid #e5e5e5;
    background: #fff;
}
main.grouppage .review-stars {
    color: #c9a84c;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

/* --- Article Cards --- */
main.grouppage .article-card {
    display: block;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
main.grouppage .article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
main.grouppage .article-card:hover img {
    transform: scale(1.05);
}

/* --- Grid Layout Utilities (scoped to grouppage) --- */
main.grouppage .grid { display: grid; }
main.grouppage .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
main.grouppage .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
main.grouppage .gap-4 { gap: 1rem; }
main.grouppage .gap-5 { gap: 1.25rem; }
main.grouppage .gap-6 { gap: 1.5rem; }
main.grouppage .gap-8 { gap: 2rem; }
main.grouppage .gap-12 { gap: 3rem; }
main.grouppage .items-center { align-items: center; }

@media (min-width: 640px) {
    main.grouppage .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    main.grouppage .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    main.grouppage .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    main.grouppage .md\:grid-cols-\[1fr_auto\] { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
    main.grouppage .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    main.grouppage .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    main.grouppage .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    main.grouppage .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    main.grouppage .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* --- Card Hover Effects --- */
main.grouppage .group-service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
main.grouppage .group-service-card:hover img {
    transform: scale(1.05);
}
main.grouppage .group-explore-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
main.grouppage .group-explore-card:hover img {
    transform: scale(1.05);
}



/* --- Gallery Carousel --- */
main.grouppage .wedding-gallery-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}
main.grouppage .wedding-gallery-carousel .gallery-counter {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(17, 24, 39, 0.8);
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    position: relative;
}
main.grouppage .wedding-gallery-carousel[data-auto-slide="true"] .gallery-counter::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, #b8963f);
    border-radius: 1px;
    animation: galleryProgress 4s infinite linear;
}
@keyframes galleryProgress {
    0% { width: 0; }
    100% { width: 40px; }
}
main.grouppage .wedding-gallery-carousel .gallery-viewport {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    aspect-ratio: 16 / 9;
}
main.grouppage .wedding-gallery-carousel .gallery-track {
    display: flex;
    height: 100%;
    transform: translateX(0%);
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
main.grouppage .wedding-gallery-carousel[data-auto-slide="true"] .gallery-track {
    transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
main.grouppage .wedding-gallery-carousel:hover .gallery-track {
    transition-duration: 400ms;
}
main.grouppage .wedding-gallery-carousel .gallery-slide {
    flex: 0 0 100%;
    height: 100%;
}
main.grouppage .wedding-gallery-carousel .gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
main.grouppage .wedding-gallery-carousel .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    padding: 0.5rem 0.75rem;
    z-index: 10;
    transition: all 200ms ease;
    cursor: pointer;
}
main.grouppage .wedding-gallery-carousel .gallery-nav:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
    color: #ffffff;
}
main.grouppage .wedding-gallery-carousel .gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}
main.grouppage .wedding-gallery-carousel .gallery-nav:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}
main.grouppage .wedding-gallery-carousel .gallery-prev {
    left: 1rem;
}
main.grouppage .wedding-gallery-carousel .gallery-next {
    right: 1rem;
}
main.grouppage .wedding-gallery-carousel .gallery-nav i {
    font-size: 2.5rem;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- FAQ Section --- */
main.grouppage .faq-transportation-section {
    background-color: #ffffff;
    padding: 6rem 0;
    position: relative;
}
main.grouppage .faq-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
main.grouppage .faq-main-title {
    font-family: 'Lora', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
main.grouppage .faq-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    font-weight: 400;
}
main.grouppage .faq-list {
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
main.grouppage .faq-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
main.grouppage .faq-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
main.grouppage .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}
main.grouppage .faq-question:hover {
    background-color: rgba(201, 168, 76, 0.06);
}
main.grouppage .faq-question-text {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    letter-spacing: -0.01em;
    padding-right: 1.5rem;
    text-transform: none;
}
main.grouppage .faq-icon {
    width: 28px;
    height: 28px;
    color: #c9a84c;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
main.grouppage .faq-item.active .faq-icon {
    transform: rotate(180deg);
}
main.grouppage .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
main.grouppage .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 2rem;
}
main.grouppage .faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    font-weight: 400;
    margin: 0;
}
main.grouppage .faq-cta {
    text-align: center;
    padding-top: 2rem;
}
main.grouppage .faq-cta-text {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}
main.grouppage .faq-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: #c9a84c;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #c9a84c;
}
main.grouppage .faq-cta-button:hover {
    background-color: #c9a84c;
    border-color: #c9a84c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, 0.3);
}

/* FAQ — Responsive */
@media (max-width: 768px) {
    main.grouppage .faq-transportation-section {
        padding: 4rem 0;
    }
    main.grouppage .faq-main-title {
        font-size: 2rem;
    }
    main.grouppage .faq-subtitle {
        font-size: 1rem;
    }
    main.grouppage .faq-question {
        padding: 1.25rem 1.5rem;
    }
    main.grouppage .faq-question-text {
        font-size: 1.0625rem;
    }
    main.grouppage .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    main.grouppage .faq-cta-text {
        font-size: 1.25rem;
    }
}
