/* Contact panel: a column of detail cards on the left, the map as its own card on the right. */
.lc-contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
    gap: 1.25rem;
    min-height: 34rem;
}

/* Without a map: the items side by side in a row. */
.lc-contact-panel-no-map {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}

.lc-contact-panel-no-map .lc-contact-panel-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.lc-contact-panel-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--leguma-text, #222222);
}

.lc-contact-panel-title {
    margin: 0 0 1rem;
    color: inherit;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Details: one bordered card each, icon beside a small title and the value.
   The cards share the column's height, matching the map beside them. */
.lc-contact-item {
    display: grid;
    flex: 1 0 auto;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 1rem;
    align-content: center;
    align-items: start;
    padding: 1.25rem 1.5rem;
    background: var(--leguma-surface, #ffffff);
    border: 1px solid var(--leguma-border, #e4e4e4);
    border-radius: 1rem;
}

.lc-contact-item-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--leguma-secondary-dark, #778f00);
    background: var(--leguma-surface-hover, #f6f6f6);
    border-radius: 50%;
}

.lc-contact-item-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lc-contact-item-title {
    margin-bottom: 0.35rem;
    color: var(--leguma-muted, #676767);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lc-contact-item-body {
    font-size: 1rem;
    line-height: 1.5;
}

.lc-contact-item-body p {
    margin: 0 0 0.6rem;
}

.lc-contact-item-body p:last-child {
    margin-bottom: 0;
}

/* A label before its value, e.g. which department a phone number is for. */
.lc-contact-item-body span {
    display: block;
    color: var(--leguma-muted, #676767);
    font-size: 0.8125rem;
}

.lc-contact-item-body a {
    color: var(--leguma-text, #222222);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--leguma-transition, 160ms ease);
}

.lc-contact-item-body a:hover {
    color: var(--leguma-secondary-dark, #778f00);
}

/* Secondary link, e.g. "Rodyti žemėlapyje". */
.lc-contact-item-body a.lc-contact-panel-link {
    color: var(--leguma-secondary-dark, #778f00);
    font-size: 0.875rem;
}

.lc-contact-item-body a.lc-contact-panel-link:hover {
    color: var(--leguma-secondary, #9dbe00);
}

.lc-contact-panel-map {
    position: relative;
    overflow: hidden;
    background: var(--leguma-surface-hover, #f6f6f6);
    border-radius: 1rem;
}

.lc-contact-panel-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Narrow screens: details above, map below. */
@media (max-width: 64rem) {
    .lc-contact-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        min-height: 0;
    }

    .lc-contact-item {
        padding: 1.1rem 1.25rem;
    }

    .lc-contact-panel-map {
        height: 22rem;
    }
}
