:root {
    --hm-bg: #101010;
    --hm-panel: #181818;
    --hm-text: #f7f7f7;
    --hm-muted: #c9c9c9;
    --hm-line: rgba(255,255,255,.13);
    --hm-accent: #e53935;
    --hm-radius: 24px;
    --hm-shadow: 0 18px 50px rgba(0,0,0,.35);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--hm-bg); }
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 18% 0%, rgba(229,57,53,.20), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(57,255,20,.07), transparent 28rem),
        var(--hm-bg);
    color: var(--hm-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.hm-place-page-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: calc(14px + var(--safe-top)) 0 calc(44px + var(--safe-bottom));
}

.hm-place-page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.hm-place-page-back,
.hm-place-page-maplink,
.hm-place-actions a,
.hm-place-actions button,
.hm-place-section-head a,
.hm-place-error-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    background: #1c1b19;
    color: var(--hm-text);
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.hm-place-page-back:hover,
.hm-place-page-maplink:hover,
.hm-place-actions a:hover,
.hm-place-actions button:hover,
.hm-place-section-head a:hover,
.hm-place-error-card a:hover {
    filter: brightness(1.12);
}

.hm-place-hero {
    display: block;
    overflow: hidden;
    border: 1px solid var(--hm-line);
    border-radius: 30px;
    background: rgba(24,24,24,.92);
    box-shadow: var(--hm-shadow);
}
.hm-place-hero-media {
    min-height: 0;
    background: #080808;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-place-hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 6px;
    background: var(--place-accent, var(--hm-accent));
}
.hm-place-hero-media img {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    background: #080808;
}
.hm-place-hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.18), rgba(255,255,255,.03));
}
.hm-place-hero-placeholder span { font-size: 5rem; }
.hm-place-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 46px);
    border-top: 1px solid var(--hm-line);
}
.hm-place-kicker {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #f4f4f4;
    font-size: .86rem;
    font-weight: 850;
}
.hm-place-hero h1 {
    margin: 16px 0 8px;
    font-size: clamp(2.1rem, 5vw, 4.7rem);
    line-height: .98;
    letter-spacing: -.045em;
}
.hm-place-address {
    margin: 6px 0 0;
    color: #ededed;
    font-weight: 700;
}
.hm-place-lead {
    max-width: 62ch;
    margin: 14px 0 0;
    color: var(--hm-muted);
    font-size: 1.08rem;
    line-height: 1.55;
}
.hm-place-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.hm-place-chips span,
.hm-place-chips a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: var(--hm-muted);
    padding: 6px 10px;
    font-size: .88rem;
    font-weight: 750;
}

.hm-place-kicker-link,
.hm-place-chips a {
    text-decoration: none;
    cursor: pointer;
}
.hm-place-kicker-link:hover,
.hm-place-kicker-link:focus-visible,
.hm-place-chips a:hover,
.hm-place-chips a:focus-visible {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.38);
    color: #fff;
    outline: none;
}

.hm-place-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.hm-place-actions .primary {
    background: #1c1b19;
    border-color: var(--hm-line);
    color: #fff;
}
.hm-place-actions button {
    border: 1px solid var(--hm-line);
}

.hm-place-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    margin-top: 18px;
}
.hm-place-layout-info-only {
    grid-template-columns: minmax(0, 760px);
}
.hm-place-main-stack {
    display: grid;
    gap: 18px;
    align-content: start;
}
.hm-place-main-card,
.hm-place-info-card,
.hm-place-map-card,
.hm-place-qr-card,
.hm-place-error-card {
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    background: rgba(24,24,24,.90);
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.hm-place-main-card {
    padding: clamp(20px, 3vw, 32px);
}
.hm-place-main-card h2,
.hm-place-map-card h2,
.hm-place-qr-card h2,
.hm-place-error-card h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -.025em;
}
.hm-place-main-card p,
.hm-place-error-card p {
    color: var(--hm-muted);
    line-height: 1.65;
    font-size: 1.04rem;
    margin: 14px 0 0;
}
.hm-place-info-stack {
    display: grid;
    gap: 12px;
    align-content: start;
}
.hm-place-layout-info-only .hm-place-info-stack {
    width: 100%;
}
.hm-place-info-card {
    display: grid;
    gap: 6px;
    padding: 16px;
}
.hm-place-info-card strong {
    font-size: .86rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hm-place-info-card span {
    color: var(--hm-muted);
    line-height: 1.45;
}
.hm-place-link-card a {
    display: block;
    margin-top: 6px;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--hm-line);
    border-radius: 12px;
    padding: 9px 10px;
    background: rgba(255,255,255,.07);
    font-weight: 750;
}
.hm-place-link-card a:hover { filter: brightness(1.12); }

.hm-place-map-card,
.hm-place-qr-card,
.hm-place-error-card {
    margin-top: 18px;
    padding: 18px;
}
.hm-place-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.hm-place-section-head a {
    min-height: 38px;
    padding: 8px 12px;
    font-size: .92rem;
}

.hm-place-qr-grid {
    display: grid;
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.hm-place-qr-image-wrap {
    display: flex;
    justify-content: center;
}
.hm-place-qr-image-wrap img {
    width: 160px;
    max-width: 100%;
    height: auto;
    display: block;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.hm-place-qr-text {
    display: grid;
    gap: 10px;
    color: var(--hm-muted);
    line-height: 1.5;
}
.hm-place-qr-text strong {
    color: #fff;
    font-size: 1.04rem;
}
.hm-place-qr-text p {
    margin: 0;
}
.hm-place-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hm-place-qr-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #fff;
    text-decoration: none;
    font-weight: 850;
}
.hm-place-qr-actions a.primary {
    background: #1c1b19;
}
.hm-place-qr-actions a:hover { filter: brightness(1.12); }
.hm-place-qr-text code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.22);
    color: #ededed;
    font-size: .84rem;
}

#hm-place-mini-map {
    width: 100%;
    height: min(420px, 62vh);
    border-radius: 20px;
    overflow: hidden;
    background: #202020;
}
.hm-place-mini-marker {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 10px;
    transform: rotate(-45deg);
    background: var(--marker-color, #e53935);
    border: 2px solid #fff;
    box-shadow:
        0 0 0 5px rgba(57,255,20,.20),
        0 0 24px rgba(57,255,20,.70),
        0 8px 18px rgba(0,0,0,.45);
    display: grid;
    place-items: center;
}
.hm-place-mini-marker span {
    transform: rotate(45deg);
    font-size: 17px;
}
.hm-place-page-footer {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    color: #cfcfcf;
    font-size: .86rem;
}
.hm-place-page-footer a { text-decoration: none; }
.hm-place-page-footer a:hover { text-decoration: underline; }
.hm-place-error-card {
    padding: clamp(24px, 5vw, 46px);
    max-width: 720px;
    margin: 60px auto;
}
.hm-place-error-card a { margin-top: 18px; }

@media (max-width: 860px) {
    .hm-place-page-shell {
        width: min(100% - 18px, 720px);
        padding-top: calc(9px + var(--safe-top));
    }
    .hm-place-page-topbar {
        align-items: stretch;
    }
    .hm-place-page-back,
    .hm-place-page-maplink {
        flex: 1;
        padding: 9px 10px;
        font-size: .92rem;
    }
    .hm-place-hero {
        border-radius: 24px;
    }
    .hm-place-hero-media,
    .hm-place-hero-placeholder {
        min-height: 230px;
    }
    .hm-place-hero-media img {
        min-height: 0;
        max-height: 66vh;
    }
    .hm-place-layout {
        grid-template-columns: 1fr;
    }
    .hm-place-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .hm-place-qr-grid {
        grid-template-columns: 1fr;
    }
    .hm-place-qr-image-wrap {
        justify-content: flex-start;
    }
    .hm-place-qr-image-wrap img {
        width: 140px;
    }
    #hm-place-mini-map {
        height: 330px;
    }
}

@media (max-width: 520px) {
    .hm-place-hero-content {
        padding: 20px;
    }
    
.hm-place-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .hm-place-actions a,
    .hm-place-actions button {
        width: 100%;
    }
}

/* v7.1: egna ikonbilder/emojis */
.hm-place-inline-icon,
.hm-place-chips img.hm-place-inline-icon {
    width: 1.25em;
    height: 1.25em;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -0.22em;
    flex: 0 0 auto;
}
.hm-place-hero-icon {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
    display: block;
}
.hm-place-hero-placeholder span.hm-place-hero-icon,
.hm-place-hero-placeholder > span {
    font-size: 5rem;
}
.hm-place-kicker img.hm-place-inline-icon,
.hm-place-chips img.hm-place-inline-icon {
    margin-right: 2px;
}
.hm-place-mini-marker img.hm-place-mini-marker-img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
    transform: rotate(45deg);
    display: block;
}
