.osg-distributor-locator {
  max-width: 100%;
}

.osg-fullscreen-link-wrap {
  margin: 8px 0 16px;
}

.osg-nearest {
  max-width: 700px;
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.osg-nearest h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.osg-status {
  margin: 0.25rem 0 0.75rem;
  color: #4b5563;
}

.osg-locate {
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #5b6b2b;
  color: #fff;
  cursor: pointer;
}

.osg-details {
  margin: 0.75rem 0;
}

.osg-details summary {
  cursor: pointer;
  color: #374151;
}

.osg-manual-row {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.osg-manual-row input {
  flex: 1;
  min-width: 240px;
  padding: 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.osg-manual-row button {
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #e5e7eb;
  cursor: pointer;
}

.osg-result {
  margin-top: 1rem;
  display: none;
}

.osg-card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.osg-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.osg-name {
  font-weight: 700;
}

.osg-address {
  color: #374151;
}

.osg-distance {
  margin-top: 0.25rem;
  color: #6b7280;
}

.osg-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.osg-links a {
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: #fff;
}

.osg-links a[data-osg="gmaps"] {
  background: #2563eb;
}

.osg-links a[data-osg="waze"] {
  background: #0ea5e9;
}

.osg-links a[data-osg="apple"] {
  background: #111827;
}

.osg-note {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

[data-osg="top3"] {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

/* Grille [osg_distributor_grid] — alignée sur l’ancienne mise en page */
.osg-dist-grid-section {
  width: 100%;
}

.osg-dist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .osg-dist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .osg-dist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.osg-dist-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.osg-dist-card-wrap > .osg-dist-card {
  margin-bottom: 8px;
}

.osg-dist-card {
  border: 1px solid #c5d9c8;
  border-radius: 16px;
  overflow: hidden;
  background: #eef6f0;
  box-shadow: 0 4px 16px rgba(45, 74, 62, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.osg-dist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 74, 62, 0.12);
}

.osg-dist-card-img {
  height: 220px;
  overflow: hidden;
  background: #dfead9;
}

.osg-dist-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.osg-dist-card--obermodern .osg-dist-card-img img {
  object-position: center 42%;
}

.osg-dist-card--gundershoffen .osg-dist-card-img img {
  object-position: center 45%;
}

@media (max-width: 599px) {
  .osg-dist-card-img {
    height: 200px;
  }
}

.osg-dist-card-body {
  padding: 16px 18px 18px;
  text-align: center;
  min-height: 176px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.osg-dist-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #1f2937;
}

.osg-dist-24 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #4a6b2e;
}

.osg-dist-rep {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #5b6970;
}

.osg-dist-adr {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.osg-dist-btn-spacer {
  display: block;
  height: 6px;
  font-size: 0;
  line-height: 0;
}

.osg-dist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2px auto 0;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  min-height: 40px;
  box-sizing: border-box;
  transition: filter 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.osg-dist-btn--primary {
  background: #4a6b2e;
  color: #fff !important;
}

.osg-dist-btn--primary:hover {
  background: #405c28;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 74, 62, 0.16);
}

.osg-dist-btn--secondary {
  background: transparent;
  color: #4a6b2e !important;
  border: 2px solid #c5d9c8;
}

.osg-dist-btn--secondary:hover {
  border-color: #4a6b2e;
  transform: translateY(-1px);
}
