/* Section headers */
.plan-section-header {
    font-weight: 600;
    color: #000;
    border-left: 4px solid #f70;
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

/* Gallery styling */
.ttv-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: #111;
    color: #fff;
    overflow: hidden;
}
.ttv-plan-photo-modal[open] { display: flex; flex-direction: column; }
.ttv-plan-photo-modal::backdrop { background: rgba(0, 0, 0, 0.85); }
.ttv-plan-photo-modal .ttv-plan-modal-toolbar { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ttv-plan-photo-modal button:not(.btn) { color: #fff; background: transparent; border: 0; padding: 8px; }
.ttv-plan-photo-modal .ttv-plan-modal-swiper { width: 100%; min-height: 0; flex: 1 1 auto; }
.ttv-plan-photo-modal .swiper-slide img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.ttv-plan-photo-modal .swiper-slide { position: relative; }
.ttv-plan-photo-modal .swiper-slide[aria-busy="true"] img { visibility: hidden; }
.ttv-plan-photo-modal .ttv-plan-image-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.ttv-plan-image-status .ph-spinner { font-size: 32px; animation: ttv-plan-image-spin 1s linear infinite; }
@keyframes ttv-plan-image-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ttv-plan-image-status .ph-spinner { animation: none; } }
.ttv-plan-photo-modal .ttv-plan-modal-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 20px; }
.ttv-plan-photo-modal .swiper-pagination { position: static; width: auto; }
.ttv-plan-photo-open { position: relative; display: block; cursor: zoom-in; }
.ttv-plan-photo-open:focus-visible { outline: 3px solid #367bcb; outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
    .ttv-plan-photo-open::before,
    .ttv-plan-photo-open::after {
        opacity: 0;
        pointer-events: none;
        position: absolute;
        transition: opacity 0.2s ease;
        z-index: 2;
    }

    .ttv-plan-photo-open::before {
        content: "";
        inset: 0;
        background: rgba(0, 0, 0, 0.32);
    }

    .ttv-plan-photo-open::after {
        content: "⌕";
        top: 50%;
        left: 50%;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 50%;
        color: #fff;
        display: flex;
        font-size: 2rem;
        line-height: 1;
        transform: translate(-50%, -50%);
    }

    .ttv-plan-photo-open:hover::before,
    .ttv-plan-photo-open:hover::after,
    .ttv-plan-photo-open:focus-visible::before,
    .ttv-plan-photo-open:focus-visible::after {
        opacity: 1;
    }
}
@media (max-width: 767.98px) {
    .ttv-plan-photo-open { cursor: default; }
}

.plan-gallery {
    margin-bottom: 30px;
}

.ttv-plan-section-heading {
    align-items: center;
    color: var(--vpt-text, #fff);
    display: flex;
    font-size: 1.6em !important;
    font-weight: 700 !important;
    gap: 0;
    justify-content: flex-start;
    margin-bottom: 1rem;
    text-align: left;
}

.ttv-plan-section-heading i {
    display: none !important;
}

.ttv-plan-section-heading-center {
    justify-content: center;
    text-align: center;
}

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

.plan-days-list,
.plan-single-day,
.plan-multi-day {
    width: 100%;
}

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

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

.ttv-plan-day-accordion .accordion-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.ttv-plan-day-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    gap: 10px;
    padding: 0.9rem 0;
}

.ttv-plan-day-accordion .accordion-button::after {
    background-image: none;
    content: "\e136";
    flex: 0 0 auto;
    font-size: 1.1rem;
    font-family: "Phosphor-Light";
    font-weight: 400;
    height: auto;
    line-height: 1;
    margin-left: 0;
    order: -1;
    transform: none;
    width: 1rem;
}

.ttv-plan-day-accordion .accordion-button:not(.collapsed)::after {
    background-image: none;
    content: "\e13c";
    transform: none;
}

.ttv-plan-day-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: inherit;
}

.ttv-plan-day-accordion .accordion-button:focus {
    box-shadow: none;
}

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

.ttv-plan-day-number {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ttv-plan-day-title {
    font-weight: 600;
}

.ttv-plan-day-accordion .accordion-body {
    padding: 0 0 1rem;
}

.ttv-plan-day-row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.ttv-plan-read-more-toggle {
    color: var(--ttv-primary);
    display: none;
    font-weight: 500;
}

.ttv-plan-read-more-toggle:hover,
.ttv-plan-read-more-toggle:focus {
    color: var(--ttv-primary-border);
}

.ttv-plan-read-more-toggle i {
    transition: transform 0.25s ease;
}

.ttv-plan-read-more[data-expanded="true"] .ttv-plan-read-more-toggle i {
    transform: rotate(180deg);
}

.ttv-plan-content-preview,
.ttv-plan-content-full {
    overflow-wrap: anywhere;
    font-weight: 200 !important;
}

.ttv-plan-content-preview {
    display: none;
}

.plan-detailed-itinerary {
    margin-top: 20px;
}

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

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

.ttv-plan-gallery-item {
    display: block;
    width: 100%;
}

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

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

.ttv-plan-gallery .ttv-plan-photo-open,
.ttv-plan-gallery .ttv-plan-photo-open img {
    display: block;
    width: 100%;
}

.ttv-plan-gallery .ttv-plan-photo-open img {
    aspect-ratio: 3 / 2;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .plan-days-list .plan-day-item,
    .itinerary-day-item {
        margin-bottom: 0;
    }

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

    .ttv-plan-day-row {
        --bs-gutter-y: 0.5rem;
    }

    .ttv-plan-read-more[data-expanded="false"] .ttv-plan-content-preview {
        display: block;
    }

    .ttv-plan-read-more[data-expanded="false"] .ttv-plan-content-full {
        display: none;
    }

    .ttv-plan-read-more[data-expanded="true"] .ttv-plan-content-preview {
        display: none;
    }

    .ttv-plan-read-more-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

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

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

}
