
.aggr-popup-route {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #DB8E01;
    color: #fff !important;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.10);
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.aggr-popup-route:hover,
.aggr-popup-route:focus {
    color: #fff !important;
    text-decoration: none !important;
    background: #c97f00;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(219,142,1,.24);
}
.aggr-popup-route__arrow { font-size: 14px; line-height: 1; }

.aggr-route {
    --aggr-accent: #DB8E01;
    --aggr-accent-dark: #bf7900;
    --aggr-accent-soft: #fff7e9;
    --aggr-bg: #fafafa;
    --aggr-text: #15181d;
    --aggr-muted: #6d737c;
    --aggr-line: #e6e8eb;
    width: 100%;
    background: var(--aggr-bg);
    color: var(--aggr-text);
    font-family: 'Quicksand', sans-serif;
}
.aggr-route *, .aggr-route *::before, .aggr-route *::after { box-sizing: border-box; }
.aggr-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 18px 34px;
}

/* Premium hero */
.aggr-head {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    height: 286px;
    min-height: 286px;
    max-height: 286px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 22px;
    background: #fafafa;
}
.aggr-head.has-image { grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.aggr-head__copy {
    position: relative;
    z-index: 4;
    align-self: center;
    padding: 28px 30px 28px 18px;
}
.aggr-eyebrow {
    margin-bottom: 9px;
    color: var(--aggr-accent);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .17em;
}
.aggr-head h1 {
    margin: 0;
    color: var(--aggr-text);
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(28px, 3.1vw, 36px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.025em;
}
.aggr-title-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: color .22s ease;
}
.aggr-title-link:hover,
.aggr-title-link:focus { color: var(--aggr-accent) !important; }
.aggr-location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    color: var(--aggr-muted);
    font-size: 14px;
    font-weight: 700;
}
.aggr-location svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.aggr-summary {
    max-width: 680px;
    margin: 12px 0 0;
    color: #5e6670;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;
}
.aggr-view-space {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin-top: 16px;
    padding: 0 15px;
    border: 1px solid var(--aggr-accent);
    border-radius: 11px;
    background: rgba(255,255,255,.82);
    color: #8d5900 !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.05);
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}
.aggr-view-space svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.aggr-view-space:hover,
.aggr-view-space:focus {
    color: #fff !important;
    background: var(--aggr-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(219,142,1,.22);
}
.aggr-hero-media {
    position: relative;
    height: 286px;
    min-height: 286px;
    max-height: 286px;
    overflow: hidden;
}
.aggr-hero-media::before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 42%;
    pointer-events: none;
    background: linear-gradient(90deg, #fafafa 0%, rgba(250,250,250,.92) 18%, rgba(250,250,250,.56) 52%, rgba(250,250,250,0) 100%);
}
.aggr-hero-media::after {
    content: '';
    position: absolute;
    z-index: 2;
    left: 7%;
    top: 0;
    bottom: 0;
    width: 2px;
    opacity: .6;
    background: linear-gradient(180deg, transparent, var(--aggr-accent), transparent);
    transform: skewX(-8deg);
}
.aggr-thumb {
    display: block;
    width: 100%;
    height: 286px;
    min-height: 286px;
    max-height: 286px;
    overflow: hidden;
    border-radius: 0 22px 22px 0;
    text-decoration: none !important;
    cursor: pointer;
}
.aggr-thumb img {
    display: block;
    width: 100%;
    height: 286px;
    min-height: 286px;
    max-height: 286px;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease, filter .45s ease;
}
a.aggr-thumb:hover img,
a.aggr-thumb:focus img { transform: scale(1.025); filter: saturate(1.03) contrast(1.02); }

/* Premium route controls */
.aggr-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    padding: 18px;
    margin-bottom: 14px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--aggr-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(22,29,38,.055);
}
.aggr-from label {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 800;
    color: var(--aggr-text);
}
.aggr-origin-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto auto;
    gap: 8px;
    align-items: center;
}
.aggr-origin-row input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dfe1e5;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3f454d;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.aggr-origin-row input::placeholder { color: #555b63; opacity: 1; }
.aggr-origin-row input:focus {
    border-color: var(--aggr-accent);
    box-shadow: 0 0 0 3px rgba(219,142,1,.11);
}
.aggr-route-btn,
.aggr-location-btn,
.aggr-modes button {
    min-height: 46px;
    border: 1px solid #dfe2e6;
    border-radius: 12px;
    background: #fff;
    color: var(--aggr-text);
    padding: 0 14px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 5px 14px rgba(0,0,0,.025);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
.aggr-route-btn {
    min-width: 96px;
    border-color: var(--aggr-accent);
    background: var(--aggr-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(219,142,1,.18);
}
.aggr-location-btn { border-color: rgba(219,142,1,.75); color: #8a5a00; }
.aggr-route-btn:hover,
.aggr-route-btn:focus {
    background: var(--aggr-accent-dark);
    border-color: var(--aggr-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(219,142,1,.25);
}
.aggr-location-btn:hover,
.aggr-location-btn:focus {
    color: #fff;
    background: var(--aggr-accent);
    border-color: var(--aggr-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(219,142,1,.18);
}
.aggr-route-btn svg,
.aggr-location-btn svg,
.aggr-modes button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.aggr-location-btn svg { width: 19px; height: 19px; flex-basis: 19px; }
.aggr-status { margin-top: 7px; color: var(--aggr-muted); font-size: 12px; font-weight: 500; }
.aggr-status:empty { display: none; }
.aggr-modes { display: flex; gap: 7px; flex-wrap: wrap; }
.aggr-modes button { padding: 0 13px; }
.aggr-modes button:hover,
.aggr-modes button:focus {
    border-color: var(--aggr-accent);
    color: #8a5a00;
    background: var(--aggr-accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(0,0,0,.06);
}
.aggr-modes button.is-active {
    border-color: var(--aggr-accent);
    background: var(--aggr-accent);
    color: #fff;
    box-shadow: 0 9px 22px rgba(219,142,1,.20);
}
.aggr-modes button.is-active:hover,
.aggr-modes button.is-active:focus {
    color: #fff;
    background: var(--aggr-accent-dark);
    border-color: var(--aggr-accent-dark);
}
.aggr-modes button[data-aggr-mode="walking"] .aggr-walk-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    stroke-width: 2;
}

/* v0.2.11 — keep travel modes on the same control row as Use my location. */
.aggr-origin-row > .aggr-modes {
    align-self: center;
    flex-wrap: nowrap;
}

@media (max-width: 1280px) and (min-width: 768px) {
    .aggr-origin-row {
        grid-template-columns: minmax(220px, 1fr) auto auto;
    }
    .aggr-origin-row > .aggr-modes {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-top: 2px;
    }
}

.aggr-map-card {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid var(--aggr-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 44px rgba(0,0,0,.065);
}
.aggr-map-frame { width: 100%; height: 640px; border: 0; display: block; }
.aggr-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg,#fff,#fafafa);
}
.aggr-map-placeholder[hidden] { display: none !important; }
.aggr-map-placeholder__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #fff6e6;
    color: var(--aggr-accent);
    font-size: 28px;
}
.aggr-map-placeholder strong { font-size: 20px; }
.aggr-map-placeholder p { max-width: 520px; margin: 7px 0 0; color: var(--aggr-muted); }

.aggr-message {
    margin: 14px 0;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #fff;
}
.aggr-message--warning { border-color: #eed7a7; background: #fffaf0; }
.aggr-message--error { border-color: #edc4c4; background: #fff6f6; }

.aggr-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.aggr-footer-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.aggr-secondary { color: var(--aggr-text) !important; background: #fff; border: 1px solid var(--aggr-line); }
.aggr-google-link { color: #fff !important; background: var(--aggr-accent); }
.aggr-footer-actions a:hover,
.aggr-footer-actions a:focus { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(0,0,0,.08); }
.aggr-secondary:hover,
.aggr-secondary:focus { color: #8a5a00 !important; border-color: var(--aggr-accent); background: var(--aggr-accent-soft); }
.aggr-google-link:hover,
.aggr-google-link:focus { color: #fff !important; background: var(--aggr-accent-dark); }
.aggr-admin-diagnostic {
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px dashed #d8b267;
    border-radius: 10px;
    color: #765216;
    background: #fffaf0;
    font-size: 12px;
}


/* Keep every art-space hero visually consistent regardless of source image ratio. */
@media (min-width: 992px) and (max-width: 1200px) {
    .aggr-head,
    .aggr-hero-media,
    .aggr-thumb,
    .aggr-thumb img {
        height: 260px;
        min-height: 260px;
        max-height: 260px;
    }
}

@media (max-width: 991px) {
    .aggr-head,
    .aggr-hero-media,
    .aggr-thumb,
    .aggr-thumb img {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }
    .aggr-head.has-image { grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); }
    .aggr-head__copy { padding-right: 12px; }
    .aggr-head h1 { font-size: clamp(27px, 4vw, 34px); }
    .aggr-summary { font-size: 13px; }
    .aggr-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .aggr-shell { padding: 8px 10px 26px; }
    .aggr-head,
    .aggr-head.has-image {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        max-height: none;
        border-radius: 16px;
    }
    .aggr-head__copy { padding: 18px 12px 16px; }
    .aggr-head h1 { font-size: clamp(25px, 8vw, 31px); }
    .aggr-eyebrow { font-size: 13px; }
    .aggr-hero-media { min-height: 190px; }
    .aggr-hero-media::before {
        inset: 0 0 auto 0;
        width: 100%;
        height: 36%;
        background: linear-gradient(180deg, #fafafa 0%, rgba(250,250,250,.7) 45%, rgba(250,250,250,0) 100%);
    }
    .aggr-hero-media::after { display: none; }
    .aggr-thumb,
    .aggr-thumb img { min-height: 190px; height: 190px; border-radius: 0 0 16px 16px; }
    .aggr-toolbar { padding: 13px; border-radius: 15px; }
    .aggr-origin-row { grid-template-columns: 1fr 1fr; }
    .aggr-origin-row input { grid-column: 1 / -1; }
    .aggr-route-btn, .aggr-location-btn { width: 100%; }
    .aggr-origin-row > .aggr-modes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 0; }
    .aggr-modes button { padding: 0 6px; font-size: 12px; }
    .aggr-map-card, .aggr-map-frame { min-height: 520px; height: 520px; }
    .aggr-footer-actions { flex-wrap: wrap; }
}

/* =========================================================
   v0.2.9 — premium map controls + refined hero image width
   ========================================================= */
@media (min-width: 992px) {
    .aggr-head.has-image {
        /* Slightly narrower media area; the image still fills the fixed hero height. */
        grid-template-columns: minmax(0, 1.32fr) minmax(390px, .78fr);
    }
    .aggr-hero-media::before {
        width: 34%;
        background: linear-gradient(90deg, #fafafa 0%, rgba(250,250,250,.94) 18%, rgba(250,250,250,.52) 54%, rgba(250,250,250,0) 100%);
    }
    .aggr-thumb img {
        object-position: center 48%;
    }
}

.aggr-map-controls {
    position: absolute;
    z-index: 8;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(28,31,36,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(17,24,39,.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.aggr-map-control {
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(28,31,36,.09);
    border-radius: 0;
    background: transparent;
    color: #171a1f;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.aggr-map-control:last-child { border-bottom: 0; }
.aggr-map-control svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.aggr-map-control:hover,
.aggr-map-control:focus-visible {
    z-index: 2;
    outline: none;
    background: var(--aggr-accent-soft);
    color: #8a5700;
}
.aggr-map-control--accent { color: var(--aggr-accent); }
.aggr-map-control--accent:hover,
.aggr-map-control--accent:focus-visible {
    color: #fff;
    background: var(--aggr-accent);
}
.aggr-map-control:disabled {
    opacity: .38;
    cursor: not-allowed;
    background: transparent;
    color: #8b9096;
}
.aggr-map-control .aggr-icon-collapse { display: none; }
.aggr-map-card.is-fullscreen .aggr-map-control .aggr-icon-expand { display: none; }
.aggr-map-card.is-fullscreen .aggr-map-control .aggr-icon-collapse { display: block; }

.aggr-layers-menu {
    position: absolute;
    z-index: 9;
    top: 204px;
    right: 72px;
    min-width: 138px;
    padding: 7px;
    border: 1px solid rgba(28,31,36,.11);
    border-radius: 13px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 34px rgba(17,24,39,.17);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}
.aggr-layers-menu[hidden] { display: none !important; }
.aggr-layers-menu button {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #30343a;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.aggr-layers-menu button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.aggr-layers-menu button:hover,
.aggr-layers-menu button:focus-visible,
.aggr-layers-menu button.is-active {
    outline: none;
    color: #8a5700;
    background: var(--aggr-accent-soft);
}

/* True browser fullscreen for the map card. */
.aggr-map-card:fullscreen,
.aggr-map-card:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #fff;
}
.aggr-map-card:fullscreen .aggr-map-frame,
.aggr-map-card:-webkit-full-screen .aggr-map-frame {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
}
.aggr-map-card:fullscreen .aggr-map-controls,
.aggr-map-card:-webkit-full-screen .aggr-map-controls {
    top: 22px;
    right: 22px;
}

@media (max-width: 991px) {
    .aggr-map-controls { top: 12px; right: 12px; border-radius: 13px; }
    .aggr-map-control { width: 42px; height: 42px; }
    .aggr-layers-menu { top: 184px; right: 62px; }
}

@media (max-width: 767px) {
    .aggr-map-controls { top: 10px; right: 10px; }
    .aggr-map-control { width: 40px; height: 40px; }
    .aggr-map-control svg { width: 19px; height: 19px; }
    .aggr-layers-menu { top: 172px; right: 58px; min-width: 126px; }
}


/* =========================================================
   v0.2.18 — direct map interaction + tighter mobile spacing
   The desktop scroll-shield system was removed completely.
   ========================================================= */
.aggr-map-frame {
    pointer-events: auto;
}

@media (max-width: 767px) {
    .aggr-head,
    .aggr-head.has-image {
        margin-bottom: 2px;
    }
    .aggr-toolbar {
        margin-top: 0;
    }
}
