/**
 * Compact contact cards (address / phone / directions).
 * Enqueued for all languages — do not rely on style.css alone.
 */

.contact-info.has-map {
    position: relative;
    padding-bottom: 0;
}

.contact-map-title {
    margin: 0 35px 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
}

.contact-card-list {
    padding: 38px 35px 28px;
    display: grid;
    gap: 14px;
}

.contact-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.contact-card-icon {
    width: 28px;
    height: 28px;
    color: #07aaf5;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.contact-card-title {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
}

.contact-card-value {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.contact-card-value a {
    color: inherit;
    -webkit-transition: opacity 0.15s linear 0s;
    -moz-transition: opacity 0.15s linear 0s;
    transition: opacity 0.15s linear 0s;
}

.contact-card-value a:hover {
    opacity: 0.6;
    text-decoration: none;
}

.clinic-address {
    margin: 0;
    font-style: normal;
}

.clinic-address span,
.contact-phone-line,
.contact-note {
    display: block;
}

.directions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    max-width: 100%;
}

.directions-buttons .contact-direction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    line-height: 1;
    white-space: nowrap;
}

.transport-list {
    margin: 0;
    padding-inline-start: 1.2em;
}

html[lang^="he"] .contact-card,
html[lang^="he"] .contact-card-body,
html[lang^="he"] .contact-card-title,
html[lang^="he"] .contact-card-value {
    text-align: right;
}

/* Override legacy absolute map when cards + iframe are used */
.contact-info.has-map #map {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 340px;
    display: block;
    border: 0;
}

@media (max-width: 767px) {
    .contact-card-list {
        padding: 30px 25px 24px;
    }

    .contact-card {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 12px;
    }

    .directions-buttons .contact-direction-btn {
        min-height: 36px;
    }
}

@media (max-width: 480px) {
    .contact-map-title {
        margin-left: 25px;
        margin-right: 25px;
    }
}
