/* Joint Theme Core - Locations Map */

/* Locations Map */
.jtc-locations-map {
    display: flex;
    width: 100%;
    min-height: 600px;
}

.jtc-locations-sidebar {
    width: 380px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.joint-store-menu-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.jtc-locations-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.jtc-locations-nearby {
    display: flex;
    flex-direction: column;
}

.jtc-locations-map-container {
    flex: 1;
    min-height: 600px;
    position: relative;
    z-index: 1;
}
/* Single Store Map */
.elementor-widget-jtc_store_map {
    width: 100%;
}

.jtc-store-map {
    width: 100%;
    min-width: 0;
}
.jtc-store-map .jtc-locations-map-container {
    width: 100%;
    min-height: 400px;
}

.jtc-store-card {
    padding: 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.jtc-store-card__name {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.jtc-locations-map .jtc-store-card {
    cursor: pointer;
}

.jtc-store-card.jtc-store-card--focus {
    background-color: #f5f5f5;
}

.jtc-store-card__address {
    margin: 0;
}

.jtc-store-card__show-on-map {
    display: inline-flex;
    align-self: flex-start;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.jtc-store-card__show-on-map:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.jtc-locations-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jtc-locations-state-btn {
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.jtc-store-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jtc-store-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 16px;
}

/* Locations Grid */
.jtc-locations-grid {
    display: grid;
    gap: 16px;
}

/* Map Pins */
.jtc-map-pin {
    background: none !important;
    border: none !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.jtc-map-pin__image,
.jtc-map-pin svg {
    display: block;
}
.jtc-map-pin svg path {
    fill: var(--e-global-color-primary, #333);
    transition: fill 0.2s ease;
}

/* Currently Shopping label */
.jtc-locations-current__label {
    text-transform: uppercase;
}

/* Visit Store Button */
.jtc-store-card__button {
    display: inline-flex;
    align-self: flex-start;
    text-align: center;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.jtc-store-card__image img {
    display: block;
    width: 100%;
}

/* Locations Map - Responsive: stack map on top, list below */
@media (max-width: 768px) {
    .jtc-locations-map {
        flex-direction: column;
        min-height: auto !important;
    }

    .jtc-locations-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        order: 2;
    }

    .jtc-locations-map-container {
        min-height: 350px !important;
        order: 1;
    }

    .jtc-locations-list {
        overflow-y: visible;
        flex: none;
    }
}
