/* ═══════════════════════════════════════════
   Google Reviews voor GeoDirectory — Stijlen
   grg-style.css
   ═══════════════════════════════════════════ */


/* ── 1. FORMULIER ZOEKVELD ─────────────────── */

.grg-form-wrapper {
    margin: 16px 0 20px;
}

.grg-form-field {
    background: #f9fafb;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 16px 18px;
}

.grg-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.grg-icon {
    width: 16px;
    height: 16px;
    color: #4285f4;
    flex-shrink: 0;
}

.grg-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.grg-search-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.grg-search-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.grg-search-input::placeholder {
    color: #adb5bd;
}

.grg-clear-btn {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.grg-clear-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}

/* Status berichten */
.grg-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
    color: #6b7280;
}

.grg-status--success {
    color: #166534;
}

.grg-status--saving {
    color: #1e40af;
}

.grg-status--warning {
    color: #92400e;
}

/* Help tekst */
.grg-help-text {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Google Places autocomplete dropdown — lichte verbetering */
.pac-container {
    border-radius: 8px;
    border: 1px solid #e2e6ea;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    margin-top: 2px;
}

.pac-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.pac-item:hover {
    background: #f0f4ff;
}

.pac-item-query {
    font-size: 13px;
    font-weight: 600;
}


/* ── 2. RATING WIDGET OP LISTING PAGINA ─────── */

.grg-widget {
    display: inline-block;
    margin: 8px 0;
}

.grg-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 20px;
    padding: 6px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    line-height: 1;
}

/* Google "G" logo */
.grg-google-logo {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 40%, #fbbc05 70%, #ea4335 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

/* Sterren — echte deel-sterren (0.0–5.0) via vul-overlay */
.grg-stars-wrap {
    position: relative;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    font-size: 15px;
    letter-spacing: 0;
    vertical-align: middle;
}

.grg-stars-bg {
    color: #d1d5db; /* lege sterren (grijs) */
}

.grg-stars-fg {
    color: #fbbc05; /* gevulde sterren (goud) */
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

/* Compacte variant voor archief-items */
.grg-stars-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    font-size: 14px;
}

.grg-stars-link {
    text-decoration: none;
}

.grg-count {
    font-size: 13px;
    color: #6b7280;
}

/* Score getal */
.grg-score {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
}

/* Scheidingsteken */
.grg-divider {
    color: #d1d5db;
    font-size: 13px;
}

/* Link */
.grg-link {
    font-size: 13px;
    color: #4285f4;
    text-decoration: none;
    white-space: nowrap;
}

.grg-link:hover {
    text-decoration: underline;
    color: #1a56db;
}


/* ── 3. RESPONSIVE ──────────────────────────── */

@media (max-width: 480px) {
    .grg-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .grg-clear-btn {
        width: 100%;
        text-align: center;
    }

    .grg-inner {
        flex-wrap: wrap;
        border-radius: 12px;
    }
}
