.vista-astc-locations {
    width: 100%;
}

.vista-astc-location-card {
    max-width: 1180px;
    margin: 0 auto 56px;
    overflow: hidden;
    border: 1px solid #ededed;
    border-radius: 8px;
    background: #fff;
    color: #2a2526;
    box-shadow: 0 18px 42px rgba(24, 24, 24, .08);
}

.vista-astc-location-hero {
    position: relative;
    min-height: 320px;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #1f1b1c;
}

.vista-astc-location-hero::after {
    position: absolute;
    inset: 0;
    display: block;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .62) 100%);
}

.vista-astc-location-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vista-astc-location-title {
    margin: 0;
    color: #211b1d;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vista-astc-location-hero .vista-astc-location-title {
    position: absolute;
    right: 34px;
    bottom: 30px;
    left: 34px;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .36);
}

.vista-astc-location-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 42px;
    align-items: start;
    padding: 34px;
}

.vista-astc-location-card--no-actions .vista-astc-location-body {
    grid-template-columns: minmax(0, 1fr);
}

.vista-astc-location-card--no-image .vista-astc-location-body {
    padding-top: 38px;
}

.vista-astc-location-card--no-image .vista-astc-location-title {
    margin-bottom: 28px;
}

.vista-astc-location-main {
    min-width: 0;
}

.vista-astc-section h3 {
    margin: 0 0 10px;
    color: #ff2b20;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vista-astc-section p {
    margin: 0;
}

.vista-astc-priority-details {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    gap: 26px;
    align-items: stretch;
}

.vista-astc-address,
.vista-astc-phone {
    padding: 22px;
    border: 1px solid #f1d7d5;
    border-radius: 8px;
    background: #fff8f7;
}

.vista-astc-address p,
.vista-astc-phone p {
    color: #211b1d;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.vista-astc-phone p {
    font-size: 36px;
    line-height: 1.05;
}

.vista-astc-address a,
.vista-astc-phone a {
    color: inherit;
    text-decoration: none;
}

.vista-astc-phone a:hover {
    color: #ff2b20;
}

.vista-astc-secondary-details {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eeeeee;
}

.vista-astc-hours-content {
    color: #3c3638;
    font-size: 17px;
    line-height: 1.55;
}

.vista-astc-hours-content p {
    margin: 0 0 14px;
}

.vista-astc-hours-content p:last-child {
    margin-bottom: 0;
}

.vista-astc-hours-content ul,
.vista-astc-hours-content ol {
    margin: 0 0 0 20px;
    padding: 0;
}

.vista-astc-hours-content li {
    margin: 0 0 3px;
    padding-left: 2px;
}

.vista-astc-map {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eeeeee;
}

.vista-astc-map-embed {
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #f6f6f6;
}

.vista-astc-map-embed iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}

.vista-astc-map-embed p {
    margin: 0;
}

.vista-astc-location-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fafafa;
}

.vista-astc-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    padding: 13px 18px;
    border: 2px solid #ffc3c0;
    border-radius: 7px;
    background: #fff;
    color: #ff2b20 !important;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.vista-astc-action-button:hover {
    border-color: #ff2b20;
    background: #fff3f2;
}

.vista-astc-action-button--primary {
    border-color: #ff2b20;
    background: #ff2b20;
    color: #fff !important;
}

.vista-astc-action-button--primary:hover {
    border-color: #d92017;
    background: #d92017;
    color: #fff !important;
}

.vista-astc-debug {
    margin: 0 34px 34px;
    padding: 16px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fafafa;
    color: #222;
    font-size: 13px;
    line-height: 1.45;
}

.vista-astc-debug summary {
    cursor: pointer;
    font-weight: 800;
}

.vista-astc-debug p {
    margin: 12px 0;
}

.vista-astc-debug table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    table-layout: fixed;
}

.vista-astc-debug th,
.vista-astc-debug td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.vista-astc-debug th {
    font-weight: 800;
}

.vista-astc-nearest-location {
    max-width: 760px;
    margin: 0 auto 44px;
    padding: 28px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
    color: #2a2526;
    box-shadow: 0 14px 34px rgba(24, 24, 24, .07);
}

.vista-astc-nearest-location h2 {
    margin: 0 0 12px;
    color: #211b1d;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vista-astc-nearest-location-message,
.vista-astc-nearest-location-status {
    margin: 0 0 18px;
    color: #3c3638;
    font-size: 17px;
    line-height: 1.45;
}

.vista-astc-nearest-location-status {
    font-weight: 800;
}

.vista-astc-nearest-location-actions {
    max-width: 320px;
    margin-bottom: 18px;
}

.vista-astc-nearest-location-form {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.vista-astc-nearest-location-form label {
    display: block;
    margin-bottom: 9px;
    color: #ff2b20;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vista-astc-nearest-location-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
    gap: 12px;
    align-items: stretch;
}

.vista-astc-nearest-location-form select {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    color: #211b1d;
    font-size: 16px;
}

.vista-astc-nearest-location-noscript {
    margin: 18px 0 0 20px;
}

@media (max-width: 960px) {
    .vista-astc-location-title {
        font-size: 40px;
    }

    .vista-astc-location-body,
    .vista-astc-location-card--no-actions .vista-astc-location-body {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;
    }

    .vista-astc-location-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 680px) {
    .vista-astc-location-card {
        margin-bottom: 34px;
        border-radius: 0;
    }

    .vista-astc-location-hero {
        min-height: 260px;
        aspect-ratio: 4 / 3;
    }

    .vista-astc-location-title {
        font-size: 32px;
    }

    .vista-astc-location-hero .vista-astc-location-title {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .vista-astc-location-body,
    .vista-astc-location-card--no-actions .vista-astc-location-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 22px;
    }

    .vista-astc-location-main {
        display: contents;
    }

    .vista-astc-location-card--no-image .vista-astc-location-title {
        order: 0;
    }

    .vista-astc-priority-details {
        order: 1;
    }

    .vista-astc-location-actions {
        display: flex;
        flex-direction: column;
        order: 2;
        align-self: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    .vista-astc-secondary-details {
        order: 3;
        margin-top: 0;
        padding-top: 24px;
    }

    .vista-astc-map {
        order: 4;
        margin-top: 0;
        padding-top: 24px;
    }

    .vista-astc-priority-details,
    .vista-astc-location-actions {
        grid-template-columns: 1fr;
    }

    .vista-astc-address,
    .vista-astc-phone {
        padding: 18px;
    }

    .vista-astc-address p,
    .vista-astc-phone p {
        font-size: 26px;
        line-height: 1.16;
    }

    .vista-astc-map-embed iframe {
        min-height: 260px;
    }

    .vista-astc-debug {
        margin: 0 22px 22px;
        overflow-x: auto;
    }

    .vista-astc-nearest-location {
        margin-bottom: 34px;
        padding: 22px;
        border-radius: 0;
    }

    .vista-astc-nearest-location h2 {
        font-size: 30px;
    }

    .vista-astc-nearest-location-actions {
        max-width: none;
    }

    .vista-astc-nearest-location-form-row {
        grid-template-columns: 1fr;
    }
}
