/* Free Local Rankings Tool frontend styles */

.flrt-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    background: #f9fafb;
    max-width: 900px;
}

.flrt-title {
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
}

.flrt-intro {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
}

.flrt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.flrt-row .flrt-field {
    flex: 1 1 220px;
    min-width: 200px;
    position: relative;
}

.flrt-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.flrt-field input,
.flrt-field select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
}

.flrt-helper {
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
}

.flrt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    font-size: 13px;
}

.flrt-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.flrt-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #9ca3af;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.flrt-btn-secondary:hover {
    background: #f3f4f6;
}

.flrt-status {
    margin-top: 10px;
    font-size: 13px;
    color: #4b5563;
}

.flrt-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.flrt-actions-note {
    font-size: 11px;
    color: #6b7280;
}

.flrt-results {
    margin-top: 20px;
}

.flrt-section-heading {
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
}

.flrt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.flrt-table th,
.flrt-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    text-align: left;
}

.flrt-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.flrt-highlight {
    background: #ecfdf5 !important;
}

.flrt-run-meta {
    font-size: 13px;
    color: #6b7280;
}

.flrt-run-resolved {
    color: #9ca3af;
}

/* Autocomplete dropdown */
.flrt-loc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    max-height: 220px;
    overflow-y: auto;
}

.flrt-hidden {
    display: none;
}

.flrt-loc-suggestion {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
}

.flrt-loc-suggestion:hover {
    background: #f3f4f6;
}

/* Geo-grid / heatmap */
.flrt-grid {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.flrt-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flrt-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flrt-grid-cell {
    border-radius: 8px;
    padding: 8px;
    font-size: 11px;
    line-height: 1.3;
    border: 1px solid rgba(148,163,184,0.4);
}

.flrt-grid-rank {
    font-weight: 700;
    margin-bottom: 2px;
}

.flrt-grid-name {
    font-size: 11px;
    color: #111827;
}

.flrt-grid-highlight {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.6);
}

@media (max-width: 600px) {
    .flrt-row {
        flex-direction: column;
    }
}
