/* ==================== SEARCH WITH DATES (Search.aspx, Oct 2026) ====================
   Markup: App_Code/BLL/SearchPage.cs; behaviour: hg-search.js. The full version of the landing
   pages' hero search card. Colours and fonts come from hg-site.css (--hgx-*); the sections below
   the card and the favorite cards reuse hg-home.css (.hgh-*). Everything here is prefixed hgs-. */

.hgs-hero {
    position: relative;
    background-color: #35606b;
    background-size: cover;
    background-position: center 55%;
    box-shadow: 0 1px 6px 1px rgba(0, 0, 0, .25);
}

    .hgs-hero::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(10, 25, 35, .48), rgba(10, 25, 35, .14) 55%, rgba(10, 25, 35, .3));
    }

.hgs-hero-inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px 110px;
    text-align: center;
}

.hgs-eyebrow {
    margin-bottom: 14px;
    color: #fff;
    font: 600 12px/1 var(--hgx-sans);
    letter-spacing: .32em;
    text-transform: uppercase;
    opacity: .92;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.hgh .hgs-hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 52px;
    line-height: 1.05;
    font-variation-settings: 'opsz' 144;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3);
}

.hgs-islands {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.hgh a.hgs-isl {
    padding: 7px 18px;
    border-radius: 30px;
    background: rgba(255, 253, 243, .92);
    color: var(--hgx-brown);
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

    .hgh a.hgs-isl:hover {
        background: #fff;
        text-decoration: none;
    }

    .hgh a.hgs-isl[aria-current="page"] {
        background: var(--hgx-brown);
        color: #fff;
    }

/* ---------------------------------------------------------------- the search card */

.hgs-card {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: -78px auto 0;
    padding: 4px 28px 0;
    background: var(--hgx-cream);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(40, 30, 10, .28);
}

.hgs-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--hgx-line);
}

    .hgs-row:first-child {
        border-top: 0;
    }

.hgs-label {
    padding-top: 11px;
    font: 700 11.5px/1.2 var(--hgx-sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hgx-gold-text);
}

    .hgs-label small {
        display: block;
        margin-top: 7px;
        font: 400 13px/1.4 var(--hgx-sans);
        letter-spacing: 0;
        text-transform: none;
        color: var(--hgx-muted);
    }

.hgs-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 18px;
}

.hgs-field {
    margin: 0;
    font-weight: 400;
}

    .hgs-field > span {
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        font-weight: 700;
        color: var(--hgx-brown);
    }

    .hgs-field input,
    .hgs-field select {
        height: 42px;
        padding: 0 10px;
        border: 1px solid #d3c6a4;
        border-radius: 8px;
        background: #fff;
        color: var(--hgx-ink);
        font-size: 15px;
    }

        .hgs-field input[type=date] {
            width: 180px;
        }

        .hgs-field input[type=number] {
            width: 84px;
        }

        .hgs-field input:focus,
        .hgs-field select:focus {
            outline: none;
            border-color: var(--hgx-blue);
            box-shadow: 0 0 0 3px rgba(37, 106, 160, .18);
        }

.hgs-hint {
    align-self: center;
    font-size: 13px;
    color: var(--hgx-muted);
}

.hgs-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--hgx-blue);
    font-size: 13px;
    text-decoration: underline;
}

/* chips: same off/on look as the building pages' "Show only" chips */
.hgs-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid #d3c6a4;
    border-radius: 19px;
    background: #fff;
    color: var(--hgx-brown);
    font: 14px/1.2 var(--hgx-sans);
    cursor: pointer;
}

    .hgs-chip b {
        font-weight: 400;
        font-size: 12.5px;
        color: var(--hgx-muted);
    }

    .hgs-chip:hover {
        border-color: #b9a77d;
        background: #fbf6e6;
    }

    .hgs-chip[aria-pressed="true"] {
        border-color: #2f4a46;
        background: #2f4a46;
        color: #fff;
    }

        .hgs-chip[aria-pressed="true"] b {
            color: #d5e6e3;
        }

    .hgs-chip:disabled {
        opacity: .45;
        background: transparent;
        cursor: default;
    }

    .hgs-chip svg {
        width: 16px;
        height: 16px;
        flex: none;
        fill: none;
        stroke: var(--hgx-gold);
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .hgs-chip[aria-pressed="true"] svg {
        stroke: #d5e6e3;
    }

/* where: town chips on the left, the map / region card on the right */
.hgs-anywhere {
    margin-bottom: 16px;
}

.hgs-where {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
}

.hgs-regions {
    display: grid;
    gap: 16px;
}

.hgs-region-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.hgs-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rc);
}

.hgs-region-name {
    padding: 0;
    border: 0;
    background: none;
    color: var(--hgx-brown);
    font: 600 15px/1.3 var(--hgx-sans);
    text-align: left;
    cursor: pointer;
}

    .hgs-region-name:hover,
    .hgs-region.is-hot .hgs-region-name {
        text-decoration: underline;
    }

    .hgs-region-name b {
        font-weight: 400;
        font-size: 12.5px;
        color: var(--hgx-muted);
    }

.hgs-towns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .hgs-towns .hgs-chip {
        min-height: 34px;
        padding: 5px 12px;
        font-size: 13.5px;
    }

/* The card turns over from the island map to the region of the last town picked. */
.hgs-panel {
    position: relative;
    height: 340px;
    perspective: 1400px;
}

.hgs-flip {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.3, .7, .2, 1);
}

    .hgs-flip.is-back {
        transform: rotateY(180deg);
    }

.hgs-face {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hgx-line);
    border-radius: 12px;
    background: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hgs-back {
    transform: rotateY(180deg);
}

.hgs-flip.hgs-instant {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .hgs-flip {
        transition: none;
    }
}

/* front: the island */
.hgs-front {
    background: linear-gradient(180deg, #e4efed, #d5e6e3);
}

.hgs-map {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 10px;
}

    .hgs-map svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.hgs-land {
    fill: #f4ead0;
}

.hgs-coast {
    fill: none;
    stroke: #a8874d;
    stroke-width: .8;
}

.hgs-reg {
    fill: var(--rc);
    fill-opacity: .2;
    stroke: #fff;
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill-opacity .15s;
}

    .hgs-reg.is-hot {
        fill-opacity: .42;
    }

    .hgs-reg.is-on {
        fill-opacity: .62;
    }

/* Town dots. Hovering a town in the list turns its dot into a star in the region's colour
   (hg-search.js also moves that town to the top of the drawing). Picked towns are ringed. */
.hgs-town {
    pointer-events: none;
}

.hgs-tdot {
    fill: #3f3a2d;
    fill-opacity: .5;
    transition: opacity .15s;
}

.hgs-town.is-on .hgs-tdot {
    fill: #fff;
    fill-opacity: 1;
    stroke: #2f4a46;
    stroke-width: 2;
}

.hgs-star {
    fill: var(--rc);
    stroke: #fff;
    stroke-width: 1.4;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(.2);
    transition: opacity .15s, transform .22s cubic-bezier(.3, 1.6, .5, 1); /* a little overshoot */
}

.hgs-town.is-hot .hgs-star {
    opacity: 1;
    transform: scale(1);
}

.hgs-town.is-hot .hgs-tdot {
    opacity: 0;
}

/* One line only: a long region name must not grow the caption and squeeze the map. */
.hgs-map-cap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-top: 1px solid rgba(168, 135, 77, .25);
    background: rgba(255, 253, 243, .9);
    font-size: 13px;
    color: var(--hgx-brown);
}

    .hgs-map-cap span {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .hgs-map-cap small {
        flex: none;
        font-size: 10.5px;
        color: var(--hgx-muted);
        white-space: nowrap;
    }

/* back: the region */
.hgs-rphoto {
    position: relative;
    flex: none;
    height: 148px;
    background-color: #c9d6d4;
    background-size: cover;
    background-position: center;
}

.hgs-mini {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 86px;
    padding: 5px;
    border-radius: 8px;
    background: rgba(255, 253, 243, .92);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
}

    .hgs-mini svg {
        display: block;
        width: 100%;
        height: auto;
    }

    .hgs-mini .hgs-land {
        fill: #e6dbbd;
    }

    .hgs-mini .hgs-reg {
        fill-opacity: 0;
        stroke: none;
    }

        .hgs-mini .hgs-reg.is-cur {
            fill-opacity: .9;
        }

    .hgs-mini .hgs-mdot {
        fill: #fff;
        stroke: #2f4a46;
        stroke-width: 5;
    }

    .hgs-mini .hgs-coast {
        stroke-width: 2.5;
    }

.hgs-rbody {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px 14px 10px;
}

.hgs-rname {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 400 20px/1.15 var(--hgx-serif);
    color: var(--hgx-brown);
}

.hgh .hgs-rblurb {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--hgx-ink);
}

.hgs-rstat {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hgx-brown);
}

.hgs-rfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 13px;
}

/* narrower screens: the card goes above the towns and lies flat */
@media (max-width: 900px) {
    .hgs-where {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .hgs-panel {
        order: -1;
        height: 214px;
    }

    .hgs-back {
        flex-direction: row;
    }

    .hgs-rphoto {
        width: 38%;
        height: auto;
    }

    .hgs-mini {
        width: 64px;
        right: 6px;
        bottom: 6px;
        padding: 4px;
    }

    .hgs-rbody {
        padding: 10px 12px 8px;
    }

    .hgs-rname {
        font-size: 17px;
    }

    .hgh .hgs-rblurb {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12.5px;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }

    .hgs-rstat {
        font-size: 12.5px;
    }

    .hgs-rfoot {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .hgs-long {
        display: none;
    }

    .hgs-rphoto {
        width: 34%;
    }
}

/* size: segmented controls */
.hgs-seg {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #d3c6a4;
    border-radius: 8px;
    background: #fff;
}

    .hgs-seg button {
        height: 40px;
        padding: 0 14px;
        border: 0;
        border-left: 1px solid var(--hgx-line);
        background: transparent;
        color: var(--hgx-brown);
        font-size: 14px;
        cursor: pointer;
    }

        .hgs-seg button:first-child {
            border-left: 0;
        }

        .hgs-seg button[aria-pressed="true"] {
            background: #2f4a46;
            color: #fff;
        }

/* must-haves */
.hgs-musts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hgs-defs {
    margin-top: 10px;
    font-size: 13px;
    color: var(--hgx-muted);
}

    .hgs-defs summary {
        color: var(--hgx-blue);
        cursor: pointer;
    }

    .hgs-defs dl {
        margin: 8px 0 0;
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        gap: 4px 14px;
    }

    .hgs-defs dt {
        color: var(--hgx-brown);
    }

    .hgs-defs dd {
        margin: 0;
    }

/* the go bar: sticks to the bottom of the screen while the card is in view */
.hgs-go {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 -28px;
    padding: 16px 28px;
    border-top: 1px solid var(--hgx-line);
    border-radius: 0 0 12px 12px;
    background: var(--hgx-sand);
}

.hgs-sum {
    font-size: 14px;
    line-height: 1.45;
    color: var(--hgx-muted);
}

    .hgs-sum b {
        font-weight: 600;
        color: var(--hgx-ink);
    }

.hgs-n {
    margin-right: 6px;
    font: 400 30px/1 var(--hgx-serif);
    color: var(--hgx-brown);
    vertical-align: -3px;
}

.hgs-go-right {
    flex: none;
    text-align: right;
}

.hgh a.hgs-btn {
    display: inline-block;
    min-width: 250px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

    .hgh a.hgs-btn.disabled {
        opacity: .55;
        pointer-events: none;
    }

.hgs-sub {
    max-width: 330px;
    margin: 6px 0 0 auto;
    font-size: 12.5px;
    color: var(--hgx-muted);
}

/* below the card */
.hgs-after {
    padding-top: 56px;
}

.hgs-cta {
    margin-top: 18px;
}

/* two or three cards: centre them instead of leaving empty columns (hg-home.css takes over below 861px) */
@media (min-width: 861px) {
    .hgh-favs.hgs-few {
        grid-template-columns: repeat(auto-fit, minmax(0, 270px));
        justify-content: center;
    }
}

.hgs-ad .hgh-fav-meta {
    min-height: 0;
}

@media (max-width: 760px) {
    .hgs-hero-inner {
        padding: 24px 16px 84px;
    }

    .hgh .hgs-hero h1 {
        margin-bottom: 16px;
        font-size: 34px;
    }

    .hgh a.hgs-isl {
        padding: 6px 13px;
        font-size: 14px;
    }

    .hgs-card {
        margin: -62px 10px 0;
        padding: 0 16px;
    }

    .hgs-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 16px 0;
    }

    .hgs-label {
        padding-top: 0;
    }

        .hgs-label small {
            display: inline;
            margin: 0 0 0 6px;
        }

    .hgs-regions {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .hgs-field input[type=date] {
        width: 168px;
    }

    .hgs-go {
        margin: 0 -16px;
        padding: 10px 16px;
        border-radius: 0;
        box-shadow: 0 -4px 14px rgba(40, 30, 10, .12);
    }

    .hgs-sum {
        font-size: 12.5px;
    }

    .hgs-n {
        display: block;
        margin: 0 0 2px;
        font-size: 24px;
    }

    .hgh a.hgs-btn {
        min-width: 0;
        padding: 11px 16px;
        font-size: 15px;
    }

    .hgs-sub {
        display: none;
    }

    .hgs-after {
        padding-top: 40px;
    }
}
