/**
 * GBP Get Directions Widget
 *
 * Standalone Google Maps directions link. Mirrors the Get Directions link
 * styling inside the GBP Contact Details widget.
 */

.gbp-get-directions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.gbp-get-directions__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2cb5a0;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gbp-get-directions__link:hover,
.gbp-get-directions__link:focus-visible {
    color: #239488;
}

.gbp-get-directions__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.gbp-get-directions__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.gbp-get-directions__icon img {
    width: 1em;
    height: 1em;
    object-fit: contain;
}

/* Icon nudge on hover (toggle via "Nudge Icon on Hover" control) */
.gbp-get-directions--icon-nudge-yes .gbp-get-directions__link:hover .gbp-get-directions__icon,
.gbp-get-directions--icon-nudge-yes .gbp-get-directions__link:focus-visible .gbp-get-directions__icon {
    transform: translateX(3px);
}

.gbp-get-directions--icon-nudge-yes .gbp-get-directions__link--icon-left:hover .gbp-get-directions__icon,
.gbp-get-directions--icon-nudge-yes .gbp-get-directions__link--icon-left:focus-visible .gbp-get-directions__icon {
    transform: translateX(-3px);
}

/* Full-width link (toggle via "Full Width" control) */
.gbp-get-directions--width-full .gbp-get-directions__link {
    width: 100%;
    justify-content: center;
}
