/* Product detail polish only; keep booking IDs, forms and handlers intact. */
body.travego-product-only .travego-tour-detail-page .travego-tour-info {
    justify-content: flex-start !important;
    gap: 0 !important;
}
body.travego-product-only .travego-tour-detail-page .travego-tour-info h1 {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
}
body.travego-product-only .travego-tour-detail-page .travego-tour-price-box {
    padding: 10px 0 !important;
    margin: 12px 0 14px !important;
}
body.travego-product-only .travego-tour-detail-page .travego-tour-action-panel {
    margin-top: 0 !important;
}
/* A price and its currency may never wrap onto separate lines. */
body.travego-product-only .travego-tour-detail-page .travego-tour-date-card .travego-tour-price,
body.travego-product-only .travego-tour-detail-page .travego-tour-date-card .travego-new-price,
body.travego-product-only .travego-tour-detail-page .travego-tour-date-card .travego-old-price {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
body.travego-product-only .travego-tour-detail-page .travego-tour-date-card-head .travego-tour-price {
    max-width: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 4px 8px !important;
    text-align: right !important;
}
body.travego-product-only .travego-tour-detail-page .travego-tour-date-card-head .travego-new-price {
    font-size: clamp(1rem, 4.1vw, 1.4rem) !important;
    line-height: 1.3 !important;
}
/* Boarding stops: separate, accessible bullet items rather than a wall of text. */
body.travego-product-only .travego-tour-detail-page .travego-boarding-list {
    padding: 0 0 0 1.35rem !important;
    margin: 12px 0 2px !important;
    display: grid !important;
    gap: 9px !important;
    list-style: disc outside !important;
}
body.travego-product-only .travego-tour-detail-page .travego-boarding-list li {
    line-height: 1.48 !important;
    overflow-wrap: anywhere;
    padding-left: 2px;
}
body.travego-product-only .travego-tour-detail-page .travego-boarding-list li::marker {
    color: #a33238;
}
/* Bring back only the two requested compact information links. */
body.travego-product-only .travego-quick-info {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #ece4e2;
    background: #fff;
    border-radius: 18px;
}
body.travego-product-only .travego-quick-info h2 {
    grid-column: 1 / -1;
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    color: #172339;
}
body.travego-product-only .travego-quick-info-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
    color: #a33238;
    letter-spacing: .09em;
    font-weight: 700;
    font-size: .78rem;
}
body.travego-product-only .travego-quick-info-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}
body.travego-product-only .travego-quick-info-grid > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: #172339;
}
body.travego-product-only .travego-quick-info i {
    color: #a33238;
    font-size: 1.35rem;
    flex: 0 0 26px;
    text-align: center;
}
body.travego-product-only .travego-quick-info-grid a > span { display: grid; gap: 4px; }
body.travego-product-only .travego-quick-info strong { font-size: 1rem; }
body.travego-product-only .travego-quick-info small { color: #68707d; font-size: .85rem; line-height: 1.4; }
body.travego-product-only .travego-quick-info a:focus-visible { outline: 2px solid #a33238; outline-offset: 4px; }
@media (max-width: 768px) {
    body.travego-product-only .travego-product-back {
        font-family: 'Segoe UI', Arial, sans-serif;
        border: 0;
        cursor: pointer;
    }
    body.travego-product-only .travego-quick-info { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px; }
    body.travego-product-only .travego-tour-detail-page .travego-tour-info { padding-bottom: 4px; }
    body.travego-product-only .travego-tour-detail-page .travego-tour-price-box { margin: 8px 0 12px !important; }
}
@media (max-width: 380px) {
    body.travego-product-only .travego-quick-info-grid { grid-template-columns: 1fr; }
}

/* Keep the price fully readable on narrow screens. This changes presentation
   only; the current price, discounts and stock are still calculated by the
   existing product-detail JavaScript. */
@media (max-width: 600px) {
    body.travego-product-only .travego-tour-detail-page .travego-tour-date-card-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100%;
        min-width: 0;
    }
    body.travego-product-only .travego-tour-detail-page .travego-tour-date-card-head > div:first-child {
        min-width: 0;
        max-width: 100%;
    }
    body.travego-product-only .travego-tour-detail-page .travego-tour-date-card-head .travego-tour-price {
        box-sizing: border-box;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        justify-content: flex-end !important;
        gap: 4px 8px !important;
        text-align: right !important;
    }
    body.travego-product-only .travego-tour-detail-page .travego-tour-date-card-head .travego-new-price {
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: clamp(1rem, 4.5vw, 1.4rem) !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }
}

/* Product detail only: keep the top navigation above the image/gallery while
   scrolling. Do not make the search field sticky and do not change image zoom
   or the existing booking/gallery click handlers. */
body.travego-product-only .travego-header-shell {
    position: relative !important;
    z-index: 20000 !important;
    isolation: isolate;
}
body.travego-product-only .travego-header-shell .travego-header.travego-header-fixed {
    z-index: 20001 !important;
}
body.travego-product-only .travego-tour-detail-page .travego-tour-gallery {
    position: relative;
    z-index: 0;
}
