/**
 * VELA Locations Widget — structural layout only.
 * Colors / fonts / radii / paddings are set by Elementor controls (inline styles).
 */

.vela-loc {
    box-sizing: border-box;
    --vela-fade-duration: 0.4s;
    --vela-fade-easing: cubic-bezier(0.4, 0, 0.2, 1);
}
.vela-loc *,
.vela-loc *::before,
.vela-loc *::after { box-sizing: inherit; }

.vela-loc__inner { width: 100%; }

/* Fade transitions — applied to swappable regions (NOT map; map uses double-buffer crossfade) */
.vela-loc__details,
.vela-loc__pills {
    transition: opacity var(--vela-fade-duration) var(--vela-fade-easing);
    will-change: opacity;
}
.vela-loc__details.is-fading,
.vela-loc__pills.is-fading {
    opacity: 0;
    pointer-events: none;
}

/* ── Heading ─────────────────────────────────── */
.vela-loc__intro {
    display: flex;
    flex-direction: column;
}
.vela-loc__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.vela-loc__eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: currentColor;
}
.vela-loc__title {
    margin: 0 0 16px;
}
.vela-loc__desc {
    margin: 0;
}

/* ── Region tabs (outer) ─────────────────────── */
.vela-loc__regions {
    display: inline-flex;
    align-items: stretch;
    gap: 4px;
}
.vela-loc__region {
    border: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background-color .2s ease, color .2s ease;
    appearance: none;
    -webkit-appearance: none;
}
.vela-loc__region:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Body grid: map | card (40 / 60 by default — overridden by control) ── */
.vela-loc__body {
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: stretch;
}
@media (max-width: 880px) {
    .vela-loc__body {
        grid-template-columns: 1fr !important;
    }
}

/* ── Map (double-buffer crossfade) ──────────────── */
.vela-loc__map-wrap {
    position: relative;
    isolation: isolate;
    min-height: 540px;
    height: 100%;
}
.vela-loc__map {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0a1730;
    filter: invert(90%) hue-rotate(180deg);
    transition: opacity var(--vela-fade-duration) var(--vela-fade-easing);
}
/* Inactive iframe sits absolutely behind the active one */
.vela-loc__map:not(.is-active) {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
.vela-loc__map.is-active {
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: 1;
}

.vela-loc__open {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2; /* keep above both iframes */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    backdrop-filter: blur(6px);
}
.vela-loc__directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vela-loc__hint {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
}

/* ── Card ────────────────────────────────────── */
.vela-loc__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Inner pills ─────────────────────────────── */
.vela-loc__pills {
    display: flex;
    flex-wrap: wrap;
}
.vela-loc__pill {
    border: 1px solid currentColor;
    cursor: pointer;
    font: inherit;
    color: inherit;
    background: transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    appearance: none;
    -webkit-appearance: none;
}
.vela-loc__pill:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Details ─────────────────────────────────── */
.vela-loc__details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.vela-loc__detail-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.vela-loc__detail-title {
    margin: 0 0 24px;
}

.vela-loc__rows {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
}
.vela-loc__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}
.vela-loc__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: inherit;
}
.vela-loc__icon i,
.vela-loc__icon svg {
    width: 1em;
    height: 1em;
    font-size: inherit;
    fill: currentColor;
}
.vela-loc__icon--pin       { font-size: 13px; margin-right: 2px; }
.vela-loc__icon--addr,
.vela-loc__icon--phone,
.vela-loc__icon--hours     { font-size: 16px; opacity: 0.85; margin-top: 2px; }
.vela-loc__icon--open,
.vela-loc__icon--directions { font-size: 12px; }

.vela-loc__addr,
.vela-loc__hours { display: inline-block; }
.vela-loc__phone {
    text-decoration: none;
    transition: color .2s ease;
}

/* ── Get Directions (pinned to bottom of details column) ── */
.vela-loc__directions {
    align-self: flex-start;
    margin-top: auto;
    text-decoration: none;
    transition: color .2s ease;
}
.vela-loc__directions:hover { text-decoration: none; }
