/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Stores column */
.stores-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
  gap: 16px; flex-wrap: wrap;
}
.stores-head h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.stores-hours { color: var(--muted); font-size: 13.5px; }

.store-list { display: grid; gap: 14px; }
.store-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  transition: box-shadow .2s, border-color .15s;
}
.store-card:hover { box-shadow: var(--shadow-card); border-color: var(--line-2); }
.store-thumb {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--brand);
  opacity: .65;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--bg-softer);
}
.store-thumb svg { opacity: .55; }
.store-info-name {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.store-info-row {
  font-size: 13.5px;
  color: var(--muted);
  margin: 2px 0;
}
.store-info-row b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}
.store-info-row a { color: var(--brand); font-weight: 600; }
.store-info-row a:hover { text-decoration: underline; }
.store-map-link {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.store-map-link:hover { color: var(--brand-ink); }

/* Contact form column */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.contact-form-card h2 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form .form-field span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.contact-form .form-field input,
.contact-form .form-field textarea {
  width: 100%;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form .form-field textarea {
  border-radius: 18px;
  height: 140px;
  padding: 14px 18px;
  resize: vertical;
}
.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14,58,135,.10);
}
.contact-submit {
  align-self: start;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background .15s, transform .12s;
}
.contact-submit:hover { background: #000; transform: translateY(-1px); }
.contact-success {
  background: rgba(43, 179, 90, .1);
  color: #1c8c44;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}

/* Map */
.map-wrap {
  margin: 32px 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.map-el {
  width: 100%;
  height: 540px;
}

/* Leaflet popup tweaks */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  padding: 8px !important;
}
.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: "Inter", "Helvetica Neue", sans-serif !important;
  min-width: 240px;
}
.popup-name {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 0 0 6px;
}
.popup-addr {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 12px;
}
.popup-sched-title {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
  margin: 14px 0 10px;
}
.popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.popup-table td {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.popup-table td:first-child { font-weight: 600; }
.popup-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.popup-table tr:first-child td { border-top: 0; }
.popup-closed { color: var(--accent-red) !important; font-weight: 600; }

/* Custom marker pin */
.detergo-pin {
  background: var(--brand) !important;
  color: #fff;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: grid !important;
  place-items: center;
  margin-left: -16px !important;
  margin-top: -32px !important;
}
.detergo-pin span {
  transform: rotate(45deg);
  font-weight: 700;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-el { height: 420px; }
}
@media (max-width: 560px) {
  .store-card { grid-template-columns: 72px 1fr; padding: 14px; }
  .store-thumb { width: 72px; height: 72px; }
  .contact-form-card { padding: 20px; }
}
