@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700');


.dba-region-map {
    --dba-sea: #bfe3f5;
    --dba-region: #69a989;
    --dba-region-hover: #ec1d27;
    --dba-text: #585857;
    --dba-muted: #878786;
    --dba-panel: #ffffff;
    --dba-line: #dddddd;
    width: 100%;
    color: var(--dba-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.3;
}
.dba-region-map * { box-sizing: border-box; }

.dba-region-grid {
    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 31fr) minmax(0, 31fr);
    overflow: hidden;
}

.dba-map-panel {
    grid-column: 1 / 4;
    min-width: 0;
    background: var(--dba-sea);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    transition: padding .55s cubic-bezier(.22,.61,.36,1);
}
.dba-map-shell {
    width: min(100%, 1120px);
    transition: width .55s cubic-bezier(.22,.61,.36,1);
}
.dba-map-shell svg {
    display: block;
    width: 100%;
    height: auto;
}
.dba-results-panel {
    grid-column: 2 / 4;
    display: none;
    min-width: 0;
    background: var(--dba-panel);
    padding: 34px 30px;
    opacity: 0;
    transform: translateX(55px);
    transition: opacity .38s ease .12s, transform .5s cubic-bezier(.22,.61,.36,1) .08s;
}
.dba-region-map.is-open .dba-map-panel {
    grid-column: 1 / 2;
    padding: 22px;
}
.dba-region-map.is-open .dba-map-shell {
    width: 100%;
}
.dba-region-map.is-open .dba-results-panel {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.dba-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.dba-eyebrow {
    margin: 0 0 6px;
    color: #ec1d27;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.dba-region-title {
    margin: 0 0 10px;
    color: #585857;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}
.dba-region-count {
    margin: 0;
    color: #585857;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.3;
}
.dba-close {
    appearance: none;
    border: 0;
    border-radius: 0;
    min-height: 36px;
    padding: 7px 14px;
    background: #374142;
    color: #ffffff;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.dba-close:hover {
    background: #ec1d27;
    color: #ffffff;
}

.dba-lawyer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.dba-lawyer-card {
    min-width: 0;
}
.dba-lawyer-image {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    background: #f0f2f3;
    aspect-ratio: 400 / 195;
}
.dba-lawyer-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dba-lawyer-more {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background: #374142;
    color: #ffffff !important;
    text-decoration: none;
    padding: 6px 10px;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}
.dba-lawyer-location,
.dba-lawyer-name,
.dba-lawyer-company {
    margin: 0;
}
.dba-lawyer-location {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}
.dba-lawyer-name {
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 400;
}
.dba-lawyer-name a {
    color: inherit;
    text-decoration: none;
}
.dba-lawyer-company {
    margin-bottom: 12px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}
.dba-loading {
    padding: 18px 0;
    color: var(--dba-muted);
}

/* Map styling */
.dba-map-shell .dba-region-shape {
    fill: var(--dba-region) !important;
    stroke: #bfe3f5 !important;
    stroke-width: 1.25px;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill .22s ease, filter .22s ease;
    outline: none !important;
}
.dba-map-shell .dba-region-shape.is-highlighted {
    fill: var(--dba-region-hover) !important;
    stroke: #bfe3f5 !important;
    stroke-width: 1.25px;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 8px rgba(0,0,0,.14));
}
.dba-map-shell svg a,
.dba-map-shell svg a:focus,
.dba-map-shell svg a:focus-visible,
.dba-map-shell svg a:active,
.dba-map-shell [role="button"],
.dba-map-shell [role="button"]:focus,
.dba-map-shell [role="button"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.dba-region-marker {
    cursor: pointer;
}
.dba-region-marker circle {
    fill: #fff;
    stroke: rgba(38,50,56,.12);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 4px 7px rgba(0,0,0,.20));
    transition: transform .22s ease, fill .22s ease;
    transform-box: fill-box;
    transform-origin: center;
}
.dba-region-marker text {
    fill: #263238;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
}
.dba-region-marker:hover circle {
    transform: scale(1.08);
    fill: #fff7f7;
}

@media (max-width: 900px) {
    .dba-region-grid,
    .dba-region-map.is-open .dba-region-grid {
        display: block;
    }
    .dba-map-panel,
    .dba-region-map.is-open .dba-map-panel {
        padding: 18px;
    }
    .dba-results-panel,
    .dba-region-map.is-open .dba-results-panel {
        display: block;
        padding: 26px 18px 36px;
        opacity: 1;
        transform: none;
    }
    .dba-lawyer-grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dba-region-map * {
        transition: none !important;
    }
}


.dba-lawyer-image.has-no-image::before {
    content: "Foto mangler";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #75828a;
    background: #eef1f2;
    font-size: 14px;
    font-weight: 700;
}

.dba-lawyer-more:hover {
    background: #ec1d27;
    color: #ffffff !important;
}
.dba-region-map a {
    font-family: Arial, Helvetica, sans-serif;
    color: #ec1d27;
}
.dba-region-map a:hover {
    color: #374142;
}
.dba-lawyer-location {
    color: #585857;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}
.dba-lawyer-name {
    margin-top: 0;
    margin-bottom: 10px;
    color: #585857;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
}
.dba-lawyer-name a {
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    color: #585857;
}
.dba-lawyer-name a:hover {
    color: #ec1d27;
}
.dba-lawyer-company {
    margin-bottom: 10px;
    color: #585857;
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}


.dba-lawyer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.dba-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ec1d27 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}
.dba-map-link:hover {
    color: #374142 !important;
}
.dba-map-link::before {
    content: "📍";
    font-size: 14px;
    line-height: 1;
}


/* v1.0.4: postnummer/by til venstre og Google Maps-link til højre */
.dba-lawyer-location-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 0;
}
.dba-lawyer-location-row .dba-lawyer-location {
    margin: 0;
    min-width: 0;
}
.dba-lawyer-location-row .dba-map-link {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}


/* v1.0.5: fast højde kun på første, fuldbredde kortvisning */
.dba-region-map:not(.is-open) .dba-map-panel {
    height: 630px;
}

.dba-region-map:not(.is-open) .dba-map-shell {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dba-region-map:not(.is-open) .dba-map-shell svg {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Den åbne 3-kolonne-visning beholder sin naturlige størrelse */
.dba-region-map.is-open .dba-map-panel,
.dba-region-map.is-open .dba-map-shell {
    height: auto;
}

.dba-region-map.is-open .dba-map-shell {
    display: block;
}

.dba-region-map.is-open .dba-map-shell svg {
    width: 100%;
    height: auto;
    max-height: none;
}

@media (max-width: 900px) {
    .dba-region-map:not(.is-open) .dba-map-panel {
        height: 480px;
    }
}

@media (max-width: 600px) {
    .dba-region-map:not(.is-open) .dba-map-panel {
        height: 390px;
    }
}


/* v1.1.1: hold kortet i toppen, når en region er åbnet */
.dba-region-map.is-open .dba-map-panel {
    align-items: flex-start;
}

.dba-region-map.is-open .dba-map-shell {
    align-self: flex-start;
}
