/* APD Drop-off Map — clean-room styles (no SLW assets) */
.apd-dropoff {
  --apd-ink: #1a2332;
  --apd-muted: #5a6577;
  --apd-accent: #0b6e4f;
  --apd-accent-2: #09553c;
  --apd-border: #d8dee6;
  --apd-bg: #f6f8fa;
  --apd-card: #ffffff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--apd-ink);
  max-width: 1200px;
  margin: 0 auto;
  clear: both;
  width: 100%;
}
.apd-dropoff * { box-sizing: border-box; }
.apd-dropoff-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.apd-dropoff-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.apd-dropoff-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 520px;
}
.apd-dropoff-search input[type="text"] {
  flex: 1 1 220px;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--apd-border);
  border-radius: 8px;
  font-size: 1rem;
}
.apd-dropoff-search button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #0b6e4f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.apd-dropoff-search button:hover { background: #09553c; }
.apd-dropoff-search button.secondary,
.apd-dropoff-search button.apd-near-me {
  background: #e8eef3;
  color: var(--apd-ink);
}
.apd-dropoff-search button.secondary:hover,
.apd-dropoff-search button.apd-near-me:hover {
  background: #d8dee6;
}
.apd-dropoff-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 14px;
  min-height: 520px;
}
@media (max-width: 800px) {
  .apd-dropoff-layout { grid-template-columns: 1fr; }
}
.apd-dropoff-list {
  background: var(--apd-card);
  border: 1px solid var(--apd-border);
  border-radius: 10px;
  overflow: auto;
  max-height: 620px;
}
.apd-dropoff-list-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--apd-border);
  cursor: pointer;
}
.apd-dropoff-list-item:hover,
.apd-dropoff-list-item.is-active {
  background: #eef7f2;
}
.apd-dropoff-list-item h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 650;
}
.apd-dropoff-list-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--apd-muted);
  line-height: 1.35;
}
.apd-dropoff-list-item .apd-meta {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--apd-accent);
}
.apd-dropoff-map-wrap {
  position: relative;
  border: 1px solid var(--apd-border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
  background: var(--apd-bg);
}
.apd-dropoff-map {
  width: 100%;
  height: 100%;
  min-height: 520px;
}
.apd-dropoff-status {
  font-size: 0.9rem;
  color: var(--apd-muted);
  margin: 8px 0 0;
}
.apd-dropoff-status.error { color: #a12828; }

/* Hours disclosure — today by default, expand for Mon–Sun + pricing */
.apd-hours {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--apd-muted);
}
.apd-hours-today {
  font-weight: 600;
  color: var(--apd-ink);
  margin-bottom: 4px;
}
.apd-hours-toggle {
  display: inline-block;
  margin: 2px 0 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--apd-accent);
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.apd-hours-toggle:hover,
.apd-hours-toggle:focus {
  color: var(--apd-accent-2);
  outline: 2px solid var(--apd-accent);
  outline-offset: 2px;
}
.apd-hours-panel {
  max-height: 9.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--apd-bg);
  border-radius: 6px;
  border: 1px solid var(--apd-border);
}
.apd-hours-panel[hidden] { display: none !important; }
.apd-hours-row {
  display: flex;
  gap: 8px;
  line-height: 1.4;
  margin: 2px 0;
}
.apd-hours-day {
  flex: 0 0 2.4em;
  font-weight: 600;
  color: var(--apd-ink);
}
.apd-hours-pricing {
  /* Always visible — not inside the collapsed hours panel */

  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--apd-border);
  color: var(--apd-ink);
  font-size: 0.8rem;
  line-height: 1.35;
}

.apd-popup h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apd-popup p { margin: 0 0 4px; font-size: 0.88rem; line-height: 1.35; }
.apd-popup a { color: var(--apd-accent); }

/* Preview page: keep map usable inside site chrome */
body#apd-dropoff-preview .preview-note {
  margin: 0 0 12px;
  color: #5a6577;
  font-size: 0.9rem;
}

.apd-hours-today + .apd-hours-pricing { margin-top: 6px; }
.apd-hours-pricing + .apd-hours-toggle { margin-top: 8px; }


/* Hard-cap Google InfoWindow so All hours scrolls instead of clipping off-map */
.apd-dropoff-map .gm-style-iw-c {
  max-height: 240px !important;
}
.apd-dropoff-map .gm-style-iw-d {
  max-height: 200px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.apd-dropoff-map .apd-popup,
.gm-style-iw-d .apd-popup {
  max-height: 180px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.apd-hours-panel {
  max-height: 7.5rem !important;
}

/* Narrow viewports: title + search stack full width (not side-by-side with CTA) */
@media (max-width: 768px) {
  .apd-dropoff-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .apd-dropoff-header h2 {
    width: 100%;
    max-width: 100%;
    font-size: 1.2rem;
    line-height: 1.3;
  }
  .apd-dropoff-search {
    max-width: none;
    width: 100%;
  }
}

