/* Condo guide pages (condodetails.aspx, /{island}/condos/{slug}.aspx) - Nov 2026 redesign, round 2.
   Breadcrumb, photo mosaic, title + verdict + rentals card, "What guests say", "At a glance" + map, rental cards
   and prices, reviews, similar resorts (hg-landing.css .bf-card + hg-condo-hub.css .ch-card), "Keep exploring",
   and the sticky bar. Two typefaces: Fraunces (headings, the verdict) and the system sans. Prefix cg-. */

/* ---------------------------------------------------------------- breadcrumb */

.cg-crumbs {
    font-size: 13px;
    color: #6d6350;
    padding: 14px 0 0 0;
}

    .cg-crumbs a {
        color: #6d6350;
    }

    .cg-crumbs .cg-sep {
        margin: 0 6px;
        color: #b4a88f;
    }

.cg-back {
    display: none;
}

/* ---------------------------------------------------------------- photos */

/* Mosaic: the cover photo large with two more stacked beside it, close to the photos' own 3:2 shape, so the
   aerials (and the pins on them) aren't cropped away; one wide photo for a one-photo guide, a pair for two.
   Phones: every photo in a swipeable row, with a counter. */
.cg-photos-wrap {
    position: relative;
    margin: 10px 0 0 0;
    border-radius: 14px;
    overflow: hidden;
}

.cg-photos {
    display: grid;
    gap: 8px;
}

.cg-ph1 .cg-photos {
    grid-template-columns: 1fr;
    height: 440px;
}

.cg-ph2 .cg-photos {
    grid-template-columns: 1fr 1fr;
    height: 347px;
}

.cg-ph3 .cg-photos {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 434px;
}

    .cg-ph3 .cg-ph:first-child {
        grid-row: 1 / span 2;
    }

    .cg-ph3 .cg-ph:nth-child(n+4),
    .cg-ph2 .cg-ph:nth-child(n+3) {
        display: none;
    }

.cg-ph {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #dcd8c6;
    cursor: zoom-in;
}

.cg-ph1 .cg-ph {
    cursor: default;
}

    .cg-ph img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        transition: transform .45s ease, filter .45s ease;
    }

    .cg-ph:hover img {
        transform: scale(1.025);
        filter: brightness(1.05);
    }

.cg-ph1 .cg-ph:hover img {
    transform: none;
    filter: none;
}

.cg-ph:focus-visible {
    outline: 3px solid #256aa0;
    outline-offset: -3px;
}

.cg-photos-all {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(63, 58, 45, .25);
    border-radius: 999px;
    background: rgba(255, 253, 243, .95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    color: #3f3a2d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .cg-photos-all:hover {
        background: #fff;
    }

.cg-photos-count {
    display: none;
}

/* the gallery is built on first click, inside this hidden holder: only its lightbox is used */
.cg-gallery-holder {
    display: none;
}

/* ---------------------------------------------------------------- title, verdict, rentals card */

.cg-top {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 26px 0 6px 0;
}

.cg-intro {
    flex: 1 1 auto;
    min-width: 0;
}

.cg-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 700 12px/1 -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #80673b;
}

    .cg-kicker::before {
        content: "";
        flex: none;
        width: 32px;
        height: 1px;
        background: #b4a88f;
    }

.cg-h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #3f3a2d;
    margin: 12px 0 14px 0;
}

/* the verdict, as the page's lede */
.cg-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 380;
    font-size: 20px;
    line-height: 1.55;
    color: #3f3a2d;
    max-width: 680px;
    margin: 0 0 10px 0;
}

.cg-lede-note {
    font-size: 13px;
    color: #80776a;
    margin: 0;
}

.cg-card {
    flex: 0 0 300px;
    padding: 18px 20px 16px 20px;
    background: #fffdf3;
    border: 1px solid rgba(168, 154, 133, .55);
    border-radius: 12px;
    box-shadow: 0 6px 18px -8px rgba(63, 58, 45, .35);
}

.cg-card-count {
    font-size: 15px;
    color: #584e38;
    margin: 0 0 10px 0;
}

    .cg-card-count strong {
        font-family: 'Fraunces', Georgia, serif;
        font-weight: 500;
        font-size: 26px;
        color: #3f3a2d;
    }

.cg-card-prices {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .cg-card-prices li {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 0;
        border-top: 1px solid rgba(168, 154, 133, .35);
        font-size: 14.5px;
        color: #584e38;
    }

        .cg-card-prices li strong {
            color: #3f3a2d;
            font-size: 16px;
        }

.cg-card-note {
    font-size: 12.5px;
    color: #80776a;
    margin: 6px 0 0 0;
}

.cg-card-btn {
    margin: 14px 0 0 0;
    white-space: normal;
}

.cg-card-rating {
    display: block;
    margin: 12px 0 0 0;
    font-size: 14px;
    color: #584e38;
    text-align: center;
}

    a.cg-card-rating:hover {
        color: #3f3a2d;
    }

    .cg-card-rating .glyphicon-star {
        color: #e0b43a;
        font-size: 12px;
    }

/* ---------------------------------------------------------------- sections */

.cg-section {
    padding: 38px 0 6px 0;
}

.cg-h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 30px;
    color: #3f3a2d;
    margin: 0 0 14px 0;
}

.cg-h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 21px;
    color: #3f3a2d;
    margin: 30px 0 10px 0;
}

.cg-sub {
    font-size: 15px;
    color: #6d6350;
    margin: -6px 0 14px 0;
}

.cg-note {
    font-size: 13px;
    color: #80776a;
    margin: 8px 0 0 0;
}

/* ---------------------------------------------------------------- what guests say */

.cg-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px 0;
}

.cg-stat {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #eef6ee;
    border: 1px solid #cfe3cf;
    border-radius: 6px;
    color: #2f5d2f;
    font-size: 14px;
    font-weight: 600;
}

.cg-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.cg-col {
    flex: 1 1 360px;
    min-width: 0;
    background: #fffdf3;
    border: 1px solid rgba(168, 154, 133, .5);
    border-radius: 8px;
    padding: 16px 18px 6px 18px;
}

.cg-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 21px;
    font-weight: 500;
    color: #3f3a2d;
    margin: 0 0 10px 0;
}

.cg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .cg-list li {
        position: relative;
        padding: 0 0 12px 28px;
        font-size: 15px;
        line-height: 1.5;
        color: #4f4735;
    }

        .cg-list li strong {
            color: #3f3a2d;
        }

.cg-ico {
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
}

.cg-love .cg-ico, .cg-love .cg-col-title svg {
    color: #2f7d32;
}

.cg-know .cg-ico, .cg-know .cg-col-title svg {
    color: #9d6921;
}

.cg-choose {
    margin: 18px 0 0 0;
    padding: 12px 16px;
    border-left: 4px solid #2a7ab8;
    background: #f2f7fb;
    border-radius: 0 6px 6px 0;
    font-size: 15px;
    line-height: 1.55;
    color: #3f4b56;
}

    .cg-choose strong {
        color: #1f4e74;
    }

.cg-source {
    margin: 14px 0 0 0;
    font-size: 13px;
    color: #80776a;
}

    .cg-source a {
        color: #6d6350;
        text-decoration: underline;
    }

/* the older summary or About text, on the few guides without a new summary */
.cg-legacy {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.65;
    color: #3f3a2d;
}

/* ---------------------------------------------------------------- at a glance + map */

.cg-glance {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.cg-glance-nomap {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
}

.cg-facts {
    margin: 0;
    border-top: 1px solid rgba(168, 154, 133, .45);
}

.cg-fact {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(168, 154, 133, .45);
    font-size: 15px;
    line-height: 1.45;
}

    .cg-fact dt {
        font-weight: 600;
        color: #584e38;
    }

    .cg-fact dd {
        margin: 0;
        color: #3f3a2d;
    }

.cg-map {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(168, 154, 133, .5);
}

    .cg-map img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 56 / 33;
        object-fit: cover;
    }

.cg-map-btn {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 253, 243, .95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    color: #3f3a2d;
    font-size: 13px;
    font-weight: 600;
}

.cg-near {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
}

    .cg-near a {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 8px;
        padding: 5px 0;
        color: #3f3a2d;
    }

        .cg-near a:hover .cg-near-name {
            text-decoration: underline;
        }

.cg-near-num {
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #256aa0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.cg-near-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cg-near-meta {
    font-size: 12.5px;
    color: #80776a;
}

.cg-pano {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 8px;
}

    .cg-pano img {
        display: block;
        height: 380px;
        max-width: none;
    }

/* ---------------------------------------------------------------- rentals + prices */

.cg-units {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cg-unit {
    display: flex;
    flex-direction: column;
    background: #fffdf3;
    border: 1px solid rgba(168, 154, 133, .5);
    border-radius: 10px;
    overflow: hidden;
    color: #3f3a2d;
    box-shadow: 0 3px 8px -4px rgba(18, 18, 18, .25);
    transition: box-shadow .2s ease, transform .2s ease;
}

    .cg-unit:hover, .cg-unit:focus {
        color: #3f3a2d;
        text-decoration: none;
        box-shadow: 0 8px 18px -8px rgba(18, 18, 18, .35);
        transform: translateY(-2px);
    }

.cg-unit-photo {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: #dcd8c6;
}

    .cg-unit-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cg-unit-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 253, 243, .94);
    color: #1f4e74;
    font-size: 12px;
    font-weight: 700;
}

.cg-unit-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 14px 12px 14px;
}

.cg-unit-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 4px 0;
}

.cg-unit-meta {
    font-size: 13.5px;
    color: #6d6350;
}

.cg-unit-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 13.5px;
    color: #584e38;
}

    .cg-unit-foot strong {
        font-size: 17px;
        color: #3f3a2d;
    }

.cg-unit-rating .glyphicon-star {
    color: #e0b43a;
    font-size: 11px;
}

.cg-units-cta {
    margin: 22px 0 0 0;
    text-align: center;
}

.cg-prices {
    width: 100%;
    max-width: 680px;
    border-collapse: collapse;
    font-size: 15px;
    background: #fffdf3;
}

    .cg-prices th, .cg-prices td {
        padding: 9px 14px;
        border-bottom: 1px solid rgba(168, 154, 133, .4);
        text-align: left;
    }

    .cg-prices thead th {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #80673b;
        border-bottom: 2px solid rgba(168, 154, 133, .6);
    }

    .cg-prices tbody th {
        font-weight: 600;
        color: #584e38;
    }

/* ---------------------------------------------------------------- reviews */

.cg-reviews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.cg-review {
    padding: 16px 18px;
    background: #fffdf3;
    border: 1px solid rgba(168, 154, 133, .45);
    border-radius: 10px;
}

.cg-review-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3f3a2d;
}

    .cg-review-unit:hover .cg-review-name {
        text-decoration: underline;
    }

.cg-review-thumb {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #dcd8c6;
}

.cg-review-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

.cg-review-meta {
    margin: 10px 0 4px 0;
    font-size: 13px;
    color: #80776a;
}

.cg-review-stars {
    color: #e0b43a;
    font-size: 15px;
    letter-spacing: 1px;
    margin-right: 8px;
}

.cg-star-off {
    color: #e3dccb;
}

.cg-review-text {
    margin: 0 0 6px 0;
    font-size: 15px;
    line-height: 1.55;
    color: #3f3a2d;
}

    .cg-review-text.cg-clamp {
        display: -webkit-box;
        -webkit-line-clamp: 7;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.cg-read-more {
    display: block;
    margin: -2px 0 8px 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hgx-blue, #256aa0);
    font-size: 14px;
    font-weight: 600;
}

    .cg-read-more:hover {
        text-decoration: underline;
    }

.cg-review-by {
    font-size: 13px;
    color: #6d6350;
}

.cg-more-reviews {
    text-align: center;
    padding: 18px 0 0 0;
}

/* ---------------------------------------------------------------- similar resorts, more links */

.cg-why {
    margin: 0 0 6px 0;
}

    .cg-why span {
        display: inline-block;
        margin: 0 4px 4px 0;
        padding: 2px 8px;
        border-radius: 10px;
        background: #f1ecd9;
        color: #584e38;
        font-size: 12px;
        font-weight: 600;
    }

.cg-also {
    margin-top: 14px;
}

.cg-also-all {
    margin: 8px 0 0 0;
    font-size: 14px;
}

.cg-explore-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

    .cg-explore-links a {
        display: block;
        padding: 14px 16px;
        background: #fffdf3;
        border: 1px solid rgba(168, 154, 133, .5);
        border-radius: 10px;
        color: #3f3a2d;
    }

        .cg-explore-links a:hover {
            text-decoration: none;
            border-color: rgba(128, 103, 59, .8);
        }

    .cg-explore-links strong {
        display: block;
        font-family: 'Fraunces', Georgia, serif;
        font-weight: 500;
        font-size: 17px;
        margin: 0 0 2px 0;
    }

    .cg-explore-links span {
        font-size: 13px;
        color: #6d6350;
    }

.cg-explore {
    padding-bottom: 40px;
}

/* ---------------------------------------------------------------- sticky bar */

/* Desktop: the section links and the button under the pinned menu row, once the rentals card scrolls away. */
.cg-nav {
    position: fixed;
    top: var(--hgx-pinned, 49px);
    left: 0;
    right: 0;
    z-index: 1010;
    background: rgba(255, 253, 243, .97);
    border-bottom: 1px solid rgba(168, 154, 133, .45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
}

body.cg-stuck .cg-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
}

.cg-nav-in {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 7px 15px;
}

.cg-nav-name {
    flex: 0 1 auto;
    max-width: 260px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    color: #3f3a2d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cg-nav-links {
    display: flex;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

    .cg-nav-links a {
        font-size: 14px;
        color: #584e38;
        white-space: nowrap;
    }

.cg-nav-btn {
    flex: none;
    margin-left: auto;
}

/* the sections land below the pinned menu row and the bar */
.cg-section[id] {
    scroll-margin-top: 56px;
}

.cg-bar {
    display: none;
}

/* ---------------------------------------------------------------- narrower screens */

@media (max-width: 991px) {
    .cg-top {
        gap: 24px;
    }

    .cg-card {
        flex-basis: 270px;
    }

    .cg-reviews {
        grid-template-columns: minmax(0, 1fr);
    }

    .cg-explore-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cg-nav-name {
        display: none;
    }
}

@media (max-width: 767px) {
    .cg-crumbs {
        display: none;
    }

    .cg-back {
        display: inline-block;
        padding: 10px 0 8px 0;
        font-size: 14px;
        color: #6d6350;
    }

    .cg-photos-wrap {
        margin: 0 -15px;
        border-radius: 0;
    }

    .cg-photos,
    .cg-ph1 .cg-photos,
    .cg-ph2 .cg-photos,
    .cg-ph3 .cg-photos {
        display: flex;
        height: auto;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

        .cg-photos::-webkit-scrollbar {
            display: none;
        }

    .cg-photos .cg-ph,
    .cg-ph3 .cg-ph:nth-child(n+4),
    .cg-ph2 .cg-ph:nth-child(n+3) {
        display: block;
        flex: 0 0 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        scroll-snap-align: start;
    }

    .cg-ph:hover img {
        transform: none;
        filter: none;
    }

    .cg-photos-all {
        display: none;
    }

    .cg-photos-count {
        display: block;
        position: absolute;
        right: 12px;
        bottom: 12px;
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(22, 18, 12, .62);
        color: #fff;
        font-size: 12.5px;
        font-weight: 600;
        pointer-events: none;
    }

    .cg-top {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding-top: 18px;
    }

    .cg-h1 {
        font-size: 34px;
        margin: 10px 0 10px 0;
    }

    .cg-lede {
        font-size: 18px;
    }

    .cg-card {
        flex-basis: auto;
    }

    .cg-section {
        padding-top: 30px;
    }

    .cg-h2 {
        font-size: 25px;
    }

    .cg-col {
        flex-basis: 100%;
    }

    .cg-glance {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .cg-fact {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 10px;
        font-size: 14.5px;
    }

    .cg-near {
        grid-template-columns: minmax(0, 1fr);
    }

    .cg-units {
        display: flex;
        gap: 12px;
        margin: 0 -15px;
        padding: 0 15px 8px 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 15px;
        scrollbar-width: none;
    }

        .cg-units::-webkit-scrollbar {
            display: none;
        }

    .cg-unit {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

        .cg-unit:hover, .cg-unit:focus {
            transform: none;
        }

    .cg-prices th, .cg-prices td {
        padding: 8px 8px;
        font-size: 14px;
    }

    .cg-explore-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .cg-nav {
        display: none;
    }

    .cg-section[id] {
        scroll-margin-top: 0;
    }

    .cg-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) 14px;
        background: rgba(255, 253, 243, .98);
        border-top: 1px solid rgba(168, 154, 133, .6);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
        font-size: 13.5px;
        color: #584e38;
        transform: translateY(110%);
        transition: transform .25s ease;
    }

    body.cg-stuck .cg-bar {
        transform: none;
    }

        .cg-bar strong {
            display: block;
            font-size: 15px;
            color: #3f3a2d;
        }

    body {
        padding-bottom: 70px;
    }
}
