/* Map and directions on the beach and attraction pages (attractiondetails.aspx): the access
   notes and jump link under the description, and the "Getting to ..." section below the photos.
   Markup comes from App_Code/BLL/AttractionLocation.cs; the map is drawn by hg-attraction.js.
   Uses the --hgx tokens from hg-site.css. */

/* under the description: access notes and the jump link to the map */
.hga-top {
    margin-top: 18px;
    font-family: var(--hgx-sans);
    color: var(--hgx-brown);
}

    .hga-top .hga-facts {
        margin-bottom: 6px;
    }

a.hga-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 600;
}

/* the map section: a card of its own below the photos */
.hga-loc {
    scroll-margin-top: 16px;
    font-family: var(--hgx-sans);
    color: var(--hgx-brown);
}

.hga-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hgx-gold-text);
}

.hga-h {
    margin: 4px 0 14px;
    font: 400 28px/1.2 var(--hgx-serif);
    color: var(--hgx-ink);
}

.hga-h3 {
    margin: 26px 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--hgx-ink);
}

/* access notes: label left, one plain sentence right */
.hga-facts {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.5;
}

    .hga-facts li {
        display: grid;
        grid-template-columns: 104px 1fr;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--hgx-line);
    }

        .hga-facts li:first-child {
            border-top: 1px solid var(--hgx-line);
        }

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

/* map: a static poster that the live map fades in over once it has loaded */
.hga-map {
    position: relative;
    overflow: hidden;
    aspect-ratio: 640 / 360;
    border: 1px solid rgba(168, 154, 133, .5);
    border-radius: 10px;
    background: #dcd8c6;
}

    .hga-map img.hga-map-poster {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hga-map-live {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity .35s ease;
}

.hga-map.is-live .hga-map-live {
    opacity: 1;
}

/* info window */
.hga-iw {
    max-width: 240px;
    padding: 2px 4px 4px 0;
    font: 14px/1.4 var(--hgx-sans);
    color: var(--hgx-brown);
}

.hga-iw-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--hgx-ink);
}

.hga-iw-links {
    margin-top: 6px;
}

    .hga-iw-links a {
        font-weight: 600;
    }

.hga-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 12px;
}

a.hga-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--hgx-blue);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

    a.hga-btn:hover,
    a.hga-btn:focus {
        background: #1d5682;
        color: #fff;
        text-decoration: none;
    }

.hga-bar-link {
    font-size: 15px;
}

.hga-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--hgx-muted);
}

    .hga-legend i {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin-right: 6px;
        border-radius: 50%;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
    }

.hga-dot-place { background: #882427; }
.hga-dot-stay { background: #256aa0; }
.hga-dot-near { background: #e3a72f; }

/* places to stay: numbered to match the pins */
.hga-stay {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

a.hga-stay-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 78px;
    padding: 8px;
    border: 1px solid var(--hgx-line);
    border-radius: 10px;
    background: var(--hgx-cream);
    text-decoration: none;
}

    a.hga-stay-item:hover,
    a.hga-stay-item:focus {
        border-color: var(--hgx-gold);
        background: #fff;
        text-decoration: none;
    }

    .hga-stay-item img {
        flex: none;
        width: 84px;
        height: 62px;
        border-radius: 6px;
        background: #e8e4d4;
        object-fit: cover;
    }

.hga-num {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--hgx-blue);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.hga-stay-text {
    min-width: 0;
}

.hga-stay-name {
    display: block;
    font-weight: 600;
    line-height: 1.25;
    color: var(--hgx-blue);
}

.hga-stay-meta {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--hgx-muted);
}

.hga-note {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--hgx-muted);
}

    .hga-note a {
        font-weight: 600;
    }

    .hga-note span {
        margin: 0 6px;
        color: #c9b48a;
    }

/* other beaches and sights close by */
.hga-near {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .hga-near a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 4px 14px 4px 4px;
        border: 1px solid var(--hgx-line);
        border-radius: 22px;
        background: var(--hgx-cream);
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

        .hga-near a:hover,
        .hga-near a:focus {
            border-color: var(--hgx-gold);
            background: #fff;
        }

    /* a place with no thumbnail */
    .hga-near a.hga-near-plain {
        padding-left: 14px;
    }

    .hga-near img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #e8e4d4;
        object-fit: cover;
    }

    .hga-near small {
        font-size: 13px;
        font-weight: 400;
        color: var(--hgx-muted);
    }

@media (max-width: 991px) {
    .hga-stay {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .hga-h {
        font-size: 24px;
    }

    .hga-facts li {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* break out of the article padding so the map gets the full width of the phone */
    .hga-map {
        aspect-ratio: 400 / 340;
        margin-left: -3.5rem;
        margin-right: -3.5rem;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .hga-stay {
        grid-template-columns: 1fr;
    }

    .hga-legend {
        margin-left: 0;
    }

    a.hga-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}
