/* Expansion map page — shared by hmdhou.com and hmdaus.com (hmdaus symlinks /css to hmdhou.com/css).
   Builds on houston-location.css tokens: --hmd-fern-green, --hmd-fern-green-hover, --hmd-fern-green-light. */

.expansion-page .btn-primary { width: auto; max-width: 100%; }

/* Hero */
.expansion-hero { padding: 60px 0 26px; }
.expansion-logo { margin: 0 0 4px; }
.expansion-logo img {
    display: block; width: 300px; max-width: 70%; height: auto; margin: 0 auto;
    mix-blend-mode: multiply; /* official PNG has a white background; blend it into the hero tint without altering the file */
}
.expansion-title {
    font-size: 46px; font-weight: 800; color: #2c3e50;
    margin: 0 0 6px; line-height: 1.1;
}
.expansion-hero .hero-lead { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Map */
.expansion-section { padding: 26px 0 36px; }
.expansion-stage { position: relative; max-width: 980px; margin: 0 auto; }
.expansion-map { position: relative; width: 100%; }
.expansion-svg { display: block; width: 100%; height: auto; }
.expansion-svg .st { fill: #e6e9ec; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.expansion-svg .st--soon { fill: #d9e5bd; }
.expansion-svg .st--open { fill: #b7cd83; }

/* Pins — HTML (not SVG) so tap targets keep a fixed pixel size at any map width */
.pin {
    position: absolute; z-index: 2;
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}
.pin--open { z-index: 3; }
.pin.is-active { z-index: 5; }
.pin__dot {
    position: relative; display: block; width: 18px; height: 18px; border-radius: 50%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pin--soon .pin__dot {
    background: #fff; border: 4px solid var(--hmd-fern-green, #829b3b);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.pin--open .pin__dot {
    width: 24px; height: 24px;
    background: #4d5f22; border: 3px solid #fff;
    box-shadow: 0 0 0 2px #4d5f22, 0 1px 5px rgba(0, 0, 0, .3);
}
.pin:hover .pin__dot, .pin:focus .pin__dot, .pin.is-active .pin__dot { transform: scale(1.3); }
.pin--soon:hover .pin__dot, .pin--soon:focus .pin__dot, .pin--soon.is-active .pin__dot {
    background: var(--hmd-fern-green-hover, #6d8430); border-color: var(--hmd-fern-green-hover, #6d8430);
}
.pin:focus { outline: none; }
.pin:focus-visible .pin__dot { outline: 3px solid #2c3e50; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .pin--soon .pin__dot::after {
        content: ""; position: absolute; left: -4px; top: -4px; right: -4px; bottom: -4px;
        border-radius: 50%; border: 2px solid var(--hmd-fern-green, #829b3b);
        animation: hmd-pin-pulse 2.6s ease-out infinite; pointer-events: none;
    }
    @keyframes hmd-pin-pulse {
        0% { transform: scale(1); opacity: .7; }
        80%, 100% { transform: scale(2.2); opacity: 0; }
    }
}

/* Selected-location card */
.map-card {
    position: absolute; z-index: 10; width: 268px;
    background: #fff; border: 1px solid #e9ecef; border-radius: 14px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, .18);
    padding: 16px 18px 16px; text-align: left;
}
.map-card[hidden] { display: none; }
.map-card__close {
    position: absolute; top: 6px; right: 8px; border: 0; background: none;
    font-size: 24px; line-height: 1; color: #666; cursor: pointer; padding: 4px 8px;
}
.map-card__close:hover { color: #2c3e50; }
.map-card__badge {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.map-card__badge--soon { background: var(--hmd-fern-green-light, #eef2e6); color: #4d5f22; }
.map-card__badge--open { background: var(--hmd-fern-green-hover, #6d8430); color: #fff; }
.map-card__title { font-size: 19px; line-height: 1.25; margin: 0 24px 2px 0; color: #2c3e50; }
.map-card__state { margin: 0 0 12px; color: #666; }
.map-card .btn-primary { display: inline-block; padding: 9px 16px; font-size: 15px; text-align: center; }

/* Legend / hint */
.expansion-legend {
    list-style: none; display: flex; justify-content: center; gap: 26px;
    margin: 14px 0 4px; padding: 0; color: #2c3e50; font-weight: 600;
}
.legend-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; }
.legend-dot--soon { background: #fff; border: 4px solid var(--hmd-fern-green, #829b3b); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.legend-dot--open { background: #4d5f22; border: 2px solid #fff; box-shadow: 0 0 0 2px #4d5f22; }
.expansion-hint { text-align: center; color: #666; margin: 0 0 8px; }

/* Location lists */
.expansion-listwrap { margin-top: 26px; }
.expansion-list__title { font-size: 20px; margin: 22px 0 12px; color: #2c3e50; }
.expansion-list__count { font-size: 14px; font-weight: 400; color: #666; margin-left: 8px; }
.expansion-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px;
}
.loc-link {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: #fff; border: 1px solid #dfe3e7; border-radius: 12px;
    color: #2c3e50; text-decoration: none !important;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.loc-link:hover, .loc-link:focus, li.is-active > .loc-link {
    background: var(--hmd-fern-green-light, #eef2e6); border-color: var(--hmd-fern-green, #829b3b);
    color: #2c3e50; transform: translateY(-1px);
}
.loc-link__city { font-weight: 700; flex: 1 1 auto; }
.loc-link__host { color: #666; font-size: 14px; }
.loc-link__go { color: var(--hmd-fern-green-hover, #6d8430); font-size: 22px; line-height: 1; }
.loc-link--open { border-left: 5px solid #4d5f22; }

/* CTA cards */
.expansion-cta { padding: 34px 0 36px; }
.expansion-cta__card {
    background: #fff; border: 1px solid #e9ecef; border-radius: 14px;
    padding: 22px 24px; margin-bottom: 18px; height: calc(100% - 18px);
}
.expansion-note { text-align: center; color: #666; font-size: 14px; margin: 4px 0 0; }

/* Small screens: card sits under the map instead of floating over it */
@media (max-width: 767px) {
    .expansion-hero { padding-top: 40px; }
    .expansion-logo img { width: 240px; max-width: 75%; }
    .expansion-title { font-size: 36px; }
    .pin { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
    .pin__dot { width: 14px; height: 14px; }
    .pin--soon .pin__dot { border-width: 3px; }
    .pin--open .pin__dot { width: 18px; height: 18px; border-width: 2px; }
    .map-card { position: relative; width: auto; margin-top: 12px; }
    .expansion-legend { gap: 16px; }
    .expansion-list { grid-template-columns: 1fr; }
}
