/*
 * Public congress pages: the breadcrumb trail (edition and series pages), the full-name subtitle under
 * the H1 of the edition page, the year radios of the listing filter, the no-results panel above its
 * suggested conferences, and the hotel page's photo gallery and layout. Tokens follow the
 * site: navy #333d4c, yellow #fddd01, muted grey #8a93a3, body grey #676e78, purple #6433a1,
 * border #e5e8ef.
 */

.cbBreadcrumbs {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    font-size: 13px;
    color: #8a93a3;
}

.cbBreadcrumbs li {
    display: inline;
}

.cbBreadcrumbs li + li::before {
    content: "\203A";
    margin: 0 6px;
    color: #8a93a3;
}

.cbBreadcrumbs a {
    color: #8a93a3;
}

.cbBreadcrumbs a:hover {
    color: #333d4c;
}

.cbBreadcrumbs [aria-current="page"] {
    color: #333d4c;
}

/* Year radios: the checkbox look, drawn round, with a yellow dot when chosen. */
.styled-radio + label::before {
    border-radius: 50%;
}

.styled-radio:checked + label::before {
    background: #fff;
    border: 1px solid #fddd01;
    box-shadow: inset 0 0 0 4px #fddd01;
}

/* Full congress name under the H1 of the edition page. */
.congressSubtitle {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: #676e78;
    margin: 0 0 12px;
}

/* Hashtag with no listing behind it (nothing upcoming): shown as plain text, not a link. */
.topCIHashtagStatic { cursor: default; }

/* No-results panel: a listing whose filters match nothing (partials/no-results). */
.cbNoResults {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 0 32px;
    padding: 28px 32px;
    border: 1px solid #e5e8ef;
    border-radius: 8px;
    background: #f8f9fb;
}

.cbNoResultsIcon {
    flex: 0 0 48px;
    color: #6433a1;
}

.cbNoResultsBody {
    min-width: 0;
}

.cbNoResultsTitle {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #333d4c;
    text-wrap: balance;
}

.cbNoResultsText {
    max-width: 60ch;
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #676e78;
}

.cbNoResultsActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* The theme gives .button margins and minimum widths meant for other rows; inside the panel the gap spaces them. */
.cbNoResultsActions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 45px;
    margin: 0;
    padding: 0 24px;
}

@media screen and (max-width: 767px) {
    .cbNoResults {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .cbNoResultsTitle {
        font-size: 20px;
    }

    .cbNoResultsActions .button {
        flex: 1 1 100%;
    }
}

/*
 * Hotel page gallery before tiny-slider starts: the same row it builds, so a slow connection never shows the
 * photos stacked full width. Mirrors the slider's responsive options in app/hotels/show.blade.php (1 photo,
 * 2 from 667px, 3 from 1023px, 15px gutter); keep the two in step. The gutter only shows once two photos
 * fit, so it needs no breakpoint of its own. Once the slider adds .tns-slider these rules stop matching
 * and it owns the layout.
 */
#topHotelCarousel:not(.tns-slider) {
    display: flex;
    gap: 15px;
    overflow: hidden;
}

#topHotelCarousel:not(.tns-slider) > .topHotelCarouselItem {
    flex: 0 0 100%;
    min-width: 0;
}

@media screen and (min-width: 667px) {
    #topHotelCarousel:not(.tns-slider) > .topHotelCarouselItem {
        flex-basis: calc((100% - 15px) / 2);
    }
}

@media screen and (min-width: 1023px) {
    #topHotelCarousel:not(.tns-slider) > .topHotelCarouselItem {
        flex-basis: calc((100% - 30px) / 3);
    }
}

/*
 * Hotel page layout (app/hotels/show.blade.php, scoped by .hotelDetailPage). The theme sizes the two columns
 * for a 1060px container (650 + 30 + 380) inside the 1140px one, so the form ended short of the right edge
 * the related hotels and footer line up to. On desktop the main column now takes the remaining width and the
 * form card stays in view beside the description and map.
 */
.hotelDetailPage .topCongress {
    padding-top: 24px;
}

.hotelDetailPage .topHotelTitle {
    margin-top: 16px;
}

.hotelDetailPage .topHotelTitle .bigMediumTitle {
    width: 100%;
    line-height: 1.15;
    text-wrap: balance;
}

.hotelDetailPage .topHotelstars {
    margin-top: 12px;
}

.hotelDetailPage .locationlink .topCIDetails {
    gap: 6px;
}

.hotelDetailPage .roomsTitleWrap {
    margin: 32px 0 8px;
}

.hotelDetailPage .roomsTitleWrap .pageTitle {
    margin: 0 0 4px;
    padding: 0;
}

.hotelDetailPage .roomsTitleWrap .articlesNumber {
    margin: 0;
    padding: 0;
    border-left: none;
    font-size: 14px;
}

/* Up to 110px; on a tight column the theme's img max-width lets the logo give way before the room name. */
.hotelDetailPage .roomsItemDet img {
    width: 110px;
    height: auto;
    vertical-align: middle;
}

.hotelDetailPage .hotelSectionTitle {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #333d4c;
}

.hotelDetailPage .hotelAcronyms p {
    margin: 0 0 4px;
}

.hotelDetailPage .hotelDescription {
    text-wrap: pretty;
}

/* Each distance spans the wrapper's three rows (icon, value, label), so every value sits under the tallest icon. */
.hotelDetailPage .distancesWrap {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    column-gap: 24px;
}

.hotelDetailPage .distanceItem {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    width: auto;
    margin: 0;
}

.hotelDetailPage .distanceIconSprite {
    align-self: end;
    margin: 0 auto 10px;
}

/* Related hotel cards: the room summary takes what the price leaves, instead of running under it. */
.relatedHotelsCarousels .cRigtCtitle {
    padding-right: 8px;
}

.relatedHotelsCarousels .cRightCol:first-child {
    flex: 1 1 auto;
}

.relatedHotelsCarousels .cRightCol:last-child {
    flex-shrink: 0;
    margin-left: 8px;
}

/* Rooms table (phones below 568px get the theme's stacked cards, which keep a label on every row). */
@media screen and (min-width: 568px) {
    .hotelDetailPage .roomsItemDet {
        padding: 12px 16px 12px 0;
        vertical-align: top;
    }

    .hotelDetailPage .roomsItemDet:last-child {
        padding-right: 0;
        text-align: right;
    }

    .hotelDetailPage .roomsDetailRow + .roomsDetailRow .roomsItemDet {
        border-top: 1px solid #e5e8ef;
    }

    .hotelDetailPage .roomsDetailRow + .roomsDetailRow .itemDen {
        display: none;
    }
}

@media screen and (min-width: 992px) {
    .hotelDetailPage .topCongressLeft {
        flex: 1;
        min-width: 0;
        margin-right: 40px;
    }

    .hotelDetailPage .detailHotelForm {
        margin-top: 0;
    }
}

/* Only the room name may wrap; dates, status and price stay whole once the column has room for them. */
@media screen and (min-width: 768px) {
    .hotelDetailPage .roomsItemDet + .roomsItemDet {
        white-space: nowrap;
    }
}

/* Only where the whole form card fits on screen, so its bottom is never out of reach. */
@media screen and (min-width: 992px) and (min-height: 820px) {
    .hotelDetailPage .congressRight {
        position: sticky;
        top: 24px;
    }
}
