.vpt-plan-section-heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 2rem 0 1rem;
    color: var(--vpt-text);
    font-size: 1.45rem;
    font-weight: 700 !important;
}

.vpt-plan-section-heading i {
    color: var(--vpt-muted);
}


.vpt-plan-section-heading-center { justify-content: center; text-align: center; }
@media (max-width: 767.98px) {
    .vpt-plan-section-heading-center { justify-content: flex-start; text-align: left; }
}

.vpt-plan-day-number {
    color: var(--bs-green-600);
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
}
.vpt-plan-day-gallery-carousel { --vpt-carousel-desktop-items: 3; --bs-carousel-items-gap: .75rem; }
.no-image-placeholder { min-height: 200px; }

.vpt-plan-day-title {
    color: var(--vpt-text);
    font-weight: 600;
}

.plan-days-list .plan-day-item,
.itinerary-day-item {
    border-bottom: 1px solid #e9ecef;
}

.plan-days-list .plan-day-item:last-child,
.itinerary-day-item:last-child {
    border-bottom: 0;
}

.vpt-plan-day-accordion .accordion-item {
    background: transparent !important;
    border: 0 !important;
    overflow: hidden;
}

.vpt-plan-day-accordion .accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .9rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--vpt-text) !important;
    cursor: pointer;
    list-style: none;
}

.vpt-plan-day-accordion .accordion-header::-webkit-details-marker {
    display: none;
}

.vpt-plan-day-accordion .accordion-header:hover,
.vpt-plan-day-accordion .accordion-header:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--vpt-text) !important;
}

.vpt-plan-day-toggle-icon {
    display: inline-flex;
    flex: 0 0 auto !important;
    width: 1rem;
    font-size: 1.1rem;
    line-height: 1;
    text-align: center;
}

.vpt-plan-day-toggle-icon .ph-minus {
    display: none;
}

.vpt-plan-day-accordion details[open] > .accordion-header .vpt-plan-day-toggle-icon .ph-plus {
    display: none;
}

.vpt-plan-day-accordion details[open] > .accordion-header .vpt-plan-day-toggle-icon .ph-minus {
    display: inline-block;
}

.vpt-plan-day-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
}

.vpt-plan-day-accordion .accordion-body {
    padding: 0 0 1rem !important;
    background: transparent !important;
    color: var(--vpt-text) !important;
}

.vpt-plan-content-full {
    color: var(--vpt-text);
    overflow-wrap: anywhere;
}

.vpt-plan-content-full > :last-child {
    margin-bottom: 0;
}

.vpt-plan-content-full p,
.vpt-plan-content-full ul,
.vpt-plan-content-full ol {
    margin-bottom: .85rem;
}

.vpt-plan-content-full ul,
.vpt-plan-content-full ol {
    padding-left: 1.25rem;
}

/* Day-image carousel rendered by [dayN]. */
.vpt-plan-day-gallery {
    margin: 18px 0 28px;
}

/* Tour photos and Behind the Scenes share one gallery renderer. */
.vpt-plan-gallery-description {
    margin: 0 0 1rem;
    color: var(--bs-secondary-color);
}

.vpt-plan-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    margin: 18px 0 0;
    width: 100%;
}

.vpt-plan-gallery--bts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vpt-plan-two-column .vpt-plan-gallery-section {
    margin-top: 0 !important;
}

.vpt-plan-gallery .vpt-plan-gallery-item-hidden {
    display: none;
}

@media (min-width: 768px) {
    .vpt-plan-gallery .vpt-plan-gallery-item-desktop-hidden {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .vpt-plan-gallery .vpt-plan-gallery-item-mobile-hidden {
        display: none;
    }
}

.vpt-plan-gallery-item {
    display: block;
    width: 100%;
    margin: 0;
    min-width: 0;
}

.vpt-plan-gallery .vpt-plan-photo-open {
    position: relative;
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.vpt-plan-gallery .vpt-plan-photo-open img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.vpt-plan-photo-open:focus-visible {
    outline: 3px solid var(--vpt-apple-blue);
    outline-offset: -3px;
}

.vpt-plan-photo-open::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(47, 48, 51, .42);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.vpt-plan-photo-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.1rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .vpt-plan-photo-open:hover::before,
    .vpt-plan-photo-open:focus-visible::before,
    .vpt-plan-photo-open:hover .vpt-plan-photo-zoom,
    .vpt-plan-photo-open:focus-visible .vpt-plan-photo-zoom {
        opacity: 1;
    }
}

.vpt-plan-photo-modal {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: var(--ttv-bg);
    color: var(--bs-body-color);
    overflow: hidden;
}

.vpt-plan-photo-modal[open] {
    display: flex;
    flex-direction: column;
}

.vpt-plan-photo-modal::backdrop {
    background: rgba(47, 48, 51, .88);
}

.vpt-plan-photo-modal .vpt-plan-modal-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vpt-plan-photo-modal :is(.vpt-plan-modal-close, .vpt-plan-modal-prev, .vpt-plan-modal-next) {
    display: inline-grid;
    place-items: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
}

.vpt-plan-photo-modal .vpt-plan-image-status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vpt-plan-image-status .ph-spinner {
    font-size: 32px;
    animation: vpt-plan-image-spin 1s linear infinite;
}

@keyframes vpt-plan-image-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .vpt-plan-image-status .ph-spinner {
        animation: none;
    }
}

.vpt-plan-photo-modal .vpt-plan-modal-carousel {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.vpt-plan-photo-modal .carousel-inner { flex: 1 1 auto; min-height: 0; }
.vpt-plan-photo-modal .carousel-item { position: relative; height: 100%; }
.vpt-plan-photo-modal .vpt-plan-modal-carousel .carousel-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    max-width: 100%;
    height: min(60dvh, 640px);
    max-height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
}
.vpt-plan-photo-modal .carousel-item[aria-busy="true"] img { visibility: hidden; }

.inclusions-section,
.day-params-section,
.inclusion-item,
.day-param-item {
    background: var(--vpt-surface-light);
}

.inclusions-section,
.day-params-section {
    padding: 1rem;
}

@media (max-width: 767.98px) {
    .vpt-plan-photo-open::before,
    .vpt-plan-photo-open:focus-visible::before,
    .vpt-plan-photo-open:hover::before,
    .vpt-plan-photo-open .vpt-plan-photo-zoom,
    .vpt-plan-photo-open:focus-visible .vpt-plan-photo-zoom,
    .vpt-plan-photo-open:hover .vpt-plan-photo-zoom {
        opacity: 0 !important;
    }

    .vpt-plan-day-gallery {
        margin-top: 16px;
    }

    .vpt-plan-day-gallery-controls {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        max-width: 60%;
        margin-top: 20px;
    }

    .vpt-plan-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }

    .vpt-plan-gallery--bts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vpt-plan-day-accordion .accordion-header {
        padding: .85rem 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .vpt-plan-gallery,
    .vpt-plan-gallery,
    .vpt-plan-gallery--bts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.vpt-plan-modal-open { overflow: hidden; }
