/* ============================================
   PREMIUM ACCORDION ITINERARY DESIGN
   Brand Colors: #6C1536 (Burgundy), #134A60 (Teal), White
   ============================================ */

/* Main Container */
.dtit-itinerary-container {
    margin: 40px 0;
    font-family: inherit;
    /* Use site's global font */
    max-width: 1200px;
}

/* Section Header */
.dtit-section-header {
    font-size: 2rem;
    font-weight: 700;
    color: #6C1536;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    font-family: inherit;
}

/* Accordion Item (Each Day) */
.dtit-accordion-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(108, 21, 54, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dtit-accordion-item:hover {
    box-shadow: 0 8px 30px rgba(108, 21, 54, 0.15);
    transform: translateY(-2px);
}

/* Accordion Header (Clickable) */
.dtit-accordion-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #6C1536 0%, #8B1B45 100%);
    color: white;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
}

.dtit-accordion-header:hover {
    background: linear-gradient(135deg, #8B1B45 0%, #6C1536 100%);
}

.dtit-accordion-header.active {
    background: linear-gradient(135deg, #134A60 0%, #1A6178 100%);
}

/* Day Number Circle */
.dtit-day-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dtit-accordion-header:hover .dtit-day-number {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Day Title */
.dtit-accordion-title {
    flex: 1;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Expand/Collapse Icon */
.dtit-accordion-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    font-size: 24px;
    opacity: 0.9;
}

.dtit-accordion-header.active .dtit-accordion-icon {
    transform: rotate(180deg);
}

/* Accordion Content (Expandable) */
.dtit-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dtit-accordion-content.active {
    max-height: 5000px;
    /* Large enough for content */
}

/* Content Wrapper */
.dtit-day-content-wrapper {
    padding: 24px;
    background: #ffffff;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

/* Image Gallery/Carousel */
.dtit-image-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    flex: 1;
}

.dtit-gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.dtit-gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dtit-gallery-slide {
    min-width: 100%;
    position: relative;
}

.dtit-gallery-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Gallery Navigation Arrows */
.dtit-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(108, 21, 54, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.dtit-gallery-arrow:hover {
    background: rgba(108, 21, 54, 1);
    transform: translateY(-50%) scale(1.1);
}

.dtit-gallery-arrow.prev {
    left: 16px;
}

.dtit-gallery-arrow.next {
    right: 16px;
}

.dtit-gallery-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Gallery Dots */
.dtit-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.dtit-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dtit-gallery-dot.active {
    background: #6C1536;
    border-color: #6C1536;
    transform: scale(1.3);
}

/* Day Details Section */
.dtit-day-details {
    color: #333;
    flex: 1;
    min-width: 0;
}

.dtit-day-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: #6C1536;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.dtit-day-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 24px;
    font-weight: 300;
}

.dtit-day-desc p {
    margin: 0 0 12px 0;
}

/* Itinerary Points List */
.dtit-day-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dtit-day-points li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(108, 21, 54, 0.03) 0%, rgba(19, 74, 96, 0.03) 100%);
    border-radius: 10px;
    border-left: 4px solid #6C1536;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.dtit-day-points li:hover {
    background: linear-gradient(135deg, rgba(108, 21, 54, 0.08) 0%, rgba(19, 74, 96, 0.08) 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(108, 21, 54, 0.1);
}

/* Point Icon */
.dtit-point-icon {
    font-size: 20px;
    margin-right: 14px;
    color: #6C1536;
    flex-shrink: 0;
    margin-top: 2px;
}

.dtit-point-icon.dashicons {
    width: 20px;
    height: 20px;
}

/* Meta Information (Location, Hotel) */
.dtit-day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(108, 21, 54, 0.1);
}

.dtit-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #134A60 0%, #1A6178 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.dtit-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Close All / Expand All Buttons */
.dtit-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.dtit-control-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6C1536 0%, #8B1B45 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dtit-control-btn:hover {
    background: linear-gradient(135deg, #8B1B45 0%, #6C1536 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 21, 54, 0.3);
}

/* Animations */
@keyframes dtitFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dtit-accordion-item {
    animation: dtitFadeIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dtit-section-header {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .dtit-accordion-header {
        padding: 18px 20px;
    }

    .dtit-day-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 14px;
    }

    .dtit-accordion-title {
        font-size: 1.1rem;
    }

    .dtit-accordion-icon {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .dtit-day-content-wrapper {
        padding: 24px 20px;
    }

    .dtit-gallery-slide img {
        height: 250px;
    }

    .dtit-gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .dtit-gallery-arrow.prev {
        left: 10px;
    }

    .dtit-gallery-arrow.next {
        right: 10px;
    }

    .dtit-day-title-main {
        font-size: 1.4rem;
    }

    .dtit-day-desc {
        font-size: 1rem;
    }

    .dtit-day-points li {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .dtit-day-content-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .dtit-image-gallery {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .dtit-gallery-slide img {
        height: 250px;
    }

    .dtit-day-meta {
        flex-direction: column;
        gap: 12px;
    }

    .dtit-meta-item {
        width: 100%;
    }

    .dtit-controls {
        flex-direction: column;
    }

    .dtit-control-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .dtit-accordion-header {
        background: #6C1536 !important;
    }

    .dtit-accordion-content {
        max-height: none !important;
        display: block !important;
    }

    .dtit-gallery-arrow,
    .dtit-gallery-dots,
    .dtit-controls {
        display: none !important;
    }
}