.locations-section {
  padding-top: 60px;
  padding-bottom: 76px;
}

.locations-tabs {
  gap: 12px;
}

.locations-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 20px;
  border-top: 8px solid transparent;
  background-clip: padding-box;
  font-size: 21px;
  line-height: 1.25;
  transition: box-shadow .18s;
}

.locations-tab small {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}

/* The active tab and panel edge use the same color and touch directly. */
.locations-tab[aria-selected='true'] {
  border-top-color: var(--green);
  background-color: var(--green);
}

.locations-tab[aria-selected='false']:hover {
  background: var(--green-tint) padding-box;
  color: var(--green);
}

.locations-panel {
  border-width: 8px;
  border-color: var(--green);
  box-shadow: 0 9px 25px var(--green-shadow);
}

.locations-image,
.locations-map {
  height: 440px;
}

.locations-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
  line-height: 1.5;
}

.locations-info h2 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 24px;
  line-height: 1.2;
}

.locations-info .locations-address {
  color: var(--text);
}

.locations-info h3 {
  margin-top: 23px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.4;
}

.locations-info p {
  font-size: 14px;
  line-height: 1.55;
}

.locations-hours {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
}

.locations-hours th,
.locations-hours td {
  padding: 9px 0;
  border-bottom: 1px solid var(--green-border);
  line-height: 1.4;
}

.locations-hours td {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.locations-hours tr:last-child th,
.locations-hours tr:last-child td {
  border-bottom: 0;
}

.locations-hours tr:last-child td {
  font-weight: 500;
}

.locations-actions {
  margin-top: 20px;
}

.locations-info .locations-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.locations-info .locations-phone:hover {
  background: var(--green-hover);
}

.locations-map-placeholder small {
  font-size: 12px;
  line-height: 1.7;
}

.locations-map-controls .locations-route {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--green-border);
  border-radius: 22px;
  font-size: 12px;
  text-decoration: none;
}

.locations-map-controls .locations-route:hover {
  background: var(--green-surface);
  text-decoration: underline;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .locations-tab {
    padding-inline: 12px;
    font-size: 18px;
  }

  .locations-info { padding: 25px 20px; }
  .locations-info h2 { font-size: 22px; }
  .locations-info h3 { font-size: 16px; }
  .locations-info p { font-size: 13px; }
  .locations-hours { font-size: 12px; }
  .locations-map-placeholder { padding: 22px; }
  .locations-map-placeholder p { font-size: 15px; }
  .locations-map-placeholder small { font-size: 11px; }

  .locations-map-button.button {
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .locations-section {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .locations-tabs {
    flex-direction: row;
    gap: 6px;
    margin: 0;
  }

  .locations-tab {
    padding: 9px 5px 11px;
    border-radius: 12px 12px 0 0;
    font: 700 12px/1.3 var(--font-body);
  }

  .locations-tab small { display: none; }

  .locations-panel {
    margin-top: 0;
    border-radius: 0 0 16px 16px;
  }

  .locations-info { padding: 25px 22px 28px; }
  .locations-info h2 { font-size: 26px; }

  .locations-info p {
    font-size: 15px;
    line-height: 1.6;
  }

  .locations-hours { font-size: 14px; }
  .locations-image { height: 240px; }
  .locations-map { height: 310px; }
  .locations-map-placeholder small { font-size: 11px; }
  .locations-map-controls { padding: 14px; }
}
