/* Naya Tours — Tour CPT styles (single + archive + WhatsApp + per-tour gallery) */

/* === Tour single layout === */
.tour-single {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.tour-single-body { min-width: 0; }
.tour-single-body p { margin-bottom: 16px; line-height: 1.7; }

.tour-single-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(10, 22, 40, .06);
}
.tour-single-card .tour-details-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-bottom: 18px;
}
.tour-single-card .tour-detail {
    display: flex;
    flex-direction: column;
    border-bottom: 1px dashed #e6e6e6;
    padding-bottom: 10px;
}
.tour-single-card .tour-detail:last-child { border-bottom: 0; padding-bottom: 0; }
.tour-single-card .detail-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 4px;
}
.tour-single-card .detail-value {
    font-size: 1rem;
    color: #0a1628;
    font-weight: 600;
}

.tour-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 30px 0 16px;
    color: #0a1628;
}
.tour-section-title.text-center { text-align: center; }

.tour-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.tour-highlights-list li {
    padding: 10px 14px 10px 36px;
    background: #f7faff;
    border-radius: 8px;
    position: relative;
    font-size: 0.95rem;
    color: #0a1628;
}
.tour-highlights-list li::before {
    content: '✦';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c9a55b;
    font-size: 1.1rem;
}
.tour-card-note {
    text-align: center;
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 0.85rem;
}

/* === Buttons === */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: #fff;
    border: 0;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    line-height: 1.2;
}
.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, .35);
    color: #fff;
}
.btn-whatsapp.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    width: auto;
    min-width: 280px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #0a1628;
    border: 2px solid #0a1628;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
    line-height: 1.2;
}
.btn-outline:hover { background: #0a1628; color: #fff; }

/* === Tour cards grid === */
.tour-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.tour-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(10, 22, 40, .06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10, 22, 40, .12);
}
.tour-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}
.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.tour-card:hover .tour-card-image img { transform: scale(1.04); }
.tour-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 22, 40, .82);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.tour-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.tour-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.25;
}
.tour-card-title a { color: #0a1628; text-decoration: none; }
.tour-card-title a:hover { color: #c9a55b; }
.tour-card-desc { color: #4b5563; line-height: 1.5; margin: 0; font-size: 0.95rem; }
.tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 0.92rem;
    padding: 10px 0;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
}
.tour-card-meta strong { color: #0a1628; font-weight: 700; }
.tour-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}
.tour-card-actions .btn-whatsapp,
.tour-card-actions .btn-outline {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.tour-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.tour-empty-state h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #0a1628;
}
.tour-empty-state p { color: #4b5563; margin-bottom: 24px; }

/* === Per-tour gallery (legacy static grid — kept for backwards compat) === */
.tour-gallery-wrap { margin-top: 60px; }
.tour-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.tour-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    background: #f1f1f1;
    cursor: zoom-in;
}
.tour-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.tour-gallery-item:hover img { transform: scale(1.06); }

/* === Compact page header (single tour) === */
.page-header.page-header-compact {
    height: auto;
    min-height: 40vh;
    padding: 100px 20px 50px;
}
@media (max-width: 768px) {
    .page-header.page-header-compact {
        min-height: 32vh;
        padding: 90px 20px 36px;
    }
}

/* === Tour photo slider / carousel === */
.tour-slider-section {
    padding: 36px 0 12px;
    background: #f7f7f5;
}
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.tour-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(10, 22, 40, .12);
    background: #0a1628;
}
.tour-slider-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tour-slider-track::-webkit-scrollbar { display: none; }
.tour-slider-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%;
    height: 60vh;
    min-height: 380px;
    max-height: 640px;
    background: #0a1628;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    display: block;
    position: relative;
}
.tour-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Arrows */
.tour-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0a1628;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: background .2s, transform .2s, opacity .2s;
    z-index: 4;
}
.tour-slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}
.tour-slider-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.tour-slider-prev { left: 18px; }
.tour-slider-next { right: 18px; }

/* Dot indicators */
.tour-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(10, 22, 40, .55);
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4;
}
.tour-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s, width .25s;
}
.tour-slider-dot:hover { background: rgba(255, 255, 255, .75); }
.tour-slider-dot.active {
    background: #fff;
    width: 26px;
    border-radius: 999px;
}

/* Counter (top-right) */
.tour-slider-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(10, 22, 40, .65);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 4;
    letter-spacing: 0.04em;
}

/* Hint line under slider */
.tour-slider-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
}
.tour-slider-hint svg { stroke: #c9a55b; }

/* Hide arrows on small screens (rely on swipe) */
@media (max-width: 640px) {
    .tour-slider-arrow { display: none; }
    .tour-slider-slide { height: 50vh; min-height: 280px; }
    .tour-slider-section { padding: 24px 0 8px; }
    .container-wide { padding: 0 12px; }
    .tour-slider { border-radius: 14px; }
}

/* === Tour CTA section === */
.section-cta {
    background: linear-gradient(135deg, #0a1628 0%, #1a2f4f 100%);
    color: #fff;
    padding: 80px 0;
}
.section-cta .section-title { color: #fff; }
.section-cta .section-subtitle { color: rgba(255, 255, 255, .85); margin-bottom: 30px; }

/* === Contact (WhatsApp-only) page === */
.contact-whatsapp-hero {
    text-align: center;
    padding: 40px 20px;
    max-width: 720px;
    margin: 0 auto;
}
.contact-whatsapp-hero .wa-icon-large {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .4);
    color: #fff;
}
.contact-whatsapp-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin: 0 0 14px;
    color: #0a1628;
}
.contact-whatsapp-hero p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 28px;
}
.contact-whatsapp-hero .btn-whatsapp {
    width: auto;
    min-width: 280px;
    padding: 18px 36px;
    font-size: 1.1rem;
}
.contact-hours {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* === Tour lightbox (single-tour template) === */
#tourLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
#tourLightbox.active { display: flex; }
#tourLightbox .lightbox-content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#tourLightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 6px; }
#tourLightbox .lightbox-close,
#tourLightbox .lightbox-prev,
#tourLightbox .lightbox-next {
    background: rgba(255, 255, 255, .12);
    border: 0;
    color: #fff;
    cursor: pointer;
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
#tourLightbox .lightbox-close:hover,
#tourLightbox .lightbox-prev:hover,
#tourLightbox .lightbox-next:hover { background: rgba(255, 255, 255, .25); }
#tourLightbox .lightbox-close { top: 22px; right: 22px; font-size: 28px; line-height: 1; }
#tourLightbox .lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
#tourLightbox .lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* === Responsive === */
@media (max-width: 1024px) {
    .tour-single { grid-template-columns: 1fr; gap: 24px; }
    .tour-single-card { position: static; }
}
@media (max-width: 768px) {
    .tour-cards-grid { grid-template-columns: 1fr; gap: 22px; }
    .tour-card-actions { grid-template-columns: 1fr; gap: 8px; }
    .tour-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .btn-whatsapp.btn-large {
        width: 100%;
        min-width: 0;
        padding: 16px 22px;
        font-size: 1rem;
    }
    .contact-whatsapp-hero h2 { font-size: 1.8rem; }
    .contact-whatsapp-hero .btn-whatsapp { width: 100%; min-width: 0; }
    .section-cta { padding: 60px 0; }
    #tourLightbox .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }
    #tourLightbox .lightbox-prev { left: 8px; width: 42px; height: 42px; }
    #tourLightbox .lightbox-next { right: 8px; width: 42px; height: 42px; }
    .tour-section-title { font-size: 1.35rem; }
}
@media (max-width: 480px) {
    .tour-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .tour-card-image { aspect-ratio: 16 / 10; }
}

/* === Stronger hero overlay for tour pages ===
   The current AI-placeholder hero images contain baked-in text (e.g. "I am Naya",
   "Find me on the waves"); a darker gradient + blur masks them until real
   photographs replace the placeholders. */
body.post-type-archive-tour .page-header-overlay,
body.single-tour .page-header-overlay {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.88) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* === Header / footer WhatsApp CTAs === */
.nav-cta-wa {
    background: #25D366 !important;
    color: #fff !important;
    transition: background .2s;
}
.nav-cta-wa:hover { background: #1da851 !important; color: #fff !important; }

.sidebar-cta-wa {
    background: #25D366 !important;
    color: #fff !important;
}

.sidebar-wa-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff !important;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-top: 12px;
}
.sidebar-wa-row:hover { background: #1da851; color: #fff !important; }

.footer-contact-intro {
    color: rgba(255, 255, 255, .7);
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.5;
}
.footer-wa-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background .2s, transform .2s, box-shadow .2s;
    margin-bottom: 18px;
}
.footer-wa-cta:hover {
    background: #1da851;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, .35);
}

.social-icon-wa { background: #25D366 !important; color: #fff !important; }
.social-icon-wa:hover { background: #1da851 !important; color: #fff !important; }

/* === Home: Tour preview cards with auto-cycling photo carousel === */
.services-grid .service-card {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(10, 22, 40, .06);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.services-grid .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10, 22, 40, .12);
}
.service-card-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1a2f4f;
    text-decoration: none;
    line-height: 0;
}
/* opacity:0 + z-index:1 must override Smush lazysizes' .lazyloaded { opacity: 1 } */
.service-card-img-wrap .service-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0 !important;
    z-index: 1;
    transition: opacity 0.9s ease;
    will-change: opacity;
}
.service-card-img-wrap .service-card-img.active {
    opacity: 1 !important;
    z-index: 2;
}
.service-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}
.service-card-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.service-card-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: width .35s ease, background .35s ease, border-radius .35s ease;
}
.service-card-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 999px;
}
.service-card-body {
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.services-grid .service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0;
    color: #0a1628;
    line-height: 1.25;
}
.services-grid .service-desc {
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
    font-size: 0.95rem;
}
.services-grid .service-price {
    margin: 4px 0 0;
    color: #0a1628;
    font-size: 1rem;
}
.services-grid .service-link {
    margin-top: auto;
    color: #c9a55b;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    transition: color .2s;
    align-self: flex-start;
    padding-top: 6px;
}
.services-grid .service-link:hover { color: #0a1628; }

@media (max-width: 640px) {
    .service-card-img-wrap { aspect-ratio: 16 / 10; }
    .service-card-body { padding: 22px 20px 24px; }
}

/* === Home: Testimonials grid (compact cards, 3 visible by default + toggle) === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 36px;
}
.testimonials-grid .testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 18px 16px;
    box-shadow: 0 3px 10px rgba(10, 22, 40, .06);
    transition: transform .25s, box-shadow .25s, opacity .35s, max-height .4s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #f1f1f1;
}
.testimonials-grid .testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 22, 40, .10);
}
.testimonials-grid .testimonial-card.is-hidden {
    display: none;
}
.testimonials-grid .testimonial-card.was-hidden {
    animation: testi-fade-in .45s ease both;
}
@keyframes testi-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.testimonials-grid .testimonial-stars {
    color: #c9a55b;
    font-size: 0.92rem;
    letter-spacing: 2px;
    line-height: 1;
}
.testimonials-grid .testimonial-text {
    color: #2b3a55;
    font-style: italic;
    line-height: 1.55;
    margin: 0;
    font-size: 0.92rem;
    flex: 1;
    /* Show ~4 lines max, fade-out with gradient if longer */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testimonials-grid .testimonial-author {
    border-top: 1px solid #f1f1f1;
    padding-top: 10px;
    margin-top: 4px;
}
.testimonials-grid .author-name {
    margin: 0;
    font-weight: 700;
    color: #0a1628;
    font-size: 0.92rem;
}
.testimonials-grid .author-location {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 0.82rem;
}

.testimonials-toggle-wrap {
    text-align: center;
    margin-top: 28px;
}
.testimonials-toggle {
    padding: 12px 28px;
    font-size: 0.95rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .testimonials-grid .testimonial-card { padding: 16px 16px 14px; }
}
