/* Hotel detail page — layout hierarchy & section rhythm (wizard untouched) */
.bravo_hotel_detail {
    --hotel-detail-section-gap: 2.5rem;
    --hotel-detail-title-color: #051036;
    --hotel-detail-muted: #697488;
    --hotel-detail-divider: #e5e7eb;
    --hotel-detail-surface: #f8fafc;
}

.bravo_hotel_detail .hotel-detail-content {
    max-width: 100%;
}

/* Section blocks */
.bravo_hotel_detail .hotel-detail-section {
    margin-bottom: var(--hotel-detail-section-gap);
    padding-top: var(--hotel-detail-section-gap);
    border-top: 2px solid var(--hotel-detail-divider);
}

.bravo_hotel_detail .hotel-detail-main {
    padding-bottom: 1rem;
}

.bravo_hotel_detail .hotel-detail-section:first-child,
.bravo_hotel_detail .hotel-detail-section--no-border {
    border-top: none;
    padding-top: 0;
}

.bravo_hotel_detail .hotel-detail-section--alt {
    background: var(--hotel-detail-surface);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-bottom: var(--hotel-detail-section-gap);
}

.bravo_hotel_detail .hotel-detail-section__title {
    color: var(--hotel-detail-title-color);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.bravo_hotel_detail .hotel-detail-section__lead {
    color: var(--hotel-detail-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: -0.5rem 0 1.25rem;
}

.bravo_hotel_detail .hotel-detail-section .content-text {
    color: #334155;
    line-height: 1.65;
}

/* Clear fixed site header (90px) */
.bravo_hotel_detail .hotel-detail-banner {
    padding-top: 100px;
}

.bravo_hotel_detail .hotel-detail-banner .container {
    position: relative;
    z-index: 1;
}

/* Hero / banner */
.bravo_hotel_detail .hotel-detail-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    min-height: 280px;
    max-height: 420px;
    background: #e2e8f0;
}

.bravo_hotel_detail .hotel-detail-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bravo_hotel_detail .hotel-detail-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.75rem 1.5rem;
    padding-right: min(240px, 42%);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #fff;
    z-index: 2;
}

.bravo_hotel_detail .hotel-detail-hero__overlay h1 {
    margin: 0 0 0.5rem;
    max-width: 100%;
}

.bravo_hotel_detail .hotel-detail-hero__overlay .d-flex.items-center {
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.45;
}

.bravo_hotel_detail .hotel-detail-hero__booking {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(5, 16, 54, 0.12);
    z-index: 3;
}

/* Gallery below hero — contained, spaced from banner */
.bravo_hotel_detail .g-gallery.detail-page-gallery {
    margin: 1.5rem auto 0;
    padding: 0 15px;
    max-width: 1320px;
    position: relative;
    z-index: 1;
}

.bravo_hotel_detail .g-gallery.detail-page-gallery .detail-page-gallery__main {
    max-height: 480px;
}

/* Gallery (shared detail-page-gallery — hotel, tour, space) */
.detail-page-gallery__main {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    aspect-ratio: 16 / 9;
}

.detail-page-gallery__main .hslide {
    line-height: 0;
    height: 100%;
}

.detail-page-gallery__main .hslide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-page-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.detail-page-gallery__nav--prev { left: 10px; }
.detail-page-gallery__nav--next { right: 10px; }

.detail-page-gallery__counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    z-index: 2;
}

.detail-page-gallery__thumbs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.detail-page-gallery__thumb {
    height: 52px;
    width: 72px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s;
}

.detail-page-gallery__thumb.is-active {
    border-color: #3554d1;
    opacity: 1;
}

/* Room cards grid */
.bravo_hotel_detail .hotel-detail-rooms__grid .hotel-room-card {
    border: 1px solid var(--hotel-detail-divider);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.bravo_hotel_detail .hotel-detail-rooms__grid .hotel-room-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(53, 84, 209, 0.1);
}

.bravo_hotel_detail .hotel-room-card__media {
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}

.bravo_hotel_detail .hotel-room-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bravo_hotel_detail .hotel-room-card__body {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bravo_hotel_detail .hotel-room-card__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hotel-detail-title-color);
    margin-bottom: 0.35rem;
}

/* Modal room slider */
.bravo_hotel_detail .qw-room-slider.detail-gallery-aspect {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    aspect-ratio: 16 / 9;
    max-height: 360px;
}

.bravo_hotel_detail .qw-room-slider.detail-gallery-aspect .rslide {
    height: 100%;
}

.bravo_hotel_detail .qw-room-slider.detail-gallery-aspect .rslide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Amenities inside attributes */
.bravo_hotel_detail .g-attributes .hotel-detail-section__title {
    padding-top: 0;
    border-top: none;
}

.bravo_hotel_detail .g-attributes.attr-group {
    padding-bottom: 1.5rem;
}

.bravo_hotel_detail .hotel-detail-attributes__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bravo_hotel_detail .hotel-detail-attributes__list .item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #334155;
}

.bravo_hotel_detail .hotel-detail-attributes__list .item i {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.35;
    margin-top: 0.1rem;
}

/* Map — override global .map { height: 100% } which blows up the section */
.bravo_hotel_detail .hotel-detail-section--map .location-map #map_content.map {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
}

.bravo_hotel_detail .hotel-detail-section--map .g-location {
    margin-bottom: 0;
}

.bravo_hotel_detail .hotel-detail-section--map .container {
    max-width: 1320px;
}

/* Policies */
.bravo_hotel_detail .hotel-detail-section--policy {
    padding-top: 2rem;
    border-top: 2px solid var(--hotel-detail-divider);
}

.bravo_hotel_detail .hotel-policy {
    margin-top: 0;
    padding-bottom: 0;
}

.bravo_hotel_detail .hotel-policy .hotel-detail-section__title {
    margin-bottom: 1.25rem;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--hotel-detail-title-color);
    font-family: var(--font-primary, 'Jost', sans-serif);
}

.bravo_hotel_detail .hotel-policy__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.bravo_hotel_detail .hotel-policy__item {
    display: grid;
    grid-template-columns: minmax(110px, 34%) 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 1rem 0;
    margin: 0;
    border-bottom: 1px solid var(--hotel-detail-divider);
}

.bravo_hotel_detail .hotel-policy__item:last-of-type {
    border-bottom: none;
}

.bravo_hotel_detail .hotel-policy__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hotel-detail-muted);
    line-height: 1.4;
    margin: 0;
}

.bravo_hotel_detail .hotel-policy__value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--hotel-detail-title-color);
    line-height: 1.55;
    margin: 0;
}

.bravo_hotel_detail .hotel-policy__value--html p {
    margin: 0 0 0.5rem;
    color: #334155;
    font-weight: 400;
    line-height: 1.6;
}

.bravo_hotel_detail .hotel-policy__value--html p:last-child {
    margin-bottom: 0;
}

.bravo_hotel_detail .hotel-policy__item--rich {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.15rem 0;
}

.bravo_hotel_detail .hotel-policy__item--rich .hotel-policy__label {
    font-size: 0.9375rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--hotel-detail-title-color);
}

.bravo_hotel_detail .hotel-policy__show-all {
    margin-top: 0.75rem;
    cursor: pointer;
}

@media (max-width: 767px) {
    .bravo_hotel_detail .hotel-policy__item:not(.hotel-policy__item--rich) {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.85rem 0;
    }
}

/* Packages / offers containers */
.bravo_hotel_detail .hotel-detail-section--packages #hotel-packages-section,
.bravo_hotel_detail .hotel-detail-section--offers > .mt-40 {
    margin-top: 0 !important;
}

.bravo_hotel_detail .hotel-detail-section--offers h3 {
    font-weight: 600;
    color: var(--hotel-detail-title-color);
}

/* Quote CTA band */
.bravo_hotel_detail .hotel-detail-quote-band {
    padding: 2.5rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #fff 100%);
    border-top: 2px solid #c7d2fe;
    border-bottom: 2px solid #c7d2fe;
    margin: 2rem 0;
}

.bravo_hotel_detail .hotel-detail-quote-band__text {
    color: var(--hotel-detail-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.bravo_hotel_detail .hotel-detail-cta {
    box-shadow: 0 4px 14px rgba(53, 84, 209, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bravo_hotel_detail .hotel-detail-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(53, 84, 209, 0.35);
}

.bravo_hotel_detail .hotel-detail-cta--compact {
    box-shadow: 0 2px 10px rgba(53, 84, 209, 0.2);
}

/* Reviews */
.bravo_hotel_detail .hotel-detail-section--reviews .bravo-reviews,
.bravo_hotel_detail .hotel-detail-section--reviews .review-list {
    margin-top: 0;
}

.bravo_hotel_detail .hotel-detail-section--reviews h3,
.bravo_hotel_detail .hotel-detail-section--reviews .text-22 {
    font-weight: 600;
    color: var(--hotel-detail-title-color);
}

/* Overview spacing */
.bravo_hotel_detail #overview.gotrip-overview {
    padding-top: 0;
}

.bravo_hotel_detail #overview .hotel-detail-section__title {
    padding-top: 0;
}

@media (max-width: 768px) {
    .bravo_hotel_detail .hotel-detail-hero {
        aspect-ratio: 16 / 10;
        min-height: 240px;
        max-height: none;
    }

    .bravo_hotel_detail .hotel-detail-banner {
        padding-top: 88px;
    }

    .bravo_hotel_detail .hotel-detail-hero__overlay {
        padding: 1.25rem 1rem 1rem;
        padding-right: 1rem;
    }

    .bravo_hotel_detail .hotel-detail-section--map .location-map #map_content.map {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .bravo_hotel_detail .hotel-detail-attributes__list {
        grid-template-columns: 1fr;
    }

    .bravo_hotel_detail .hotel-detail-hero__booking {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        width: 100%;
        min-width: auto;
        backdrop-filter: none;
        background: #fff;
    }

    .bravo_hotel_detail .hotel-detail-section {
        margin-bottom: 2rem;
        padding-top: 2rem;
    }
}

@media (max-width: 480px) {
    .bravo_hotel_detail .hotel-detail-hero {
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }
}
