/* Savaria – főoldali térképkártya. Verzió: 20261104-8 */
.home-location-card {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto auto auto;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce9e5;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(26, 74, 63, .07);
}
.home-location-heading {
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}
.home-location-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    color: #168c80;
    background: #e3f4ef;
    border-radius: 12px;
    font-size: 24px;
}
.home-location-heading h2 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #24313f;
}
.home-location-heading address {
    margin: 0;
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
    color: #61736e;
}
.home-location-preview {
    position: relative;
    display: block;
    grid-row: 2;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: #e3f4ef;
    text-decoration: none;
}
.home-location-preview img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.home-location-preview::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(transparent 25%, rgba(14, 71, 63, .65));
}
.home-location-preview-label {
    position: absolute;
    z-index: 1;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: #106e65;
    background: rgba(255, 255, 255, .96);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.home-location-preview:hover .home-location-preview-label { background: #e3f4ef; }
.home-location-frame {
    grid-row: 2;
    min-height: 0;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}
.home-location-card [hidden] { display: none !important; }
.home-location-actions {
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}
.home-location-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #106e65;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.home-location-directions:hover { color: #168c80; text-decoration: underline; }
.home-location-close {
    padding: 4px 0;
    background: transparent;
    border: 0;
    color: #61736e;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.home-location-close:hover { color: #106e65; }
.home-location-preview:focus-visible,
.home-location-directions:focus-visible,
.home-location-close:focus-visible {
    outline: 3px solid #168c80;
    outline-offset: -3px;
}
.home-location-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 44px;
    background: rgba(255, 255, 255, .96);
    margin: 0;
    padding: 0 16px 12px;
    color: #61736e;
    font-size: 12px;
}
.home-location-status:empty { display: none; }
@media (max-width: 575.98px) {
    .home-location-card { width: 100%; }
}
