/**
 * Single Trip Template Styles
 *
 * Estilos para a página customizada de viagem individual
 *
 * @package WTE_Sliders
 */

/* ==========================================================================
   Container
   ========================================================================== */

.wte-single-trip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   Hero Slider - 3 slides visíveis
   ========================================================================== */

.wte-trip-hero {
    position: relative;
    background-color: #eff2f9;
}

.wte-trip-hero-slider {
    overflow: hidden;
}

.wte-trip-hero-slider .swiper-slide {
    height: 270px;
    overflow: hidden;
}

.wte-trip-hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wte-trip-hero .swiper-button-prev,
.wte-trip-hero .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.wte-trip-hero .swiper-button-prev:after,
.wte-trip-hero .swiper-button-next:after {
    font-size: 20px;
}

/* ==========================================================================
   Title Bar
   ========================================================================== */

.wte-trip-title-bar {
    background: #eff2f9;
    padding: 20px 15px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.wte-trip-title-bar h1 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #1b4264;
    margin-bottom: 0;
    font-weight: 600;
}

.wte-trip-meta-bar {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.wte-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1b4264;
    font-weight: 500;
}

.wte-meta-item img {
    color: #00c7e4;
}

.wte-meta-item svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Layout 2 colunas (Content + Sidebar)
   ========================================================================== */

.wte-trip-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
    padding-left: 15px;
    padding-right: 15px;
}

.wte-trip-content-wrapper h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1b4264 !important;
}

.wte-trip-content-wrapper p {
    color: #939393 !important;
}

.wte-trip-main-content {
    min-width: 0;
    /* Previne overflow de grid items */
}

/* ==========================================================================
   Sidebar Sticky
   ========================================================================== */

.wte-trip-sidebar {
    position: sticky;
    top: 100px;
}

/* ==========================================================================
   Gallery Full Width Section
   ========================================================================== */

.wte-trip-gallery-section.wte-full-width {
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0 15px;
}

.wte-trip-gallery-section.wte-full-width h2 {
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1b4264;
}

/* Gallery grid - keep existing styles but ensure full width */
.wte-full-width .wte-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

/* Gallery item hover effect */
.wte-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.wte-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.wte-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.wte-gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox overlay hint */
.wte-gallery-item::after {
    content: '\f179';
    /* Search/zoom icon */
    font-family: 'dashicons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wte-gallery-item:hover::after {
    opacity: 0.8;
}

/* ==========================================================================
   Overview/Description
   ========================================================================== */

.wte-trip-overview {
    margin-bottom: 40px;
}

.wte-trip-overview h2 {
    font-size: 1.75rem;
    color: #1b4264;
    margin-bottom: 20px;
}

.wte-trip-overview strong {
    color: #1b4264;
}

.wte-trip-description {
    line-height: 1.6;
    color: #333;
}

.wte-trip-description p {
    margin-bottom: 15px;
    font-size: 14px;
}

.wp-block-media-text .wp-block-media-text__content p {
    margin-bottom: 0;
}

/* ==========================================================================
   Pricing Box
   ========================================================================== */

.wte-pricing-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wte-pricing-header {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.wte-pricing-amount {
    margin: 15px 0;
}

.wte-price-regular {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
    display: block;
    margin-bottom: 5px;
    text-align: right;
}

.wte-price-current {
    font-size: 2rem;
    font-weight: bold;
    color: #1b4264;
    display: block;
    text-align: right;
}

.wte-pricing-button {
    display: block;
    width: 100%;
    padding: 5px;
    background: #00c7e4;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.wte-pricing-button:hover {
    background: #00ACC1;
    color: white;
}

.wte-whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    margin: 15px auto 0;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.wte-whatsapp-button:hover {
    background: #20BA5A;
    transform: scale(1.1);
    color: white;
}

.wte-whatsapp-button svg {
    width: 24px;
    height: 24px;
}

/* Pricing Box - Horizontal Layout (Adult + Child) */
.wte-trip-prices-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 15px 0;
}

.wte-price-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    position: relative;
}

.wte-price-section.wte-price-adult::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    height: 100%;
    width: 1px;
    background: #e0e0e0;
}

.wte-price-label {
    font-size: 12px;
    font-weight: 600;
    color: #00c7e4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.wte-price-section .wte-price-current {
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    color: #1b4264;
}

.wte-price-section .wte-price-regular-strikethrough {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Pricing Box - Simple Layout */
.wte-trip-price {
    margin: 15px 0;
    text-align: right;
}

.wte-price-regular-strikethrough {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.wte-price-per {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* ==========================================================================
   Highlights - 3 ícones
   ========================================================================== */

.wte-trip-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wte-highlight-item {
    text-align: center;
}

.wte-highlight-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #00c7e4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wte-highlight-item p {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

/* ==========================================================================
   Itinerary
   ========================================================================== */

.wte-trip-itinerary {
    margin: 40px 0;
}

.wte-trip-itinerary h2 {
    font-size: 1.75rem;
    color: #1b4264;
    margin-bottom: 25px;
}

.wte-itinerary-section {
    margin-bottom: 30px;
}

.wte-itinerary-section h3 {
    font-size: 1.25rem;
    color: #1b4264;
    margin-bottom: 15px;
}

.wte-itinerary-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.wte-itinerary-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    border-left: 2px solid #00c7e4;
    margin-bottom: 10px;
}

.wte-itinerary-list li:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: #00c7e4;
    border-radius: 50%;
}

.wte-itinerary-list strong {
    color: #1b4264;
}

/* ==========================================================================
   Social Media
   ========================================================================== */

.wte-trip-social {
    margin: 40px 0;
}

.wte-trip-social h3 {
    font-size: 1.25rem;
    color: #1b4264;
    margin-bottom: 15px;
}

.wte-social-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E4405F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wte-social-instagram:hover {
    color: #C13584;
}

.wte-social-instagram svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */

.wte-trip-gallery-section {
    margin: 40px 0;
}

.wte-trip-gallery-section h2 {
    font-size: 1.75rem;
    color: #1b4264;
    margin-bottom: 20px;
}

.wte-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.wte-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.wte-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.wte-gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive - Tablet (768px - 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .wte-trip-content-wrapper {
        grid-template-columns: 1fr;
    }

    .wte-trip-sidebar {
        position: static;
        max-width: 400px;
        margin: 40px auto 0;
    }

    .wte-trip-hero-slider .swiper-slide {
        height: 300px;
    }

    .wte-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Full-width gallery responsive */
    .wte-full-width .wte-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wte-trip-gallery-section.wte-full-width {
        margin: 40px auto;
    }
}

/* ==========================================================================
   Responsive - Mobile (até 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .wte-single-trip-container {
        padding: 10px;
    }

    .wte-trip-title-bar h1 {
        font-size: 1.5rem;
    }

    .wte-trip-meta-bar {
        gap: 15px;
    }

    .wte-trip-hero-slider .swiper-slide {
        height: 250px;
    }

    .wte-trip-highlights {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .wte-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Full-width gallery responsive */
    .wte-full-width .wte-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wte-trip-gallery-section.wte-full-width {
        margin: 30px auto;
    }

    .wte-trip-gallery-section.wte-full-width h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .wte-pricing-box {
        padding: 20px;
    }

    /* Pricing - Responsive adjustments */
    .wte-trip-prices-horizontal {
        flex-direction: column;
        gap: 10px;
    }

    .wte-price-section.wte-price-adult::after {
        display: none;
    }

    .wte-price-section {
        text-align: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 199, 228, 0.2);
    }

    .wte-price-section:last-child {
        border-bottom: none;
    }

    .wte-price-section .wte-price-current {
        font-size: 16px;
    }

    .wte-price-section .wte-price-regular-strikethrough {
        font-size: 11px;
    }

    .wte-trip-overview h2,
    .wte-trip-itinerary h2,
    .wte-trip-gallery-section h2 {
        font-size: 1.5rem;
    }

    .wte-itinerary-section h3,
    .wte-trip-social h3 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .wte-trip-hero .swiper-button-prev,
    .wte-trip-hero .swiper-button-next,
    .wte-whatsapp-button,
    .wte-pricing-button {
        display: none;
    }

    .wte-trip-sidebar {
        position: static;
    }
}

.single-trip .widget-area {
    flex: inherit;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
}