/**
 * Itinerary Components Stylesheet
 * Contains styles for price display, cost includes, duration badges, gallery slider, day accordions, and related trips grid.
 */

/* ============================================
   Itinerary Price Display
   ============================================ */
.price-display {
    margin-bottom: 1.5rem;
}
.price-label {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}
.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: inherit;
}
.price-unit {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.85;
    margin-left: 0.25rem;
}

/* ============================================
   Itinerary Cost Section / Includes
   ============================================ */
.cost-section {
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.cost-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cost-icon {
    width: 20px;
    height: 20px;
}
.cost-icon.included {
    color: #00a699;
}
.cost-icon.excluded {
    color: #e74c3c;
}
.cost-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cost-item {
    padding: 0.625rem 0;
    font-size: 0.875rem;
    color: #484848;
    line-height: 1.5;
    border-bottom: 1px solid #ebebeb;
}
.cost-item:last-child {
    border-bottom: none;
}
@media (max-width: 640px) {
    .cost-section {
        padding: 1rem;
    }
}

/* ============================================
   Trip Duration Badge
   ============================================ */
.trip-duration {
    font-size: 0.875rem;
    color: #484848;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.duration-icon {
    width: 16px;
    height: 16px;
    color: #00a699;
}

/* ============================================
   Gallery Slider - Minimalist Design
   ============================================ */
.gallery-slider-section {
    width: 100%;
    margin: 3rem 0;
    background: #000;
}
.gallery-slider-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
.gallery-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}
.slide-figure {
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
}
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.9375rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.slider-slide:hover .slide-caption {
    opacity: 1;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #000;
}
.slider-prev {
    left: 2rem;
}
.slider-next {
    right: 2rem;
}
.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}
.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}
.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}
.slider-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}
.slider-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}
.separator {
    margin: 0 0.25rem;
    opacity: 0.6;
}
@media (max-width: 768px) {
    .gallery-slider {
        aspect-ratio: 4 / 3;
    }
    .slider-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    .slider-prev {
        left: 1rem;
    }
    .slider-next {
        right: 1rem;
    }
    .slider-dots {
        bottom: 1rem;
    }
    .slider-counter {
        top: 1rem;
        right: 1rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    .slide-caption {
        padding: 1rem;
        font-size: 0.875rem;
    }
}
.slider-nav:focus,
.slider-dot:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ============================================
   Day-by-Day Itinerary Accordions
   ============================================ */
.day-by-day-section {
    margin: 2rem 0;
}
.itinerary-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}
.itinerary-control-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #484848;
    cursor: pointer;
    transition: all 0.2s;
}
.itinerary-control-btn:hover {
    background: #f7f7f7;
    border-color: #00a699;
    color: #00a699;
}
.day-accordion {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
}
.day-header {
    background: white;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    list-style: none;
}
.day-header::-webkit-details-marker {
    display: none;
}
.day-header:hover {
    background: #f7f7f7;
}
.day-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00a699;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.day-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin: 0.25rem 0 0;
}
.day-toggle {
    width: 24px;
    height: 24px;
    color: #484848;
    transition: transform 0.3s;
}
.day-accordion[open] .day-toggle {
    transform: rotate(180deg);
}
.day-content {
    padding: 0 1.5rem 1.5rem;
    background: white;
}
.day-description {
    font-size: 0.9375rem;
    color: #484848;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.day-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}
@media (max-width: 640px) {
    .day-header {
        padding: 1rem;
    }
    .day-content {
        padding: 0 1rem 1rem;
    }
    .itinerary-controls {
        justify-content: center;
    }
}

/* ============================================
   Related Trips Section Grid & Cards
   ============================================ */
.related-trips-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}
.related-trips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.related-trips-grid p {
    display: none;
}
.related-trips-grid > *:not(.related-trip-card) {
    display: none;
}
.related-trip-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}
.related-trip-card > br {
    display: none;
}
.related-trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.related-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.related-badge-group {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}
.badge-item {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.related-card-content {
    padding: 1.5rem;
}
.related-trip-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1A3C34;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}
.meta-price strong {
    color: #E65100;
    font-weight: 800;
}
.meta-grade {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
@media (max-width: 900px) {
    .related-trips-grid {
        grid-template-columns: 1fr;
    }
}
