.superbayi-app {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--superbayi-primary-color, #111827);
    max-width: 100%;
}

.superbayi-app * {
    box-sizing: border-box;
}

.superbayi-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.superbayi-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.superbayi-city-filter,
.superbayi-category-filter {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23111827' d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid #d1d5db;
    border-radius: var(--superbayi-radius, 10px);
    padding: 12px 40px 12px 16px;
    font-size: 15px;
    min-width: 260px;
    color: var(--superbayi-primary-color, #111827);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin-bottom:0px !important;
}

.superbayi-city-filter:hover,
.superbayi-category-filter:hover {
    border-color: var(--superbayi-hover-color, #1e40af);
}

.superbayi-city-filter:focus,
.superbayi-category-filter:focus {
    outline: none;
    border-color: var(--superbayi-button-color, #1d4ed8);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.superbayi-search-filter {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='2' d='M10 3a7 7 0 1 0 0 14 7 7 0 0 0 0-14zm11 18-6-6'/%3E%3C/svg%3E") no-repeat 14px center;
    border: 1px solid #d1d5db;
    border-radius: var(--superbayi-radius, 10px);
    padding: 12px 16px 12px 40px;
    font-size: 15px;
    min-width: 260px;
    flex: 1 1 260px;
    max-width: 360px;
    color: var(--superbayi-primary-color, #111827);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin-bottom:0px !important;
}

input[type="search"] .superbayi-search-filter {
	margin: 0 0 0px 0 !important;
	border: 1px solid #d1d5db !important;
}

.superbayi-search-filter {
	border: 1px solid #d1d5db !important;
}

.superbayi-search-filter::-webkit-search-cancel-button {
    cursor: pointer;
}

.superbayi-search-filter:hover {
    border-color: var(--superbayi-hover-color, #1e40af);
}

.superbayi-search-filter:focus {
    outline: none;
    border-color: var(--superbayi-button-color, #1d4ed8);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.superbayi-near-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d5db;
    border-radius: var(--superbayi-radius, 10px);
    background: #fff;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--superbayi-primary-color, #111827);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.superbayi-near-me:hover:not(:disabled) {
    border-color: var(--superbayi-hover-color, #1e40af);
}

.superbayi-near-me:focus-visible {
    outline: none;
    border-color: var(--superbayi-button-color, #1d4ed8);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.superbayi-near-me:disabled {
    opacity: 0.65;
    cursor: default;
}

.superbayi-near-me.is-active {
    background: var(--superbayi-button-color, #1d4ed8);
    border-color: var(--superbayi-button-color, #1d4ed8);
    color: var(--superbayi-button-text-color, #ffffff);
}

.superbayi-near-me-icon {
    flex: 0 0 auto;
}

.superbayi-location-status {
    margin: -6px 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.superbayi-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.superbayi-map-col {
    flex: 0 0 70%;
    max-width: 70%;
    border-radius: var(--superbayi-radius, 10px);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.superbayi-map {
    width: 100%;
    background: #eef1f5;
}

.superbayi-list-col {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
}

.superbayi-list {
    overflow-y: auto;
    max-height: var(--superbayi-map-height, 520px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.superbayi-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--superbayi-radius, 10px);
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.superbayi-card:hover {
    border-color: var(--superbayi-hover-color, #1e40af);
    transform: translateY(-1px);
}

.superbayi-card.is-active {
    border-color: var(--superbayi-button-color, #1d4ed8);
    background-color: var(--superbayi-card-active-color, #eff6ff);
}

.superbayi-card-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 6px;
    color: var(--superbayi-primary-color, #111827);
}

.superbayi-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 4px;
}

.superbayi-card-distance {
    font-weight: 600;
    color: var(--superbayi-button-color, #1d4ed8);
}

.superbayi-card-line {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 4px;
    line-height: 1.4;
}

.superbayi-card-tags {
    font-size: 12px;
    color: #6b7280;
    margin: 6px 0 0;
}

.superbayi-card-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    background: var(--superbayi-button-color, #1d4ed8);
    color: var(--superbayi-button-text-color, #ffffff) !important;
    border-radius: calc(var(--superbayi-radius, 10px) * 0.6);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.superbayi-card-directions:hover {
    background: var(--superbayi-hover-color, #1e40af);
    color: var(--superbayi-button-text-color, #ffffff) !important;
}

.superbayi-empty-state {
    text-align: center;
    color: #6b7280;
    padding: 40px 12px;
    font-size: 14px;
}

.superbayi-popup {
    font-family: inherit;
    min-width: 200px;
}

.superbayi-popup-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px;
    color: var(--superbayi-primary-color, #111827);
}

.superbayi-popup-line {
    font-size: 12.5px;
    color: #374151;
    margin: 0 0 4px;
    line-height: 1.4;
}

.superbayi-popup-directions {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--superbayi-button-color, #1d4ed8);
    color: var(--superbayi-button-text-color, #ffffff) !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.superbayi-popup-directions:hover {
    background: var(--superbayi-hover-color, #1e40af);
}

.superbayi-marker-pin {
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.12s ease;
}

.superbayi-marker.is-active .superbayi-marker-pin {
    transform: scale(1.22);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(29, 78, 216, 0.25);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: var(--superbayi-button-color, #1d4ed8);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .superbayi-layout {
        flex-direction: column;
    }

    .superbayi-map-col,
    .superbayi-list-col {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .superbayi-list {
        max-height: none;
    }

    .superbayi-city-filter,
    .superbayi-category-filter,
    .superbayi-search-filter,
    .superbayi-near-me {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .superbayi-near-me {
        justify-content: center;
    }
}
