body {
    background-color: var(--background-light);
    color: var(--text-dark);
    font-family: "Plus Jakarta Sans", sans-serif;
    /* This creates a counter for the itinerary list */
    counter-reset: itinerary-counter;
}

/* Add dark mode support */
body.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* --- Layout --- */
.tour-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tour-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.tour-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tour-sidebar {
    width: 100%;
}

.tour-header .tour-title {
    margin-bottom: 0; 
}

.tour-header p{
    font-size: 0.875rem;
    margin:4px 0;
    padding-bottom: 4px;
}

.sidebar-sticky-box {
    position: sticky;
    top: 7rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .tour-container {
        padding: 3rem 2rem;
    }
    .tour-layout {
        flex-direction: row;
        gap: 3rem;
    }
    .tour-content {
        width: 66.666%;
    }
    .tour-sidebar {
        width: 33.333%;
    }
}

/* --- Content Styling --- */
.tour-title {
    font-size: 1.75rem; 
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--theme-palette-color-4);
}

.section-title {
    font-size: 1.125rem; /* 2xl */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--theme-palette-color-4);
}

/* Basic prose styles for WYSIWYG content */
.prose {
    line-height: 1.65;
    color: var(--text-muted-dark);
}
body.dark-mode .prose {
    color: var(--text-muted-light);
}
.prose ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem 1.5rem;
}
.prose ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.prose ul li::before {
    content: "check_circle"; 
    font-family: 'Material Symbols Outlined';
    color: var(--primary-color);
}
@media (min-width: 640px) {
    .prose ul {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Sidebar Styling --- */
.sidebar-box {
    padding: 1.125rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    background: var(--background-light);
}
body.dark-mode .sidebar-box {
    background: var(--background-dark);
}

/* UPDATED Booking Box */
.booking-box {
    display: flex;
    flex-direction: column;
    gap: 1.125rem; 
}

/* NEW: Sidebar Excerpt */
.sidebar-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted-dark);
    line-height: 1.5;
    margin: 0; 
}
body.dark-mode .sidebar-excerpt {
    color: var(--text-muted-light);
}

/* NEW: Tour Tags */
.tour-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tour-tag-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem; 
    font-weight: 500;
    border-radius: 9999px; 
    
}

/* NEW: Info Box */
.sidebar-info-box {
    background-color: #f0fdf4; 
    border: 1px solid #bbf7d0; 
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
body.dark-mode .sidebar-info-box {
    background-color: #162a19; 
    border: 1px solid #2b5734;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item .material-symbols-outlined {
    font-size: 20px;
    color: #22c55e; 
    margin-top: 0.125rem; 
}

.info-item p {
    flex: 1;
    font-size: 0.875rem; 
    line-height: 1.5;
    color: var(--text-muted-dark);
    margin: 0;
}
.info-item p strong {
    color: var(--text-dark);
    font-weight: 600; 
}
body.dark-mode .info-item p {
    color: var(--text-muted-light);
}
body.dark-mode .info-item p strong {
    color: var(--text-light);
}

/* Book Now Button */
.book-now-btn {
    width: 100%;
    height: 3rem;
    background-color: var(--primary-color);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: opacity 0.2s;
}
.book-now-btn:hover {
    opacity: 0.9;
}

/* Meta Box (Duration, etc) */
.meta-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.meta-item .material-symbols-outlined {
    font-size: 24px;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    background-color: var(--light-orange);
    color: var(--primary-color);
}
body.dark-mode .meta-item .material-symbols-outlined {
    background-color: rgba(115, 212, 17, 0.2);
}
.meta-label {
    font-weight: 600;
}
.meta-value {
    font-size: 0.875rem;
    color: var(--text-muted-dark);
}
body.dark-mode .meta-value {
    color: var(--text-muted-light);
}

.meta-item .meta-label {
    margin-bottom: 4px; 
}

.meta-item .meta-value{
    margin-bottom: 4px;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {

    transform: scale(1.1);
}
/* --- Itinerary & FAQ Accordion --- */
.itinerary-list, .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Shared styles for both items */
.itinerary-item, .faq-item {
    padding: 1.5rem;
    border-radius: var(--border-radius-xl);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
body.dark-mode .itinerary-item, 
body.dark-mode .faq-item {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
}

/* --- Itinerary Specific Layout --- */
.itinerary-item {
    display: flex;
    gap: 1rem;
    counter-increment: itinerary-counter;
}

.itinerary-item-day {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    font-weight: 700;
    background-color: var(--light-orange);
    color: var(--primary-color);
    margin-top: 0.125rem; 
}
/* This CSS displays the counter number */
.itinerary-item-day::before {
    content: counter(itinerary-counter);
}


.itinerary-item-main {
    flex: 1; 
}

/* Styles the moved H3 from {@_value} AND the FAQ title */
.itinerary-item-main h3, .faq-item-title {
    font-size: 1.125rem; 
    font-weight: 700;
    margin-bottom: 0; 
}

/* Itinerary content box */
.itinerary-item .content {
    overflow: hidden;
    max-height: 3rem; 
    position: relative;
    transition: max-height 0.5s ease-in-out;
    margin-top: 0.25rem; 
    font-weight: 400; 
}
.itinerary-item .content .prose {
    color: var(--text-muted-dark);
}
body.dark-mode .itinerary-item .content .prose {
    color: var(--text-muted-light);
}

/* Itinerary fade-out */
.itinerary-item .content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: linear-gradient(to top, #fff, transparent);
}
body.dark-mode .itinerary-item .content::after {
     background: linear-gradient(to top, var(--background-dark), transparent);
}
.itinerary-item.open .content {
    max-height: 5000px; /*height of content*/
    margin-top: 0.5rem;
}
.itinerary-item.open .content::after {
    display: none;
}

/* --- FAQ Specific Styling --- */
.faq-item {
    display: flex;
    flex-direction: column;
}
.faq-item .content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
}
.faq-item.open .content {
    max-height: 1000px;
    margin-top: 0.5rem;
}

/* --- Shared Accordion Buttons --- */
.read-more-btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.itinerary-item.open .read-more-btn,
.faq-item.open .read-more-btn {
    display: none;
}
.collapse-btn {
    display: none;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.itinerary-item.open .collapse-btn,
.faq-item.open .collapse-btn {
    display: inline-block;
}

.booking-box p:empty {
    display: none;
}