/* Island condo resort pages (/maui-condos.aspx, /kauai-condos.aspx, /big-island-condos.aspx).
   Markup: App_Code/BLL/CondoHub.cs. Cards, area titles and jump pills come from hg-landing.css
   (.bf-hero, .bf-search-card, .bf-card, .bf-area-title, .bf-jump-pill); this file adds the lede
   under the hero, the sticky jump bar, the map and the compact phone layout. Script: hg-condo-hub.js. */

/* ---------------------------------------------------------------- lede under the hero */

/* Centered under the hero like the landing pages' lede (.bf-lede), sand rule included. */
.ch-head {
    padding: 30px 0 4px 0;
    text-align: center;
}

    .ch-head::before {
        content: '';
        display: block;
        width: 56px;
        height: 3px;
        margin: 0 auto 18px auto;
        border-radius: 2px;
        background: #c9b48a;
    }

/* Only when a page has no hero photo (and on the "list unavailable" fallback). */
.ch-h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #3f3a2d;
    margin: 0 0 12px 0;
}

.ch-lede {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    line-height: 1.6;
    color: #3f3a2d;
    max-width: 820px;
    margin: 0 auto 16px auto;
}

.ch-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px 0;
}

.ch-chip {
    display: inline-block;
    padding: 4px 12px;
    background: #fffdf3;
    border: 1px solid rgba(168,154,133,0.55);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(18,18,18,0.06);
    color: #584e38;
    font-size: 13px;
}

    .ch-chip strong {
        color: #157707;
    }

.ch-note {
    font-size: 14.5px;
    color: #6d6350;
    margin: 0 0 6px 0;
}

/* ---------------------------------------------------------------- the short list */

/* One resort per category (CondoHub.BuildPicksHtml): photo left, label / name / the number behind the
   pick / links right. Three across, two on tablets, one on phones. */
.ch-picks {
    margin: 26px 0 6px 0;
    padding: 22px 24px 16px 24px;
    background: #fffdf3;
    border: 1px solid rgba(168,154,133,0.5);
    border-radius: 8px;
    box-shadow: 3px 3px 5px -2px rgba(18,18,18,0.2);
    scroll-margin-top: 60px;
}

.ch-picks-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #80673b;
    margin: 0 0 6px 0;
}

.ch-picks-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 30px;
    letter-spacing: -0.005em;
    color: #3f3a2d;
    margin: 0 0 6px 0;
}

.ch-picks-intro {
    font-size: 14.5px;
    color: #6d6350;
    margin: 0 0 16px 0;
}

.ch-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 26px;
}

.ch-pick {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 14px;
    min-width: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(201,180,138,0.55);
}

.ch-pick-photo {
    display: block;
    align-self: start;
}

    .ch-pick-photo img {
        display: block;
        width: 104px;
        height: 104px;
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(18,18,18,0.25);
    }

.ch-pick-body {
    min-width: 0;
}

.ch-pick-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #882427;
    margin: 0 0 2px 0;
}

.ch-pick-name {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 4px 0;
}

    .ch-pick-name a {
        color: #3f3a2d;
    }

.ch-pick-town {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: normal;
    color: #6d6350;
    margin-left: 8px;
    white-space: nowrap;
}

.ch-pick-why {
    font-size: 13.5px;
    line-height: 1.45;
    color: #4f4737;
    margin: 0 0 6px 0;
}

/* "See N rentals" then the runners-up, which drop to their own line (left aligned) when they don't fit. */
.ch-pick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    font-size: 13px;
    color: #6d6350;
}

.ch-pick-go {
    font-weight: bold;
    white-space: nowrap;
}

.ch-picks-method {
    font-size: 12.5px;
    color: #756a53;
    margin: 16px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(201,180,138,0.55);
}

@media (max-width: 991px) {
    .ch-picks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .ch-picks {
        padding: 16px 14px 12px 14px;
    }

    .ch-picks-title {
        font-size: 25px;
    }

    /* Phones: one swipeable row with the next pick peeking in, so six picks cost one card of height
       instead of 1,300px above the resort list. */
    .ch-picks-grid {
        display: flex;
        gap: 12px;
        margin: 0 -14px;
        padding: 2px 14px 10px 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .ch-pick {
        display: block;
        flex: 0 0 80%;
        scroll-snap-align: start;
        padding: 0 0 12px 0;
        background: #fff;
        border: 1px solid rgba(168,154,133,0.5);
        border-radius: 8px;
        overflow: hidden;
    }

        .ch-pick-photo img {
            width: 100%;
            height: 118px;
            border-radius: 0;
            box-shadow: none;
        }

    .ch-pick-body {
        padding: 10px 12px 0 12px;
    }

    .ch-pick-name {
        font-size: 19px;
    }
}

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

/* Sticks below the site header's pinned row (--hgx-pinned, hg-site.css) while the sections scroll. */
.ch-jump {
    position: -webkit-sticky;
    position: sticky;
    top: var(--hgx-pinned, 49px);
    z-index: 1010;
    margin: 18px -15px 0 -15px;
    padding: 6px 15px;
    background: rgba(255,253,243,0.97);
    border-top: 1px solid rgba(168,154,133,0.35);
    border-bottom: 1px solid rgba(168,154,133,0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* The town pills scroll sideways when they don't fit; the Map pill stays pinned at the right. */
.ch-jump-row {
    display: flex;
    align-items: center;
}

.ch-jump-in {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .ch-jump-in::-webkit-scrollbar {
        display: none;
    }

.ch-jump .bf-jump-label {
    flex: none;
}

.ch-jump .bf-jump-pill {
    flex: none;
    margin: 2px 6px 2px 0;
    padding: 4px 10px;
}

    .ch-jump .bf-jump-pill.active {
        background: #584e38;
        border-top-color: #584e38;
        border-right-color: #584e38;
        border-bottom-color: #584e38;
        color: #fff;
    }

.ch-jump .ch-jump-map {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0 2px 10px;
    border-left-width: 1px;
    border-color: #584e38;
}

    .ch-jump-map svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Land section headings below the header and the jump bar. */
.ch-town {
    scroll-margin-top: 54px;
}

    .ch-town:last-child {
        padding-bottom: 30px;
    }

/* A town's numbers, between its heading and its intro. */
.ch-town-facts {
    font-size: 13px;
    font-weight: bold;
    color: #157707;
    margin: 0 0 6px 0;
}

.ch-area-link {
    font-weight: bold;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- map */

.ch-zoom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 4px 0 8px 0;
}

.ch-zoom-btn {
    margin: 2px 6px 2px 0;
    padding: 4px 10px;
    line-height: 1.43;
}

    .ch-zoom-btn.active, .ch-zoom-btn.active:hover, .ch-zoom-btn.active:focus {
        background: #584e38;
        border-top-color: #584e38;
        border-right-color: #584e38;
        border-bottom-color: #584e38;
        color: #fff;
    }

#chMap {
    height: 540px;
    border-radius: 8px;
    border: 1px solid rgba(168,154,133,0.5);
    box-shadow: 3px 3px 5px -2px rgba(18,18,18,0.25);
    background: #e8e4d4;
}

/* A pin's info window */
.ch-pin {
    max-width: 240px;
    font-size: 14px;
    line-height: 1.5;
    color: #3f3a2d;
}

    .ch-pin strong {
        display: block;
        font-size: 15px;
    }

    .ch-pin a {
        white-space: nowrap;
    }

.ch-pin-star {
    color: #b8860b;
}

/* ---------------------------------------------------------------- cards */

/* A card reached from its map pin ("Show on this page") lands below the header and jump bar, ringed. */
.ch-card {
    scroll-margin-top: 110px;
}

    .ch-card:target {
        box-shadow: 0 0 0 3px #c9a24a, 0 6px 18px rgba(18,18,18,0.25);
    }

.ch-card .bf-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ch-compare {
    margin-left: auto;
    padding-left: 6px;
    padding-right: 6px;
    color: #80673b;
}

    .ch-compare:hover, .ch-compare:focus {
        color: #584e38;
    }

    .ch-compare.active, .ch-compare.active:hover, .ch-compare.active:focus {
        background: #584e38;
        color: #fff;
        text-decoration: none;
    }

/* ---------------------------------------------------------------- phones */

@media (max-width: 767px) {
    .ch-h1 {
        font-size: 36px;
    }

    .ch-lede {
        font-size: 16.5px;
    }

    .ch-jump .bf-jump-label {
        display: none;
    }

    #chMap {
        height: 400px;
    }
}

/* Compact rows on phones: photo beside the text, the blurb trimmed to three lines, so a long town
   scrolls about a third as far as full cards. The full blurb is still in the page. */
@media (max-width: 580px) {
    .ch-head {
        padding-top: 22px;
    }

    .ch-card {
        display: grid;
        grid-template-columns: 38% 1fr;
        grid-template-areas: "photo body" "actions actions";
    }

        .ch-card .bf-card-photo {
            grid-area: photo;
        }

            .ch-card .bf-card-photo img {
                height: 100%;
                min-height: 124px;
                aspect-ratio: auto;
            }

        .ch-card .bf-card-body {
            grid-area: body;
            padding: 8px 10px 4px 12px;
        }

        .ch-card .bf-card-name {
            font-size: 18px;
        }

        .ch-card .bf-card-meta {
            font-size: 12.5px;
            margin-bottom: 4px;
        }

        .ch-card .bf-card-blurb {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 13px;
            margin-bottom: 4px;
        }

        .ch-card .bf-card-actions {
            grid-area: actions;
            padding: 6px 10px 10px 10px;
        }

        .ch-card .bf-card-rating {
            top: 6px;
            right: 6px;
            padding: 2px 7px;
            font-size: 12px;
        }

        .ch-card .bf-card-beach {
            padding: 14px 6px 5px 6px;
            font-size: 11px;
        }
}
