/* ── Indian Store Locator v1.2.0 ── */

#isl-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

/* ── Search box ────────────────────────────────── */
#isl-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

#isl-query {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

#isl-query:focus {
    border-color: #e67e22;
}

#isl-search-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

#isl-search-btn:hover {
    background: #cf6d17;
}

/* ── Autocomplete suggestions dropdown ─────────── */
#isl-suggestions {
    display: none;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 100;
    overflow: hidden;
}

#isl-suggestions.isl-open {
    display: block;
}

#isl-suggestions li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.12s;
}

#isl-suggestions li:last-child {
    border-bottom: none;
}

#isl-suggestions li:hover,
#isl-suggestions li.isl-sug-active {
    background: #fff8f0;
}

.isl-sug-suburb {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.isl-sug-pc {
    font-size: 13px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Results area ──────────────────────────────── */
#isl-results {
    min-height: 40px;
}

/* Header */
.isl-results-header {
    margin-bottom: 16px;
}

.isl-results-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.isl-pc-badge {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 20px;
}

.isl-region-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e67e22;
    background: #fef3e8;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Store cards ───────────────────────────────── */
.isl-store-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.isl-store-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #e67e22;
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow 0.15s;
}

.isl-store-item.isl-has-link {
    cursor: pointer;
}

.isl-store-item:hover,
.isl-store-item.isl-has-link:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
    border-left-color: #cf6d17;
    background: #fffaf5;
}

.isl-store-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.isl-store-info {
    flex: 1;
    min-width: 0;
}

.isl-store-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 3px;
}

.isl-store-suburb {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* Store name link */
.isl-store-link {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s;
}

.isl-store-link:hover {
    color: #e67e22;
    text-decoration: underline;
}

.isl-link-icon {
    display: inline-block;
    font-size: 12px;
    margin-left: 4px;
    color: #e67e22;
    vertical-align: super;
}

/* Visit badge */
.isl-visit-btn {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #e67e22;
    background: #fef3e8;
    border: 1px solid #f5c99a;
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    pointer-events: none;
}

.isl-store-item.isl-has-link:hover .isl-visit-btn {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

/* ── No results ────────────────────────────────── */
.isl-no-results {
    text-align: center;
    padding: 32px 16px;
    color: #666;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.isl-no-results p   { margin: 6px 0; }
.isl-no-results strong {
    display: block;
    font-size: 17px;
    color: #444;
    margin-bottom: 4px;
}

/* ── Error ─────────────────────────────────────── */
.isl-error {
    color: #c0392b;
    padding: 12px 16px;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 14px;
}

/* ── Loading ───────────────────────────────────── */
.isl-loading {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
}
