/* -------------------------
   Nearby Shops — Unified CSS
   Works with: nsp-*, nsr-*, nspp-* classes
   Paste into: assets/css/style.css
   ------------------------- */

/* Root / container */
.nsp-wrapper, .nearby-shops, .nspp-root {
  max-width:1000px;
  margin:14px auto;
  font-family: Arial, Helvetica, sans-serif;
  color:#222;
  box-sizing:border-box;
  padding:0 12px;
}

/* Controls / header */
.nsp-wrapper .nsp-controls,
.nearby-shops .nspp-controls,
.nspp-head { display:flex; gap:10px; align-items:center; justify-content:space-between; margin-bottom:12px; flex-wrap:wrap; }
.nsp-wrapper .nsp-controls input[type="text"],
.nsp-wrapper .nsp-controls input[type="number"],
.nsp-wrapper .nsp-controls select { padding:8px; border:1px solid #ddd; border-radius:6px; background:#fff; }
.nsp-wrapper .nsp-refresh-location,
.nspp-refresh { padding:6px 12px; background:#2563eb; color:#fff; border:0; border-radius:6px; cursor:pointer; font-size:13px; }
.nsp-wrapper .nsp-refresh-location:hover,
.nspp-refresh:hover { background:#1e40af; }

/* Grid container for items */
.nsp-list, .nspp-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:8px;
}
@media(min-width:640px){ .nsp-list, .nspp-grid { grid-template-columns:1fr 1fr; } }
@media(min-width:960px){ .nsp-list, .nspp-grid { grid-template-columns:1fr 1fr 1fr; } }

/* Card (cover both naming styles) */
.nsp-item, .nsr-card {
  display:flex;
  align-items:flex-start;
  gap:12px;
  border:1px solid #e6e6e6;
  border-radius:8px;
  overflow:hidden;
  background:#fff !important;
  box-shadow:0 2px 6px rgba(0,0,0,0.04);
  transition:box-shadow .18s ease, transform .12s ease;
  padding:10px;
}
.nsp-item:hover, .nsr-card:hover { box-shadow:0 6px 18px rgba(0,0,0,0.08); transform:translateY(-2px); }

/* Thumbnail */
.nsp-thumb, .nsr-thumb {
  width:100px; height:100px; flex-shrink:0;
  display:block; overflow:hidden; border-radius:6px;
}
.nsp-thumb img, .nsr-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* Body / content */
.nsp-content, .nsr-body { flex:1; padding:0; min-width:0; }
.nsp-content h4, .nsr-title {
  margin:0 0 6px 0; font-size:16px; font-weight:600; color:#111;
  line-height:1.2;
}
.nsp-content h4 a, .nsr-title a { color:inherit; text-decoration:none; }
.nsp-content h4 a:hover, .nsr-title a:hover { color:#2563eb; text-decoration:underline; }

/* excerpt & distance */
.nsp-content p, .nsr-body p { margin:6px 0; color:#555; font-size:13px; line-height:1.35; }
.nsp-distance, .nsr-distance { color:#666; margin-top:4px; font-size:13px; }

/* Rating block */
.nsp-rating, .nspp-stars, .nsr-rating {
  display:flex; align-items:center; gap:6px; margin:6px 0;
  font-size:14px; color:#444;
}
.nsp-stars, .nspp-stars { display:flex; gap:4px; align-items:center; color:#f5b301; font-size:16px; }
.nsp-star, .star { cursor:pointer; font-size:18px; color:#f5b301; text-decoration:none; }
.nsp-star:hover, .star:hover { color:#ff9900; }
.nsp-star-disabled, .star.disabled { color:#bbb; cursor:default; }

/* Buttons / actions */
.nsp-content .nsp-actions, .nsr-actions, .nspp-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.nsp-content a, .nsr-btn {
  display:inline-block; padding:6px 10px; border-radius:6px; border:1px solid #0073aa; color:#0073aa; background:#fff; text-decoration:none; font-size:13px;
}
.nsp-content a:hover, .nsr-btn:hover { background:#0073aa; color:#fff; }
.nsp-call { background:#0073aa; color:#fff; border-color:#0073aa; }

/* Small devices tweak */
@media(max-width:480px){
  .nsp-thumb, .nsr-thumb { width:80px; height:80px; }
  .nsp-content h4, .nsr-title { font-size:15px; }
}

/* Submission form */
.nsp-submit-form, .nspp-submission-form {
  max-width:680px; margin:18px auto; padding:14px; background:#fff; border:1px solid #ddd; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.03);
}
.nsp-submit-form input[type="text"], .nsp-submit-form input[type="tel"], .nsp-submit-form textarea, .nsp-submit-form select,
.nspp-submission-form input[type="text"], .nspp-submission-form textarea {
  width:100%; padding:8px; border:1px solid #ccc; border-radius:6px; margin-bottom:10px; box-sizing:border-box;
}
.nsp-submit-form button, .nspp-submission-form button { background:#28a745; color:#fff; padding:10px 14px; border-radius:6px; border:none; cursor:pointer; }

/* Force important for theme conflicts (use sparingly) */
.nsp-list .nsp-item, .nsp-list .nsr-card { background:#fff !important; color: #222 !important; }
.nsp-list a { color:inherit !important; }

/* small utility */
.nsp-empty { padding:12px; color:#444; background:#fff; border:1px dashed #eee; border-radius:6px; text-align:center; }

/* end */
