  #delivery-map {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
  }
  .zone-map-label {
    text-shadow:
      -1px -1px 0 #fff,
       1px -1px 0 #fff,
      -1px  1px 0 #fff,
       1px  1px 0 #fff,
       0   -2px 3px rgba(0,0,0,0.3),
       0    2px 3px rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
  }

  /* Schedule + legend combined panel */
  .delivery-panel {
    margin: 1.5rem 0 0;
  }
  .delivery-panel h2 {
    margin: 0 0 0.25rem;
  }
  .delivery-panel p {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.9rem;
  }

  /* Schedule table */
  .delivery-schedule {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
  }
  .delivery-schedule th,
  .delivery-schedule td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    vertical-align: top;
  }
  .delivery-schedule thead th {
    background: #6e2721;
    color: #fff;
    font-weight: 600;
    text-align: center;
  }
  .delivery-schedule th.col-zone {
    width: 22%;
    text-align: left;
  }
  .delivery-schedule thead th.day-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    position: relative;
  }
  .delivery-schedule thead th.day-header:hover {
    background: #8b3530;
  }
  .delivery-schedule thead th.day-header.active {
    background: #a0413a;
  }
  .delivery-schedule thead th.day-header.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: #fff;
    border-radius: 2px 2px 0 0;
  }
  .delivery-schedule tbody tr {
    transition: background 0.15s;
  }
  .delivery-schedule tbody tr:hover {
    background: #f9f5f5;
  }
  .delivery-schedule tbody td {
    background: #fff;
  }

  /* Zone row — first column */
  .zone-label-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
  }
  .zone-label-cell input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
  }
  .zone-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.2);
    flex-shrink: 0;
  }
  .zone-label-cell span.zone-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Day cells — dot or checkmark */
  .delivery-schedule td.day-cell {
    text-align: center;
    vertical-align: middle;
    font-size: 1.1rem;
  }
  .day-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
  }

  /* Show All button */
  .show-all-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 6px 18px;
    background: #6e2721;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
  }
  .show-all-btn:hover {
    background: #8b3530;
  }

  @media (max-width: 768px) {
    .delivery-schedule {
      font-size: 0.8rem;
    }
    .delivery-schedule th,
    .delivery-schedule td {
      padding: 6px 4px;
    }
    .zone-label-cell {
      gap: 4px;
    }
  }

/* Division navigation buttons */
.division-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.25rem;
}
.division-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #6e2721;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.division-nav a:hover,
.division-nav a:focus {
  background: #8b3530;
  color: #fff;
}
.division-nav a.secondary {
  background: #fff;
  color: #6e2721;
  border: 2px solid #6e2721;
}
.division-nav a.secondary:hover,
.division-nav a.secondary:focus {
  background: #f3e7e6;
  color: #6e2721;
}

/* Division group rows in the combined table */
.delivery-schedule tbody tr.division-row td {
  background: #f3e7e6;
  font-weight: 700;
  color: #6e2721;
}
.delivery-schedule tbody tr.division-row:hover td {
  background: #f3e7e6;
}
.division-row .zone-label-cell a {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
}
.delivery-schedule tbody tr.zone-row td:first-child {
  padding-left: 28px;
}
