/* Isolation Wrapper */
.sasl-locator-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.sasl-locator-wrapper * {
    box-sizing: border-box;
    white-space: normal;
}

/* Chip Bar (Top) */
.sasl-chip-bar {
    margin-bottom: 15px;
    width: 100%;
}

.sasl-desktop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.sasl-mobile-select {
    display: none;
    /* Hidden on Desktop */
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
}

@media (max-width: 768px) {
    .sasl-desktop-chips {
        display: none;
    }

    .sasl-mobile-select {
        display: block;
    }
}

.sasl-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f0f0f1;
    color: #444;
    border: 1px solid #dcdcde;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sasl-chip:hover {
    background: #e6e6e6;
    border-color: #c3c4c7;
}

.sasl-chip.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Map Wrapper */
.sasl-map-wrapper {
    width: 100%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#sasl-map {
    width: 100%;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

/* Masked Pin */
.sasl-pin-icon {
    width: 24px;
    height: 36px;
    display: block;
    -webkit-mask-image: url('../img/pins/default.svg');
    mask-image: url('../img/pins/default.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.sasl-marker-drop {
    will-change: transform, opacity;
}

.sasl-marker-drop .sasl-pin-icon {
    animation: dropIn 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    transform-origin: bottom center;
    opacity: 0;
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-200px) scale(0.5);
    }

    60% {
        opacity: 1;
        transform: translateY(20px) scale(1.1);
    }

    80% {
        transform: translateY(-5px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Full Image Pin (Logos etc) */
.sasl-full-img-pin {
    width: 36px;
    height: 36px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sasl-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.sasl-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.sasl-popup-chips {
    display: flex;
    gap: 2px;
    flex-direction: column;
    align-items: flex-end;
    min-width: fit-content;
}

.sasl-pop-chip {
    font-size: 10px;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.sasl-popup-address {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.sasl-popup-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.sasl-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.sasl-popup-country {
    font-weight: 600;
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.sasl-popup-directions-btn {
    width: 32px;
    height: 32px;
    background: #4285F4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none !important;
}

.sasl-popup-directions-btn:hover {
    background: #3367d6;
    transform: scale(1.1);
    color: #fff;
}

.sasl-popup-directions-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}