/* Product page layout (2026-10-13, Marvra-style): photos and content on the left, title and
   booking form on the right. Loaded after activity-detail.css on product pages only.
   Desktop: the gallery opens the left column with a vertical strip of thumbnails beside one
   big photo. Phones: the gallery stays first and full width (rules at the end of
   activity-detail.css), then breadcrumbs, then the right column (title + form), then content. */

@media (min-width: 769px) {
    .detail-page .product-gallery-carousel-section {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        width: auto;
        margin: 0 0 2rem;
        padding: 0;
        overflow: visible;
    }

    .detail-page .product-gallery-carousel-section.product-gallery-carousel--single {
        display: block;
    }

    .detail-page .product-gallery-carousel-wrapper {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        overflow: hidden;
        border-radius: 4px;
    }

    .detail-page .product-gallery-slide-content {
        height: clamp(340px, 54vh, 560px);
    }

    .product-gallery-thumbs {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
        max-width: none;
        max-height: clamp(340px, 54vh, 560px);
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .product-gallery-thumb {
        flex: 0 0 auto;
        width: 76px;
        height: 57px;
    }

    .detail-page .product-gallery-carousel-prev {
        inset-inline-start: 12px;
    }

    .detail-page .product-gallery-carousel-next {
        inset-inline-end: 12px;
    }

    /* Right column: the title sits above the booking form, like the product name on Marvra */
    .detail-page .detail-sidebar > .detail-page-title {
        margin: 0 0 1rem;
        font-size: var(--text-2xl);
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    /* the left column is display: contents on phones: keep the gallery first and edge to edge */
    .detail-page .detail-content > .detail-info > .product-gallery-carousel-section {
        order: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .detail-page .detail-sidebar > .detail-page-title {
        margin: 0 0 1rem;
    }
}

/* Design pass (2026-10-13): a printed guide-book page. The content blocks are open sections
   divided by one hairline rule, not grey tinted panels holding white cards; text follows the
   fluid scale (body at --text-base, headings at --text-xl, serif titles); the two columns get
   more air between them. The sticky booking column rules in app.css are untouched. */
.detail-page .detail-content {
    gap: clamp(2rem, 4vw, 4rem);
}

.detail-page .detail-page-title,
.detail-page .detail-sidebar > .detail-page-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.detail-page .detail-description {
    max-width: 68ch;
    margin-bottom: 0;
    font-size: var(--text-base);
    line-height: 1.7;
}

.detail-page .detail-description p {
    font-size: var(--text-base);
    line-height: 1.7;
    margin: 0 0 1em;
}

.detail-page .detail-description p:last-child {
    margin-bottom: 0;
}

.detail-page .detail-description h2,
.detail-page .detail-description h3 {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 1.5em 0 0.5em;
}

.detail-page .detail-info > .content-section,
.detail-page .detail-info > .detail-content-panel {
    margin: var(--block-gap) 0 0;
    padding: var(--block-gap) 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
}

.detail-page .about-extra-infos__title,
.detail-page .detail-panel-title,
.detail-page .detail-panel-title--spaced,
.detail-page .itinerary-map-heading,
.detail-page .reviews-header h2,
.related-trips-section .section-header h2 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem;
}

/* About this experience: a ruled fact list, the icon stands alone in the brand colour */
.detail-page .about-extra-infos__list {
    gap: 0;
}

.detail-page .about-extra-infos__row {
    gap: 0.875rem;
    padding: 0.875rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}

.detail-page .about-extra-infos__row:first-child {
    padding-top: 0;
}

.detail-page .about-extra-infos__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-page .about-extra-infos__icon.extra-info-icon {
    width: 1.25rem;
    height: auto;
    padding-top: 0.15em;
    background: none;
    color: var(--primary-color);
    border-radius: 0;
}

.detail-page .about-extra-infos__icon.extra-info-icon i {
    font-size: 1.05em;
}

.detail-page .about-extra-infos__item-title {
    font-size: var(--text-base);
    margin: 0 0 0.15rem;
}

.detail-page .about-extra-infos__text {
    font-size: var(--text-sm);
    line-height: 1.6;
    max-width: 68ch;
}

/* Itinerary: the timeline keeps its line and markers (they link the steps) */
.detail-page .itinerary-step__title {
    font-size: var(--text-base);
}

.detail-page .itinerary-step__desc {
    font-size: var(--text-sm);
}

/* Included / not included: plain check and cross glyphs, no filled discs */
.detail-page .detail-info .detail-included-item::before,
.detail-page .detail-info .detail-excluded-item::before {
    width: 1.1rem;
    height: auto;
    margin-top: 0;
    border-radius: 0;
    background: none;
    font-size: var(--text-base);
    line-height: inherit;
}

.detail-page .detail-info .detail-included-item::before {
    color: var(--primary-color);
}

.detail-page .detail-info .detail-excluded-item::before {
    color: var(--accent-color);
}

/* FAQ: ruled question rows instead of a stack of boxed cards */
.detail-page .faq-accordion {
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.detail-page .faq-item {
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
}

.detail-page .faq-item:hover {
    box-shadow: none;
}

.detail-page .faq-question {
    padding: 0.875rem 0;
    font-size: var(--text-base);
    background: transparent;
}

.detail-page .faq-question:hover {
    background: transparent;
}

.detail-page .faq-answer,
.detail-page .faq-item.active .faq-answer {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.detail-page .faq-answer-content {
    padding-top: 0;
    font-size: var(--text-base);
    line-height: 1.7;
    max-width: 68ch;
}

/* Guides that link here: ruled rows, not boxed cards */
.detail-page .product-guides {
    gap: 0 var(--block-gap);
    margin-top: var(--block-gap);
}

.detail-page .product-guide-card {
    padding: 0.875rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
}

.detail-page .product-guide-card:hover .product-guide-card__title {
    text-decoration: underline;
}

@media (min-width: 769px) {
    .detail-page .product-gallery-carousel-section {
        margin-bottom: var(--block-gap);
    }
}

@media (max-width: 1024px) {
    /* the stacked column already spaces its items with the flex gap */
    .detail-page .detail-info > .content-section,
    .detail-page .detail-info > .detail-content-panel {
        margin-top: 0.5rem;
    }
}

/* 2026-10-14 (owner): the guide link gets its cover photo; the booking box gets a soft shadow so it
   stands out from the white page; the reviews block stays inside the page margins (it was a 100vw
   band, which the container's overflow clip cut on the left once the container got narrower). */
.detail-page .product-guide-card--image {
    display: grid;
    grid-template-columns: clamp(110px, 14vw, 180px) 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(0.875rem, 2vw, 1.5rem);
    row-gap: 0.25rem;
    align-items: start;
}

.detail-page .product-guide-card__img {
    grid-row: 1 / 4;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
}

.detail-page .detail-sidebar .booking-widget {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.detail-page .reviews-full-width-wrap {
    width: auto;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Previous / next product of the same section, with photos (owner 2026-10-14). */
.detail-page .product-sibling-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-top: var(--section-y);
    padding-top: var(--block-gap);
    border-top: 1px solid var(--border-color);
}

.detail-page .product-sibling {
    display: grid;
    grid-template-columns: clamp(96px, 12vw, 168px) 1fr;
    grid-template-rows: auto 1fr;
    column-gap: clamp(0.75rem, 1.5vw, 1.25rem);
    row-gap: 0.3rem;
    align-items: start;
    color: var(--text-dark);
    text-decoration: none;
}

.detail-page .product-sibling--next {
    grid-template-columns: 1fr clamp(96px, 12vw, 168px);
    text-align: end;
}

.detail-page .product-sibling__img {
    grid-row: 1 / 3;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.2s ease-out;
}

.detail-page .product-sibling--next .product-sibling__img {
    grid-column: 2;
}

.detail-page .product-sibling--next .product-sibling__label,
.detail-page .product-sibling--next .product-sibling__title {
    grid-column: 1;
}

.detail-page .product-sibling:hover .product-sibling__img {
    opacity: 0.88;
}

.detail-page .product-sibling__label {
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.detail-page .product-sibling__title {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 1.25;
}

@media (max-width: 600px) {
    .detail-page .product-sibling-nav {
        grid-template-columns: 1fr;
    }
}

.detail-page .product-sibling:hover .product-sibling__title {
    text-decoration: underline;
}

/* 2026-10-16 (owner: "the guide and the next look the same"): two different blocks.
   Guides = a light grey reading band with a heading and small photos. Previous / next =
   framed cards with a big photo on top and an explicit link, under their own heading. */
.detail-page .product-guides {
    display: block;
    margin-top: var(--section-y);
    padding: clamp(1rem, 2.5vw, 1.75rem);
    background: var(--bg-light, #f5f6f8);
    border-radius: 4px;
}
.detail-page .product-guides__heading,
.detail-page .product-sibling-nav__heading {
    grid-column: 1 / -1;
    margin: 0 0 var(--block-gap);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.25;
}
.detail-page .product-guides .product-guide-card {
    border-top: 1px solid var(--border-color);
    padding: 0.875rem 0;
}
.detail-page .product-guides .product-guide-card:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.detail-page .product-guides .product-guide-card--image {
    grid-template-columns: clamp(84px, 10vw, 120px) 1fr;
}
.detail-page .product-sibling-nav {
    grid-template-columns: 1fr 1fr;
    border-top: 0;
    padding-top: 0;
}
.detail-page .product-sibling,
.detail-page .product-sibling--next {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: start;
    padding: 0 0 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--white, #fff);
    transition: border-color 0.2s ease-out;
}
.detail-page .product-sibling:hover {
    border-color: var(--primary-color);
}
.detail-page .product-sibling__img,
.detail-page .product-sibling--next .product-sibling__img {
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    margin: 0 0 0.5rem;
}
.detail-page .product-sibling__label,
.detail-page .product-sibling__title,
.detail-page .product-sibling__cta {
    padding-inline: 1rem;
}
.detail-page .product-sibling__title {
    font-size: var(--text-lg);
}
.detail-page .product-sibling__cta {
    margin-top: auto;
    padding-top: 0.25rem;
    color: var(--primary-color);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 600px) {
    .detail-page .product-sibling-nav {
        grid-template-columns: 1fr;
    }
}
.detail-page .product-sibling-nav__heading {
    margin-bottom: 0;
}

/* 2026-10-16 (owner, phone): one short rhythm between every block (1rem), no stacked margins,
   the breadcrumb always on one line (the current page shortens with an ellipsis). */
@media (max-width: 768px) {
    .detail-page .detail-content {
        gap: 1rem;
    }
    .detail-page .product-gallery-carousel-section,
    .detail-page .activity-gallery-carousel-section {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .detail-page .product-gallery-thumbs {
        padding-bottom: 0;
    }
    .detail-page .detail-info > .breadcrumbs--product-detail {
        margin: 0;
    }
    .detail-page .detail-info > .breadcrumbs--product-detail ol {
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
    }
    .detail-page .detail-info > .breadcrumbs--product-detail li {
        flex-shrink: 0;
    }
    .detail-page .detail-info > .breadcrumbs--product-detail li:last-child {
        flex-shrink: 1;
        min-width: 0;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .detail-page .detail-sidebar > .detail-page-title {
        margin: 0 0 0.75rem;
    }
    .detail-page .detail-info > .content-section,
    .detail-page .detail-info > .detail-content-panel {
        margin-top: 0;
        padding-top: 1rem;
    }
    .detail-page .product-guides,
    .detail-page .product-sibling-nav,
    .detail-page .reviews-full-width-wrap {
        margin-top: 1rem;
    }
    .detail-page .reviews-full-width-wrap {
        padding-top: 1rem;
    }
}
